P
Prisma4w 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
Rev4w ago
exactly, unique fields are already indexed every unique field is by definition indexed with a UNIQUE INDEX
Satish
SatishOP3w ago
Awesome ..thank you
Want results from more Discord servers?
Add your server