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

namespace TakeoutSaaS.Domain.Engagement.Entities;

/// <summary>
/// 社区互动反馈。
/// </summary>
public sealed class CommunityReaction : MultiTenantEntityBase
{
    /// <summary>
    /// 动态 ID。
    /// </summary>
    public long PostId { get; set; }

    /// <summary>
    /// 用户 ID。
    /// </summary>
    public long UserId { get; set; }

    /// <summary>
    /// 反应类型。
    /// </summary>
    public ReactionType ReactionType { get; set; } = ReactionType.Like;

    /// <summary>
    /// 时间戳。
    /// </summary>
    public DateTime ReactedAt { get; set; } = DateTime.UtcNow;
}
