From ebc916c26df786f376f5717a83cf05568b11783d Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Mon, 10 Apr 2023 20:59:27 +0200 Subject: [PATCH] update prisma schema to mysql --- prisma/schema.prisma | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index f39c37a..8d77d2b 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,12 +6,13 @@ generator client { } datasource db { - provider = "sqlite" + provider = "mysql" // NOTE: When using postgresql, 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 // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string url = env("DATABASE_URL") + relationMode = "prisma" } model Video { @@ -29,12 +30,12 @@ model Account { type String provider String providerAccountId String - refresh_token String? // @db.Text - access_token String? // @db.Text + refresh_token String? @db.Text + access_token String? @db.Text expires_at Int? token_type String? scope String? - id_token String? // @db.Text + id_token String? @db.Text session_state String? user User @relation(fields: [userId], references: [id], onDelete: Cascade)