using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 单位认证表
///
[SugarTable("MerchantCertification")]
public class MerchantCertification : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
///
/// 用户ID
///
public long UserId { get; set; }
///
/// 单位名称
///
[SugarColumn(Length = 128)]
public string MerchantName { get; set; }
///
/// 统一社会信用代码
///
[SugarColumn(Length = 50)]
public string CreditCode { 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; }
///
/// 审核备注
///
[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; }
}