const { PrismaClient } = require('@prisma/client'); const p = new PrismaClient(); (async () => { const t = await p.ttsTask.findFirst({ where: { chapterId: 527 }, select: { id: true, status: true, voiceId: true, targetLanguage: true, preferredVendor: true, preferredModel: true } }); console.log('ttsTask:', JSON.stringify(t)); const ch = await p.bookChapter.findUnique({ where: { id: 527 }, select: { audioUrl: true, audioDuration: true, title: true } }); console.log('chapter 527:', JSON.stringify(ch)); await p.$disconnect(); })();