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 WilliamsandDevin AI authored and GitHub committed 2026-01-22 06:43:05 -03:00
1 parent 2a98693dcd
commit ee076d7102
2 files changed
+3

No files matched your search

@@ -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])
}