perf: database index on booking_status_starttime_endtime (#12066)

pull/12070/head
Morgan 2023-10-25 00:34:27 +03:00 committed by GitHub
parent a9535d3fd4
commit 79c1aa60a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "Booking_startTime_endTime_status_idx" ON "Booking"("startTime", "endTime", "status");

View File

@ -423,6 +423,7 @@ model Booking {
@@index([recurringEventId]) @@index([recurringEventId])
@@index([uid]) @@index([uid])
@@index([status]) @@index([status])
@@index([startTime, endTime, status])
} }
model Schedule { model Schedule {