I am trying to create a database for my application, and one thing I would like to find is the best way to do this is to create a one-to-many relationship between my Users and Items tables.
I know that I can make the third table ReviewedItems and have columns as the User identifier and id Item , but I would like to know if it is possible to make the column in Users , say ReviewedItems , which is an integer array containing the foreign keys to the Items that the User examined .
If PostgreSQL can do this, let me know! If not, I just go down the route of the third table.
postgresql foreign-keys foreign-collection
Zach
source share