good forst commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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();
|
||||
})();
|
||||
Reference in New Issue
Block a user