import { PrismaClient } from '@prisma/client';
const db = new PrismaClient();
async function run() {
  const adminUser = await db.user.findUnique({ where: { email: 'admin@contentgen.ai' } });
  console.log("Admin ID:", adminUser?.id);
  
  const projects = await db.project.findMany({
    orderBy: { createdAt: 'desc' },
    take: 5,
    select: { id: true, title: true, createdAt: true, userId: true }
  });
  console.log("Last 5 projects:", projects);
  await db.$disconnect();
}
run();
