main
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-09 05:57:56 +02:00
parent 3d36926fe9
commit 58832e99d1
17 changed files with 1469 additions and 59 deletions
+20
View File
@@ -0,0 +1,20 @@
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();
});