package com.cool.store.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "xfsg_temp_user_detail")
public class TempUserDetailDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * line_info.id
     */
    @Column(name = "line_id")
    private Long lineId;

    /**
     * shop_info.id
     */
    @Column(name = "shop_id")
    private Long shopId;

    /**
     * 区域ID
     */
    @Column(name = "region_id")
    private Long regionId;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 申请人姓名
     */
    private String username;

    /**
     * 性别0未选,1男,2女
     */
    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    private Integer status;

    /**
     * 身份证号码
     */
    @Column(name = "id_card")
    private String idCard;

    /**
     * 学历 0-小学 1-初中 2-高中   3-中专  4-大专   5-本科   6-硕士  7-硕士以上
     */
    private Integer educational;

    /**
     * 角色id  170000000-店长 160000000-店员
     */
    @Column(name = "role_id")
    private Long roleId;

    /**
     * 身份证正面url
     */
    @Column(name = "id_card_positive_url")
    private String idCardPositiveUrl;

    /**
     * 身份证反面url
     */
    @Column(name = "id_card_negative_url")
    private String idCardNegativeUrl;

    /**
     * 健康证url
     */
    @Column(name = "health_certificate_url")
    private String healthCertificateUrl;

    /**
     * 登记时间
     */
    @Column(name = "register_time")
    private Date registerTime;

    /**
     * 来源：create-创建  sync-钉钉同步
     */
    private String source;

    /**
     * 提交时间
     */
    @Column(name = "submit_time")
    private Date submitTime;

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

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

    /**
     * 是否删除：0.否 1.是
     */
    private Boolean deleted;
    @Column(name = "train_time")
    private Date trainTime;

    @Column(name = "completion_certificate")
    private String completionCertificate;
}