using System.ComponentModel.DataAnnotations;

namespace BookHive.Models;

public class Member
{
    [Key] public int Id { get; set; }
    [Required, EmailAddress] public string? Email { get; set; }
    [Required, MaxLength(100)] public string? FirstName { get; set; }
    [Required, MaxLength(100)] public string? LastName { get; set; }
    [Required] public DateOnly MembershipDate { get; set; }
    [Required] public bool IsActive { get; set; } = true;

    public List<Loan>? Loans { get; set; }
    public List<Review>? Reviews { get; set; }
}