-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrisk.jdl
78 lines (74 loc) · 1.84 KB
/
risk.jdl
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
/**
* The RiskRank(risk_ranks) entity.
* @author Chris
*/
entity RiskRank(risk_ranks) {
name String required unique maxlength(200) minlength(2)
minValue Integer min(0) required
maxValue Integer max(30) required
hexColor String minlength(4) maxlength(7)
}
/**
* The RiskRegister(risk_registers) entity.
* @author Chris
*/
entity RiskRegister(risk_registers) {
name String required unique maxlength(200) minlength(2)
isApproved Boolean
approvedDate LocalDate
approvedBy String maxlength(200)
}
/**
relationship ManyToOne {
// RiskRegister{organisationUnit(name) required} to OrganisationUnit
// RiskRegister{financialYear(name) required} to FinancialYear
}**/
/**
* The Objective(objectives) entity.
* @author Chris
*/
entity Objective(objectives) {
code String required unique maxlength(64) minlength(1)
description TextBlob required
}
/**
* The RiskCategory(risk_categories) entity.
* @author Chris
*/
entity RiskCategory(risk_categories) {
code String unique maxlength(64) minlength(1)
name String required unique maxlength(200) minlength(2)
}
/**
* The Risk(risks) entity.
* @author Chris
*/
entity Risk(risks) {
code String unique maxlength(64) minlength(1)
description TextBlob
}
relationship ManyToOne {
/** Risk{riskOwner(name) required} to OrganisationUnit**/
Risk{riskRegister required} to RiskRegister
Risk{objective(code) required} to Objective
Risk{riskCategory(name) required} to RiskCategory
}
enum RatingSource {
COUNCIL,INSPECTOR
}
/**
* The RiskRating(risk_ratings) entity.
* @author Chris
*/
entity RiskRating(risk_ratings) {
source RatingSource
impact Integer min(0) required
likelihood Integer min(0) required
comments TextBlob
}
relationship ManyToOne {
RiskRating{risk required} to Risk
}
dto all with mapstruct
paginate * with pagination
filter Risk