-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjhipster-jdl.jdl
138 lines (121 loc) · 2.5 KB
/
jhipster-jdl.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
entity Resource {
title String required
creationDate LocalDate
description String
resourceType ResourceType
angeRage AgeRange
file Blob
url String
author String
lastUpdated LocalDate
activated Boolean
views Long
votes Long
approvedBy String
}
enum ResourceType {
ARTICLES("articles")
DOCUMENTS("documents")
PRESENTATION("presentations")
IMAGES("images")
URLS("url's")
ANNOUNCEMENTS("announcements")
OTHER("other")
}
entity Subject {
label String
creationDate LocalDate
}
entity Topic {
label String
creationDate LocalDate
}
entity Skill {
label String
creationDate LocalDate
}
enum AgeRange {
AGE_ALL ("all ages")
AGE_04_06 ("age 4-6")
AGE_07_09 ("age 7-9")
AGE_10_12 ("age 10-12")
AGE_13_15 ("age 13-15")
AGE_16_18 ("age 16-18")
}
entity Votes {
}
entity Notification {
creationDate LocalDate
notificationDate LocalDate
notificationType NotificationType
notificationText String
isDelivered Boolean
isDeleted Boolean
}
enum NotificationType {
UNREAD_MESSAGES("Unread messages")
ACCEPTED("Submission accepted")
REJECTED("Submission rejected")
NONE("None")
}
entity Message {
creationDate LocalDate
messageText String
isDelivered Boolean
}
entity Favorite {
creationDate LocalDate
}
entity UserExtended {
lastLogin LocalDate
aboutMe String
occupation String
socialMedia String
civilStatus CivilStatus
firstchild Children
secondchild Children
thirdchild Children
fourthchild Children
filesquota Integer
approverSince LocalDate
lastApproval LocalDate
}
enum Children {
AGE_00_03 ("age 0-3")
AGE_04_06 ("age 4-6")
AGE_07_09 ("age 7-9")
AGE_10_12 ("age 10-12")
AGE_13_15 ("age 13-15")
AGE_16_18 ("age 16-18")
}
enum CivilStatus {
MARRIED ("Married")
DIVORCED ("Divorced")
WIDOWER ("Widower")
SEPARATED ("Separated")
SINGLE ("Single")
ENGAGED ("Engaged")
OTHER ("Other")
}
relationship OneToOne {
UserExtended{user(login)} to User
}
relationship ManyToOne {
Resource{user(login)} to User
Notification{user(login)} to User
Resource{subject(label)} to Subject
Votes{user(login)} to User
Votes{resource(id)} to Resource
Favorite{user(login)} to User
Favorite{resource(id)} to Resource
Message{receiver(login)} to User
Message{sender(login)} to User
}
relationship ManyToMany {
Resource{topics(label)} to Topic{resource(id)}
Resource{skills(label)} to Skill{resource(id)}
}
paginate all with pagination
service all with serviceImpl
dto all with mapstruct
filter *