namespace YD_Event.Core.Entities;
///
/// 成绩投屏记录表
///
[SugarTable("EventResultScreenCast")]
public class EventResultScreenCast : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
{
///
/// 关联的赛事ID
///
public long EventId { get; set; }
///
/// 投屏类型:1-成绩,2-排名
///
public int CastType { get; set; }
///
/// 投屏场地ID
///
[SugarColumn(IsNullable = true)]
public long? VenueId { get; set; }
///
/// 关联的赛事项目ID
///
[SugarColumn(IsNullable = true)]
public long? EventProjectId { get; set; }
///
/// 关联的赛事项目组别ID
///
[SugarColumn(IsNullable = true)]
public long? EventProjectGroupId { get; set; }
///
/// 关联的比赛场次ID
///
[SugarColumn(IsNullable = true)]
public long? SessionId { get; set; }
///
/// 关联的场次出场记录ID
///
[SugarColumn(IsNullable = true)]
public long? SessionEntryId { get; set; }
///
/// 关联的赛事成绩ID
///
[SugarColumn(IsNullable = true)]
public long? EventResultId { get; set; }
///
/// 投屏时的成绩版本号
///
[SugarColumn(IsNullable = true)]
public int? ResultVersion { get; set; }
///
/// 投屏内容快照(JSON)
///
[SugarColumn(ColumnDataType = "nvarchar(max)")]
public string PayloadJson { get; set; } = null!;
///
/// 投屏状态:0-已投出,10-已撤回,20-已被新投屏替换
///
public int CastStatus { get; set; }
///
/// 投屏时间
///
public DateTime CastTime { get; set; }
///
/// 撤回时间
///
[SugarColumn(IsNullable = true)]
public DateTime? RevokedTime { get; set; }
///
/// 撤回人
///
[SugarColumn(IsNullable = true)]
public long? RevokedUserId { get; set; }
///
/// 备注
///
[SugarColumn(Length = 512, IsNullable = true)]
public string? Remark { get; set; }
///
/// 标记删除
///
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; }
}