package com.crm.rely.backend.core.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 Long pid;

    private Long cId;

    private Long customId;

    private String ibNo;

    private String lang;

    private Integer hide;
    /**
     * 代理等级ID
     */
    private Long agentLevel;
    /**
     * 用户组ID
     */
    private Long groupId;
    /**
     * 佣金模板ID
     */
    private Long pointId;
    /**
     * 销售ID
     */
    private Long salesId;
    /**
     * 佣金余额
     */
    private Float balance;
    /**
     * 未结佣金余额
     */
    private Float unresolved;
    /**
     * 冻结佣金
     */
    private Float frozen;
    /**
     * 所有佣金
     */
    private Float allCommission;
    /**
     * MT4佣金账户
     */
    private Long mtFourAccount;
    /**
     * MT5佣金账户
     */
    private Long mtFiveAccount;
    /**
     * 内部数据权限代码
     */
    private String stamp;

    private String pStamp;

    /**
     * 外佣
     */
    private Float commission;

    private Integer valid;

    private Date lastTime;

    private String lastIp;

    private String lastAddress;

    private Integer commissionApproval;

    private String selectLoginTypes;

    private String excludeLoginTypes;

    private Long selectGroupType;

    private Long defaultGroupType;

    private String excludeShowLoginTypes;
    /**
     * 是否可申请pamm manager账号
     */
    private Integer pammManagerValid;

    /**
     * 是否可申请pamm 账号
     */
    private Integer pammValid;
    /**
     * 是否可申请mam 账号
     */
    private Integer mamValid;
    /**
     * 是否ip限制 0否 1是
     */
    private Integer ipLimit;
    /**
     * 限制ip 如果不为空和null 则只有这个ip才能登录
     */
    private String limitIp;

    private String closeFunctions;
    /**
     * 销售分成
     */
    private Float salesShare;
    /**
     * 区域ID
     */
    private Long areaId;
    /**
     * 销售类型
     * 1:普通销售
     * 2：销售经理
     */
    private Integer salesType;
    /**
     * ID序号，数据权限使用
     *
     */
    private String idStamp;
    /**
     * 代理是否CPA
     * 1：是
     * 0：否
     */
    private Integer cpa;

    private String secretKey;

    private Integer verified;

    private String pointChoose;
    /**
     * 团队长ID
     */
    private Long leaderId;
    /**
     * 销售绩效规则ID
     */
    private Long salesCommissionRuleId;
    /**
     * 工资账户
     */
    private Long salaryLogin;
    /**
     * 工资账户平台
     */
    private String salaryPlatform;
    private String ibNoTemp;

    /**
     * 入职时间
     */
    private Date entryDate;
    /**
     * 在职类型
     * 1. 试用期
     * 2. 正式员工
     */
    private Integer entryStatus;
    /**
     * 关联账号ID
     */
    private Long attachId;
    /**
     * 国家
     */
    private String country;

    /**
     * 代理开户设置权限 0:关闭 1:开启
     */
    private Integer agentAccountSetting;

    /**
     * 代理开户设置权限(包括上级 1,1) 0:关闭 1:开启
     */
    private String agentAccountSettings;

    /**
     * 是否固定暗点 0:否  1：是
     */
    private Integer fixedHide;

    /**
     * 是否代理内转 0:关闭 1:开启
     */
    private Integer agentTransfer;
    /**
     * 是否禁止代理佣金提取和内转
     */
    private Integer agentCommissionValid;

    private String groupEmail;

    /**
     * 离职时间
     */
    private Date resignDate;

    private Integer merchantId;

}
