mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-28 08:16:22 +02:00
⚡️ Create option index in votes table
This commit is contained in:
parent
247085869d
commit
6e3bc651cf
2 changed files with 3 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
-- CreateIndex
|
||||
CREATE INDEX "votes_option_id_idx" ON "votes" USING HASH ("option_id");
|
|
@ -225,6 +225,7 @@ model Vote {
|
|||
updatedAt DateTime? @updatedAt @map("updated_at")
|
||||
|
||||
@@index([participantId], type: Hash)
|
||||
@@index([optionId], type: Hash)
|
||||
@@map("votes")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue