Skip to content

Commit

Permalink
🗃️ Add answer - groupId index
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Nov 24, 2022
1 parent 9548733 commit 9d69470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX CONCURRENTLY "Answer_groupId_idx" ON "Answer"("groupId");
1 change: 1 addition & 0 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ model Answer {
result Result @relation(fields: [resultId], references: [id], onDelete: Cascade)
@@unique([resultId, blockId, groupId])
@@index([groupId])
}

model Coupon {
Expand Down

0 comments on commit 9d69470

Please sign in to comment.