package com.uas.platform.b2b.manage.model;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 管理平台用户信息
 */
@Table(name = "users")
@Entity
public class User implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 是否可用 1.yes 0.no
     */
    @Column(name = "enable")
    private Short enable;

    /**
     * 用户姓名
     */
    @Column(name = "name")
    private String name;

    /**
     * 密码
     */
    @Column(name = "password")
    private String password;

    /**
     * 电话
     */
    @Column(name = "tel")
    private String tel;

    /**
     * 中文姓名
     */
    @Column(name = "full_name")
    private String fullName;

    /**
     * 用户角色
     */
    @Column(name = "roles")
    private String role;

    /**
     * 记录登录IP，防止服务器缓存
     */
    @Column(name = "ip")
    private String ip;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Short getEnable() {
        return enable;
    }

    public void setEnable(Short enable) {
        this.enable = enable;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

}
