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());
