You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a column with array of ids referring to another table
Is it possible to have a column in postgress that has array of ids that refer to another table
Example:
const order = {id: PK, name: string, itemIds: string[] ---> each element refers to item id in items table}
const item = {id: PK, name: string, price: number}
How do I make a drizzle schema for this, with proper relations
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Have a column with array of ids referring to another table
Is it possible to have a column in postgress that has array of ids that refer to another table
Example:
How do I make a drizzle schema for this, with proper relations
Beta Was this translation helpful? Give feedback.
All reactions