2025-11-26 12:00:48 +05:30
|
|
|
// prisma.ts
|
2025-11-12 16:03:57 +05:30
|
|
|
import { PrismaClient } from '@prisma/client';
|
2025-11-26 12:00:48 +05:30
|
|
|
|
|
|
|
|
// The DATABASE_URL environment variable will be automatically used
|
2025-11-12 16:03:57 +05:30
|
|
|
export const prisma = new PrismaClient();
|
2025-11-26 12:00:48 +05:30
|
|
|
|
2025-11-12 16:03:57 +05:30
|
|
|
process.on('SIGINT', async () => {
|
|
|
|
|
await prisma.$disconnect();
|
|
|
|
|
process.exit(0);
|
|
|
|
|
});
|