using System.ComponentModel.DataAnnotations;

namespace BookHive.Models;

public class Review
{
    [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 int Rating { get; set; }
    [MaxLength(1000)] public string? Comment { get; set; }
    [Required] public DateTime? CreatedAt { get; set; } = DateTime.Now;
}