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

147 lines
3.5 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("EventRegistration")]
public class EventRegistration : Entity<long>, IUpdatedTime, ISoftDelete, ICreatedTime, 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>
/// 报名状态:0-待提交,1-待审核,2-审核通过,3-审核拒绝,4-已取消
/// </summary>
public int RegistrationStatus { get; set; }
/// <summary>
/// 支付状态:0-未支付,1-已支付,2-支付失败,3-已退款
/// </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>
public DateTime? UpdatedTime { get; set; }
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { 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; }
}