68 lines
1.2 KiB
Java
68 lines
1.2 KiB
Java
package top.peng.answerbi.model.entity;
|
||
|
||
import com.baomidou.mybatisplus.annotation.IdType;
|
||
import com.baomidou.mybatisplus.annotation.TableField;
|
||
import com.baomidou.mybatisplus.annotation.TableId;
|
||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||
import com.baomidou.mybatisplus.annotation.TableName;
|
||
import java.io.Serializable;
|
||
import java.util.Date;
|
||
import lombok.Data;
|
||
|
||
/**
|
||
* 用户
|
||
* @TableName user
|
||
*/
|
||
@TableName(value ="user")
|
||
@Data
|
||
public class User implements Serializable {
|
||
/**
|
||
* id
|
||
*/
|
||
@TableId(type = IdType.ASSIGN_ID)
|
||
private Long id;
|
||
|
||
/**
|
||
* 创建时间
|
||
*/
|
||
private Date createdTime;
|
||
|
||
/**
|
||
* 更新时间
|
||
*/
|
||
private Date updatedTime;
|
||
|
||
/**
|
||
* 是否删除
|
||
*/
|
||
@TableLogic
|
||
private Integer deletedFlag;
|
||
|
||
/**
|
||
* 账号
|
||
*/
|
||
private String userAccount;
|
||
|
||
/**
|
||
* 密码
|
||
*/
|
||
private String userPassword;
|
||
|
||
/**
|
||
* 用户昵称
|
||
*/
|
||
private String userName;
|
||
|
||
/**
|
||
* 用户头像
|
||
*/
|
||
private String userAvatar;
|
||
|
||
/**
|
||
* 用户角色:user/admin/ban
|
||
*/
|
||
private String userRole;
|
||
|
||
@TableField(exist = false)
|
||
private static final long serialVersionUID = 1L;
|
||
} |