87 lines
2.2 KiB
C#
87 lines
2.2 KiB
C#
|
|
using YD_Event.Core.Enum;
|
|||
|
|
|
|||
|
|
namespace YD_Event.Core.Entities;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 赛事裁判分配表(按场次分配裁判席位)
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarTable("EventJudgeAssignment")]
|
|||
|
|
public class EventJudgeAssignment : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 关联的赛事ID
|
|||
|
|
/// </summary>
|
|||
|
|
public long EventId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 关联的比赛场次ID
|
|||
|
|
/// </summary>
|
|||
|
|
public long SessionId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 关联的裁判档案ID
|
|||
|
|
/// </summary>
|
|||
|
|
public long RefereeId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 关联的小程序用户ID(裁判尚未注册小程序账号时为空)
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(IsNullable = true)]
|
|||
|
|
public long? JudgeUserId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 裁判席位编码(取自计分规则的裁判席位配置,如 T、DP1、P)
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(Length = 32)]
|
|||
|
|
public string JudgeRole { get; set; } = null!;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 分配状态:0-草稿,1-已提交,2-已替换,9-已停用
|
|||
|
|
/// </summary>
|
|||
|
|
public int AssignmentStatus { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 提交时间
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(IsNullable = true)]
|
|||
|
|
public DateTime? SubmittedTime { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 备注
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(Length = 512, IsNullable = true)]
|
|||
|
|
public string? Remark { get; set; }
|
|||
|
|
|
|||
|
|
/// <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; }
|
|||
|
|
}
|