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
25 lines
488 B
TypeScript
25 lines
488 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
const users: any[] = await prisma.$queryRaw`
|
|
SELECT id, name, email FROM public.users
|
|
`;
|
|
|
|
console.log('public.users 中的用户:');
|
|
if (users.length === 0) {
|
|
console.log(' ❌ 无用户');
|
|
} else {
|
|
users.forEach(u => console.log(` ✅ ${u.id}: ${u.name} (${u.email})`));
|
|
}
|
|
}
|
|
|
|
main()
|
|
.catch(console.error)
|
|
.finally(() => prisma.$disconnect());
|
|
|
|
|
|
|
|
|