-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path21-points.jh
More file actions
45 lines (35 loc) · 828 Bytes
/
21-points.jh
File metadata and controls
45 lines (35 loc) · 828 Bytes
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
entity Points {
date LocalDate required
excercise Integer
meals Integer
alcohol Integer
notes String maxlength(140)
}
entity Weigth {
timestamp ZonedDateTime required
weight Double required
}
entity BloodPressure {
timestamp ZonedDateTime required
systolic Integer required
diastolic Integer required
}
enum Units {
KG, LB
}
entity Preferences {
weeklyGoal Integer required min(10) max(21)
weightUnits Units required
}
relationship OneToOne {
Preferences { user(login) } to User
}
relationship ManyToOne {
Points { user(login) required } to User
Weigth { user(login) required } to User
BloodPressure { user(login) required } to User
}
dto * with mapstruct
service * with serviceClass
paginate Points with pagination
paginate BloodPressure, Weigth with infinite-scroll