using TakeoutSaaS.Domain.Tenants.Enums;
using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Tenants.Entities;

/// <summary>
/// 租户认证资料，用于企业资质审核。
/// </summary>
public sealed class TenantVerificationProfile : AuditableEntityBase
{
    /// <summary>
    /// 关联的租户 ID。
    /// </summary>
    public long TenantId { get; set; }

    /// <summary>
    /// 认证状态。
    /// </summary>
    public TenantVerificationStatus Status { get; set; } = TenantVerificationStatus.Draft;

    /// <summary>
    /// 营业执照号。
    /// </summary>
    public string? BusinessLicenseNumber { get; set; }

    /// <summary>
    /// 营业执照图片 URL。
    /// </summary>
    public string? BusinessLicenseUrl { get; set; }

    /// <summary>
    /// 法人姓名。
    /// </summary>
    public string? LegalPersonName { get; set; }

    /// <summary>
    /// 法人身份证号。
    /// </summary>
    public string? LegalPersonIdNumber { get; set; }

    /// <summary>
    /// 法人身份证正面 URL。
    /// </summary>
    public string? LegalPersonIdFrontUrl { get; set; }

    /// <summary>
    /// 法人身份证背面 URL。
    /// </summary>
    public string? LegalPersonIdBackUrl { get; set; }

    /// <summary>
    /// 银行账户名。
    /// </summary>
    public string? BankAccountName { get; set; }

    /// <summary>
    /// 银行账号。
    /// </summary>
    public string? BankAccountNumber { get; set; }

    /// <summary>
    /// 开户银行。
    /// </summary>
    public string? BankName { get; set; }

    /// <summary>
    /// 附加数据 JSON。
    /// </summary>
    public string? AdditionalDataJson { get; set; }

    /// <summary>
    /// 提交时间。
    /// </summary>
    public DateTime? SubmittedAt { get; set; }

    /// <summary>
    /// 审核时间。
    /// </summary>
    public DateTime? ReviewedAt { get; set; }

    /// <summary>
    /// 审核人 ID。
    /// </summary>
    public long? ReviewedBy { get; set; }

    /// <summary>
    /// 审核人姓名。
    /// </summary>
    public string? ReviewedByName { get; set; }

    /// <summary>
    /// 审核备注。
    /// </summary>
    public string? ReviewRemarks { get; set; }
}
