Files
ContentGen_BE/check_users.ts
T
Harun CAN 58832e99d1
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled
main
2026-05-09 05:57:56 +02:00

21 lines
387 B
TypeScript

import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
const users = await prisma.user.findMany({
include: {
roles: {
include: { role: true }
}
}
});
console.log(JSON.stringify(users, null, 2));
}
main()
.catch(e => console.error(e))
.finally(async () => {
await prisma.$disconnect();
});