2026-01-10 16:47:35 +08:00
|
|
|
|
using YD_Event.Core.Enum;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 赛事报名人员表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable("EventRegistrationPerson")]
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public class EventRegistrationPerson : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
|
2026-01-10 16:47:35 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的报名ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long RegistrationId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的报名项目ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long RegistrationItemId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的赛事项目ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long ProjectId { get; set; }
|
|
|
|
|
|
|
2026-04-01 10:12:06 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 参赛项目组别ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long? EventProjectGroupId { get; set; }
|
|
|
|
|
|
|
2026-02-08 18:09:05 +08:00
|
|
|
|
/// <summary>
|
2026-03-20 02:00:34 +08:00
|
|
|
|
/// 人员类型:1-运动员,2-教练,3-领队
|
2026-02-08 18:09:05 +08:00
|
|
|
|
/// </summary>
|
2026-03-20 02:00:34 +08:00
|
|
|
|
public PersonType PersonType { get; set; }
|
2026-02-08 18:09:05 +08:00
|
|
|
|
|
2026-04-13 05:20:09 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的用户ID(必填)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = false)]
|
|
|
|
|
|
public long UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的用户信息(导航属性)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
|
|
|
[Navigate(NavigateType.OneToOne, nameof(UserId))]
|
|
|
|
|
|
public AppUser? User { get; set; }
|
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 姓名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64)]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 性别
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Gender Gender { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 身份证号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 18)]
|
|
|
|
|
|
public string IdCard { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 出生日期
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime BirthDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 手机号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 16)]
|
|
|
|
|
|
public string Phone { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 年龄
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Age { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 邮箱
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64)]
|
|
|
|
|
|
public string? Email { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 所属组别
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64)]
|
|
|
|
|
|
public string GroupName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 参赛项目名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 128)]
|
|
|
|
|
|
public string? ProjectName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 自定义字段值
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 128)]
|
|
|
|
|
|
public string? CustomFieldValue { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDataType = "TEXT")]
|
|
|
|
|
|
public string? Remark { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
2026-05-13 14:04:49 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的退款订单ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? RefundOrderId { get; set; }
|
|
|
|
|
|
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// <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; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
}
|