So I'm trying to figure out how to best approach creating a data storage that contains an unknown number of columns.
So say I have a table with recipes. Recipes usually have ingredients. Some have 5, some 8 some 10. You get the point. What would be the best way to stores recipes when I don't know how many ingredients it will hold?
I thought about using an array inside the table for the ingredients. However, doing a query like "find all recipes that contain the ingredient x" seem to be rather difficult to construct. This is because sometimes ingredients can be "smoked x" or "salted x" for example.
So I wonder if there is a better alternative?