using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 商户管理表
///
[SugarTable("Merchant")]
public class Merchant : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
///
/// 商户名称
///
[SugarColumn(Length = 128)]
public string MerchantName { get; set; }
///
/// 统一社会信用代码
///
[SugarColumn(Length = 50)]
public string CreditCode { get; set; }
///
/// 开户行
///
[SugarColumn(Length = 128)]
public string BankName { get; set; }
///
/// 账号
///
[SugarColumn(Length = 128)]
public string AccountNumber { get; set; }
///
/// 营业执照图片URL
///
[SugarColumn(Length = 256)]
public string BusinessLicenseUrl { get; set; }
///
/// 联系电话
///
[SugarColumn(Length = 16)]
public string? ContactPhone { get; set; }
///
/// 地址
///
[SugarColumn(Length = 256)]
public string? Address { get; set; }
///
/// 审核状态
///
public AuditStatus AuditStatus { get; set; } = AuditStatus.PendingAudit;
///
/// 审核备注
///
[SugarColumn(Length = 512, IsNullable = true)]
public string? AuditRemark { get; set; }
///
/// 审核人(后台系统用户ID)
///
[SugarColumn(IsNullable = true)]
public long? AuditUserId { get; set; }
///
/// 审核时间
///
[SugarColumn(IsNullable = true)]
public DateTime? AuditTime { get; set; }
///
/// 可用状态
///
public AvailabilityStatus Status { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建人
///
public long CreatedUserId { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 更新人
///
public long? UpdatedUserId { get; set; }
///
/// 更新时间
///
public DateTime? UpdatedTime { get; set; }
}