2026-01-17 12:52:58 +08:00
|
|
|
|
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
|
2026-01-17 12:52:58 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2026-04-03 09:42:10 +08:00
|
|
|
|
/// 用户ID(普通用户积分关联)
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </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
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-03-07 22:45:51 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? EventId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-07 22:45:51 +08:00
|
|
|
|
/// 关联项目ID
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-03-07 22:45:51 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? ProjectId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-07 22:45:51 +08:00
|
|
|
|
/// 关联项目组别ID
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-03-07 22:45:51 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? ProjectGroupId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-30 17:06:12 +08:00
|
|
|
|
/// 单位认证ID(单位用户积分关联)
|
2026-03-07 22:45:51 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
2026-03-30 17:06:12 +08:00
|
|
|
|
public long? MerchantCertificationId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 变动积分
|
|
|
|
|
|
/// </summary>
|
2026-03-07 22:45:51 +08:00
|
|
|
|
public decimal Points { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <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; }
|
|
|
|
|
|
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CreatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 创建时间
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public DateTime CreatedTime { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 更新人
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public long? UpdatedUserId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 更新时间
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
}
|