- 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
45 lines
708 B
TypeScript
45 lines
708 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());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|