From e171f509030d51f26670419bdb1cd9ef5c3face8 Mon Sep 17 00:00:00 2001 From: silk Date: Mon, 1 Jun 2026 14:52:20 +0800 Subject: [PATCH] Update ddl-init.sql --- ddl-init.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddl-init.sql b/ddl-init.sql index dfc8fd3..467446c 100644 --- a/ddl-init.sql +++ b/ddl-init.sql @@ -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_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');