using System.ComponentModel.DataAnnotations;

namespace BlogPlatform.Models;

public class Comment
{
    [Key] public int Id { get; set; }
    [Required, Length(1,500)] public string? Content { get; set; }
    public DateOnly CreatedAt  { get; set; }
    
    [Required] public int PostId{ get; set; }
    public Post? Post{ get; set; }
    
    [Required] public int UserId { get; set; }
    public User? User{ get; set; }
}