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

namespace TakeoutSaaS.Domain.Tenants.Entities;

/// <summary>
/// 租户实名认证资料。
/// </summary>
public sealed class TenantVerificationProfile : AuditableEntityBase
{
    /// <summary>
    /// 对应的租户标识。
    /// </summary>
    public long TenantId { get; set; }

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

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

    /// <summary>
    /// 营业执照文件地址。
    /// </summary>
    public string? BusinessLicenseUrl { get; set; }

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

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

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

    /// <summary>
    /// 法人身份证反面。
    /// </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; }
}
