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