const { PrismaClient } = require('@prisma/client'); const prisma = new PrismaClient({ datasources: { db: { url: "postgresql://postgres:pLQjZtDLYtAMu+ut5LamR5o9P1cgPE9Z@192.168.178.201:5432/postgres" }, }, }) async function main() { try { const userCount = await prisma.user.count(); console.log(`Connection successful! Users: ${userCount}`); process.exit(0); } catch (error) { console.error('Connection failed:', error); process.exit(1); } } main();