-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackup-module.jdl
More file actions
75 lines (64 loc) · 1.35 KB
/
backup-module.jdl
File metadata and controls
75 lines (64 loc) · 1.35 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
entity BackupTenant {
id Long
tenantKey String required unique,
dbName String required,
dbHost String required,
dbPort Integer required,
dbUsername String required,
dbPassword String required
}
entity BackupTenantSetting {
timeUnit BackupTimeUnit required
duration Integer required min(1)
isActive Boolean required
}
entity BackupJob {
id Long
startedAt Instant required,
finishedAt Instant,
status BackupStatus required,
message String maxlength(1000)
}
entity BackupFile {
id Long
filePath String required,
fileSize Long required,
createdAt Instant required
}
entity BackupServer {
id Long
port Integer required
status BackupServerStatus required
host String required minlength(1) maxlength(250)
username String required minlength(1) maxlength(250)
password String required minlength(1) maxlength(250)
}
enum BackupServerStatus {
UP, DOWN
}
enum BackupStatus {
PENDING,
RUNNING,
SUCCESS,
FAILED
}
enum BackupTimeUnit {
HOUR,
DAY,
WEEK,
MONTH
}
relationship OneToMany {
BackupTenant{backupFiles} to BackupFile{tenant}
}
relationship ManyToOne {
BackupTenant{server} to BackupServer
}
relationship OneToOne {
BackupJob{backupFile} to BackupFile{backupJob}
BackupTenant{setting} to BackupTenantSetting{tenant}
}
dto * with mapstruct
service * with serviceImpl
paginate * with pagination
filter *