fix: add teamId index on VerificationToken (#12339)

* fix: add teamId index on InvitationToken

* fix: add migration
This commit is contained in:
Morgan 2023-11-13 15:42:27 +02:00 committed by GitHub
parent 3ea9faa414
commit 199f41fb1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "VerificationToken_teamId_idx" ON "VerificationToken"("teamId");

View File

@ -335,6 +335,7 @@ model VerificationToken {
@@unique([identifier, token])
@@index([token])
@@index([teamId])
}
model BookingReference {