157 lines
3.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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