package com.cool.store.entity;


import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;

/**
 * 建店资料表
 *
 * @TableName xfsg_build_information
 */
@Table(name = "xfsg_build_information")
@Data
public class BuildInformationDO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;


    @Column(name = "shop_id")
    private Long shopId;

    /**
     * 门店联系人姓名
     */
    @Column(name = "shop_contact_name")
    private String shopContactName;

    /**
     * 门店联系人手机号
     */
    @Column(name = "shop_contact_mobile")
    private String shopContactMobile;

    /**
     * 营业时间
     */
    @Column(name = "business_hours")
    private String businessHours;

    /**
     * 营业电话
     */
    @Column(name = "business_mobile")
    private String businessMobile;

    /**
     * 门头照（图片）
     */
    @Column(name = "door_photo")
    private String doorPhoto;

    /**
     * 店内照（图片）
     */
    @Column(name = "in_store_photo")
    private String inStorePhoto;

    /**
     * 法人身份证正面（图片）
     */
    @Column(name = "juridical_id_card_front")
    private String juridicalIdCardFront;

    /**
     * 法人身份证反面（图片）
     */
    @Column(name = "juridical_id_card_reverse")
    private String juridicalIdCardReverse;

    /**
     * 法人身份证号
     */
    @Column(name = "juridical_id_card_no")
    private String juridicalIdCardNo;

    /**
     * 法人手持身份证正面（图片）
     */
    @Column(name = "juridical_handheld_id_card_front")
    private String juridicalHandheldIdCardFront;

    /**
     * 法人手持身份证反面（图片）
     */
    @Column(name = "juridical_handheld_id_card_reverse")
    private String juridicalHandheldIdCardReverse;

    /**
     * 结算人身份证正面（图片）
     */
    @Column(name = "settler_id_card_front")
    private String settlerIdCardFront;

    /**
     * 结算人身份证反面（图片）
     */
    @Column(name = "settler_id_card_reverse")
    private String settlerIdCardReverse;

    /**
     * 结算人身份证号
     */
    @Column(name = "settler_id_card_no")
    private String settlerIdCardNo;

    /**
     * 结算人银行卡照片
     */
    @Column(name = "settler_bank_photo_url")
    private String settlerBankPhotoUrl;

    /**
     * 结算人银行卡号
     */
    @Column(name = "settler_bank_number")
    private String settlerBankNumber;

    /**
     * 结算人银行卡预留手机号
     */
    @Column(name = "settler_bank_mobile")
    private String settlerBankMobile;

    /**
     * 结算开户银行支行
     */
    @Column(name = "settler_bank_name")
    private String settlerBankName;

    //非法人时候需要:授权书
    @Column(name = "authorization_url")
    private String authorizationUrl;

    //非法人时候需要:商户关系证明
    @Column(name = "relationship_prove")
    private String relationshipProve;

    //公司结算需要:开户许可证
    @Column(name = "account_opening_permit")
    private String accountOpeningPermit;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;

    /**
     * 更新人
     */
    @Column(name = "update_user")
    private String updateUser;

}