95 lines
2.2 KiB
Java
95 lines
2.2 KiB
Java
package com.rj.entity.sys;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import java.io.Serializable;
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
/**
|
|
* <p>
|
|
* 用户表
|
|
* </p>
|
|
*
|
|
* @author 系统生成
|
|
* @since 2025-08-07
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@TableName("user")
|
|
@Schema(description="用户表")
|
|
public class User implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Schema(description = "用户编号")
|
|
@TableId("user_id")
|
|
private Integer userId;
|
|
|
|
@Schema(description = "租户ID")
|
|
@TableField("tenant_id")
|
|
private String tenantId;
|
|
|
|
@Schema(description = "用户名称")
|
|
@TableField("user_name")
|
|
private String userName;
|
|
|
|
@Schema(description = "邮箱")
|
|
@TableField("email")
|
|
private String email;
|
|
|
|
@Schema(description = "用户电话")
|
|
@TableField("phone")
|
|
private String phone;
|
|
|
|
@Schema(description = "密码")
|
|
@TableField("password")
|
|
private String password;
|
|
|
|
@Schema(description = "原始密码")
|
|
@TableField("original_password")
|
|
private String originalPassword;
|
|
|
|
@Schema(description = "token令牌")
|
|
@TableField("token")
|
|
private String token;
|
|
|
|
@Schema(description = "头像")
|
|
@TableField("avatar")
|
|
private String avatar;
|
|
|
|
@Schema(description = "场景")
|
|
@TableField("scenario")
|
|
private String scenario;
|
|
|
|
@Schema(description = "场景项")
|
|
@TableField("scenario_item")
|
|
private String scenarioItem;
|
|
|
|
@Schema(description = "主角色")
|
|
@TableField("role_name")
|
|
private String role;
|
|
|
|
@Schema(description = "主角色")
|
|
@TableField("role_name")
|
|
private String roleName;
|
|
|
|
|
|
@Schema(description = "创建时间")
|
|
@TableField("create_time")
|
|
private LocalDateTime createTime;
|
|
|
|
@Schema(description = "修改时间")
|
|
@TableField("update_time")
|
|
private LocalDateTime updateTime;
|
|
|
|
@TableField(exist = false)
|
|
private List<String> roleNames2;
|
|
|
|
}
|