-
Notifications
You must be signed in to change notification settings - Fork 82
/
monolith-react-jwt-jdl.jdl
97 lines (80 loc) · 1.65 KB
/
monolith-react-jwt-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
/*
* This is the application and entity model for university elearning
* default values: https://www.jhipster.tech/jdl/#annexes
* Use "jhipster import-jdl model-name.jdl --blueprints nodejs" to generate the entire application
* Use jhipster 6.x (example 6.8.0)
* relationship info: https://www.jhipster.tech/managing-relationships/
*/
application {
config {
applicationType monolith,
baseName monolithReactJwtSqlJdlApp,
packageName com.jhipster.node,
serverPort 8081,
cacheProvider no,
enableHibernateCache false,
authenticationType jwt,
databaseType sql,
prodDatabaseType mssql,
serviceDiscoveryType false,
clientPackageManager npm,
useSass true,
skipUserManagement false,
enableTranslation false,
clientFramework react
}
entities *
}
// JDL definition entity for application
enum Gender {
MALE,
FEMALE
}
enum UserType {
STUDENT,
TEACHER
}
entity DemetraUser {
gender Gender required,
address String required,
borndate LocalDate required,
cf String required unique,
usertype UserType required,
profileimage ImageBlob
}
entity SingleCourse {
title String required unique,
description String,
isnotonlyfordegree Boolean required,
cfu Integer,
courseimage Blob,
amount BigDecimal
}
entity Activity {
name UUID unique,
description String,
mynumber Double,
creationtime ZonedDateTime
}
relationship OneToOne {
Activity to SingleCourse
}
relationship ManyToOne {
Activity {demetrauser} to DemetraUser
}
relationship ManyToMany {
DemetraUser {
coursetitle(title)
}
to SingleCourse {
cfstudent(cf)
},
}
relationship OneToMany {
DemetraUser {
singlecourseteacher
}
to SingleCourse {
cfteacher(cf)required
}
}