package com.jiayue.ipfcst.common.security.user;

import lombok.Data;
import org.springframework.core.annotation.Order;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 用户实体
 *
 * @author bizy
 * @version 1.0
 * @since 2018/10/22 11:29
 */
@Data
@Entity
public class SysUser implements Serializable {
    @Id
    @Order(1)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String userName;

    private String passWord;

    private String name;

    private Integer pwdErrNum;

    private Long lockTime;
    /**
     * 状态，0正常、1锁定、2禁用
     */
    private String status;
    private String menu;
}
