WangHan
2024-09-12 d5855a4926926698b740bc6c7ba489de47adb68b
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
package tech.powerjob.server.persistence.remote.model;
 
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
 
import javax.persistence.*;
import java.util.Date;
 
/**
 * 命名空间,用于组织管理 App
 *
 * @author tjq
 * @since 2023/9/3
 */
@Data
@Entity
@Table(uniqueConstraints = {@UniqueConstraint(name = "uidx01_namespace", columnNames = {"code"})})
public class NamespaceDO {
 
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "native")
    @GenericGenerator(name = "native", strategy = "native")
    private Long id;
 
    /**
     * 空间唯一标识
     */
    private String code;
 
    /**
     * 空间名称,比如中文描述(XX部门XX空间)
     */
    private String name;
 
    /**
     * 鉴权 token,后续 OpenAPI 调用需要
     */
    private String token;
 
    private Integer status;
 
    /**
     * 部门,组织架构相关属性。
     * 预留数据库字段方便基于组织架构二次开发
     */
    private String dept;
 
    /**
     * 标签,扩展性之王,多值逗号分割
     */
    private String tags;
 
    /**
     * 扩展字段
     */
    private String extra;
 
    private Date gmtCreate;
 
    private Date gmtModified;
 
    private Long creator;
 
    private Long modifier;
}