add more indices to item

This commit is contained in:
keyan 2022-03-10 13:17:30 -06:00
parent 17ae89c085
commit 7997085813
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,14 @@
-- CreateIndex
CREATE INDEX "Item.status_index" ON "Item"("status");
-- CreateIndex
CREATE INDEX "Item.maxBid_index" ON "Item"("maxBid");
-- CreateIndex
CREATE INDEX "Item.statusUpdatedAt_index" ON "Item"("statusUpdatedAt");
-- CreateIndex
CREATE INDEX "Item.subName_index" ON "Item"("subName");
-- CreateIndex
CREATE INDEX "Item.pinId_index" ON "Item"("pinId");

View File

@ -125,6 +125,11 @@ model Item {
@@index([createdAt])
@@index([userId])
@@index([parentId])
@@index([status])
@@index([maxBid])
@@index([statusUpdatedAt])
@@index([subName])
@@index([pinId])
}
enum PostType {