-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjhipster-jdl.jh
160 lines (130 loc) · 2.33 KB
/
jhipster-jdl.jh
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
entity Tribe {
tribeId Long,
tribeName String,
tags String,
}
entity Post {
postId Long,
postTitle String,
excerpt String,
content String,
status String,
createdAt LocalDate,
updatedAt LocalDate,
tags String,
showComments Boolean,
permalink String
}
entity Picture {
pictureId Long,
pictureTitle String,
description String,
file String,
type PictureType,
createdAt LocalDate,
updatedAt LocalDate,
}
enum PictureType {
ICON,
POST,
EVENT
}
entity Event {
eventId Long,
eventName String,
description String,
period String,
createdAt LocalDate,
tags String,
link String,
latitude BigDecimal,
longitude BigDecimal
}
entity SocialNetwork {
socialNetworkId Long,
socialNetworkName String,
description String,
icon String,
}
entity People {
peopleId Long,
birthDate LocalDate,
gender Gender,
prefferedTribes String,
createdAt LocalDate,
updatedAt LocalDate,
}
entity User {
userId Long
}
entity Comment {
commentId Long,
commentTitle String,
content String,
status CommentStatus,
}
enum CommentStatus {
PENDING,
APPROVED,
DISAPPROVED
}
enum Gender {
MALE,
FEMALE
}
entity Setting {
settingId Long,
settingKey String,
settingValue String
}
relationship ManyToMany {
People{socialNetwork} to SocialNetwork{people}
}
relationship OneToOne {
People{user} to User{people}
}
relationship ManyToMany {
People{event} to Event{people}
}
relationship ManyToMany {
Event{posts} to Post{events}
}
relationship ManyToMany {
People{likedPosts} to Post{peoples}
}
relationship OneToMany {
People{comments} to Comment{people}
}
relationship OneToMany {
Post{comments} to Comment{post}
}
relationship OneToMany {
Post{author} to People{posts}
}
relationship OneToMany {
Picture{author} to People{pictures}
}
relationship ManyToMany {
People{tribes} to Tribe{peoples}
}
relationship ManyToOne {
Tribe{icon} to Picture
}
relationship ManyToOne {
Tribe{picture} to Picture
}
relationship ManyToOne {
Event{picture} to Picture
}
relationship ManyToMany {
Tribe{posts} to Post{tribes}
}
relationship ManyToMany {
Tribe{events} to Event{tribes}
}
relationship ManyToMany {
Event{socialNetworks} to SocialNetwork{events}
}
relationship OneToMany {
People{settings} to Setting{people}
}