import { createDb } from "../packages/db/src/index.js"; async function run() { const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo"); const chief = await prisma.bot.findFirst({ where: { name: "Chief" }, include: { thread: true }, }); console.log("CHIEF BOT:", JSON.stringify(chief, null, 2)); const sections = await prisma.botSection.findMany(); console.log("SECTIONS:", JSON.stringify(sections, null, 2)); } run() .catch(console.error) .finally(() => process.exit(0));