first commit

This commit is contained in:
2026-03-09 22:09:10 +01:00
commit 7b6b294b0f
269 changed files with 10338 additions and 0 deletions

20
BookHive/Models/Book.cs Normal file
View File

@@ -0,0 +1,20 @@
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<Loan>? Loans { get; set; }
public List<Review>? Reviews { get; set; }
}