Composite PK

sry if im being stupid but i wanna make this composite primary key. I create this schema push it to the database but then there is no pk field in my database. Did i forget to add something?
No description
2 Replies
Mykhailo
Mykhailo7mo ago
Hey @DeNnisSssS! The primary key in this table is a composite of both userId and productId. This means that the combination of these two columns uniquely identifies each record, eliminating the need for an additional column to serve as a primary key.
DeNnisSssS
DeNnisSssSOP7mo ago
ohhh i understand thank you
Want results from more Discord servers?
Add your server