New: Microsoft OAuth2.0
This commit is contained in:
@ -30,8 +30,25 @@ model User {
|
||||
lastName String?
|
||||
hashedPassword String?
|
||||
salt String?
|
||||
identites Identity[]
|
||||
resetToken String?
|
||||
resetTokenExpiresAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Identity {
|
||||
id Int @id @default(autoincrement())
|
||||
provider String
|
||||
uid String
|
||||
userId Int
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
accessToken String?
|
||||
scope String?
|
||||
lastLoginAt DateTime @default(now())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([provider, uid])
|
||||
@@index(userId)
|
||||
}
|
||||
|
Reference in New Issue
Block a user