import { createDb } from "../packages/db/src/index.js"; async function run() { const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo"); const steve = await prisma.bot.findFirst({ where: { name: "Steve Jobs" } }); console.log("Steve Jobs modelId:", steve?.modelId); const run = await prisma.run.findUnique({ where: { id: "cmu7jw8dr000biryyrethbore" }, }); console.log("Run details:", { id: run?.id, modelId: run?.modelId, status: run?.status, createdAt: run?.createdAt, }); const model = await prisma.model.findUnique({ where: { id: run?.modelId || steve?.modelId || "" }, }); console.log("Model record in DB:", model); } run() .catch(console.error) .finally(() => process.exit(0));