Skip to content

Commit

Permalink
fix(with-auth.prisma): add missing field refresh_token_expires_in (#1879
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tomi-mercado authored May 10, 2024
1 parent 4de1927 commit 12275fa
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions cli/template/extras/prisma/schema/with-auth.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ model Post {

// Necessary for Next auth
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? // @db.Text
access_token String? // @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? // @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? // @db.Text
access_token String? // @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? // @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
refresh_token_expires_in Int?
@@unique([provider, providerAccountId])
}
Expand Down

0 comments on commit 12275fa

Please sign in to comment.