Files
AIclinicalresearch/backend/check_tables.ts
HaHafeng 4088275290 fix(pkb): fix create KB and upload issues - remove simulated upload, fix department mapping, add upload modal
Fixed issues:
- Remove simulateUpload function from DashboardPage Step 3
- Map department to description field when creating KB
- Add upload modal in WorkspacePage knowledge assets tab
- Fix DocumentUpload import path (../../stores to ../stores)

Known issue: Dify API validation error during document upload (file uploaded but DB record failed, needs investigation)

Testing: KB creation works, upload dialog opens correctly
2026-01-13 13:17:20 +08:00

25 lines
527 B
TypeScript

import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
// 检查 review 和 job 相关的表
const tables: any[] = await prisma.$queryRaw`
SELECT table_schema, table_name
FROM information_schema.tables
WHERE table_name LIKE '%review%' OR table_name LIKE '%job%'
ORDER BY table_schema, table_name
`;
console.log('Review 和 Job 相关的表:');
console.log(tables);
}
main()
.catch(console.error)
.finally(() => prisma.$disconnect());