1
0
Fork 0

feat: create first migration for nextauth

This commit is contained in:
Vojtěch Mareš 2023-06-25 11:41:26 +02:00
parent 6c1326bb39
commit eaf3cdb9ff
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
4 changed files with 72 additions and 9 deletions

View file

@ -2,12 +2,12 @@
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
previewFeatures = ["jsonProtocol"]
}
datasource db {
provider = "sqlite"
provider = "postgresql"
// NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below
// Further reading:
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema
@ -15,12 +15,6 @@ datasource db {
url = env("DATABASE_URL")
}
model Example {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
// Necessary for Next auth
model Account {
id String @id @default(cuid())