I am trying to model a database for a fitness app. Currently the 4 main entities are as follows:
| Exercise | User | Workout | UserWorkout |
|---|---|---|---|
| id | id | id | id |
| name | name | userId (fk) | |
| body_part | name | description | workoutId (fk) |
| category | password | level | date |
| age | exerciseIds (fk) | time_taken |
The app will have default workouts as well as default exercises.
I would like the user to be able to add their own custom workouts/exercises that only they can see (in addition to the default ones) but I'm not sure on how to best structure the data?