first commit

This commit is contained in:
2026-06-16 13:04:11 +03:00
commit 7ecdb30afc
54 changed files with 15479 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { PrismaClient } from '@prisma/client'
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined
}
export const db = globalForPrisma.prisma ?? new PrismaClient()
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = db