Kova
Kova
Explore posts from servers
PPrisma
Created by Kova on 6/27/2024 in #help-and-questions
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.
2 replies