Task
I need database design to record Recipes.
- Recipes can contain several Ingredients and several ordered HowToSteps.
- Each HowToStep can be split into ordered HowToSections.
- A single recipe can contain a mix of several (ordered) HowToStep and (ordered) HowToSection elements.
My Solution
- Table
HowToSection
with FK to the tableHowToStep
with FK to the tableRecipe
. - Table
Ingredient
with FK to the tableRecipe
.
Issue
I have no idea how to handle a business rule which stipulates that
- "A single recipe can contain a mix of several (ordered) HowToStep and (ordered) HowToSection elements".