This commit is contained in:
2025-07-19 12:21:46 +02:00
parent 12822dfdbf
commit 2e7957d0a0
86 changed files with 25573 additions and 0 deletions

16
scripts/checkAdmin.js Normal file
View File

@@ -0,0 +1,16 @@
const { PrismaClient } = require('../generated/prisma');
const prisma = new PrismaClient();
async function checkAdmin() {
try {
const admins = await prisma.adminUser.findMany();
console.log('Admin users in database:', admins);
} catch (err) {
console.error('Error:', err);
} finally {
await prisma.$disconnect();
}
}
checkAdmin();