Skip to content

Commit 11042e6

Browse files
committed
Add index for client report result checks
1 parent dcfe9e8 commit 11042e6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX "client_report_check_result_client_report_id_create_date_idx" ON "client_report_check_result"("client_report_id", "create_date");

prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ model client_report_check_result {
344344
metadata Json?
345345
346346
@@unique([check, client_report_id])
347+
@@index([client_report_id, create_date])
347348
}
348349

349350
model allocator_report {

0 commit comments

Comments
 (0)