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

This commit is contained in:
Harun CAN
2026-05-06 10:48:07 +02:00
parent 2d6f068363
commit a40619ef33
44 changed files with 4295 additions and 126 deletions
+16 -6
View File
@@ -1,9 +1,19 @@
const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();
async function main() {
const projects = await prisma.project.findMany({ select: { id: true, userId: true, title: true, status: true, deletedAt: true } });
console.log('Projects:', projects);
const users = await prisma.user.findMany({ select: { id: true, email: true } });
console.log('Users:', users);
async function check() {
const analyses = await prisma.youtubeAnalysis.findMany({
orderBy: { createdAt: 'desc' },
take: 5
});
console.log('Recent analyses:');
analyses.forEach(a => {
console.log(`[${a.createdAt}] ID: ${a.id}, VideoId: ${a.videoId}`);
const data = a.analysisData;
console.log(` Comment Count saved: ${data.commentCount}`);
});
}
main().catch(console.error).finally(() => prisma.$disconnect());
check()
.catch(console.error)
.finally(() => prisma.$disconnect());