update sql

This commit is contained in:
silk 2026-06-01 14:38:09 +08:00
parent 5590c98d9e
commit df6d259acb
3 changed files with 6 additions and 2 deletions

View File

@ -74,4 +74,4 @@ override-dependencies = [
"onnxruntime==1.23.2", "onnxruntime==1.23.2",
# opentelemetry 旧版 _pb2 与 protobuf 4+ 不兼容chromadb 导入链会崩 # opentelemetry 旧版 _pb2 与 protobuf 4+ 不兼容chromadb 导入链会崩
"protobuf>=3.20,<4.21", "protobuf>=3.20,<4.21",
] ]

View File

@ -552,4 +552,5 @@ ALTER TABLE public.knowledge_processing_task ADD CONSTRAINT fk_kb_processing_use
-- public.user_list foreign keys -- public.user_list foreign keys
ALTER TABLE public.user_list ADD CONSTRAINT user_list_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id) ON DELETE SET NULL; ALTER TABLE public.user_list ADD CONSTRAINT user_list_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id) ON DELETE SET NULL;
ALTER TABLE public.user_list ADD CONSTRAINT user_list_enterprise_id_fkey FOREIGN KEY (enterprise_id) REFERENCES public.enterprise(id); ALTER TABLE public.user_list ADD CONSTRAINT user_list_enterprise_id_fkey FOREIGN KEY (enterprise_id) REFERENCES public.enterprise(id);
INSERT INTO public.user_list (id, username, email, phone, github_id, github_username, github_avatar_url, github_access_token, github_token_expires_at, display_name, avatar_url, bio, is_active, email_verified, created_at, updated_at, last_login_at, hashed_password, is_search, is_reasoner, enterprise_id, department_id, role, is_first_login, allow_kb_upload) VALUES (1, 'admin1', 'admin1@test.example', '13800000001', null, null, null, null, null, '系统管理员', null, null, true, true, '2026-05-29 06:16:42.499092 +00:00', '2026-05-29 06:16:42.499092 +00:00', '2026-06-01 03:46:03.161874 +00:00', '$2b$12$cD1HutB0mb9mrunLIByFrezFX6gkKEf0euAI7JF31dTIg47p9ArCa', false, false, 1, null, 'admin', false, true);

View File

@ -99,3 +99,6 @@ uv run uvicorn main:app --reload --host 0.0.0.0 --port 7862
--- ---
管理员密码
admin1 Test@123456