Results 1 to 3 of 3
Thread: Database design for Meal Plans
Feb 4, 2013, 09:46 #1
- Join Date
- Nov 2011
- 0 Post(s)
- 0 Thread(s)
Database design for Meal Plans
Looking for some help on how I might design a database for meal plans.
I'm following Kevin Yank's book on PHP & MySQL and I think I have a case for many to many relationships. I have the following structure so far, but I am not sure if it is the most efficient design?
The problem I am solving for is to create a Plan consisiting of n number of meals (meal 1, 2, 3, 4, 5) with various selections of food per meal.
Example: Plan A contains 6 meals(breakfast, snack, lunch, snack, dinner, snack) with 3 food types per meal(eggs, oats, banana).
The coachid is used to allow different coaches to have different names for food, meals, plans. I'm trying to make this multi tenant as well.
Any help would be much appreciated and please be gentle, this is my first database driven design