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; } /// /// 关联赛事ID /// [SugarColumn(IsNullable = true)] public long? EventId { get; set; } /// /// 关联项目ID /// [SugarColumn(IsNullable = true)] public long? ProjectId { get; set; } /// /// 关联项目组别ID /// [SugarColumn(IsNullable = true)] public long? ProjectGroupId { get; set; } /// /// 单位认证ID(单位用户积分关联) /// [SugarColumn(IsNullable = true)] public long? MerchantCertificationId { get; set; } /// /// 变动积分 /// public decimal 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; } }