add more indices to item
This commit is contained in:
parent
17ae89c085
commit
7997085813
|
@ -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");
|
|
@ -125,6 +125,11 @@ model Item {
|
|||
@@index([createdAt])
|
||||
@@index([userId])
|
||||
@@index([parentId])
|
||||
@@index([status])
|
||||
@@index([maxBid])
|
||||
@@index([statusUpdatedAt])
|
||||
@@index([subName])
|
||||
@@index([pinId])
|
||||
}
|
||||
|
||||
enum PostType {
|
||||
|
|
Loading…
Reference in New Issue