using YD_Event.Core.Enum; namespace YD_Event.Core.Entities; /// /// 裁判档案表 /// [SugarTable("Referee")] public class Referee : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability { /// /// 裁判姓名 /// [SugarColumn(Length = 64)] public string Name { get; set; } = null!; /// /// 联系电话(未删除数据中唯一) /// [SugarColumn(Length = 16)] public string Mobile { get; set; } = null!; /// /// 关联的小程序用户ID(未关联小程序账号时为空) /// [SugarColumn(IsNullable = true, ColumnDescription = "关联的小程序用户ID")] public long? AppUserId { get; set; } /// /// 所属省份编码 /// [SugarColumn(Length = 20)] public string ProvinceCode { get; set; } = null!; /// /// 所属省份名称 /// [SugarColumn(Length = 64)] public string ProvinceName { get; set; } = null!; /// /// 所属城市编码 /// [SugarColumn(Length = 20)] public string CityCode { get; set; } = null!; /// /// 所属城市名称 /// [SugarColumn(Length = 64)] public string CityName { get; set; } = null!; /// /// 所属区县编码 /// [SugarColumn(Length = 20)] public string DistrictCode { get; set; } = null!; /// /// 所属区县名称 /// [SugarColumn(Length = 64)] public string DistrictName { get; set; } = null!; /// /// 裁判等级:1-国际级,2-国家级,3-一级,4-二级,5-三级 /// public RefereeLevel Level { get; set; } /// /// 裁判证书图片URL /// [SugarColumn(Length = 512)] public string CertificateUrl { get; set; } = null!; /// /// 可执裁角色(位标记,可多选) /// public RefereeRole Roles { get; set; } /// /// 审核状态 /// public AuditStatus AuditStatus { get; set; } = AuditStatus.PendingAudit; /// /// 审核备注 /// [SugarColumn(Length = 512, IsNullable = true)] public string? AuditRemark { get; set; } /// /// 可用状态 /// 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; } }