namespace PowderCoating.Core.Entities;

/// <summary>
/// Platform release notes / changelog entries published by SuperAdmins.
/// Not a BaseEntity — platform-wide, not per-tenant.
/// </summary>
public class ReleaseNote
{
    public int Id { get; set; }

    /// <summary>Semantic version string, e.g. "1.4.0"</summary>
    public string Version { get; set; } = string.Empty;

    public string Title { get; set; } = string.Empty;

    /// <summary>Markdown-formatted release notes body</summary>
    public string Body { get; set; } = string.Empty;

    /// <summary>Display category tag, e.g. "Feature", "Improvement", "Fix", "Breaking"</summary>
    public string Tag { get; set; } = "Feature";

    public bool IsPublished { get; set; } = false;

    public DateTime ReleasedAt { get; set; } = DateTime.UtcNow;
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime? UpdatedAt { get; set; }

    public string? CreatedByUserId { get; set; }
    public string? CreatedByUserName { get; set; }
}
