using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Nuuru.Server.Models.Booru { public class Comment { public int Id { get; set; } /// /// Original BBCode content (for editing) /// [Required] [MaxLength(10000)] public string ContentRaw { get; set; } = string.Empty; /// /// Parsed and sanitized HTML (for display) /// [Required] public string ContentHtml { get; set; } = string.Empty; public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public DateTime? EditedAt { get; set; } public string? IpAddress { get; set; } public Guid UserId { get; set; } public ApplicationUser User { get; set; } = null!; public int PostId { get; set; } public Post Post { get; set; } = null!; public ICollection Mentions { get; set; } = []; } }