P
Prisma4mo 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
Rev4mo ago
exactly, unique fields are already indexed every unique field is by definition indexed with a UNIQUE INDEX
Satish
SatishOP4mo ago
Awesome ..thank you

Did you find this page helpful?