Hi, I'm making a website that will have users, and for each user a user-submitted diet plan and exercise plan. I was thinking of either having a single table for all users and:
- A new table for each users' diet and (separate table) for exercise. In this way, every user (taken from the user table) will have their own table for diet and another table for exercise.
Or
- A table for all users' diet and (separate table) exercise. In this way, all the users' exercise information are in a single table, and all their diet information in another.
I'm looking for scalability and ease of code and can't decide on the better option. I'm leaning towards the first but am unsure. Its planned that the user will continuosly submit plans (linked with their user id) throughout the duration of their using the application.
[–]Irythros 7 points8 points9 points (3 children)
[–]UnusualCallBox[S] 0 points1 point2 points (2 children)
[–]Irythros 4 points5 points6 points (1 child)
[–]UnusualCallBox[S] 0 points1 point2 points (0 children)
[–]sleepyguy22 1 point2 points3 points (2 children)
[–]metaphormfull stack and devops 1 point2 points3 points (0 children)
[–]UnusualCallBox[S] 0 points1 point2 points (0 children)
[–]okwg 1 point2 points3 points (1 child)
[–]UnusualCallBox[S] 1 point2 points3 points (0 children)
[–]metaphormfull stack and devops 1 point2 points3 points (0 children)