Foreign Key as array element #781
-
Hello, Is it possible to have array elements reference an id from another table like a foreign key? For example table products with product_id And table orders Where elements inside items array are referencing product_id from products. I know in this example following a one-many relational design works better. In my use case order matters. In this example it would be the order of items inside items[] I can still use array and store ids without references but it means I have to manage the constraints myself with triggers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @tawjaw, This was asked before, please check #535 |
Beta Was this translation helpful? Give feedback.
Hey @tawjaw,
This was asked before, please check #535