-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-types.js
More file actions
19 lines (16 loc) · 782 Bytes
/
Copy pathcheck-types.js
File metadata and controls
19 lines (16 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path');
const { PrismaClient } = require(path.join(__dirname, 'server', 'node_modules', '@prisma/client'));
const prisma = new PrismaClient();
async function main() {
const leadership = await prisma.leadership.count({ where: { type: 'leadership' } });
const volunteer = await prisma.leadership.count({ where: { type: 'volunteer' } });
const work = await prisma.leadership.count({ where: { type: 'work' } });
const total = await prisma.leadership.count();
console.log('📊 Leadership Role Type Distribution:');
console.log(` Leadership: ${leadership}`);
console.log(` Volunteer: ${volunteer}`);
console.log(` Work: ${work}`);
console.log(` Total: ${total}`);
await prisma.$disconnect();
}
main();