- Add one-click research protocol generation with streaming output - Implement Word document export via Pandoc integration - Add dynamic dual-panel layout with resizable split pane - Implement collapsible content for StatePanel stages - Add conversation history management with title auto-update - Fix scroll behavior, markdown rendering, and UI layout issues - Simplify conversation creation logic for reliability
55 lines
937 B
TypeScript
55 lines
937 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
const result: any[] = await prisma.$queryRaw`
|
|
SELECT table_name
|
|
FROM information_schema.tables
|
|
WHERE table_schema = 'platform_schema' AND table_name = 'job_common'
|
|
`;
|
|
|
|
if (result.length > 0) {
|
|
console.log('✅ platform_schema.job_common 表已恢复!');
|
|
|
|
// 检查列结构
|
|
const cols: any[] = await prisma.$queryRaw`
|
|
SELECT column_name, data_type
|
|
FROM information_schema.columns
|
|
WHERE table_schema = 'platform_schema' AND table_name = 'job_common'
|
|
ORDER BY ordinal_position
|
|
`;
|
|
console.log('\n列结构:');
|
|
cols.forEach(c => console.log(` ${c.column_name}: ${c.data_type}`));
|
|
} else {
|
|
console.log('❌ platform_schema.job_common 表不存在');
|
|
}
|
|
}
|
|
|
|
main()
|
|
.catch(console.error)
|
|
.finally(() => prisma.$disconnect());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|