P
Prisma3mo ago
Kova

Unique index with nullable composite key?

Is it possible to create a unique composite key where one of the keys is nullable? I have a table where the record is unique if the foreign key is null or has a value but I can't do that in an upsert without Prisma requiring all the keys to have a value.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server