perf: 添加 paid_at 索引优化 dashboard 查询性能
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- CreateIndex
|
||||
CREATE INDEX "orders_paid_at_idx" ON "orders"("paid_at");
|
||||
@@ -46,6 +46,7 @@ model Order {
|
||||
@@index([status])
|
||||
@@index([expiresAt])
|
||||
@@index([createdAt])
|
||||
@@index([paidAt])
|
||||
@@map("orders")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user