Skip to content

Commit

Permalink
fix connection schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Sep 9, 2023
1 parent 55106f8 commit f348a10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,9 @@ CREATE UNIQUE INDEX "Role_name_key" ON "Role"("name");
-- CreateIndex
CREATE UNIQUE INDEX "Verification_target_type_key" ON "Verification"("target", "type");

-- CreateIndex
CREATE UNIQUE INDEX "Connection_providerId_key" ON "Connection"("providerId");

-- CreateIndex
CREATE UNIQUE INDEX "Connection_providerName_providerId_key" ON "Connection"("providerName", "providerId");

-- CreateIndex
CREATE UNIQUE INDEX "Connection_providerId_userId_key" ON "Connection"("providerId", "userId");

-- CreateIndex
CREATE UNIQUE INDEX "_PermissionToRole_AB_unique" ON "_PermissionToRole"("A", "B");

Expand Down
3 changes: 1 addition & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ model Verification {
model Connection {
id String @id @default(cuid())
providerName String
providerId String @unique
providerId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
Expand All @@ -163,5 +163,4 @@ model Connection {
userId String
@@unique([providerName, providerId])
@@unique([providerId, userId])
}

0 comments on commit f348a10

Please sign in to comment.