using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace MiAssessment.Model.Entities; /// /// 支付通知记录表,记录微信支付回调通知 /// [Table("order_notifies")] public class OrderNotify { /// /// 主键ID /// [Key] public long Id { get; set; } /// /// 商户订单号 /// [Required] [MaxLength(64)] public string OrderNo { get; set; } = null!; /// /// 微信支付订单号 /// [MaxLength(64)] public string? TransactionId { get; set; } /// /// 回调通知URL /// [MaxLength(500)] public string? NotifyUrl { get; set; } /// /// 随机字符串 /// [MaxLength(64)] public string? NonceStr { get; set; } /// /// 支付时间 /// public DateTime? PayTime { get; set; } /// /// 支付金额(单位:元) /// public decimal PayAmount { get; set; } /// /// 处理状态:0=待处理,1=处理成功,2=处理失败 /// public int Status { get; set; } /// /// 重试次数 /// public int RetryCount { get; set; } /// /// 附加数据(订单类型) /// [MaxLength(100)] public string? Attach { get; set; } /// /// 用户OpenId /// [MaxLength(100)] public string? OpenId { get; set; } /// /// 原始回调数据 /// public string? RawData { get; set; } /// /// 错误信息 /// [MaxLength(500)] public string? ErrorMessage { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 更新时间 /// public DateTime UpdateTime { get; set; } }