fix(schema): revert datasource URL, add Group.accountId index

This commit is contained in:
2026-05-27 17:09:48 +05:30
parent a7aa8bf5a9
commit cbb32ed425
2 changed files with 4 additions and 1 deletions
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "Group_accountId_idx" ON "Group"("accountId");
+2 -1
View File
@@ -4,7 +4,7 @@ generator client {
datasource db {
provider = "postgresql"
url = env("../../../DATABASE_URL")
url = env("DATABASE_URL")
}
model Group {
@@ -25,6 +25,7 @@ model Group {
consentRecords ConsentRecord[]
@@unique([platform, platformId])
@@index([accountId])
}
model Message {