namespace YD_Event.Core.Entities; /// /// 裁判评分任务表 /// [SugarTable("EventJudgeTask")] public class EventJudgeTask : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime { /// /// 关联的赛事ID /// public long EventId { get; set; } /// /// 关联的比赛场次ID /// public long SessionId { get; set; } /// /// 关联的场次出场记录ID /// public long SessionEntryId { get; set; } /// /// 关联的裁判分配ID /// public long JudgeAssignmentId { get; set; } /// /// 关联的赛事裁判记录ID /// public long EventRefereeId { get; set; } /// /// 关联的裁判档案ID /// public long RefereeId { get; set; } /// /// 关联的小程序用户ID /// [SugarColumn(IsNullable = true)] public long? JudgeUserId { get; set; } /// /// 裁判席位编码 /// [SugarColumn(Length = 32)] public string JudgeRole { get; set; } = null!; /// /// 裁判角色类别编码 /// [SugarColumn(Length = 16)] public string JudgeRoleType { get; set; } = null!; /// /// 关联的计分规则ID /// public long ScoreRuleId { get; set; } /// /// 计分规则版本号 /// public int RuleVersion { get; set; } = 1; /// /// 任务快照(JSON) /// [SugarColumn(ColumnDataType = "nvarchar(max)")] public string TaskSnapshotJson { get; set; } = null!; /// /// 任务类型:0-正常打分,1-成绩修正 /// public int TaskType { get; set; } /// /// 任务状态:0-待下发,10-已下发,20-已接收,30-评分中,40-已提交,50-需修正,60-已修正,80-已拒绝,90-已作废,99-已过期 /// public int TaskStatus { get; set; } /// /// 任务版本号 /// public int TaskVersion { get; set; } = 1; /// /// 下发时间 /// [SugarColumn(IsNullable = true)] public DateTime? DispatchedTime { get; set; } /// /// 接收时间 /// [SugarColumn(IsNullable = true)] public DateTime? AcceptedTime { get; set; } /// /// 提交时间 /// [SugarColumn(IsNullable = true)] public DateTime? SubmittedTime { get; set; } /// /// 任务截止时间 /// [SugarColumn(IsNullable = true)] public DateTime? ExpiresTime { get; set; } /// /// 来源任务ID /// [SugarColumn(IsNullable = true)] public long? OriginalTaskId { get; set; } /// /// 拒绝原因 /// [SugarColumn(Length = 512, IsNullable = true)] public string? RejectReason { get; set; } /// /// 备注 /// [SugarColumn(Length = 512, IsNullable = true)] public string? Remark { get; set; } /// /// 标记删除 /// public bool DeleteMark { get; set; } /// /// 创建人 /// public long CreatedUserId { get; set; } /// /// 创建时间 /// public DateTime CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(IsNullable = true)] public long? UpdatedUserId { get; set; } /// /// 更新时间 /// [SugarColumn(IsNullable = true)] public DateTime? UpdatedTime { get; set; } }