import { PrismaClient as daphnisClient } from "@/prisma/schemas/daphnis/generated/lachesis"; import { PrismaClient as artemisClient } from "@/prisma/schemas/artemis/generated/artemis"; const daphnisSingleton = () => { return new daphnisClient(); }; const aremisSingleton = () => { return new artemisClient(); }; declare global { var daphnis: undefined | ReturnType; var artemis: undefined | ReturnType; } export const daphnis = globalThis.daphnis ?? daphnisSingleton(); export const artemis = globalThis.artemis ?? aremisSingleton(); if (process.env.NODE_ENV !== "production") globalThis.daphnis = daphnis;