using TakeoutSaaS.Domain.Engagement.Enums;
using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Engagement.Entities;

/// <summary>
/// 社区动态。
/// </summary>
public sealed class CommunityPost : MultiTenantEntityBase
{
    /// <summary>
    /// 作者用户 ID。
    /// </summary>
    public long AuthorUserId { get; set; }

    /// <summary>
    /// 标题。
    /// </summary>
    public string? Title { get; set; }

    /// <summary>
    /// 内容。
    /// </summary>
    public string Content { get; set; } = string.Empty;

    /// <summary>
    /// 媒体资源 JSON。
    /// </summary>
    public string? MediaJson { get; set; }

    /// <summary>
    /// 状态。
    /// </summary>
    public PostStatus Status { get; set; } = PostStatus.PendingReview;

    /// <summary>
    /// 点赞数。
    /// </summary>
    public int LikeCount { get; set; }

    /// <summary>
    /// 评论数。
    /// </summary>
    public int CommentCount { get; set; }
}
