YD_Event.Admin/YD_Event.Core/Entities/EventJudgeScoreAttachment.cs

40 lines
1.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>
/// 裁判评分单附件。每次上传保留一个版本,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; }
}