Shouldn't developer be able to choose whether they want such a constraint on their model?
r
Ryan
08/09/2021, 7:50 AM
@Caleb Clark 👋
What constraints exactly?
c
Caleb Clark
08/09/2021, 9:10 AM
@id and @unique. One of my tables needs to be optimized without a @unique constraint. Although I love Prisma, this lack of ability to choose may require us to move away from Primsa.
r
Ryan
08/09/2021, 9:40 AM
You can use Prisma Migrate and create migrations that have custom constraints.
@id
is required at the moment so it isn’t possible to have a model without an