Files
AIclinicalresearch/backend/create_mock_user_platform.sql
HaHafeng 303dd78c54 feat(aia): Protocol Agent MVP complete with one-click generation and Word export
- 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
2026-01-25 19:16:36 +08:00

74 lines
844 B
SQL

-- 在 platform_schema.users 中创建 mock 用户
-- 用于 PKB 等模块的测试
-- 首先需要一个默认租户
INSERT INTO platform_schema.tenants (id, code, name, type, status, created_at, updated_at)
VALUES (
'tenant-mock-001',
'mock-tenant',
'测试租户',
'INTERNAL',
'ACTIVE',
NOW(),
NOW()
)
ON CONFLICT (id) DO NOTHING;
-- 创建 mock 用户
INSERT INTO platform_schema.users (
id,
phone,
email,
password,
is_default_password,
name,
role,
status,
tenant_id,
kb_quota,
kb_used,
is_trial,
created_at,
updated_at
)
VALUES (
'user-mock-001',
'13800000000',
'mock@test.com',
'$2b$10$mockhashedpassword123456789',
true,
'测试用户',
'USER',
'active',
'tenant-mock-001',
3,
0,
false,
NOW(),
NOW()
)
ON CONFLICT (id) DO NOTHING;