YD_Event.Admin/YD_Event.Core/Entities/EventRegistrationLimit.cs

60 lines
1.5 KiB
C#
Raw Normal View History

namespace YD_Event.Core.Entities;
/// <summary>
/// 赛事报名限制表
/// </summary>
[SugarTable("EventRegistrationLimit")]
2026-02-26 18:29:08 +08:00
public class EventRegistrationLimit : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
{
/// <summary>
/// 关联的赛事ID
/// </summary>
public long EventId { get; set; }
/// <summary>
/// 个人项目限报数量(每人最多报多少个个人项目)
/// </summary>
public int IndividualProjectLimit { get; set; }
/// <summary>
/// 团队项目限报数量(每人最多报多少个团队项目)
/// </summary>
public int TeamProjectLimit { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 裁判限报数量(每个单位最多可报多少名裁判)
/// </summary>
public int RefereeLimit { get; set; }
/// <summary>
/// 项目限报列表(导航属性)
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<EventProjectRegistrationLimit>? ProjectLimits { 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>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
}