76 lines
1.6 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>, IUpdatedTime, IAvailability, ICreatedUserId, ISoftDelete, ICreatedTime
{
/// <summary>
/// 用户ID
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 积分变动类型:1-获取,2-消耗
/// </summary>
public PointsOperationType Type { get; set; }
/// <summary>
/// 动作/来源描述
/// </summary>
[SugarColumn(Length = 256)]
public string Action { get; set; }
/// <summary>
/// 项目名称(可选)
/// </summary>
[SugarColumn(Length = 128, IsNullable = true)]
public string? Item { get; set; }
/// <summary>
/// 组别(可选)
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? Group { get; set; }
/// <summary>
/// 变动积分
/// </summary>
public int 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 long CreatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
}