unique constraints
How to tell prisma that I want only one image with
isPrimary
set to true
but also allow any number of images with isPrimary
set to false for the same drugItem
?
2 Replies
this sounds like a job you need to do in your code
I will do that in the code, but does prisma supports this constraint?