using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Membership.Entities;

/// <summary>
/// 成长值变动日志。
/// </summary>
public sealed class MemberGrowthLog : MultiTenantEntityBase
{
    /// <summary>
    /// 会员标识。
    /// </summary>
    public long MemberId { get; set; }

    /// <summary>
    /// 变动数量。
    /// </summary>
    public int ChangeValue { get; set; }

    /// <summary>
    /// 当前成长值。
    /// </summary>
    public int CurrentValue { get; set; }

    /// <summary>
    /// 备注。
    /// </summary>
    public string? Notes { get; set; }

    /// <summary>
    /// 发生时间。
    /// </summary>
    public DateTime OccurredAt { get; set; } = DateTime.UtcNow;
}
