import { PrismaClient } from '@prisma/client'; const p = new PrismaClient(); (async () => { const tenants = await p.tenant.findMany({ select: { id: true, slug: true, name: true } }); const admins = await p.admin.findMany({ select: { id: true, email: true, role: true, tenant: { select: { slug: true } } } }); console.log('TENANTS:', JSON.stringify(tenants, null, 2)); console.log('ADMINS:', JSON.stringify(admins, null, 2)); await p.$disconnect(); })();