perf: add composite index on EventType(parentId, teamId) (#27099)

* perf: add composite index on EventType(parentId, teamId)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Apply suggestion from @keithwillcode

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Keith Williams
2026-01-22 06:43:05 -03:00
committed by GitHub
co-authored by Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent 2a98693dcd
commit ee076d7102
2 changed files with 3 additions and 0 deletions
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "EventType_parentId_teamId_idx" ON "public"."EventType"("parentId", "teamId");
+1
View File
@@ -274,6 +274,7 @@ model EventType {
@@index([scheduleId])
@@index([secondaryEmailId])
@@index([parentId])
@@index([parentId, teamId])
@@index([restrictionScheduleId])
}