169 lines
4.0 KiB
C#
169 lines
4.0 KiB
C#
using YD_Event.Core.Enum;
|
||
|
||
namespace YD_Event.Core.Entities;
|
||
|
||
/// <summary>
|
||
/// 赛事报名表
|
||
/// </summary>
|
||
[SugarTable("EventRegistration")]
|
||
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>
|
||
/// 支付状态:0-未支付/待审核,1-已支付/审核通过,2-支付失败/审核拒绝,3-已退款,4-已取消
|
||
/// </summary>
|
||
public int PaymentStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 支付方式:1-线下,2-线上
|
||
/// </summary>
|
||
public int PaymentMethod { get; set; }
|
||
|
||
/// <summary>
|
||
/// 具体支付方式
|
||
/// </summary>
|
||
public PaymentMethodType PaymentMethodType { 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; }
|
||
|
||
/// <summary>
|
||
/// 支付凭证图片URL
|
||
/// </summary>
|
||
[SugarColumn(Length = 512)]
|
||
public string? PaymentProofUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 上传的素材URL
|
||
/// </summary>
|
||
[SugarColumn(Length = 512)]
|
||
public string? MaterialUrl { 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; }
|
||
}
|