- 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
74 lines
844 B
SQL
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|