TestExampleDb.java
1.89 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
package com.tianting.infoloop.model.db;
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.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 例子DB
* @TableName test_example_db
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value ="test_example_db")
public class TestExampleDb extends Model<TestExampleDb> implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 企业 ID
*/
private Integer enterpriseId;
/**
* 用户昵称
*/
private String name;
/**
* 用户状态;启用:1;停用:2
*/
private Integer status;
/**
* 创建人 ID
*/
@TableField(fill = FieldFill.INSERT)
private Integer createdBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdAt;
/**
* 创建来源
*/
@TableField(fill = FieldFill.INSERT)
private Integer creationSource;
/**
* 修改人 ID
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Integer updatedBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedAt;
/**
* 修改来源
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Integer updateSource;
/**
* 是否删除;0:未删除,1:已删除
*/
@TableLogic
private Boolean isDeleted;
}