I want to build an application which use postgresql. It should be a simple question but I still cannot find the answer quickly enough ; maybe would you help me to do this?
I have a table of ingredients. id PK, name VARCHAR
I want to create a table of recipies where I got an id and integer[] But I don't find how to do this: every element of integer[] should be referenced in ingredients.
I can do it with a simple integer REFERENCE ingredients(id) but not with an array.
Thanks for the help! :)