namespace YD_Event.Core.Entities; /// /// 裁判评分单附件。每次上传保留一个版本,IsCurrent 指向评分单当前画板。 /// [SugarTable("EventJudgeScoreAttachment")] public class EventJudgeScoreAttachment : Entity, 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; } }