Update ddl-init.sql

This commit is contained in:
silk 2026-06-01 14:52:20 +08:00
parent df6d259acb
commit e171f50903
1 changed files with 2 additions and 1 deletions

View File

@ -553,4 +553,5 @@ ALTER TABLE public.knowledge_processing_task ADD CONSTRAINT fk_kb_processing_use
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); 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 06:49:13.197555 +00:00', '$2b$12$h7PmwtfOD7tExH/a9U/52uqX5Ie8ohvuqauohxYlrRzaXOsF0i/US', false, false, 1, null, 'admin', false, true);
INSERT INTO public.enterprise (id, name, code, created_at, updated_at, ai_display_name) VALUES (1, '中垒数据', 'default', '2026-04-15 07:00:38.078412 +00:00', '2026-05-28 01:32:30.587646 +00:00', '火焱AI');