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

This commit is contained in:
Harun CAN
2026-04-05 20:37:15 +03:00
parent 9f17ced37d
commit 9486f86cca
22 changed files with 2175 additions and 29 deletions

14
test-api-projects.js Normal file
View File

@@ -0,0 +1,14 @@
const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();
async function check() {
const allUsers = await prisma.user.findMany();
console.log("Users:", allUsers.map(u => u.email + " -> " + u.id));
const allProjects = await prisma.project.findMany();
console.log("Projects total:", allProjects.length);
for (const p of allProjects) {
console.log(`- ID: ${p.id}, User ID: ${p.userId}, Title: ${p.title}`);
}
}
check().finally(() => prisma.$disconnect());