提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.base.tenant.entity; |
懒 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.*; |
|
4 |
|
|
5 |
import java.io.Serializable; |
|
6 |
import java.util.Date; |
|
7 |
|
|
8 |
/** |
|
9 |
* <p> |
|
10 |
* 租户表 |
|
11 |
* </p> |
|
12 |
* |
|
13 |
* @author stylefeng |
|
14 |
* @since 2019-06-16 |
|
15 |
*/ |
|
16 |
@TableName("tenant_info") |
|
17 |
public class TenantInfo implements Serializable { |
|
18 |
|
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
|
|
21 |
/** |
|
22 |
* 主键id |
|
23 |
*/ |
|
24 |
@TableId(value = "tenant_id", type = IdType.ID_WORKER) |
|
25 |
private Long tenantId; |
|
26 |
|
|
27 |
/** |
|
28 |
* 租户名称 |
|
29 |
*/ |
|
30 |
@TableField("name") |
|
31 |
private String name; |
|
32 |
|
|
33 |
/** |
|
34 |
* 租户的编码 |
|
35 |
*/ |
|
36 |
@TableField("code") |
|
37 |
private String code; |
|
38 |
|
|
39 |
/** |
|
40 |
* 关联的数据库名称 |
|
41 |
*/ |
|
42 |
@TableField("db_name") |
|
43 |
private String dbName; |
|
44 |
|
|
45 |
/** |
|
46 |
* 创建时间 |
|
47 |
*/ |
|
48 |
@TableField(value = "create_time", fill = FieldFill.INSERT) |
|
49 |
private Date createTime; |
|
50 |
|
|
51 |
/** |
|
52 |
* 创建人 |
|
53 |
*/ |
|
54 |
@TableField(value = "create_user", fill = FieldFill.INSERT) |
|
55 |
private Long createUser; |
|
56 |
|
|
57 |
/** |
|
58 |
* 更新时间 |
|
59 |
*/ |
|
60 |
@TableField(value = "update_time", fill = FieldFill.UPDATE) |
|
61 |
private Date updateTime; |
|
62 |
|
|
63 |
/** |
|
64 |
* 更新人 |
|
65 |
*/ |
|
66 |
@TableField(value = "update_user", fill = FieldFill.UPDATE) |
|
67 |
private Long updateUser; |
|
68 |
|
|
69 |
|
|
70 |
public Long getTenantId() { |
|
71 |
return tenantId; |
|
72 |
} |
|
73 |
|
|
74 |
public void setTenantId(Long tenantId) { |
|
75 |
this.tenantId = tenantId; |
|
76 |
} |
|
77 |
|
|
78 |
public String getName() { |
|
79 |
return name; |
|
80 |
} |
|
81 |
|
|
82 |
public void setName(String name) { |
|
83 |
this.name = name; |
|
84 |
} |
|
85 |
|
|
86 |
public String getCode() { |
|
87 |
return code; |
|
88 |
} |
|
89 |
|
|
90 |
public void setCode(String code) { |
|
91 |
this.code = code; |
|
92 |
} |
|
93 |
|
|
94 |
public String getDbName() { |
|
95 |
return dbName; |
|
96 |
} |
|
97 |
|
|
98 |
public void setDbName(String dbName) { |
|
99 |
this.dbName = dbName; |
|
100 |
} |
|
101 |
|
|
102 |
public Date getCreateTime() { |
|
103 |
return createTime; |
|
104 |
} |
|
105 |
|
|
106 |
public void setCreateTime(Date createTime) { |
|
107 |
this.createTime = createTime; |
|
108 |
} |
|
109 |
|
|
110 |
public Long getCreateUser() { |
|
111 |
return createUser; |
|
112 |
} |
|
113 |
|
|
114 |
public void setCreateUser(Long createUser) { |
|
115 |
this.createUser = createUser; |
|
116 |
} |
|
117 |
|
|
118 |
public Date getUpdateTime() { |
|
119 |
return updateTime; |
|
120 |
} |
|
121 |
|
|
122 |
public void setUpdateTime(Date updateTime) { |
|
123 |
this.updateTime = updateTime; |
|
124 |
} |
|
125 |
|
|
126 |
public Long getUpdateUser() { |
|
127 |
return updateUser; |
|
128 |
} |
|
129 |
|
|
130 |
public void setUpdateUser(Long updateUser) { |
|
131 |
this.updateUser = updateUser; |
|
132 |
} |
|
133 |
|
|
134 |
@Override |
|
135 |
public String toString() { |
|
136 |
return "TenantInfo{" + |
|
137 |
"tenantId=" + tenantId + |
|
138 |
", name=" + name + |
|
139 |
", code=" + code + |
|
140 |
", dbName=" + dbName + |
|
141 |
", createTime=" + createTime + |
|
142 |
", createUser=" + createUser + |
|
143 |
", updateTime=" + updateTime + |
|
144 |
", updateUser=" + updateUser + |
|
145 |
"}"; |
|
146 |
} |
|
147 |
} |