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,6 @@
import { Prisma, type Company } from "@prisma/client"
import { Prisma, type Company, prisma } from "@/lib/prisma"
import { ZodError } from "zod"
import { prisma } from "@/lib/prisma"
import {
companyFormSchema,
companyInputSchema,

View file

@ -1,4 +1,4 @@
import type { AuthInvite, AuthInviteEvent } from "@prisma/client"
import type { AuthInvite, AuthInviteEvent } from "@/lib/prisma"
import { ROLE_OPTIONS, type RoleOption, normalizeRole } from "@/lib/authz"
import { DEFAULT_TENANT_ID } from "@/lib/constants"

View file

@ -1,6 +1,6 @@
"use server"
import type { Prisma } from "@prisma/client"
import type { Prisma } from "@/lib/prisma"
import { prisma } from "@/lib/prisma"
import { env } from "@/lib/env"

View file

@ -1,7 +1,7 @@
import "server-only"
import { addMonths, addWeeks, isBefore } from "date-fns"
import type { ReportExportRun, ReportExportSchedule } from "@prisma/client"
import type { ReportExportRun, ReportExportSchedule } from "@/lib/prisma"
import { REPORT_EXPORT_DEFINITIONS, type ReportExportKey } from "@/lib/report-definitions"
type SerializableSchedule = ReportExportSchedule & {