86 lines
1.9 KiB
C#
Raw Normal View History

using SqlSugar;
using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 积分记录表
/// </summary>
2026-02-26 18:29:08 +08:00
public class PointsRecord : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
/// <summary>
/// 用户ID
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 积分变动类型:1-获取,2-消耗
/// </summary>
public PointsOperationType Type { get; set; }
/// <summary>
2026-03-07 22:45:51 +08:00
/// 关联赛事ID
/// </summary>
2026-03-07 22:45:51 +08:00
[SugarColumn(IsNullable = true)]
public long? EventId { get; set; }
/// <summary>
2026-03-07 22:45:51 +08:00
/// 关联项目ID
/// </summary>
2026-03-07 22:45:51 +08:00
[SugarColumn(IsNullable = true)]
public long? ProjectId { get; set; }
/// <summary>
2026-03-07 22:45:51 +08:00
/// 关联项目组别ID
/// </summary>
2026-03-07 22:45:51 +08:00
[SugarColumn(IsNullable = true)]
public long? ProjectGroupId { get; set; }
/// <summary>
/// 商户ID(单位用户积分关联)
/// </summary>
[SugarColumn(IsNullable = true)]
public long? MerchantId { get; set; }
/// <summary>
/// 变动积分
/// </summary>
2026-03-07 22:45:51 +08:00
public decimal Points { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = 512, IsNullable = true)]
public string? Remark { get; set; }
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
2026-02-26 18:29:08 +08:00
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
2026-02-26 18:29:08 +08:00
/// 创建时间
/// </summary>
2026-02-26 18:29:08 +08:00
public DateTime CreatedTime { get; set; }
/// <summary>
2026-02-26 18:29:08 +08:00
/// 更新人
/// </summary>
2026-02-26 18:29:08 +08:00
public long? UpdatedUserId { get; set; }
/// <summary>
2026-02-26 18:29:08 +08:00
/// 更新时间
/// </summary>
2026-02-26 18:29:08 +08:00
public DateTime? UpdatedTime { get; set; }
}