How to define unique constraint for scalar list?

217 Views Asked by At

I created a scalar list tags in Post model. I want only unique tags in the list. How to do that?

Post model:

enter image description here

1

There are 1 best solutions below

0
Raphael Etim On

Prisma does not have support for this. This question has an answer that might interest you.