Skip to content

Commit 1736c9d

Browse files
perf: Add teamId index on Credential (calcom#27153)
1 parent 6f7c8bd commit 1736c9d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX "Credential_teamId_idx" ON "public"."Credential"("teamId");

packages/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ model Credential {
309309
@@index([subscriptionId])
310310
@@index([invalid])
311311
@@index([userId, delegationCredentialId])
312+
@@index([teamId])
312313
}
313314

314315
enum IdentityProvider {

0 commit comments

Comments
 (0)