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?
2 Replies
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.ohhh i understand thank you