using System.ComponentModel.DataAnnotations;

namespace BookHive.Models;

public class Loan
{
    [Key] public int Id { get; set; }

    public Book? Book { get; set; }
    [Required] public int BookId { get; set; }

    public Member? Member { get; set; }
    [Required] public int MemberId { get; set; }

    [Required] public DateOnly LoanDate { get; set; }
    [Required] public DateOnly DueDate { get; set; }
    public DateOnly? ReturnDate { get; set; }
}