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
23 lines
391 B
SQL
23 lines
391 B
SQL
-- 在 public.users 中创建 mock 用户
|
|
-- 用于 RVW 模块的测试
|
|
|
|
INSERT INTO public.users (id, email, password, name, role, status, kb_quota, kb_used, is_trial, created_at, updated_at)
|
|
VALUES (
|
|
'user-mock-001',
|
|
'mock@test.com',
|
|
'$2b$10$mockhashedpassword123456789',
|
|
'测试用户',
|
|
'user',
|
|
'active',
|
|
3,
|
|
0,
|
|
false,
|
|
NOW(),
|
|
NOW()
|
|
)
|
|
ON CONFLICT (id) DO NOTHING;
|
|
|
|
|
|
|
|
|