2026-04-07 13:10:11 +08:00

63 lines
1.4 KiB
C#

using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 积分规则表
/// </summary>
public class PointsRule : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
/// <summary>
/// 积分规则名称
/// </summary>
[SugarColumn(Length = 128)]
public string RuleName { get; set; }
/// <summary>
/// 参与积分(发放积分个数)
/// </summary>
public int? ParticipationPoints { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = 512)]
public string? Remark { get; set; }
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
/// <summary>
/// 关联的名次积分规则
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<PointsRuleDetail>? Details { 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; }
}