-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(provider): Fixes for email sign in (#1285)
* fix(adapter): Fix Prisma delete Must use Prsima deleteMany() instead of delete() with multiple clauses. * feat: Update example project Update example project to make it easier to test with database adapters. * fix(ui): Fix message text in light / auto theme Info message text is always on the same background (blue) on both themes so should always be white. * docs: Update example .env [skip release] * feat: Update Prisma peerOptionalDependencies
- Loading branch information
1 parent
69cc6bf
commit c5bb0ac
Showing
9 changed files
with
168 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,7 @@ node_modules | |
|
||
# GitHub Actions runner | ||
/actions-runner | ||
/_work | ||
/_work | ||
|
||
# Prisma migrations | ||
/prisma/migrations |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model Account { | ||
id Int @default(autoincrement()) @id | ||
compoundId String @unique @map(name: "compound_id") | ||
userId Int @map(name: "user_id") | ||
providerType String @map(name: "provider_type") | ||
providerId String @map(name: "provider_id") | ||
providerAccountId String @map(name: "provider_account_id") | ||
refreshToken String? @map(name: "refresh_token") | ||
accessToken String? @map(name: "access_token") | ||
accessTokenExpires DateTime? @map(name: "access_token_expires") | ||
createdAt DateTime @default(now()) @map(name: "created_at") | ||
updatedAt DateTime @default(now()) @map(name: "updated_at") | ||
@@index([providerAccountId], name: "providerAccountId") | ||
@@index([providerId], name: "providerId") | ||
@@index([userId], name: "userId") | ||
@@map(name: "accounts") | ||
} | ||
|
||
model Session { | ||
id Int @default(autoincrement()) @id | ||
userId Int @map(name: "user_id") | ||
expires DateTime | ||
sessionToken String @unique @map(name: "session_token") | ||
accessToken String @unique @map(name: "access_token") | ||
createdAt DateTime @default(now()) @map(name: "created_at") | ||
updatedAt DateTime @default(now()) @map(name: "updated_at") | ||
@@map(name: "sessions") | ||
} | ||
|
||
model User { | ||
id Int @default(autoincrement()) @id | ||
name String? | ||
email String? @unique | ||
emailVerified DateTime? @map(name: "email_verified") | ||
image String? | ||
createdAt DateTime @default(now()) @map(name: "created_at") | ||
updatedAt DateTime @default(now()) @map(name: "updated_at") | ||
@@map(name: "users") | ||
} | ||
|
||
model VerificationRequest { | ||
id Int @default(autoincrement()) @id | ||
identifier String | ||
token String @unique | ||
expires DateTime | ||
createdAt DateTime @default(now()) @map(name: "created_at") | ||
updatedAt DateTime @default(now()) @map(name: "updated_at") | ||
@@map(name: "verification_requests") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters