-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_model.puml
59 lines (50 loc) · 1.09 KB
/
data_model.puml
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
@startuml
entity BodyPart {
name String
muscles Set<Muscle>
}
entity Muscle {
scientificName String
shortName String
bodyPart BodyPart
exercisesPrimaryMuscle Set<Exercise>
exercisesSecondaryMuscle Set<Exercise>
}
entity Exercise {
name String
primaryMusclesWorked Set<Muscle>
secondaryMusclesWorked Set<Muscle>
exerciseUnits Set<ExerciseUnit>
}
entity ExerciseUnit {
exercise Exercise
setOfRepetitions List<SetOfRepetitions>
workoutProgram Set<WorkoutProgram>
}
entity SetOfRepetitions {
numberOfRepetitions Integer
weight Weight
exerciseUnit ExerciseUnit
}
entity Weight {
numericalValue Double
unit WeightUnit
}
entity WeightUnit {
name String
symbol String
}
entity WorkoutProgram {
name String
exerciseUnits List<ExerciseUnit>
remarks String
}
Weight --> WeightUnit
SetOfRepetitions --> Weight
BodyPart "1" <--> "*" Muscle
ExerciseUnit "*" <--> "*" WorkoutProgram
ExerciseUnit "1" <--> "*" SetOfRepetitions
Muscle "*" <--> "*" Exercise
Muscle "*" <--> "*" Exercise
Exercise "1" <--> "*" ExerciseUnit
@enduml