P
Prisma2mo ago
Satish

@unique and @index can't be used together

If I'm using @@unique([id1, id2]) I cannot use @@index([id1, id2]) That's because @@unique already means indexed??
2 Replies
Rev
Rev2mo ago
exactly, unique fields are already indexed every unique field is by definition indexed with a UNIQUE INDEX
Satish
SatishOP2mo ago
Awesome ..thank you
Want results from more Discord servers?
Add your server