From 8cdd10785c0719365ea1a355a94e35f0af70d280 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Thu, 29 Jan 2026 12:39:06 -0800 Subject: [PATCH] prisma fix --- apps/backend/prisma/schema.prisma | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/backend/prisma/schema.prisma b/apps/backend/prisma/schema.prisma index 815c1971e..7c4e5cb4e 100644 --- a/apps/backend/prisma/schema.prisma +++ b/apps/backend/prisma/schema.prisma @@ -225,7 +225,7 @@ model ProjectUser { @@index([tenancyId, displayName(sort: Desc)], name: "ProjectUser_displayName_desc") @@index([tenancyId, createdAt(sort: Asc)], name: "ProjectUser_createdAt_asc") @@index([tenancyId, createdAt(sort: Desc)], name: "ProjectUser_createdAt_desc") - @@index([shouldUpdateSequenceId], name: "ProjectUser_shouldUpdateSequenceId_idx") + // Partial index for external db sync backfill lives in migration SQL. } // This should be renamed to "OAuthAccount" as it is not always bound to a user @@ -290,8 +290,7 @@ model ContactChannel { @@unique([tenancyId, projectUserId, type, value]) // only one contact channel per project with the same value and type can be used for auth @@unique([tenancyId, type, value, usedForAuth]) - // partial index for external db sync backfill (WHERE shouldUpdateSequenceId = TRUE) - @@index([shouldUpdateSequenceId], name: "ContactChannel_shouldUpdateSequenceId_idx") + // Partial index for external db sync backfill lives in migration SQL (WHERE shouldUpdateSequenceId = TRUE). } model AuthMethod { @@ -1092,6 +1091,5 @@ model DeletedRow { @@index([tenancyId]) // composite index for efficient querying of deleted rows by tenant and table, ordered by sequence @@index([tenancyId, tableName, sequenceId]) - // partial index for external db sync backfill (WHERE shouldUpdateSequenceId = TRUE) - @@index([shouldUpdateSequenceId], name: "DeletedRow_shouldUpdateSequenceId_idx") + // Partial index for external db sync backfill lives in migration SQL (WHERE shouldUpdateSequenceId = TRUE). }