I have 3 tables - meals, dishes and ingredients.
use case: Users should be able to add new dishes and meals through a form. A meal is a combination of 1 or more dishes. Each dish comprises of many ingredients (note ingredients is a separate table)
So in a form submission, the user should be able to do two things:
1. Add a new dish including its ingredients (note ingredients is a separate table so should be stored appropriately)
2. Add a new meal and map dishes to it (a meal is a combination of one or more dishes)
Many thanks in advance
Himanshu

