YD_Event.Admin/YD_Event.Core/Entities/EventRegistration.cs

164 lines
3.8 KiB
C#
Raw Normal View History

using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 赛事报名表
/// </summary>
[SugarTable("EventRegistration")]
2026-02-26 18:29:08 +08:00
public class EventRegistration : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
/// <summary>
/// 关联的赛事ID
/// </summary>
public long EventId { get; set; }
/// <summary>
/// 报名方式:1-个人,2-团队
/// </summary>
public int RegistrationMode { get; set; }
/// <summary>
/// 参赛单位名称
/// </summary>
[SugarColumn(Length = 128)]
public string? TeamName { get; set; }
/// <summary>
/// 报名者姓名
/// </summary>
[SugarColumn(Length = 64)]
public string ContactName { get; set; }
/// <summary>
/// 报名者电话
/// </summary>
[SugarColumn(Length = 16)]
public string ContactPhone { get; set; }
/// <summary>
/// 报名者邮箱
/// </summary>
[SugarColumn(Length = 64)]
public string? ContactEmail { get; set; }
/// <summary>
/// 总人数
/// </summary>
public int TotalPersonCount { get; set; }
/// <summary>
/// 总费用
/// </summary>
public decimal TotalAmount { get; set; }
/// <summary>
2026-04-09 23:12:51 +08:00
/// 支付状态:0-未支付/待审核,1-已支付/审核通过,2-支付失败/审核拒绝,3-已退款,4-已取消
/// </summary>
public int PaymentStatus { get; set; }
/// <summary>
/// 支付方式:1-线下,2-线上
/// </summary>
public int PaymentMethod { get; set; }
/// <summary>
/// 订单编号
/// </summary>
[SugarColumn(Length = 64)]
public string OrderNo { get; set; }
/// <summary>
/// 支付时间
/// </summary>
public DateTime? PaymentTime { get; set; }
/// <summary>
/// 审核人
/// </summary>
[SugarColumn(Length = 64)]
public string? Reviewer { get; set; }
/// <summary>
/// 审核时间
/// </summary>
public DateTime? ReviewTime { get; set; }
/// <summary>
/// 审核备注
/// </summary>
[SugarColumn(ColumnDataType = "TEXT")]
public string? ReviewRemark { get; set; }
/// <summary>
/// 报名备注
/// </summary>
[SugarColumn(ColumnDataType = "TEXT")]
public string? RegistrationRemark { get; set; }
/// <summary>
/// 报名时间
/// </summary>
public DateTime RegistrationTime { get; set; }
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
/// <summary>
/// 报名项目列表(导航属性)
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<EventRegistrationItem>? Items { get; set; }
/// <summary>
/// 报名人员列表(导航属性)
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<EventRegistrationPerson>? Persons { get; set; }
/// <summary>
/// 支付信息(导航属性)
/// </summary>
[SugarColumn(IsIgnore = true)]
public EventRegistrationPayment? Payment { get; set; }
2026-02-08 18:09:05 +08:00
/// <summary>
/// 支付凭证图片URL
/// </summary>
[SugarColumn(Length = 512)]
public string? PaymentProofUrl { get; set; }
/// <summary>
/// 上传的素材URL
/// </summary>
[SugarColumn(Length = 512)]
public string? MaterialUrl { 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; }
}