40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
namespace YD_Event.Core.Entities;
|
||
|
||
/// <summary>
|
||
/// 裁判评分单附件。每次上传保留一个版本,IsCurrent 指向评分单当前画板。
|
||
/// </summary>
|
||
[SugarTable("EventJudgeScoreAttachment")]
|
||
public class EventJudgeScoreAttachment : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
|
||
{
|
||
public long EventId { get; set; }
|
||
public long SessionId { get; set; }
|
||
public long SessionEntryId { get; set; }
|
||
public long ScoreSheetId { get; set; }
|
||
public long JudgeAssignmentId { get; set; }
|
||
public long RefereeId { get; set; }
|
||
|
||
[SugarColumn(Length = 32)]
|
||
public string AttachmentType { get; set; } = "score_annotation_png";
|
||
|
||
[SugarColumn(Length = 128)]
|
||
public string FileName { get; set; } = null!;
|
||
|
||
[SugarColumn(Length = 1000)]
|
||
public string FileUrl { get; set; } = null!;
|
||
|
||
public long FileSize { get; set; }
|
||
|
||
[SugarColumn(Length = 64)]
|
||
public string ContentType { get; set; } = "image/png";
|
||
|
||
[SugarColumn(Length = 64)]
|
||
public string IdempotencyKey { get; set; } = null!;
|
||
|
||
public bool IsCurrent { get; set; } = true;
|
||
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; }
|
||
}
|