-
Notifications
You must be signed in to change notification settings - Fork 0
/
InitHike.jdl
52 lines (45 loc) · 990 Bytes
/
InitHike.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
enum Sex {
MAN, WOMAN
}
entity Hiker {
firstname String required
name String required
sex Sex
birthdate LocalDate
phone_number String
anaerobic_maximum_speed Integer
weight Integer
}
paginate Hiker with pagination
service Hiker with serviceClass
entity Message {
longitude Double required min(0) max(360)
latitude Double required min(0) max(360)
date_time ZonedDateTime required
sos Boolean required
espON Boolean required
heart_rate Integer
}
paginate Message with pagination
service Message with serviceClass
entity Hike {
hike_name String
meeting_place String
positive_drop Integer
duration Integer
date ZonedDateTime
}
paginate Hike with pagination
service Hike with serviceClass
relationship ManyToMany {
Hiker{itinerary} to Hike{walker}
}
relationship OneToMany {
Hiker{position} to Message{sender}
}
relationship OneToMany {
Hike{message} to Message{hike}
}
relationship OneToOne {
Hiker{user} to User{participant}
}