docs: enhance prisma mongodb doc to prevent warning (#6598)

Fixes https://github.com/nextauthjs/next-auth/issues/6597
This commit is contained in:
Mayvis
2023-02-02 20:28:17 +08:00
committed by GitHub
parent 326eadf0ed
commit fb43c5da05

View File

@@ -139,9 +139,10 @@ Prisma supports MongoDB, and so does Auth.js. Following the instructions of the
id String @id @default(auto()) @map("_id") @db.ObjectId
```
2. The Native database type attribute to `@db.String` from `@db.Text`.
2. The Native database type attribute to `@db.String` from `@db.Text` and userId to `@db.ObjectId`.
```prisma
user_id String @db.ObjectId
refresh_token String? @db.String
access_token String? @db.String
id_token String? @db.String