How to make two unique fields in a schema
So I'm trying to make a plugin with many to many relationship. I want it to have teamId and branchId columns. the combination of teamId & branchId must be unqiue, how can I achieve that?
So I want the code snippet that results to the output in the prisma schema I sent (or any other ORM)

1 Reply
Add
unique: true
to both teamId
and branchId
.