Upgrade Prisma to v7

This commit is contained in:
Esdras Renan 2025-11-19 13:24:08 -03:00
parent 54343f61d5
commit 307a291c71
54 changed files with 34750 additions and 243 deletions

View file

@ -1,8 +1,9 @@
import "dotenv/config"
import { PrismaClient } from "@prisma/client"
import { ConvexHttpClient } from "convex/browser"
const prisma = new PrismaClient()
import { createPrismaClient } from "./utils/prisma-client.mjs"
const prisma = createPrismaClient()
function toMillis(date) {
return date instanceof Date ? date.getTime() : date ? new Date(date).getTime() : undefined