-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathUser.java
More file actions
92 lines (75 loc) · 2.85 KB
/
User.java
File metadata and controls
92 lines (75 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
package com.tinyengine.it.model.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
/**
* <p>
* 用户权限表
* </p>
*
* @author zhangjuncao
* @since 2024-10-17
*/
@Getter
@Setter
@TableName("t_user")
@Schema(name = "User", description = "用户权限表")
public class User {
@Schema(name = "id", description = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private String id;
@TableField(fill = FieldFill.INSERT)
@Schema(name = "createdBy", description = "创建人")
private String createdBy;
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(name = "lastUpdatedBy", description = "最后修改人")
private String lastUpdatedBy;
@TableField(fill = FieldFill.INSERT)
@Schema(name = "createdTime", description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("created_at")
private LocalDateTime createdTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(name = "lastUpdatedTime", description = "更新时间")
@JsonProperty("updated_at")
private LocalDateTime lastUpdatedTime;
@TableField(fill = FieldFill.INSERT)
@Schema(name = "tenantId", description = "租户ID")
private String tenantId;
@TableField(fill = FieldFill.INSERT)
@Schema(name = "renterId", description = "业务租户ID")
private String renterId;
@Schema(name = "siteId", description = "站点ID")
private String siteId;
@Schema(name = "username", description = "用户名")
private String username;
@Schema(name = "email", description = "邮箱")
private String email;
@TableField("enable")
@Schema(name = "enable", description = "账号是否可用")
private Boolean isEnable;
@Schema(name = "isAdmin", description = "是否管理员")
private Boolean isAdmin;
@Schema(name = "isPublic", description = "是否公共账号")
private Boolean isPublic;
}