import { prisma } from "/root/ai-team/projects/repomarket/lib/prisma"

async function main() {
  const userId = "cmoyg8w40000s75dq77fbv3q8"   // Nikola
  const orderId = "cmoyjwxok0002lmdqnu5s7w2i"
  const order = await prisma.order.findUnique({
    where: { id: orderId, userId },
    select: { id: true, status: true, listing: { select: { title: true } } },
  })
  console.log("Order query result:", JSON.stringify(order, null, 2))
}
main().then(() => process.exit(0)).catch((e) => { console.error(e); process.exit(1) })
