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
26 lines
689 B
TypeScript
26 lines
689 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
console.log('=== platform_schema.users ===');
|
|
const platformUsers: any[] = await prisma.$queryRaw`
|
|
SELECT id, name, phone, role FROM platform_schema.users ORDER BY created_at
|
|
`;
|
|
platformUsers.forEach(u => console.log(` ${u.id}: ${u.name} (${u.phone}) [${u.role}]`));
|
|
|
|
console.log('\n=== public.users ===');
|
|
const publicUsers: any[] = await prisma.$queryRaw`
|
|
SELECT id, name, email FROM public.users
|
|
`;
|
|
publicUsers.forEach(u => console.log(` ${u.id}: ${u.name} (${u.email})`));
|
|
}
|
|
|
|
main()
|
|
.catch(console.error)
|
|
.finally(() => prisma.$disconnect());
|
|
|
|
|
|
|
|
|