Join Slack
Powered by
Is it possible to implement a multiple-column uniq...
# orm-help
g
Gabriel Benson
06/07/2020, 11:59 AM
Is it possible to implement a multiple-column unique constraint (multi-column primary key) in Prisma's datamodel?
r
Ricco
06/07/2020, 12:56 PM
@@id PRIMARY KEY A list of field references Defines a multi-field ID on the model.
Ricco
06/07/2020, 12:59 PM
sorry thats prisma2
g
Gabriel Benson
06/07/2020, 2:45 PM
Ah, gotcha. Still, good to know! Thanks!
3
Views
Open in Slack
Previous
Next