using YD_Event.Core.Enum; namespace YD_Event.Core.Entities; /// /// 赛事报名表 /// [SugarTable("EventRegistration")] public class EventRegistration : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability { /// /// 关联的赛事ID /// public long EventId { get; set; } /// /// 归属单位认证 ID(记录报名时的单位) /// [SugarColumn(IsNullable = true)] public long? MerchantCertificationId { get; set; } /// /// 报名方式:1-个人,2-团队 /// public int RegistrationMode { get; set; } /// /// 团队名称 /// [SugarColumn(Length = 128)] public string? TeamName { get; set; } /// /// 报名者姓名 /// [SugarColumn(Length = 64)] public string ContactName { get; set; } /// /// 报名者电话 /// [SugarColumn(Length = 16)] public string ContactPhone { get; set; } /// /// 报名者邮箱 /// [SugarColumn(Length = 64)] public string? ContactEmail { get; set; } /// /// 总人数 /// public int TotalPersonCount { get; set; } /// /// 总费用 /// public decimal TotalAmount { get; set; } /// /// 支付状态:0-未支付/待审核,1-已支付/审核通过,2-支付失败/审核拒绝,3-已退款,4-已取消 /// public int PaymentStatus { get; set; } /// /// 支付方式:1-线下,2-线上 /// public int PaymentMethod { get; set; } /// /// 具体支付方式 /// public PaymentMethodType PaymentMethodType { get; set; } /// /// 订单编号 /// [SugarColumn(Length = 64)] public string OrderNo { get; set; } /// /// 支付时间 /// public DateTime? PaymentTime { get; set; } /// /// 审核人 /// [SugarColumn(Length = 64)] public string? Reviewer { get; set; } /// /// 审核时间 /// public DateTime? ReviewTime { get; set; } /// /// 审核备注 /// [SugarColumn(ColumnDataType = "TEXT")] public string? ReviewRemark { get; set; } /// /// 报名备注 /// [SugarColumn(ColumnDataType = "TEXT")] public string? RegistrationRemark { get; set; } /// /// 报名时间 /// public DateTime RegistrationTime { get; set; } /// /// 可用状态 /// public AvailabilityStatus Status { get; set; } /// /// 报名项目列表(导航属性) /// [SugarColumn(IsIgnore = true)] public List? Items { get; set; } /// /// 报名人员列表(导航属性) /// [SugarColumn(IsIgnore = true)] public List? Persons { get; set; } /// /// 支付信息(导航属性) /// [SugarColumn(IsIgnore = true)] public EventRegistrationPayment? Payment { get; set; } /// /// 支付凭证图片URL /// [SugarColumn(Length = 512)] public string? PaymentProofUrl { get; set; } /// /// 上传的素材URL /// [SugarColumn(Length = 512)] public string? MaterialUrl { get; set; } /// /// 标记删除 /// public bool DeleteMark { get; set; } /// /// 创建人 /// public long CreatedUserId { get; set; } /// /// 创建时间 /// public DateTime CreatedTime { get; set; } /// /// 更新人 /// public long? UpdatedUserId { get; set; } /// /// 更新时间 /// public DateTime? UpdatedTime { get; set; } }