118 lines
2.9 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.

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>
/// 所属省份编码
/// </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>
/// 可用状态
/// </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; }
}