namespace Meezi.Core.Entities;

public class WebsiteBlogPost : BaseEntity
{
    public string Slug          { get; set; } = string.Empty;
    public string TitleFa       { get; set; } = string.Empty;
    public string TitleEn       { get; set; } = string.Empty;
    public string ExcerptFa     { get; set; } = string.Empty;
    public string ExcerptEn     { get; set; } = string.Empty;
    public string ContentFa     { get; set; } = string.Empty; // Markdown
    public string ContentEn     { get; set; } = string.Empty;
    public string Author        { get; set; } = "تیم میزی";
    public string CategoryFa    { get; set; } = string.Empty;
    public string CategoryEn    { get; set; } = string.Empty;
    public string TagsJson      { get; set; } = "[]"; // JSON array of strings
    public string? CoverImage   { get; set; }
    public bool   IsPublished   { get; set; } = false;
    public DateTime? PublishedAt { get; set; }
    public int    ViewCount     { get; set; } = 0;

    // Navigation
    public ICollection<WebsiteComment> Comments { get; set; } = [];
}
