INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1589823150509592578, 1419273666632498176, 'BI', '数据大屏', '30009', 'ant-design:dot-chart-outlined', 'http://localhost:4100', 'IFrame', NULL, '1111', 1, 1, 1, 1, 1, 0, 9, '111', 1, '2022-11-08 11:32:31', 1000000000000000000, '2023-05-31 11:01:15', 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1625770113225646082, 0, 'chatGPT', 'chatGPT', 'chatGPT', 'ant-design:bar-chart-outlined', '/chat-gpt', '/demo/chatgpt/index', NULL, NULL, 1, 1, 1, 1, 0, 0, 22, NULL, 1, '2023-02-15 16:12:55', NULL, NULL, 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1672802215783436290, 0, '计划任务', '计划任务', 'job', NULL, 'http://192.168.0.124:7700/#/welcome?appName=xjrsoft-boot&password=123456', 'IFrame', 0, '', 1, 1, 1, 1, 1, NULL, 11, '', 1000000000000000000, '2023-06-25 11:01:42', NULL, NULL, 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1700041673784094722, 1419276797351038976, '租户管理', '租户管理', 'tenant', 'ant-design:idcard-outlined', '/tenant', '/system/tenant/index', 0, NULL, 1, 1, 1, 1, 0, NULL, 11, NULL, 3000000000000000000, '2023-09-08 15:01:35', NULL, NULL, 0, 1, 1, NULL);

ALTER TABLE xjr_dictionary_item
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_login_config
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_logo_config
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_menu_button
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_menu
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_menu_column
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_menu_form
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_subsystem
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_desktop_relation
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_department MODIFY COLUMN `department_type` int NULL COMMENT '部门类型：3：总部，2：板块，1：公司，0：部门';

ALTER TABLE xjr_workflow_schema
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_schema_auth
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_schema_draft
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_schema_history
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_app_authorize
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_app_func_design
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_app_menu
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_app_menu_button
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_app_menu_column
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_app_menu_form
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_app_page_design
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_code_schema
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_databaselink
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_datasource
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_file
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_form_history
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_form_release
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_form_template
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_professional_report
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_report
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_report_relation
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_visual
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_category
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_config
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_db
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_homerelation
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_map
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_release
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_visual_releaserelation
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_workflow_approve_record
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_circulated
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_delegate
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_draft
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_extra
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_form_relation
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_record
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_workflow_special_menu
  ADD COLUMN tenant_id bigint COMMENT '租户id';


ALTER TABLE xjr_liteflow_chain
  ADD COLUMN tenant_id bigint COMMENT '租户id';

ALTER TABLE xjr_liteflow_script
  ADD COLUMN tenant_id bigint COMMENT '租户id';



ALTER TABLE xjr_tenant
  ADD COLUMN root_department_id bigint COMMENT '租户根部门id';