144 lines
3.7 KiB
C#
144 lines
3.7 KiB
C#
using YD_Event.Core.Enum;
|
||
|
||
namespace YD_Event.Core.Entities;
|
||
|
||
/// <summary>
|
||
/// 赛事场次出场记录表
|
||
/// </summary>
|
||
[SugarTable("EventSessionEntry")]
|
||
public class EventSessionEntry : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
||
{
|
||
/// <summary>
|
||
/// 关联的比赛场次ID
|
||
/// </summary>
|
||
public long SessionId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 关联的赛事参赛记录ID(未匹配到参赛记录时为空)
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? ParticipationRecordId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 关联的报名项目明细ID
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? RegistrationItemId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出场数据来源:0-报名平台编排,1-秩序册导入
|
||
/// </summary>
|
||
public int SourceType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出场编号(项目序号+场地序号+出场顺序)
|
||
/// </summary>
|
||
[SugarColumn(Length = 32)]
|
||
public string EntryNo { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 出场顺序(同一场次内未删除数据中唯一)
|
||
/// </summary>
|
||
public int PlayOrder { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出场状态:0-待出场,10-已检录,20-已叫号,30-进行中,40-已完成,80-退赛,90-取消比赛资格
|
||
/// </summary>
|
||
public int EntryStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 叫号时间
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public DateTime? CallTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 开始比赛时间
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public DateTime? StartTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 结束比赛时间
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public DateTime? FinishTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否为重赛产生的出场记录
|
||
/// </summary>
|
||
public bool IsRematch { get; set; }
|
||
|
||
/// <summary>
|
||
/// 重赛来源出场记录ID
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? RematchFromEntryId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 成绩是否已作废
|
||
/// </summary>
|
||
public bool IsVoided { get; set; }
|
||
|
||
/// <summary>
|
||
/// 成绩作废原因
|
||
/// </summary>
|
||
[SugarColumn(Length = 512, IsNullable = true)]
|
||
public string? VoidReason { get; set; }
|
||
|
||
/// <summary>
|
||
/// 参赛人员姓名
|
||
/// </summary>
|
||
[SugarColumn(Length = 128)]
|
||
public string ParticipantName { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 参赛队伍名称(个人项目时为空)
|
||
/// </summary>
|
||
[SugarColumn(Length = 128, IsNullable = true)]
|
||
public string? TeamName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 参赛组别名称
|
||
/// </summary>
|
||
[SugarColumn(Length = 128)]
|
||
public string GroupName { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 版本号(出场信息变更时递增)
|
||
/// </summary>
|
||
public int Version { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 可用状态
|
||
/// </summary>
|
||
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
|
||
|
||
/// <summary>
|
||
/// 标记删除
|
||
/// </summary>
|
||
public bool DeleteMark { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建人
|
||
/// </summary>
|
||
public long CreatedUserId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
public DateTime CreatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新人
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? UpdatedUserId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public DateTime? UpdatedTime { get; set; }
|
||
}
|