DROP TABLE IF EXISTS "public"."tbl_sys_app";
DROP SEQUENCE IF EXISTS "public"."tbl_sys_app_id_seq";
CREATE SEQUENCE "public"."tbl_sys_app_id_seq"
    INCREMENT 1
    MINVALUE  1
    MAXVALUE 2147483647
    START 1
    CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_app_id_seq" OWNER TO "postgres";

CREATE TABLE "public"."tbl_sys_app" (
    "id" int4 NOT NULL DEFAULT nextval('tbl_sys_app_id_seq'::regclass),
    "name" varchar(200) COLLATE "pg_catalog"."default",
    "entry" varchar(255) COLLATE "pg_catalog"."default",
    "create_time" timestamp(6),
    "update_time" timestamp(6)
)
;
ALTER TABLE "public"."tbl_sys_app" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_app"."id" IS '主键';
COMMENT ON COLUMN "public"."tbl_sys_app"."name" IS '应用名称';
COMMENT ON COLUMN "public"."tbl_sys_app"."entry" IS '基础地址';
COMMENT ON COLUMN "public"."tbl_sys_app"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_app"."update_time" IS '修改时间';
COMMENT ON TABLE "public"."tbl_sys_app" IS '系统应用';

ALTER SEQUENCE "public"."tbl_sys_app_id_seq"
    OWNED BY "public"."tbl_sys_app"."id";
SELECT setval('"public"."tbl_sys_app_id_seq"', 1, true);

ALTER TABLE "public"."tbl_sys_app" ADD CONSTRAINT "tbl_sys_app_pkey" PRIMARY KEY ("id");

INSERT INTO "public"."tbl_sys_app" ("id", "name", "entry", "create_time", "update_time") VALUES (1, '流程引擎', '10.0.100.52:8081/flow/', '2024-04-29 18:01:48.47', '2024-04-29 18:01:48.471');

ALTER TABLE "public"."tbl_sys_menu" ADD COLUMN "app_id" int4;
COMMENT ON COLUMN "public"."tbl_sys_menu"."app_id" IS '应用id';

INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1000, '动态表单', 1, 'dynamic_form', '/system/dynamic-form?path=/flow/dynamic-form', 1, 4, '2024-04-15 16:08:44.531108', '2024-04-15 16:08:44.531108', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '系统管理/动态表单', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1001, '流程设计', 1, 'system_workflow', '/system/workflow', 1, 5, '2024-04-15 16:12:00.044098', '2024-04-15 16:12:00.044098', 0, 0, NULL, 'f', '', 't', NULL, NULL, '0', 'f', '系统管理/流程设计', NULL, NULL);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1002, '流程设计', 1001, 'system_workflow_list', '/system/workflow/list?path=/flow/workflow/list', 1, 1, '2024-04-15 16:16:09.810104', '2024-04-15 16:16:09.810104', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '系统管理/流程设计/流程设计', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1003, '流程表达式', 1001, 'system_workflow_condition', '/system/workflow/condition?path=/flow/workflow/condition', 1, 2, '2024-04-15 16:16:46.271527', '2024-04-15 16:16:46.271527', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '系统管理/流程设计/流程表达式', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1004, '流程监听器', 1001, 'system_workflow_listener', '/system/workflow/listener?path=/flow/workflow/listener', 1, 4, '2024-04-15 16:17:13.816801', '2024-04-15 16:17:13.816801', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '系统管理/流程设计/流程监听器', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1005, '常用按钮', 1001, 'system_workflow_buttons', '/system/workflow/buttons?path=/flow/workflow/buttons', 1, 99, '2024-04-15 16:17:54.193898', '2024-04-15 16:17:54.193898', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '系统管理/流程设计/常用按钮', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1006, '事件中心', 0, 'event', '/flow/event', 1, 7, '2024-04-15 16:18:42.812076', '2024-04-15 16:18:42.812076', 0, 0, '#custom-icon-shixing_line', 'f', NULL, 't', NULL, NULL, '0', 'f', '/事件中心', NULL, NULL);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1007, '待签事件', 1006, 'event_unsigned', '/flow/event/unsigned', 1, 1, '2024-04-15 16:19:49.484982', '2024-04-15 16:19:49.484982', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/待签事件', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1008, '我的事件', 1006, 'event_process', '/flow/event/process', 1, 3, '2024-04-15 16:20:28.397501', '2024-04-15 16:20:28.397501', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/我的事件', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1009, '待办事件', 1006, 'event_todo', '/flow/event/todo', 1, 4, '2024-04-15 16:24:44.12419', '2024-04-15 16:24:44.12419', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/待办事件', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1010, '已办事件', 1006, 'event_finished', '/flow/event/finished', 1, 5, '2024-04-15 16:25:50.486699', '2024-04-15 16:25:50.486699', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/已办事件', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1011, '所有事件', 1006, 'event_all', '/flow/event/all', 1, 6, '2024-04-15 16:26:18.883107', '2024-04-15 16:26:18.883107', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/所有事件', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1012, '延期申请', 1006, 'event_overdueCheck', '/flow/event/overdueCheck', 1, 7, '2024-04-15 16:26:53.739891', '2024-04-15 16:26:53.739891', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/延期申请', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1013, '抄送事项', 1006, 'event_copyItem', '/flow/event/copyItem', 1, 2, '2024-04-15 16:27:24.329883', '2024-04-15 16:27:24.329883', 0, 0, NULL, 'f', '/Qiankun', 't', NULL, NULL, '5', 'f', '/事件中心/抄送事项', NULL, 1);
INSERT INTO "public"."tbl_sys_menu" ("id", "name", "pid", "permission", "url", "type", "sort_order", "create_time", "update_time", "del_flag", "del_key", "icon", "is_hidden", "component", "layout", "redirect", "target", "category", "is_default", "path_name", "enabled", "app_id") VALUES (1014, '应用管理', 269, 'sys_app', '/system/user/app', 1, 4, '2024-04-29 16:46:02.541518', '2024-04-29 16:46:02.541518', 0, 0, NULL, 'f', '/SysManagement/App', 't', NULL, NULL, '1', 'f', '系统管理/账户管理/应用管理', NULL, NULL);

SELECT setval('"public"."tbl_sys_menu_id_seq"', 1014, true);
