using SqlSugar; using YD_Event.Core.Enum; namespace YD_Event.Core.Entities; /// /// 积分记录表 /// public class PointsRecord : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability { /// /// 用户ID /// public long UserId { get; set; } /// /// 积分变动类型:1-获取,2-消耗 /// public PointsOperationType Type { get; set; } /// /// 动作/来源描述 /// [SugarColumn(Length = 256)] public string Action { get; set; } /// /// 项目名称(可选) /// [SugarColumn(Length = 128, IsNullable = true)] public string? Item { get; set; } /// /// 组别(可选) /// [SugarColumn(Length = 64, IsNullable = true)] public string? Group { get; set; } /// /// 变动积分 /// public int Points { get; set; } /// /// 备注 /// [SugarColumn(Length = 512, IsNullable = true)] public string? Remark { get; set; } /// /// 可用状态 /// public AvailabilityStatus Status { get; set; } /// /// 标记删除 /// public bool DeleteMark { get; set; } /// /// 创建人 /// public long CreatedUserId { get; set; } /// /// 创建时间 /// public DateTime CreatedTime { get; set; } /// /// 更新人 /// public long? UpdatedUserId { get; set; } /// /// 更新时间 /// public DateTime? UpdatedTime { get; set; } }