package com.ruoyi.dk.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 java.io.Serializable;
import java.math.BigDecimal;

/**
 * 客户资料
 * @TableName dk_customer_info
 */
@TableName(value ="dk_customer_info")
@Data
@Schema(description = "客户资料")
public class CustomerInfo implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "身份信息完整度")
    private Boolean cardFlag = false;
    @Schema(description = "资料信息完整度")
    private Boolean infoFlag = false;
    @Schema(description = "银行卡信息完整度")
    private Boolean bankFlag = false;

    /**
     * 客户ID
     */
    @Schema(description = "客户ID")
    private Long customerId;

    @Schema(description = "客户电话")
    private String customerPhone;

    /**
     * 真实姓名
     */
    @Schema(description = "真实姓名")
    private String realName;

    /**
     * 身份证号码
     */
    @Schema(description = "身份证号码")
    private String cardNum;

    /**
     * 身份证正面
     */
    @Schema(description = "身份证正面")
    private String cardFrontPicture;

    /**
     * 手持身份证照片
     */
    @Schema(description = "手持身份证照片")
    private String handCardPicture;

    /**
     * 身份证背面
     */
    @Schema(description = "身份证背面")
    private String cardBackPicture;

    /**
     * 单位名称
     */
    @Schema(description = "单位名称")
    private String companyName;

    /**
     * 职位
     */
    @Schema(description = "职位")
    private String companyTitle;

    /**
     * 单位电话
     */
    @Schema(description = "单位电话")
    private String companyPhone;

    /**
     * 工作年龄
     */
    @Schema(description = "工作年龄")
    private String companyYear;

    /**
     * 单位地址
     */
    @Schema(description = "单位地址")
    private String companyAddress;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String companyAddressInfo;

    /**
     * 现居住地址
     */
    @Schema(description = "现居住地址")
    private String customerAddress;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String customerAddressInfo;

    @Schema(description = "收入（万）")
    private BigDecimal incomeWan;

    /**
     * 亲属姓名
     */
    @Schema(description = "亲属姓名")
    private String kinsfolkName;

    /**
     * 亲属电话
     */
    @Schema(description = "亲属电话")
    private String kinsfolkPhone;

    /**
     * 亲属关系 1-父母、2-配偶、3-子女，4-祖父母
     */
    @Schema(description = "亲属关系 1-父母、2-配偶、3-子女，4-祖父母")
    private String kinsfolkRef;

    /**
     * 开户银行
     */
    @Schema(description = "开户银行")
    private String bankType;

    /**
     * 银行卡号
     */
    @Schema(description = "银行卡号")
    private String backCardNum;

    @Schema(description = "签名")
    private String signature;

    private String tenantId;

    private Boolean allowSignature = true;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
