package com.crm.rely.backend.model.pojo.table;

import com.crm.rely.backend.core.pojo.BaseTable;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @program: crm-backend
 * @description:
 * @author: houn
 * @create: 2019-07-25 16:22
 */
@Data
@Entity
@Table(name = "user_info")
public class UserInfoTable extends BaseTable {

    private String username;

    private String password;

    private String name;

    private String email;

    private Long roleId;

    private String lang;

    /**
     * 用户组ID
     */
    private Long groupId;

    private Integer valid;

    private Date lastTime;

    private String lastIp;

    private String lastAddress;

    /**
     * 是否ip限制 0否 1是
     */
    private Integer ipLimit;
    /**
     * 限制ip 如果不为空和null 则只有这个ip才能登录
     */
    private String limitIp;

    private Long cId;

    private String stamp;
    private String pStamp;
    private String ibNo;
    private Long pid;

    private Long salesId;

}
