️ Create option index in votes table

This commit is contained in:
Luke Vella 2024-03-09 10:45:32 +05:30
parent 247085869d
commit 6e3bc651cf
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "votes_option_id_idx" ON "votes" USING HASH ("option_id");

View file

@ -225,6 +225,7 @@ model Vote {
updatedAt DateTime? @updatedAt @map("updated_at")
@@index([participantId], type: Hash)
@@index([optionId], type: Hash)
@@map("votes")
}