Database Schemas are not my strong point however I’m making a Recipe Schema and would like some input from experts on this before I move forward with my code.
InnoDB with relations.
Tabels Recipe_Steps and Recipe_Step_Ingredients have relations setup for ON UPDATE RESTRICT and ON DELETE CASCADE.

Ok I rearranged things a bit, I think I made it more simple without loosing any functionality. Usually recipes list the ingredients and the instructions separate so I don’t think I need the steps to be linked to the ingredients.
What do you guys think?

1 Answer