YD_Event.Admin/YD_Event.Core/Entities/EventResultVersion.cs

141 lines
3.4 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("EventResultVersion")]
public class EventResultVersion : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
{
/// <summary>
/// 关联的赛事成绩ID
/// </summary>
public long EventResultId { get; set; }
/// <summary>
/// 关联的赛事ID
/// </summary>
public long EventId { get; set; }
/// <summary>
/// 关联的场次出场记录ID
/// </summary>
public long SessionEntryId { get; set; }
/// <summary>
/// 成绩版本号
/// </summary>
public int ResultVersion { get; set; } = 1;
/// <summary>
/// 难度分
/// </summary>
[SugarColumn(DecimalDigits = 4)]
public decimal DifficultyScore { get; set; }
/// <summary>
/// 表现分
/// </summary>
[SugarColumn(DecimalDigits = 4)]
public decimal PerformanceScore { get; set; }
/// <summary>
/// 规定分
/// </summary>
[SugarColumn(DecimalDigits = 4)]
public decimal RequiredScore { get; set; }
/// <summary>
/// 扣分
/// </summary>
[SugarColumn(DecimalDigits = 4)]
public decimal DeductionScore { get; set; }
/// <summary>
/// 正式总分
/// </summary>
[SugarColumn(DecimalDigits = 4)]
public decimal TotalScore { get; set; }
/// <summary>
/// 名次
/// </summary>
[SugarColumn(IsNullable = true)]
public int? Rank { get; set; }
/// <summary>
/// 是否取消比赛资格
/// </summary>
public bool IsDisqualified { get; set; }
/// <summary>
/// 取消比赛资格原因编码
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? DisqualifyReasonCode { get; set; }
/// <summary>
/// 成绩状态:0-计算中,10-待复核,20-已确认,30-已投屏,40-已更正,90-已作废
/// </summary>
public int ResultStatus { get; set; }
/// <summary>
/// 版本来源:0-正常聚合,1-成绩修正,2-重赛
/// </summary>
public int SourceType { get; set; }
/// <summary>
/// 关联的成绩修正申请ID
/// </summary>
[SugarColumn(IsNullable = true)]
public long? ScoreCorrectionId { get; set; }
/// <summary>
/// 关联的计分规则ID
/// </summary>
public long ScoreRuleId { get; set; }
/// <summary>
/// 计分规则版本号
/// </summary>
public int RuleVersion { get; set; } = 1;
/// <summary>
/// 聚合计算明细(JSON)
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar(max)", IsNullable = true)]
public string? CalculationJson { 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; }
}