added oauth Route

This commit is contained in:
PxlLoewe
2025-02-02 19:42:42 +01:00
parent 29f9cd7941
commit edcad748fb
23 changed files with 799 additions and 161 deletions

View File

@@ -34,3 +34,14 @@ model VerificationRequest {
@@map(name: "verification_requests")
}
model OAuthToken {
id Int @id @default(autoincrement())
userId String @map(name: "user_id")
clientId String @map(name: "client_id")
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: "oauth_tokens")
}