File size: 407 Bytes
fcf8749 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();
async function check() {
const deliveries = await prisma.delivery.count();
const users = await prisma.user.count();
const trucks = await prisma.truck.count();
const hubs = await prisma.virtualHub.count();
console.log({ deliveries, users, trucks, hubs });
await prisma.$disconnect();
}
check();
|