86 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SqlSugar;
using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 积分记录表
/// </summary>
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>
/// 关联赛事ID
/// </summary>
[SugarColumn(IsNullable = true)]
public long? EventId { get; set; }
/// <summary>
/// 关联项目ID
/// </summary>
[SugarColumn(IsNullable = true)]
public long? ProjectId { get; set; }
/// <summary>
/// 关联项目组别ID
/// </summary>
[SugarColumn(IsNullable = true)]
public long? ProjectGroupId { get; set; }
/// <summary>
/// 单位认证ID(单位用户积分关联)
/// </summary>
[SugarColumn(IsNullable = true)]
public long? MerchantCertificationId { get; set; }
/// <summary>
/// 变动积分
/// </summary>
public decimal Points { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = 512, IsNullable = true)]
public string? Remark { get; set; }
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
}