more indices
This commit is contained in:
parent
b75c8e73b7
commit
9431469453
|
@ -0,0 +1,14 @@
|
|||
-- CreateIndex
|
||||
CREATE INDEX "Item.weightedVotes_index" ON "Item"("weightedVotes");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Item.weightedDownVotes_index" ON "Item"("weightedDownVotes");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Item.bio_index" ON "Item"("bio");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Item.freebie_index" ON "Item"("freebie");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Item.sumVotes_index" ON "Item"(("weightedVotes" - "weightedDownVotes"));
|
|
@ -224,6 +224,10 @@ model Item {
|
|||
PollOption PollOption[]
|
||||
PollVote PollVote[]
|
||||
|
||||
@@index([weightedVotes])
|
||||
@@index([weightedDownVotes])
|
||||
@@index([bio])
|
||||
@@index([freebie])
|
||||
@@index([createdAt])
|
||||
@@index([userId])
|
||||
@@index([parentId])
|
||||
|
|
Loading…
Reference in New Issue