using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BookDatabaseImplement.Model { public class History { public int Id { get; set; } [Required] public int BookId { get; set; } [ForeignKey("BookId")] public Book Book { get; set; } [Required] public int ReaderId { get; set; } [ForeignKey("ReaderId")] public Reader Reader { get; set; } [Required] public DateTime DateBorrowed { get; set; } } }