const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();

async function checkBookTime() {
  const book = await prisma.book.findUnique({ where: { id: 1 } });
  console.log('创建时间:', book.createdAt);
  console.log('更新时间:', book.updatedAt);
  console.log('错误信息:', book.errorMsg);
  await prisma.$disconnect();
}

checkBookTime().catch(console.error);
