Skip to content

Commit

Permalink
fix(schema): remove @unique from User.provider field
Browse files Browse the repository at this point in the history
User.provider should not be unique.
That was a copy/paste mistake when it was defined.
  • Loading branch information
flsilva committed Aug 13, 2023
1 parent 5414c25 commit 581070f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- DropIndex
DROP INDEX "User_provider_key";
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ model User {
email String @unique @db.VarChar(254)
name String? @db.VarChar(500)
projects Project[]
provider String @unique @db.VarChar(100)
provider String @db.VarChar(100)
tasks Task[]
createdAt DateTime @default(now())
updatedAt DateTime? @updatedAt
Expand Down

0 comments on commit 581070f

Please sign in to comment.