fix: 修复 fileid索引

This commit is contained in:
2026-05-17 18:42:19 +08:00
parent fea99d37fe
commit 681e3c7493
4 changed files with 131 additions and 13 deletions
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "screenshots_fileId_idx" ON "screenshots"("fileId");
+1
View File
@@ -75,6 +75,7 @@ model Screenshot {
record Record @relation(fields: [recordId], references: [id], onDelete: Cascade)
@@index([recordId])
@@index([fileId])
@@index([objectName])
@@map("screenshots")
}