package com.njcn.pojo.user;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author hongawen
 * @date: 2019/10/17 11:15
 */
@Table(name = "APP_USER")
public class AppUser implements Serializable {

    @Id
    @Column(name = "USER_INDEX")
    private String userIndex;

    private String name;

    @Column(name = "LOGIN_NAME")
    private String loginName;

    private String password;

    private String phone;

    private String email;

    @Column(name = "REGISTER_TIME")
    private Date registerTime;

    @Column(name = "PSD_VALIDITY")
    private Date psdValidity;

    @Column(name = "LOGIN_TIME")
    private Date loginTime;

    private Integer state;

    @Column(name = "LOGIN_ERROR_TIMES")
    private Integer loginErrorTimes;

    @Column(name = "LOGIN_FIRST_ERROR_TIME")
    private Date loginFirstErrorTime;

    @Column(name = "SEM_NAME")
    private String semName;

    @Column(name = "SEM_PHONE")
    private String semPhone;

    @Column(name = "REFERRAL_CODE")
    private String referralCode;

    @Column(name = "DEV_CODE")
    private String devCode;

    @Column(name = "USER_TYPE")
    private String userType;

    @Column(name = "USER_LEVEL")
    private String userLevel;

    public String getUserIndex() {
        return userIndex;
    }

    public void setUserIndex(String userIndex) {
        this.userIndex = userIndex;
    }

    public String getName() {
        return name;
    }

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

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

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

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

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

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getPsdValidity() {
        return psdValidity;
    }

    public void setPsdValidity(Date psdValidity) {
        this.psdValidity = psdValidity;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Integer getLoginErrorTimes() {
        return loginErrorTimes;
    }

    public void setLoginErrorTimes(int loginErrorTimes) {
        this.loginErrorTimes = loginErrorTimes;
    }

    public Date getLoginFirstErrorTime() {
        return loginFirstErrorTime;
    }

    public void setLoginFirstErrorTime(Date loginFirstErrorTime) {
        this.loginFirstErrorTime = loginFirstErrorTime;
    }

    public String getSemName() {
        return semName;
    }

    public void setSemName(String semName) {
        this.semName = semName;
    }

    public String getSemPhone() {
        return semPhone;
    }

    public void setSemPhone(String semPhone) {
        this.semPhone = semPhone;
    }

    public String getReferralCode() {
        return referralCode;
    }

    public void setReferralCode(String referralCode) {
        this.referralCode = referralCode;
    }

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    @Override
    public String toString() {
        return "AppUser{" +
                "userIndex='" + userIndex + '\'' +
                ", name='" + name + '\'' +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", registerTime=" + registerTime +
                ", psdValidity=" + psdValidity +
                ", loginTime=" + loginTime +
                ", state=" + state +
                ", loginErrorTimes=" + loginErrorTimes +
                ", loginFirstErrorTime=" + loginFirstErrorTime +
                ", semName='" + semName + '\'' +
                ", semPhone='" + semPhone + '\'' +
                ", referralCode='" + referralCode + '\'' +
                ", devCode='" + devCode + '\'' +
                ", userType='" + userType + '\'' +
                ", userLevel='" + userLevel + '\'' +
                '}';
    }
}
