2025-08-21 18:44:10 +05:30

11 lines
230 B
TypeScript

import { PrismaClient } from "@prisma/client";
import { singleton } from "~/utils/singleton";
export const prisma = singleton("prisma", getClient);
function getClient() {
const client = new PrismaClient();
return client;
}