using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 赛事裁判表
///
[SugarTable("EventReferee")]
public class EventReferee : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
///
/// 关联的赛事ID
///
public long EventId { get; set; }
///
/// 关联的裁判档案ID
///
public long RefereeId { get; set; }
///
/// 关联的裁判报名记录ID(非小程序报名时为空)
///
[SugarColumn(IsNullable = true)]
public long? RefereeApplicationId { get; set; }
///
/// 关联来源:1-后台添加,2-小程序报名,3-秩序册导入
///
public int SourceType { get; set; } = 1;
///
/// 可用状态
///
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
///
/// 标记删除
///
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; }
}