Upgrade Prisma to v7
This commit is contained in:
parent
54343f61d5
commit
307a291c71
54 changed files with 34750 additions and 243 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 & {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue