- 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
44 lines
507 B
TypeScript
44 lines
507 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());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|