139 lines
3.3 KiB
C#
Raw Normal View History

2026-03-06 12:10:09 +08:00
using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 普通用户表 (实名信息)
/// </summary>
[SugarTable("AppUser")]
public class AppUser : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
/// <summary>
2026-03-11 16:00:09 +08:00
/// 关联的 AuthAccount ID (如果是纯线下人员,此字段可能为空)
2026-03-06 12:10:09 +08:00
/// </summary>
2026-03-11 16:00:09 +08:00
[SugarColumn(IsNullable = true)]
public long? UserId { get; set; }
/// <summary>
/// 关联商户ID(单位账号)
/// </summary>
[SugarColumn(IsNullable = true)]
public long? MerchantId { get; set; }
/// <summary>
/// 人员类型:0-普通用户,1-领队,2-教练,3-运动员
/// </summary>
public int PersonType { get; set; }
/// <summary>
/// 技能等级(教练特有)
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? SkillLevel { get; set; }
/// <summary>
/// 认证状态(教练特有):0-未认证,1-已认证
/// </summary>
[SugarColumn(IsNullable = true)]
public int? CertificationStatus { get; set; }
2026-03-06 12:10:09 +08:00
2026-03-14 06:13:06 +08:00
/// <summary>
/// 昵称 (来自微信等第三方)
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? NickName { get; set; }
/// <summary>
/// 头像 (来自微信等第三方)
/// </summary>
[SugarColumn(Length = 512, IsNullable = true)]
public string? Avatar { get; set; }
2026-03-06 12:10:09 +08:00
/// <summary>
/// 姓名
/// </summary>
[SugarColumn(Length = 64)]
public string Name { get; set; }
/// <summary>
/// 性别
/// </summary>
public Gender Gender { get; set; }
2026-03-11 16:00:09 +08:00
/// <summary>
/// 年龄
/// </summary>
public int Age { get; set; }
2026-03-12 10:30:13 +08:00
/// <summary>
/// 出生日期
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? BirthDate { get; set; }
2026-03-06 12:10:09 +08:00
/// <summary>
/// 联系电话
/// </summary>
[SugarColumn(Length = 20)]
public string Mobile { get; set; }
/// <summary>
/// 身份证号码
/// </summary>
[SugarColumn(Length = 20)]
public string IdCardNumber { get; set; }
/// <summary>
/// 身份证图片URL
/// </summary>
[SugarColumn(Length = 512)]
public string? IdCardImageUrl { get; set; }
/// <summary>
/// 审核状态
/// </summary>
public AuditStatus AuditStatus { get; set; }
/// <summary>
/// 审核备注
/// </summary>
2026-03-11 16:00:09 +08:00
[SugarColumn(Length = 512, IsNullable = true)]
2026-03-06 12:10:09 +08:00
public string? AuditRemark { get; set; }
2026-03-11 16:00:09 +08:00
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = 512, IsNullable = true)]
public string? Remark { get; set; }
2026-03-06 12:10:09 +08:00
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
}