diff --git a/prisma/migrations/20230811194017_init/migration.sql b/prisma/migrations/20230909184945_init/migration.sql similarity index 96% rename from prisma/migrations/20230811194017_init/migration.sql rename to prisma/migrations/20230909184945_init/migration.sql index cbec8011..dae4962a 100644 --- a/prisma/migrations/20230811194017_init/migration.sql +++ b/prisma/migrations/20230909184945_init/migration.sql @@ -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"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8bee9996..34db17d7 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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 @@ -163,5 +163,4 @@ model Connection { userId String @@unique([providerName, providerId]) - @@unique([providerId, userId]) }