diff --git a/src/main/resources/sql/20190521/add_menu.sql b/src/main/resources/sql/20190521/add_menu.sql index c1b1ad570..e92496310 100644 --- a/src/main/resources/sql/20190521/add_menu.sql +++ b/src/main/resources/sql/20190521/add_menu.sql @@ -1,14 +1,121 @@ -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1256, 1121, '0,1,86,717,1121,', 'hijack_file_strategy', '劫持文件', 4, '/proxy/fileHijack/list', '', '', 1, 'proxy:fileHijack:config', '1', '2019-05-09 11:16:20', '1', '2019-05-09 11:16:20', '', 1, NULL, 0, 0, 513); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1257, 1122, '0,1,150,750,1122,', 'hijack_file_strategy', '劫持文件', 422, '/proxy/fileHijack/list', '', '', 1, 'proxy:fileHijack:confirm', '1', '2019-05-09 14:58:10', '1', '2019-05-09 14:58:10', '', 1, NULL, 0, 0, 513); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1258, 1123, '0,1,151,865,1123,', 'hijack_file_strategy', '劫持文件', 35, '/proxy/fileHijack/list', '', '', 1, 'proxy:fileHijack:audit', '1', '2019-05-09 14:59:54', '1', '2019-05-09 14:59:54', '', 1, NULL, 0, 0, 513); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1260, 1121, '0,1,86,717,1121,', 'file_insert_script', '注入脚本文件', 4, '/proxy/fileInsertScript/list', '', '', 1, 'proxy:fileInsertScript:config', '1', '2019-05-09 16:03:58', '1', '2019-05-09 16:03:58', '', 1, NULL, 0, 0, 514); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1261, 1122, '0,1,150,750,1122,', 'file_insert_script', '注入脚本文件', 424, '/proxy/fileInsertScript/list', '', '', 1, 'proxy:fileInsertScript:confirm', '1', '2019-05-09 16:06:17', '1', '2019-05-09 16:06:17', '', 1, NULL, 0, 0, 514); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1262, 1123, '0,1,151,865,1123,', 'file_insert_script', '注入脚本文件', 37, '/proxy/fileInsertScript/list', '', '', 1, 'proxy:fileInsertScript:audit', '1', '2019-05-09 16:07:13', '1', '2019-05-09 16:07:13', '', 1, NULL, 0, 0, 514); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1263, 1121, '0,1,86,717,1121,', 'traffic_mirror_address', '流量转发目的地址', 8, '/proxy/fileTrafficMirror/list', '', '', 1, 'proxy:fileTrafficMirror:config', '1', '2019-05-09 16:03:58', '1', '2019-05-09 16:03:58', '', 1, NULL, 0, 0, 515); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1264, 1122, '0,1,150,750,1122,', 'traffic_mirror_address', '流量转发目的地址', 426, '/proxy/fileTrafficMirror/list', '', '', 1, 'proxy:fileTrafficMirror:confirm', '1', '2019-05-09 16:06:17', '1', '2019-05-09 16:06:17', '', 1, NULL, 0, 0, 515); -INSERT INTO sys_menu (`id`, `parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1265, 1123, '0,1,151,865,1123,', 'traffic_mirror_address', '流量转发目的地址', 39, '/proxy/fileTrafficMirror/list', '', '', 1, 'proxy:fileTrafficMirror:audit', '1', '2019-05-09 16:07:13', '1', '2019-05-09 16:07:13', '', 1, NULL, 0, 0, 515); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1121, '0,1,86,717,1121,', 'hijack_file_strategy', '鍔寔鏂囦欢', 4, '/proxy/fileHijack/list', '', '', 1, 'proxy:fileHijack:config', '1', '2019-05-09 11:16:20', '1', '2019-05-09 11:16:20', '', 1, NULL, 0, 0, 513); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1122, '0,1,150,750,1122,', 'hijack_file_strategy', '鍔寔鏂囦欢', 422, '/proxy/fileHijack/list', '', '', 1, 'proxy:fileHijack:confirm', '1', '2019-05-09 14:58:10', '1', '2019-05-09 14:58:10', '', 1, NULL, 0, 0, 513); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1123, '0,1,151,865,1123,', 'hijack_file_strategy', '鍔寔鏂囦欢', 35, '/proxy/fileHijack/list', '', '', 1, 'proxy:fileHijack:audit', '1', '2019-05-09 14:59:54', '1', '2019-05-09 14:59:54', '', 1, NULL, 0, 0, 513); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1121, '0,1,86,717,1121,', 'file_insert_script', '娉ㄥ叆鑴氭湰鏂囦欢', 4, '/proxy/fileInsertScript/list', '', '', 1, 'proxy:fileInsertScript:config', '1', '2019-05-09 16:03:58', '1', '2019-05-09 16:03:58', '', 1, NULL, 0, 0, 514); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1122, '0,1,150,750,1122,', 'file_insert_script', '娉ㄥ叆鑴氭湰鏂囦欢', 424, '/proxy/fileInsertScript/list', '', '', 1, 'proxy:fileInsertScript:confirm', '1', '2019-05-09 16:06:17', '1', '2019-05-09 16:06:17', '', 1, NULL, 0, 0, 514); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1123, '0,1,151,865,1123,', 'file_insert_script', '娉ㄥ叆鑴氭湰鏂囦欢', 37, '/proxy/fileInsertScript/list', '', '', 1, 'proxy:fileInsertScript:audit', '1', '2019-05-09 16:07:13', '1', '2019-05-09 16:07:13', '', 1, NULL, 0, 0, 514); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1121, '0,1,86,717,1121,', 'traffic_mirror_address', '娴侀噺杞彂鐩殑鍦板潃', 8, '/proxy/fileTrafficMirror/list', '', '', 1, 'proxy:fileTrafficMirror:config', '1', '2019-05-09 16:03:58', '1', '2019-05-09 16:03:58', '', 1, NULL, 0, 0, 515); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1122, '0,1,150,750,1122,', 'traffic_mirror_address', '娴侀噺杞彂鐩殑鍦板潃', 426, '/proxy/fileTrafficMirror/list', '', '', 1, 'proxy:fileTrafficMirror:confirm', '1', '2019-05-09 16:06:17', '1', '2019-05-09 16:06:17', '', 1, NULL, 0, 0, 515); +INSERT INTO sys_menu (`parent_id`, `parent_ids`, `code`, `name`, `sort`, `href`, `target`, `icon`, `is_show`, `permission`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`, `menu_bg`, `quick_action`, `is_top`, `function_id`) VALUES (1123, '0,1,151,865,1123,', 'traffic_mirror_address', '娴侀噺杞彂鐩殑鍦板潃', 39, '/proxy/fileTrafficMirror/list', '', '', 1, 'proxy:fileTrafficMirror:audit', '1', '2019-05-09 16:07:13', '1', '2019-05-09 16:07:13', '', 1, NULL, 0, 0, 515); -INSERT INTO function_service_dict (`dict_id`, `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (166, 513, 0, 1, 'monit', 643, 'hijack_file_strategy', '', 1, NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', 0, 1, ''); -INSERT INTO function_service_dict (`dict_id`, `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (167, 514, 0, 1, 'monit', 644, 'file_insert_script', '', 1, NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', 0, 1, ''); -INSERT INTO function_service_dict (`dict_id`, `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (168, 515, 0, 1, 'monit', 645, 'file_traffic_mirror', NULL, 1, NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', NULL, 0, 1, NULL); -INSERT INTO function_service_dict (`dict_id`, `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (169, 512, 0, 1, 'monit', 608, 'file_strategy', NULL, 1, NULL, '2019-05-17 11:46:48', NULL, '2019-05-17 11:46:51', NULL, 0, 1, NULL); +INSERT INTO function_service_dict (`function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (513, 0, 1, 'monit', 643, 'hijack_file_strategy', '', 1, NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', 0, 1, ''); +INSERT INTO function_service_dict (`function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (514, 0, 1, 'monit', 644, 'file_insert_script', '', 1, NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', 0, 1, ''); +INSERT INTO function_service_dict (`function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (515, 0, 1, 'monit', 645, 'file_traffic_mirror', NULL, 1, NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', NULL, 0, 1, NULL); +INSERT INTO function_service_dict (`function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`, `is_import`, `sort`, `config_do_log`) VALUES (512, 0, 1, 'monit', 608, 'file_strategy', NULL, 1, NULL, '2019-05-17 11:46:48', NULL, '2019-05-17 11:46:51', NULL, 0, 1, NULL); + + +ALTER TABLE proxy_file_strategy_cfg ADD cancel_request_id INT(11) NULL COMMENT '鍙栨秷瀹℃牳鏉ュ嚱'; + + +/*娉ㄥ叆鑴氭湰鏂囦欢*/ +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; +CREATE TABLE `pxy_profile_insert_scripts` ( + `cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '涓婚敭锛岃嚜澧', + `cfg_desc` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'profile_name', + `cfg_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `action` int(11) NULL DEFAULT NULL, + `is_valid` int(11) NOT NULL COMMENT '0鏃犳晥锛1鏈夋晥锛-1鍒犻櫎;1锛 鏈鏍告椂閰嶇疆鍙垹闄;2锛 瀹℃牳閫氳繃锛屾瀛楁缃1;3锛 鍙栨秷瀹℃牳閫氳繃锛屾瀛楁缃0', + `is_audit` int(11) NOT NULL COMMENT '0鏈鏍革紝1瀹℃牳閫氳繃锛2瀹℃牳鏈氳繃锛3鍙栨秷瀹℃牳閫氳繃;1锛 瀹℃牳鏈氳繃锛岄厤缃彲淇敼;2锛 瀹℃牳閫氳繃锛岄厤缃笉鍙垹闄わ紝鍙兘鍙栨秷瀹℃牳閫氳繃', + `creator_id` int(11) NOT NULL COMMENT '鍙栬嚜sys_user.id', + `create_time` datetime(0) NULL DEFAULT NULL, + `editor_id` int(11) NULL DEFAULT NULL COMMENT '鍙栬嚜sys_user.id', + `edit_time` datetime(0) NULL DEFAULT NULL, + `auditor_id` int(11) NULL DEFAULT NULL COMMENT '鍙栬嚜sys_user.id', + `audit_time` datetime(0) NULL DEFAULT NULL, + `service_id` int(11) NOT NULL COMMENT '鍙傝冪郴缁熶笟鍔$被鍨嬬鐞嗚〃', + `request_id` int(11) NOT NULL COMMENT '鍙栬嚜request_info.id', + `compile_id` int(11) NULL DEFAULT NULL COMMENT 'profile_id銆佸彇鑷湇鍔℃帴鍙h繑鍥炵殑maat閰嶇疆鐨勭紪璇慽d锛岄厤缃垵濮嬪叆搴撴椂鑾峰彇銆', + `is_area_effective` int(11) NOT NULL COMMENT '0鍚︼紝1鏄', + `classify` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鍒嗙被id锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', + `attribute` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鎬ц川id锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', + `lable` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鏍囩id,澶氫釜鐢ㄨ嫳鏂囬楀彿鍒嗛殧', + `area_effective_ids` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '澶氫釜鑻辨枃閫楀彿鍒嗛殧', + `function_id` int(11) NOT NULL, + `cfg_region_code` int(11) NULL DEFAULT NULL, + `format` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '鍐呭绫诲瀷锛屸渧ideo/mp4鈥 锛坋xe銆乤pk锛', + `path` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '鍌ㄥ瓨璺緞', + `cancel_request_id` int(11) NULL DEFAULT NULL COMMENT '鍙栨秷瀹℃牳鏉ュ嚱', + PRIMARY KEY (`cfg_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 46 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1; + +/*鍐呭鍔寔鏂囦欢*/ +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; +CREATE TABLE `pxy_profile_hijack_files` ( + `cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '涓婚敭锛岃嚜澧', + `cfg_desc` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'profile_name', + `cfg_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `action` int(11) NULL DEFAULT NULL, + `is_valid` int(11) NOT NULL COMMENT '0鏃犳晥锛1鏈夋晥锛-1鍒犻櫎;1锛 鏈鏍告椂閰嶇疆鍙垹闄;2锛 瀹℃牳閫氳繃锛屾瀛楁缃1;3锛 鍙栨秷瀹℃牳閫氳繃锛屾瀛楁缃0', + `is_audit` int(11) NOT NULL COMMENT '0鏈鏍革紝1瀹℃牳閫氳繃锛2瀹℃牳鏈氳繃锛3鍙栨秷瀹℃牳閫氳繃;1锛 瀹℃牳鏈氳繃锛岄厤缃彲淇敼;2锛 瀹℃牳閫氳繃锛岄厤缃笉鍙垹闄わ紝鍙兘鍙栨秷瀹℃牳閫氳繃', + `creator_id` int(11) NOT NULL COMMENT '鍙栬嚜sys_user.id', + `create_time` datetime(0) NULL DEFAULT NULL, + `editor_id` int(11) NULL DEFAULT NULL COMMENT '鍙栬嚜sys_user.id', + `edit_time` datetime(0) NULL DEFAULT NULL, + `auditor_id` int(11) NULL DEFAULT NULL COMMENT '鍙栬嚜sys_user.id', + `audit_time` datetime(0) NULL DEFAULT NULL, + `service_id` int(11) NOT NULL COMMENT '鍙傝冪郴缁熶笟鍔$被鍨嬬鐞嗚〃', + `request_id` int(11) NOT NULL COMMENT '鍙栬嚜request_info.id', + `compile_id` int(11) NULL DEFAULT NULL COMMENT 'profile_id銆佸彇鑷湇鍔℃帴鍙h繑鍥炵殑maat閰嶇疆鐨勭紪璇慽d锛岄厤缃垵濮嬪叆搴撴椂鑾峰彇銆', + `is_area_effective` int(11) NOT NULL COMMENT '0鍚︼紝1鏄', + `classify` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鍒嗙被id锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', + `attribute` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鎬ц川id锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', + `lable` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鏍囩id,澶氫釜鐢ㄨ嫳鏂囬楀彿鍒嗛殧', + `area_effective_ids` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '澶氫釜鑻辨枃閫楀彿鍒嗛殧', + `function_id` int(11) NOT NULL, + `cfg_region_code` int(11) NULL DEFAULT NULL, + `content_type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '鍐呭绫诲瀷锛屸渧ideo/mp4鈥 锛坋xe銆乤pk锛', + `path` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '鍌ㄥ瓨璺緞', + `cancel_request_id` int(11) NULL DEFAULT NULL COMMENT '鍙栨秷瀹℃牳鏉ュ嚱', + `content_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`cfg_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 58 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1; + +/*娴侀噺杞彂鐩殑鍦板潃*/ +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; +CREATE TABLE `pxy_profile_traffic_mirror` ( + `cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '涓婚敭锛岃嚜澧', + `cfg_desc` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'profile_name', + `cfg_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `action` int(11) NULL DEFAULT NULL, + `is_valid` int(11) NOT NULL COMMENT '0鏃犳晥锛1鏈夋晥锛-1鍒犻櫎;1锛 鏈鏍告椂閰嶇疆鍙垹闄;2锛 瀹℃牳閫氳繃锛屾瀛楁缃1;3锛 鍙栨秷瀹℃牳閫氳繃锛屾瀛楁缃0', + `is_audit` int(11) NOT NULL COMMENT '0鏈鏍革紝1瀹℃牳閫氳繃锛2瀹℃牳鏈氳繃锛3鍙栨秷瀹℃牳閫氳繃;1锛 瀹℃牳鏈氳繃锛岄厤缃彲淇敼;2锛 瀹℃牳閫氳繃锛岄厤缃笉鍙垹闄わ紝鍙兘鍙栨秷瀹℃牳閫氳繃', + `creator_id` int(11) NOT NULL COMMENT '鍙栬嚜sys_user.id', + `create_time` datetime(0) NULL DEFAULT NULL, + `editor_id` int(11) NULL DEFAULT NULL COMMENT '鍙栬嚜sys_user.id', + `edit_time` datetime(0) NULL DEFAULT NULL, + `auditor_id` int(11) NULL DEFAULT NULL COMMENT '鍙栬嚜sys_user.id', + `audit_time` datetime(0) NULL DEFAULT NULL, + `service_id` int(11) NOT NULL COMMENT '鍙傝冪郴缁熶笟鍔$被鍨嬬鐞嗚〃', + `request_id` int(11) NOT NULL COMMENT '鍙栬嚜request_info.id', + `compile_id` int(11) NULL DEFAULT NULL COMMENT 'profile_id銆佸彇鑷湇鍔℃帴鍙h繑鍥炵殑maat閰嶇疆鐨勭紪璇慽d锛岄厤缃垵濮嬪叆搴撴椂鑾峰彇銆', + `is_area_effective` int(11) NOT NULL COMMENT '0鍚︼紝1鏄', + `classify` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鍒嗙被id锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', + `attribute` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鎬ц川id锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', + `lable` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鏍囩id,澶氫釜鐢ㄨ嫳鏂囬楀彿鍒嗛殧', + `area_effective_ids` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '澶氫釜鑻辨枃閫楀彿鍒嗛殧', + `function_id` int(11) NOT NULL, + `cfg_region_code` int(11) NULL DEFAULT NULL, + `addr_list` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '鍦板潃鍒楄〃锛孞SON鏍煎紡锛寁lan鍜宮ac浜掓枼', + `addr_type` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'vlan锛宮ac', + `cancel_request_id` int(11) NULL DEFAULT NULL COMMENT '鍙栨秷瀹℃牳鏉ュ嚱', + PRIMARY KEY (`cfg_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 54 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file