forked from opentiny/tiny-engine-backend-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTenant.java
More file actions
78 lines (64 loc) · 2.41 KB
/
Tenant.java
File metadata and controls
78 lines (64 loc) · 2.41 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
/**
* 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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
/**
* <p>
* 组织表
* </p>
*
* @author lu -yg
* @since 2024-10-17
*/
@Getter
@Setter
@TableName("t_tenant")
@Schema(name = "Tenant", description = "组织表")
public class Tenant {
@Schema(name = "id", description = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private String id;
@Schema(name = "orgCode", description = "组织唯一代码")
private String orgCode;
@Schema(name = "nameCn", description = "组织中文名")
private String nameCn;
@Schema(name = "nameEn", description = "组织英文名")
private String nameEn;
@Schema(name = "description", description = "组织描述")
private String description;
@TableField(exist = false)
@Schema(name = "isInUse", description = "是否当前所在组织")
private Boolean isInUse;
@TableField(fill = FieldFill.INSERT)
@Schema(name = "createdTime", description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createdTime;
@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_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(name = "lastUpdatedTime", description = "更新时间")
private LocalDateTime lastUpdatedTime;
}