forked from B200910002/rating-teacher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathratingteacher.jdl
138 lines (122 loc) · 2.22 KB
/
ratingteacher.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
enum LoginType {
MUST,
GOOGLE,
FB
}
enum LessonType{
LECTURE,
SEMINAR,
LABORATORY,
PRACTICE,
ASSIGNMENT
}
enum WeekDay{
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
}
enum JobPosition{
TEACHER,
SENIORTEACHER,
BRANCHMANAGER,
PROFESSOR,
SUBPROFESSOR,
DOCTOR,
SUBDOCTOR
}
entity Student {
firstName String,
lastName String,
studentCode String,
email String,
phone String,
loginType LoginType,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant
}
entity Teacher {
firstName String,
lastName String,
teacherCode String,
jobPosition JobPosition,
email String,
phone String,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant
}
entity Lesson {
lessonName String,
lessonCode String,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant
}
entity Rating {
score Integer min(0) max(5),
review String,
lessonName String,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant
}
entity Like {
timeStamp Instant
}
entity Question {
question String,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant
}
entity Answer {
answer String,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant,
teacherId Long
}
entity Schedule{
lessonType LessonType,
weekDay WeekDay,
createdBy String,
createdDate Instant,
lastModifiedBy String,
lastModifiedDate Instant
}
entity LessonTime{
name String,
startAt Instant,
endAt Instant
}
entity Room{
roomCode String
}
relationship ManyToOne {
Rating{Teacher} to Teacher,
Rating{Student} to Student,
Schedule{Room} to Room,
Schedule{LessonTime} to LessonTime,
Schedule{Lesson} to Lesson,
Schedule{Teacher} to Teacher,
Like{Student} to Student
}
relationship OneToMany {
Rating to Like{Rating},
Rating to Question{Rating},
Question to Answer{Question},
}
filter *
dto * with mapstruct
service * with serviceClass