98 lines
2.6 KiB
C#
98 lines
2.6 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>
|
|||
|
|
public long RegistrationItemId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 出场编号(项目序号+场地序号+出场顺序)
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(Length = 32)]
|
|||
|
|
public string EntryNo { get; set; } = null!;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 出场顺序(同一场次内未删除数据中唯一)
|
|||
|
|
/// </summary>
|
|||
|
|
public int PlayOrder { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 出场状态:0-待出场(其余状态由打分系统流转时写入)
|
|||
|
|
/// </summary>
|
|||
|
|
public int EntryStatus { 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; }
|
|||
|
|
}
|