package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("sys_tenant_extend")
public class SysTenantExtend extends BaseAudit {

    @Schema(description = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "租户编号")
    private String tenantId;

    @Schema(description = "店铺id")
    private Long storeId;

    @Schema(description = "证件信息")
    private String idCard;

    @Schema(description = "负责人证件类型")
    private String idCardType;

    @Schema(description = "证件图片")
    private String certificate;

    @Schema(description = "负责人姓名")
    private String personName;

    @Schema(description = "负责人手机号")
    private String personPhone;

    @Schema(description = "银行卡类型")
    private String bankType;

    @Schema(description = "开户行全称")
    private String bankName;

    @Schema(description = "开户行账号")
    private String bankCard;

    @Schema(description = "开户行预留手机号")
    private String bankPhone;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户密码")
    private String password;

    @Schema(description = "企业套餐")
    private Long packageId;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "邀请人")
    private Long inviteUserId;

    @Schema(description = "签约日期")
    private LocalDateTime signDate;

    @Schema(description = "分成比例")
    private String splitRatio;

    @Schema(description = "签约人")
    private String signer;

    @Schema(description = "合同年限")
    private String contractYear;

    @Schema(description = "签约附件")
    private String contractAttachment;

    @Schema(description = "签约状态(0.待审核1.有效 2.无效 3.编辑 4.过期)")
    private String signStatus;

    @Schema(description = "未通过原因")
    private String failureReason;

    @Schema(description = "收款方名称")
    private String payeeName;

    @Schema(description = "紧急联系人")
    private String emergencyContact;

    @Schema(description = "紧急联系人电话")
    private String emergencyContactPhone;

    @Schema(description = "保证金金额")
    private BigDecimal depositAmount;

    @Schema(description = "代理年限")
    private String agencyYear;

    @Schema(description = "协议附件路径")
    private String agreement;

    @Schema(description = "其它附件路径")
    private String otherAttachment;

    @Schema(description = "入职时间")
    @TableField("entry_time")
    private LocalDateTime entryTime;

    @Schema(description = "有效期")
    @TableField("expiry_date")
    private String expiryDate;

    @Schema(description = "状态(0、有效  1、无效)")
    private Integer promoterStatus;

    @Schema(description = "易生分配的商户编码")
    private String mchtCode;


}
