package com.github.wxiaoqi.security.admin.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "base_user")
@Data
public class User {
    @Id
    @GeneratedValue(generator = "JDBC")//此处加上注解
    private Integer id;

    private String username;

    private String password;

    private String name;

    private String birthday;

    private String address;

    @Column(name = "mobile_phone")
    private String mobilePhone;

    @Column(name = "tel_phone")
    private String telPhone;

    private String email;

    private String sex;

    private String type;

    @Column(name = "status")
    private Integer status;

    @Column(name = "zone_id")
    @ApiModelProperty("片区id")
    private Integer zoneId;


    @Column(name = "corporation_id")
    @ApiModelProperty("公司id")
    private Long corporationId;

    @Column(name = "company_id")
    @ApiModelProperty("门店id")
    private Integer companyId;

    private String description;

    @Column(name = "crt_time")
    private Date crtTime;

    @Column(name = "crt_user")
    private String crtUser;

    @Column(name = "crt_name")
    private String crtName;

    @Column(name = "crt_host")
    private String crtHost;

    @Column(name = "upd_time")
    private Date updTime;

    @Column(name = "upd_user")
    private String updUser;

    @Column(name = "upd_name")
    private String updName;

    @Column(name = "upd_host")
    private String updHost;

    @Column(name = "data_all")
    private Integer dataAll;

    @Column(name = "data_zone")
    private String dataZone;

    @Column(name = "data_company")
    private String dataCompany;


    @Column(name = "data_corporation")
    private String dataCorporation;

    private String attr1;

    private String attr2;

    private String attr3;

    private String attr4;

    private String attr5;

    private String attr6;

    private String attr7;

    private String attr8;


}