YD_Event.Admin/YD_Event.Core/Entities/EventRegistrationPayment.cs

78 lines
1.9 KiB
C#
Raw Normal View History

namespace YD_Event.Core.Entities;
/// <summary>
/// 赛事报名支付信息表
/// </summary>
[SugarTable("EventRegistrationPayment")]
public class EventRegistrationPayment : Entity<long>
{
/// <summary>
/// 关联的报名ID
/// </summary>
public long RegistrationId { get; set; }
/// <summary>
/// 支付流水号
/// </summary>
[SugarColumn(Length = 64)]
public string TransactionNo { get; set; }
/// <summary>
/// 支付渠道:1-微信支付,2-支付宝,3-线下支付
/// </summary>
public int PaymentChannel { get; set; }
/// <summary>
/// 支付金额(元)
/// </summary>
public decimal PaymentAmount { get; set; }
/// <summary>
/// 支付时间
/// </summary>
public DateTime PaymentTime { get; set; }
/// <summary>
/// 支付状态:0-待支付,1-已支付,2-支付失败,3-已退款
/// </summary>
public int PaymentStatus { get; set; }
/// <summary>
/// 退款状态:0-未退款,1-退款中,2-已退款,3-退款失败
/// </summary>
public int RefundStatus { get; set; }
/// <summary>
/// 退款金额(元)
/// </summary>
public decimal RefundAmount { get; set; }
/// <summary>
/// 退款时间
/// </summary>
public DateTime? RefundTime { get; set; }
/// <summary>
/// 退款原因
/// </summary>
[SugarColumn(ColumnDataType = "TEXT")]
public string? RefundReason { get; set; }
/// <summary>
/// 收款账户
/// </summary>
[SugarColumn(Length = 128)]
public string PayeeAccount { get; set; }
/// <summary>
/// 付款账户
/// </summary>
[SugarColumn(Length = 128)]
public string? PayerAccount { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnDataType = "TEXT")]
public string? Remark { get; set; }
}