-
Notifications
You must be signed in to change notification settings - Fork 0
/
mealschedueler.jh
66 lines (54 loc) · 1.1 KB
/
mealschedueler.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
application {
config {
baseName mealSchedueler
applicationType monolith
authenticationType jwt
buildTool maven
cacheProvider ehcache
clientFramework angularX
databaseType sql
devDatabaseType h2Disk
prodDatabaseType postgresql
jhiPrefix msche
nativeLanguage fr
testFrameworks []
blueprints [kotlin]
}
entities *
}
entity Recipe {
name String required
instructions TextBlob required
nbOfPerson Integer required min(0)
publicAccess Boolean required
}
entity RecipeIngredient {
quantity Float required
}
entity Mesure {
symbol String required
}
entity Ingredient {
name String required
}
entity UserInfo {
nbOfPerson Integer required min(1)
}
enum Meal {
BREAKFAST, LUNCH, DINNER
}
entity Schedule {
meal Meal required
date LocalDate required
}
relationship ManyToOne {
RecipeIngredient{recipe} to Recipe{ingredients}
RecipeIngredient{unit} to Mesure
RecipeIngredient{ingredient} to Ingredient
Recipe{author} to User
Schedule{user} to User
Recipe to Schedule{recipe}
}
relationship OneToOne {
UserInfo{user} to User
}