using System.ComponentModel.DataAnnotations; namespace BookHive.Models; public class Book { [Key] public int Id { get; set; } [Required, MaxLength(200)] public string? Title { get; set; } [Required] public string? Isbn { get; set; } [MaxLength(3000)] public string? Summary { get; set; } [Required] public int PageCount { get; set; } [Required] public DateOnly PublishedDate { get; set; } [Required, MaxLength(50)] public string? Genre { get; set; } public Author? Author { get; set; } [Required] public int AuthorId { get; set; } public List? Loans { get; set; } public List? Reviews { get; set; } }