formated project with prettier
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { PrismaClient } from '../generated/client';
|
||||
import { PrismaClient } from "../generated/client";
|
||||
|
||||
const globalForPrisma = global as unknown as { prisma: PrismaClient };
|
||||
|
||||
export const prisma = globalForPrisma.prisma || new PrismaClient();
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
|
||||
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
|
||||
|
||||
@@ -17,7 +17,6 @@ model Account {
|
||||
@@map(name: "accounts")
|
||||
}
|
||||
|
||||
|
||||
model Session {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @map(name: "user_id")
|
||||
|
||||
@@ -24,6 +24,7 @@ model User {
|
||||
email String @unique
|
||||
password String
|
||||
vatsimCid Int? @map(name: "vatsim_cid")
|
||||
moodleId Int? @map(name: "moodle_id")
|
||||
emailVerified DateTime? @map(name: "email_verified")
|
||||
image String?
|
||||
badges BADGES[] @default([])
|
||||
|
||||
Reference in New Issue
Block a user