-- afc_application
DELETE FROM AFC_APPLICATION WHERE ID like 'dqms%';
INSERT INTO AFC_APPLICATION (ID, NAME, CODE, TYPES, SECRET, URL, DESCRIPTION, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, EXTRA, IS_SHARE, ACCESS_TOKEN, REFRESH_TOKEN, OPEN_TYPE, MICRO_URL, MICRO_MARK, IS_LOWCODE, BPS_TENANT_ID, DIMENSION_CODE) VALUES ('dqms-66', '数据质量', 'QUALITY', null, '215acf6db2844663a0c1c0bdac287441', null, null, 'sys_tenant', '2022-07-18 21:44:33', '2022-07-19 02:22:44', '64', '64', null, null, '0', 5, 30, 'microApp', '[{"id":1663312107142,"microMark":"quality","microUrl":"/"}]', 'quality_ui', null, null, null);

-- afc_res_group
DELETE FROM AFC_RES_GROUP WHERE ID like 'dqms%';
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-446', '默认分组', 'dqms-66_public_group', 'public_group', null, null, 'dqms-66', null, 'sys_tenant', '2022-07-18 21:44:33', null, '64', null, 0, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-449', '质量定义', 'define', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:52:15', null, '64', null, 1, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-450', '质量调度', 'dispatch', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:52:32', null, '64', null, 2, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-451', '质量监控', 'monitor', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:52:48', null, '64', null, 3, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-452', '质量结果', 'result', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:53:04', null, '64', null, 4, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-453', '质量警告', 'alarm', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:53:20', null, '64', null, 5, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-454', '问题管理', 'problem', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:53:40', null, '64', null, 6, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-455', '质量分析', 'dqAnalysis', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:53:59', null, '64', null, 7, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-456', '数据源管理', 'dataOperation', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-07-19 03:54:17', null, '64', null, 8, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-457', '安全审计', 'securityAudit', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-12-20 14:05:49', null, 'admin', null, 9, null);
INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED) VALUES ('dqms-458', '产品信息', 'productsInfo', null, null, null, 'dqms-66', null, 'sys_tenant', '2022-12-20 14:05:58', null, 'admin', null, 10, null);

DELETE FROM AFC_RES_GROUP WHERE ID LIKE 'quality%';

INSERT INTO AFC_RES_GROUP (ID, NAME, CODE, TYPES, RES_TYPE, DESCRIPTION, APP_ID, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, SORT_NO, IS_FIXED)
VALUES ('quality-11', '主数据平台变量', 'mdm_platform_vars', 'platform', 'systemVariable', null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, null, null, 1, null),
       ('quality-12', 'AFC变量', 'afc_platform_vars', 'platform', 'systemVariable', null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, null, null, 1, null);

-- afc_menu
DELETE FROM AFC_MENU WHERE ID like 'dqms%';
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-442', '数据质量', 'quality', 'dqms-1885', null, 9, '0', null, null, 'root', 'sys_tenant', '2022-07-18 21:43:27', '2022-07-19 01:51:08', '64', '64', null, null, 'Newuserzone', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-364', '质量调度', 'dispatch', null, null, 2, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:28:07', '2022-07-28 11:26:06', '64', '64', null, null, 'dingdan', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-365', '质量监控', 'monitor', null, null, 3, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:28:41', '2022-07-28 11:26:19', '64', '64', null, null, 'fenlei', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-366', '质量结果', 'result', null, null, 4, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:29:03', '2022-07-28 11:26:24', '64', '64', null, null, 'dingdan', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-367', '质量告警', 'alarm', null, null, 5, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:29:21', '2022-07-28 13:56:10', '64', '64', null, null, 'remind-fill', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-368', '问题管理', 'problemManage', null, null, 6, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:29:50', '2022-07-28 13:55:54', '64', '64', null, null, 'rightalignment', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-369', '质量分析', 'dqAnalysis', null, null, 7, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:30:07', '2022-07-28 13:57:33', '64', '64', null, null, 'dingdan', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-370', '数据源管理', 'dataOperation', null, null, 8, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 17:30:25', '2022-07-28 13:58:11', '64', '64', null, null, 'jifen_2', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-443', '质量定义', 'define', null, null, 1, '0', null, null, 'dqms-442', 'sys_tenant', '2022-07-19 01:44:21', '2022-07-28 11:24:41', '64', '64', null, null, 'fenlei_2', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-372', '检核规则分组', 'group', 'dqms-1887', null, 2, '1', null, null, 'dqms-443', 'sys_tenant', '2022-07-19 17:31:38', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-373', '检核规则管理', 'checkRuleManage', 'dqms-1888', null, 3, '1', null, null, 'dqms-443', 'sys_tenant', '2022-07-19 17:32:08', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-374', '指标信息维护', 'indexinfo', 'dqms-1889', null, 4, '1', null, null, 'dqms-443', 'sys_tenant', '2022-07-19 17:32:33', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-375', 'HBase规则维护', 'ruleinfo', 'dqms-1890', null, 5, '1', null, null, 'dqms-443', 'sys_tenant', '2022-07-19 17:33:03', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-376', '通用检核配置', 'commoncheckconf', 'dqms-1891', null, 6, '1', null, null, 'dqms-443', 'sys_tenant', '2022-07-19 17:33:27', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-377', '频度管理', 'frequency', 'dqms-1892', null, 1, '1', null, null, 'dqms-364', 'sys_tenant', '2022-07-19 17:39:59', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-378', '日历管理', 'calendar', 'dqms-1893', null, 2, '1', null, null, 'dqms-364', 'sys_tenant', '2022-07-19 17:40:28', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-379', '检核任务管理', 'scheduleInfo', 'dqms-1894', null, 3, '1', null, null, 'dqms-364', 'sys_tenant', '2022-07-19 17:41:01', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-380', '检核规则监控', 'checkRuleMonitor', 'dqms-1895', null, 1, '1', null, null, 'dqms-365', 'sys_tenant', '2022-07-19 17:42:57', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-461', '检核任务监控', 'scheduleMonitor', 'dqms-1896', null, 2, '1', null, null, 'dqms-365', 'sys_tenant', '2022-07-19 17:43:19', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-462', '检核规则日志', 'checkRuleLogs', 'dqms-1897', null, 3, '1', null, null, 'dqms-365', 'sys_tenant', '2022-07-19 17:43:53', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-463', '检核结果', 'checkRuleResult', 'dqms-1898', null, 1, '1', null, null, 'dqms-366', 'sys_tenant', '2022-07-19 17:44:29', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-464', '通用检核详情', 'commoncheckDetail', 'dqms-1899', null, 2, '1', null, null, 'dqms-366', 'sys_tenant', '2022-07-19 17:44:54', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-465', '告警配置', 'alarmConfigInfo', 'dqms-1900', null, 1, '1', null, null, 'dqms-367', 'sys_tenant', '2022-07-19 17:45:34', null, '64', null, null, null, '', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-466', '告警结果', 'alarmRecord', 'dqms-1901', null, 2, '1', null, null, 'dqms-367', 'sys_tenant', '2022-07-19 17:45:55', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-468', '问题处理', 'problem', 'dqms-1903', null, 1, '1', null, null, 'dqms-368', 'sys_tenant', '2022-07-19 17:46:45', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-469', '知识库', 'knowledgeinfo', 'dqms-1904', null, 2, '1', null, null, 'dqms-368', 'sys_tenant', '2022-07-19 17:47:10', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-470', '检核指标分析', 'checkIndexAnalysis', 'dqms-1905', null, 1, '1', null, null, 'dqms-369', 'sys_tenant', '2022-07-19 17:48:04', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-471', '检核规则分析', 'checkRuleAnalysis', 'dqms-1906', null, 2, '1', null, null, 'dqms-369', 'sys_tenant', '2022-07-19 17:48:51', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-472', '质量分析报告', 'checkDataAnalysis', 'dqms-1907', null, 3, '1', null, null, 'dqms-369', 'sys_tenant', '2022-07-19 17:49:16', '2022-07-19 17:49:28', '64', '64', null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-473', '数据源维护', 'dataSourceInfo', 'dqms-1908', null, 1, '1', null, null, 'dqms-370', 'sys_tenant', '2022-07-19 17:50:04', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-474', '数据源配置管理', 'config', 'dqms-1909', null, 2, '1', null, null, 'dqms-370', 'sys_tenant', '2022-07-19 17:50:24', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-475', 'HBase表映射管理', 'Hbaseconfig', 'dqms-1910', null, 3, '1', null, null, 'dqms-370', 'sys_tenant', '2022-07-19 17:50:45', null, '64', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-43', '操作日志', 'logger', 'dqms-221', null, 3, '1', null, null, 'dqms-81', 'sys_tenant', '2022-12-20 14:18:06', null, 'admin', null, null, null, 'jiandu', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-44', '质量评分', 'checkDataScore', 'dqms-222', null, 4, '1', null, null, 'dqms-369', 'sys_tenant', '2022-12-28 15:47:43', null, 'admin', null, null, null, null, null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-81', '安全审计', 'securityAudit', null, null, 10, '0', null, null, 'dqms-442', 'sys_tenant', '2023-01-12 17:27:26', null, 'admin', null, null, null, 'jiandu', null, null, null);
INSERT INTO AFC_MENU (ID, NAME, CODE, RES_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED, OPEN_TYPE, MENU_ICON, MENU_TYPE, BUSINESS_OBJ_ID, IS_NEW_WINDOW_OPEN) VALUES ('dqms-82', '产品信息', 'productsInfo', 'dqms-223', null, 10, '1', 0, null, 'dqms-442', 'sys_tenant', '2023-01-12 17:27:26', null, 'admin', null, null, null, 'jiandu', null, null, null);

-- afc_role
DELETE FROM AFC_ROLE WHERE ID like 'dqms%';
INSERT INTO AFC_ROLE (ID, NAME, CODE, DESCRIPTION, ROLE_TPL_ID, TYPES, BUSINESS_OBJ_ID, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-92', '数据质量管理员', 'dqms-admin', '', null, 'platform', null, 'sys_tenant', '2022-07-19 03:37:45', null, '64', null, '0');

-- afc_system_variable
DELETE FROM AFC_SYSTEM_VARIABLE WHERE RES_GROUP_ID LIKE 'quality%';

INSERT INTO AFC_SYSTEM_VARIABLE (ID, CODE, NAME, VALUE, RES_GROUP_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, CREATE_USER, UPDATE_USER, TENANT_ID, CREATE_TIME, UPDATE_TIME, TYPES, APP_ID)
VALUES ('quality-11', 'mdm.server.url', 'mdm_server_url', 'http://10.15.15.130:29898', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-12', 'mdm.server.token', 'mdm_server_token', '501143620fac471bb1ec2840e09f091d', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-13', 'mdm.frequency.name', 'mdm_frequency_name', 'mdm_frequency', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-14', 'mdm.index.id', 'mdm_index_id', '775617973328220160', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-15', 'mdm.datasource.id', 'mdm_datasource_id', '775620198016421888', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-16', 'mdm.output.datasource.id', 'mdm_output_datasource_id', '775874119687409664', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-17', 'mdm.output.datasource.databaseName', 'mdm_output_datasource_databaseName', 'dqms_result_store', 'quality-11', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-18', 'afc.server.url', 'afc_server_url', 'http://10.15.15.136:28085', 'quality-12', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null),
       ('quality-19', 'afc.server.token', 'afc_server_token', 'fe98f2cbf76444169ef209d2f59a9967', 'quality-12', '0', null, null, null, null, 'sys_tenant', '2022-12-30 12:00:00', null, 'platform', null);

DELETE FROM AFC_API_TOKEN WHERE TOKEN = 'c0101b6109e8478784ceb8897159fe2b';
INSERT INTO AFC_API_TOKEN (ID, TOKEN, USER_ID, CREATE_TIME, EXPIRE_TIME, REMARK) VALUES ('1', 'c0101b6109e8478784ceb8897159fe2b', '1', '2024-01-25 20:19:02', '2030-12-31 23:59:59', null);

DELETE FROM XXL_JOB_GROUP WHERE ID IN (9);

SET IDENTITY_INSERT XXL_JOB_GROUP ON

INSERT INTO XXL_JOB_GROUP (ID, APP_NAME, TITLE, ADDRESS_TYPE, ADDRESS_LIST) VALUES (9, 'quality-executor', 'quality执行器', 0, '');

SET IDENTITY_INSERT XXL_JOB_GROUP OFF

-- 7.2GA
-- AFC_RESOURCE
DELETE FROM AFC_RESOURCE WHERE ID like 'dqms%';
INSERT INTO afc_resource (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-365', '检核工作台 - 检核任务新增（页面）', 'dqms-f-method-config-add-task', 'function', 'dqms-66', 'dqms-449', null, '页面tree', null, null, 'sys_tenant', '2023-04-19 17:50:03', null, 'admin', null, null);
INSERT INTO afc_resource (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-366', '检核工作台 - 检核任务修改（页面）', 'dqms-f-method-config-edit-task', 'function', 'dqms-66', 'dqms-449', null, '页面tree', null, null, 'sys_tenant', '2023-04-19 17:50:33', null, 'admin', null, null);
INSERT INTO afc_resource (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-367', '检核工作台 - 检核任务删除（页面）', 'dqms-f-method-config-del-task', 'function', 'dqms-66', 'dqms-449', null, '页面tree', null, null, 'sys_tenant', '2023-04-19 17:50:56', null, 'admin', null, null);
INSERT INTO afc_resource (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-368', '检核工作台 - 检核任务启用（页面）', 'dqms-f-method-config-start-task', 'function', 'dqms-66', 'dqms-449', null, '页面tree', null, null, 'sys_tenant', '2023-04-19 17:51:38', null, 'admin', null, null);
INSERT INTO afc_resource (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-369', '检核工作台 - 检核任务停用（页面）', 'dqms-f-method-config-stop-task', 'function', 'dqms-66', 'dqms-449', null, '页面tree', null, null, 'sys_tenant', '2023-04-19 17:52:09', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1885', '首页', 'quality_ui_index', 'url', 'dqms-66', 'dqms-446', null, null, null, '{"openType":"microApp","mark":"index","url":null,"params":null,"afcenterPath":"http://localhost:9000/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 01:25:05', '2022-09-16 15:39:41', '64', 'fran', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1887', '检核规则分组', 'group', 'url', 'dqms-66', 'dqms-449', null, null, null, '{"openType":"microApp","mark":"define/group","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:56:56', '2022-09-16 15:12:34', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1888', '检核规则管理', 'checkRuleManage', 'url', 'dqms-66', 'dqms-449', null, null, null, '{"openType":"microApp","mark":"define/checkRuleManage","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:57:14', '2022-09-16 15:12:50', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1889', '指标信息维护', 'indexinfo', 'url', 'dqms-66', 'dqms-449', null, null, null, '{"openType":"microApp","mark":"define/indexinfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:57:33', '2022-09-16 15:12:54', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1890', 'HBase规则维护', 'ruleinfo', 'url', 'dqms-66', 'dqms-449', null, null, null, '{"openType":"microApp","mark":"define/ruleinfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:58:01', '2022-09-16 15:12:57', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1891', '通用检核配置', 'commoncheckconf', 'url', 'dqms-66', 'dqms-449', null, null, null, '{"openType":"microApp","mark":"define/commoncheckconf","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:58:20', '2022-09-16 15:15:01', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1892', '频度管理', 'frequency', 'url', 'dqms-66', 'dqms-450', null, null, null, '{"openType":"microApp","mark":"dispatch/frequency","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:58:42', '2022-09-16 15:13:13', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1893', '日历管理', 'calendar', 'url', 'dqms-66', 'dqms-450', null, null, null, '{"openType":"microApp","mark":"dispatch/calendar","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:58:57', '2022-09-16 15:13:17', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1894', '检核任务管理', 'scheduleInfo', 'url', 'dqms-66', 'dqms-450', null, null, null, '{"openType":"microApp","mark":"dispatch/scheduleInfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:59:14', '2022-09-16 15:13:20', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1895', '检核规则监控', 'checkRuleMonitor', 'url', 'dqms-66', 'dqms-451', null, null, null, '{"openType":"microApp","mark":"monitor/checkRuleMonitor","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:59:34', '2022-09-16 15:13:25', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1896', '检核任务监控', 'scheduleMonitor', 'url', 'dqms-66', 'dqms-451', null, null, null, '{"openType":"microApp","mark":"monitor/scheduleMonitor","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 03:59:51', '2022-09-16 15:13:28', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1897', '检核规则日志', 'checkRuleLogs', 'url', 'dqms-66', 'dqms-451', null, null, null, '{"openType":"microApp","mark":"monitor/checkRuleLogs","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:00:07', '2022-09-16 15:13:31', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1898', '检核结果', 'checkRuleResult', 'url', 'dqms-66', 'dqms-452', null, null, null, '{"openType":"microApp","mark":"result/checkRuleResult","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:00:24', '2022-09-16 15:13:36', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1899', '通用检核详情', 'commoncheckDetail', 'url', 'dqms-66', 'dqms-452', null, null, null, '{"openType":"microApp","mark":"result/commoncheckDetail","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:00:40', '2022-09-16 15:13:39', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1900', '告警配置', 'alarmConfigInfo', 'url', 'dqms-66', 'dqms-453', null, null, null, '{"openType":"microApp","mark":"alarm/alarmConfigInfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:00:58', '2022-09-16 15:13:43', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1901', '告警结果', 'alarmRecord', 'url', 'dqms-66', 'dqms-453', null, null, null, '{"openType":"microApp","mark":"alarm/alarmRecord","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:01:12', '2022-09-16 15:13:47', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1903', '问题处理', 'problem', 'url', 'dqms-66', 'dqms-454', null, null, null, '{"openType":"microApp","mark":"problem/problem","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:01:45', '2022-09-16 15:13:53', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1904', '知识库', 'knowledgeinfo', 'url', 'dqms-66', 'dqms-454', null, null, null, '{"openType":"microApp","mark":"problem/knowledgeinfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:02:00', '2022-09-16 15:13:57', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1905', '检核指标分析', 'checkIndexAnalysis', 'url', 'dqms-66', 'dqms-455', null, null, null, '{"openType":"microApp","mark":"dqAnalysis/checkIndexAnalysis","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:02:19', '2022-09-16 15:14:05', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1906', '检核规则分析', 'checkRuleAnalysis', 'url', 'dqms-66', 'dqms-455', null, null, null, '{"openType":"microApp","mark":"dqAnalysis/checkRuleAnalysis","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:02:37', '2022-09-16 15:14:08', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1907', '质量分析报告', 'checkDataAnalysis', 'url', 'dqms-66', 'dqms-455', null, null, null, '{"openType":"microApp","mark":"dqAnalysis/checkDataAnalysis","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:02:52', '2022-09-16 15:14:11', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1908', '数据源维护', 'dataSourceInfo', 'url', 'dqms-66', 'dqms-456', null, null, null, '{"openType":"microApp","mark":"dataOperation/dataSourceInfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:03:15', '2022-09-16 15:14:14', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1909', '数据源配置管理', 'config', 'url', 'dqms-66', 'dqms-456', null, null, null, '{"openType":"microApp","mark":"dataOperation/config","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:05:13', '2022-09-16 15:14:17', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-1910', 'HBase表映射管理', 'Hbaseconfig', 'url', 'dqms-66', 'dqms-456', null, null, null, '{"openType":"microApp","mark":"dataOperation/Hbaseconfig","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', 'sys_tenant', '2022-07-19 04:05:28', '2022-09-16 15:14:20', '64', 'wangyue', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-601', '数据源新增', 'dqms-dataSource-add', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2022-09-28 11:18:05', '2022-09-29 09:59:23', 'wangyue', 'fran', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-602', '数据源修改', 'dqms-dataSource-mod', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2022-09-28 11:18:57', null, 'wangyue', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-605', '数据源配置新增', 'dqms-dataSource-config-add', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2022-09-28 14:10:38', null, 'wangyue', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-606', '数据源配置修改', 'dqms-dataSource-config-mod', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2022-09-28 14:10:55', null, 'wangyue', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-221', '操作日志', 'logger', 'url', 'dqms-66', 'dqms-457', null, null, null, '{"openType":"microApp","mark":"securityAudit/logger","url":null,"params":null,"microUrl":null,"microMark":"quality","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"quality","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', 'sys_tenant', '2022-12-20 14:09:21','2022-12-20 14:15:46', 'admin','admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-222', '质量评分', 'checkDataScore', 'url', 'dqms-66', 'dqms-455', null, null, null, '{"openType":"microApp","mark":"dqAnalysis/checkDataScore","url":null,"params":null,"microUrl":null,"microMark":"quality","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"quality","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', 'sys_tenant', '2022-12-28 15:40:38', '2022-12-28 16:54:59', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-241', '告警配置 - 新增告警', 'dqms-f-alarm-config-add', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'sys_tenant', '2023-04-10 23:42:32', '2023-04-17 22:08:44', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-242', '告警配置 - 删除告警', 'dqms-f-alarm-config-delete-by-id', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'sys_tenant', '2023-04-10 23:43:38', '2023-04-17 22:08:51', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-244', '告警配置 - 编辑告警', 'dqms-f-alarm-config-update', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'sys_tenant', '2023-04-10 23:44:23', '2023-04-17 22:08:31', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-245', '告警配置 - 状态修改', 'dqms-f-alarm-config-update-state', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'sys_tenant', '2023-04-10 23:45:02', '2023-04-17 22:08:24', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-246', '告警结果 - 关闭', 'dqms-f-alarm-record-close-remind', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'sys_tenant', '2023-04-10 23:58:00', '2023-04-17 22:08:10', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-247', '告警结果 - 批量关闭', 'dqms-f-alarm-record-batch-modify-state', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'sys_tenant', '2023-04-10 23:58:52', '2023-04-17 22:08:17', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-248', '数据源配置新增', 'dqms-f-ds-data-config-save', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:00:53', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-250', '数据源配置修改', 'dqms-f-ds-data-config-update', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:02:32', '2023-04-11 00:02:47', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-251', '数据源配置删除', 'dqms-f-ds-data-config-delete', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:03:21', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-252', '数据源新增', 'dqms-f-ds-data-source-add', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:12:04', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-253', '数据源删除', 'dqms-f-ds-data-source-delete', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:12:20', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-254', '数据源修改', 'dqms-f-ds-data-source-update', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:12:37', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-255', '数据源 - 测试连接', 'dqms-f-ds-data-source-test-connect', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:13:02', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-256', 'hbase表映射配置删除', 'dqms-f-hbase-table-mapping-del', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:14:15', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-257', 'hbase表映射配置新增', 'dqms-f-hbase-table-mapping-save', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:14:34', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-258', 'hbase映射表创建', 'dqms-f-hbase-table-mapping-create-table', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'sys_tenant', '2023-04-11 00:15:01', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-259', '日历 - 新增', 'dqms-f-calendar-add', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-11 00:15:41', '2023-04-14 00:13:43', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-260', '日历 - 修改', 'dqms-f-calendar-update', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-11 00:15:57', '2023-04-14 00:13:54', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-261', '日历 - 删除', 'dqms-f-calendar-delete-by-name', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-11 00:19:54', '2023-04-14 00:14:01', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-263', '检核结果转问题', 'dqms-f-res-check-save-problem', 'function', 'dqms-66', 'dqms-452', null, null, null, null, 'sys_tenant', '2023-04-11 00:52:37', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-264', '检核结果 - 问题关闭', 'dqms-f-res-check-save-close-problem', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-11 00:53:12', '2023-04-14 23:13:14', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-350', '检核结果列表导出', 'dqms-f-res-check-excel-export', 'function', 'dqms-66', 'dqms-452', null, null, null, '将检核结果列表导出为xlsx', 'sys_tenant', '2023-06-07 00:42:44', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-267', '检核结果下载', 'dqms-f-res-check-download-ftp', 'function', 'dqms-66', 'dqms-452', null, null, null, null, 'sys_tenant', '2023-04-11 17:44:52', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-266', '检核规则立即执行', 'dqms-f-res-check-immediate-exe', 'function', 'dqms-66', 'dqms-451', null, null, null, null, 'sys_tenant', '2023-04-11 17:42:58', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-268', '检核规则监控状态重置', 'dqms-f-res-check-re-set-method-monitor', 'function', 'dqms-66', 'dqms-451', null, null, null, null, 'sys_tenant', '2023-04-11 17:45:49', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-282', '检核规则管理 - 新增', 'dqms-f-method-config-add-tradition-method', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-11 22:52:32', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-265', '检核规则管理 - 删除', 'dqms-f-res-check-del-by-config-sid', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-11 17:41:36', '2023-04-11 22:52:47', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-290', '检核规则管理 - 状态 -> 停用', 'dqms-f-method-config-stop-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-12 23:40:00', '2023-04-12 23:41:00', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-291', '检核规则管理 - 状态 -> 启用', 'dqms-f-method-config-start-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-12 23:40:33', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-310', '检核规则管理 - 导入（页面）', 'dqms-f-method-config-import', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:44:49', '2023-04-14 02:21:44', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-343', '检核规则管理 - 修改', 'dqms-f-method-config-edit-tradition-method', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-18 01:20:28', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-297', '检核规则管理 - hbase导入模板下载', 'dqms-f-method-config-down-for-ct', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-13 01:00:19', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-298', '检核规则管理 - hbase导入', 'dqms-f-method-config-import-data-for-ct', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-13 01:03:25', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-299', '检核规则管理 - jdbc导入模板下载', 'dqms-f-x-check-config-sql-template', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-13 02:26:00', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-300', '检核规则管理 - jdbc导入', 'dqms-f-x-check-config-import-data', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-13 02:26:18', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-301', '频度 - 新增', 'dqms-f-frequency-add', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-14 00:14:20', '2023-04-14 00:14:32', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-302', '频度 - 修改', 'dqms-f-frequency-update', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-14 00:14:50', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-303', '频度 - 删除', 'dqms-f-frequency-delete-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-14 00:15:11', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-304', '通用检核 - 新增', 'dqms-f-general-config-add-general-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:14:31', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-305', '通用检核 - 数据对照新增', 'dqms-f-general-config-add-general-config-for-data-compare', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:15:02', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-306', '通用检核 - 删除', 'dqms-f-general-config-delete-by-ids', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:15:26', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-307', '通用检核 - 修改', 'dqms-f-general-config-update-general-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:15:44', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-308', '通用检核 - 状态修改', 'dqms-f-general-config-update-general-config-state', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:16:05', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-309', '通用检核 - 新增（页面）', 'dqms-f-general-config-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 01:16:26', '2023-04-14 02:21:34', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-342', '分组 - 删除（页面）', 'dqms-f-group-delete', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-17 23:46:19', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-311', '分组 - 新增', 'dqms-f-group-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:22:06', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-312', '分组 - 批量删除分组信息', 'dqms-f-group-delete-batch', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:22:24', '2023-04-14 02:23:32', 'admin', 'admin', null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-314', '分组 - 修改', 'dqms-f-group-update-relation', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:24:04', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-315', '分组 - 规则/指标指定分组', 'dqms-f-group-add-relation-batch', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:26:06', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-317', '指标 - 新增', 'dqms-f-index-info-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:27:04', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-318', '指标 - 删除', 'dqms-f-index-info-delete', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:27:21', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-319', '指标 - 更新', 'dqms-f-index-info-update', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 02:27:37', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-320', '知识库 - 保存（页面）', 'dqms-f-knowledge-info-save', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-14 22:03:25', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-321', '知识库 - 新增', 'dqms-f-knowledge-info-add', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-14 22:03:48', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-322', '知识库 - 修改', 'dqms-f-knowledge-info-update', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-14 22:04:06', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-324', '问题处理 - 添加反馈', 'dqms-f-option-save-feedback', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-14 23:04:04', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-325', '问题处理 - 新增', 'dqms-f-option-save-option', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-14 23:04:30', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-326', '问题处理 - 关闭', 'dqms-f-option-update-state', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'sys_tenant', '2023-04-14 23:04:57', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-327', 'hbase规则维护 - 新增', 'dqms-f-rule-info-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 23:28:44', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-328', 'hbase规则维护 - 删除', 'dqms-f-rule-info-delete', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 23:29:05', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-329', 'hbase规则维护 - 修改', 'dqms-f-rule-info-update', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'sys_tenant', '2023-04-14 23:29:31', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-330', '检核任务管理 - 新增', 'dqms-f-schedule-config-add', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:04:17', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-331', '检核任务管理 - 删除', 'dqms-f-schedule-config-delete', 'function', 'dqms-66', 'dqms-450', null, '检核工作台使用', null, null, 'sys_tenant', '2023-04-15 00:05:19', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-332', '检核任务管理 - 修改', 'dqms-f-schedule-config-update', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:06:04', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-333', '检核任务管理 - 启用', 'dqms-f-schedule-config-start-schedule', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:06:25', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-334', '检核任务管理 - 停用', 'dqms-f-schedule-config-stop-schedule', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:06:55', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-335', '检核任务管理 - 批量删除', 'dqms-f-schedule-config-delete-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:07:23', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-336', '检核任务管理 - 批量启用', 'dqms-f-schedule-config-start-schedule-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:08:08', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-337', '检核任务管理 - 批量停用', 'dqms-f-schedule-config-stop-schedule-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:08:27', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-338', '检核任务管理 - 立即执行', 'dqms-f-schedule-config-start-schedule-now', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'sys_tenant', '2023-04-15 00:09:17', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-341', '检核任务管理 - 状态切换（页面）', 'dqms-f-schedule-config-update-state', 'function', 'dqms-66', 'dqms-450', null, '启用\\停用', null, null, 'sys_tenant', '2023-04-15 00:14:46', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-373', '质量分析报告 - 下载pdf', null, 'function', 'dqms-66', 'dqms-455', null, null, null, null, 'sys_tenant', '2023-04-15 00:14:46', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-374', '质量分析报告 - 下载word', null, 'function', 'dqms-66', 'dqms-455', null, null, null, null, 'sys_tenant', '2023-04-15 00:14:46', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-375', '质量分析报告 - 导出excel', null, 'function', 'dqms-66', 'dqms-455', null, null, null, null, 'sys_tenant', '2023-04-15 00:14:46', null, 'admin', null, null);
INSERT INTO AFC_RESOURCE (ID, NAME, CODE, TYPES, APP_ID, RES_GROUP_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_FIXED) VALUES ('dqms-223', '产品信息', 'productsInfo', 'url', 'dqms-66', 'dqms-458', null, null, null, '{"openType":"microApp","mark":"products-info/info","url":null,"params":null,"microUrl":null,"microMark":"quality","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"quality","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', 'sys_tenant', '2022-12-20 14:09:21','2022-12-20 14:15:46', 'admin','admin', null);

-- afc_r_res_role
DELETE FROM AFC_R_RES_ROLE WHERE ID like 'dqms%';
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-425', 'dqms-223', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1202', 'dqms-300', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3353', 'dqms-1885', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3355', 'dqms-1887', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3356', 'dqms-1888', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3357', 'dqms-1889', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3358', 'dqms-1890', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3359', 'dqms-1891', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3360', 'dqms-1892', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3921', 'dqms-1893', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3922', 'dqms-1894', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3923', 'dqms-1895', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3924', 'dqms-1896', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3925', 'dqms-1897', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3926', 'dqms-1898', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3927', 'dqms-1899', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3928', 'dqms-1900', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3929', 'dqms-1901', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3931', 'dqms-1903', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3932', 'dqms-1904', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3933', 'dqms-1905', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3934', 'dqms-1906', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3935', 'dqms-1907', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3936', 'dqms-1908', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3937', 'dqms-1909', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-3938', 'dqms-1910', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-2265', 'dqms-601', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-2266', 'dqms-602', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-2267', 'dqms-605', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-2268', 'dqms-606', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-424', 'dqms-221', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-423', 'dqms-222', 'url', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-822', 'dqms-350', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1116', 'dqms-265', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1118', 'dqms-282', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1125', 'dqms-290', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1126', 'dqms-291', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1132', 'dqms-297', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1133', 'dqms-298', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1134', 'dqms-299', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1135', 'dqms-304', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1136', 'dqms-305', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1137', 'dqms-306', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1138', 'dqms-307', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1139', 'dqms-308', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1140', 'dqms-309', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1141', 'dqms-310', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1142', 'dqms-311', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1143', 'dqms-312', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1145', 'dqms-314', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1146', 'dqms-315', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1147', 'dqms-317', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1148', 'dqms-318', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1149', 'dqms-319', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1150', 'dqms-327', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1151', 'dqms-328', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1152', 'dqms-329', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1153', 'dqms-342', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1154', 'dqms-343', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1155', 'dqms-259', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1156', 'dqms-260', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1157', 'dqms-261', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1158', 'dqms-301', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1159', 'dqms-302', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1160', 'dqms-303', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1161', 'dqms-330', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1162', 'dqms-331', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1163', 'dqms-332', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1164', 'dqms-333', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1165', 'dqms-334', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1166', 'dqms-335', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1167', 'dqms-336', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1168', 'dqms-337', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1169', 'dqms-338', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1170', 'dqms-341', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1171', 'dqms-266', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1172', 'dqms-268', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1173', 'dqms-263', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1174', 'dqms-267', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1175', 'dqms-241', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1176', 'dqms-242', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1177', 'dqms-243', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1178', 'dqms-244', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1179', 'dqms-245', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1180', 'dqms-246', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1181', 'dqms-247', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1182', 'dqms-264', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1183', 'dqms-320', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1184', 'dqms-321', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1185', 'dqms-322', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1186', 'dqms-324', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1187', 'dqms-325', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1188', 'dqms-326', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1189', 'dqms-248', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1190', 'dqms-250', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1191', 'dqms-251', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1192', 'dqms-252', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1193', 'dqms-253', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1194', 'dqms-254', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1195', 'dqms-255', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1196', 'dqms-256', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1197', 'dqms-257', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1198', 'dqms-258', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-449', 'dqms-316', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1199', 'dqms-373', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1200', 'dqms-374', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1201', 'dqms-375', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1207', 'dqms-365', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1203', 'dqms-366', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1204', 'dqms-367', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1205', 'dqms-368', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
INSERT INTO AFC_R_RES_ROLE (ID, RES_ID, RES_TYPE, ROLE_ID, ROLE_TYPE, BUSINESS_OBJ_ID, BUSINESS_OBJ_INST_ID, TENANT_ID, IS_FIXED) VALUES ('dqms-1206', 'dqms-369', 'function', 'dqms-92', 'platform', null, null, 'sys_tenant', null);
DELETE FROM XXL_JOB_INFO WHERE ID IN (1);
INSERT INTO XXL_JOB_INFO ( JOB_GROUP, JOB_DESC, ADD_TIME, UPDATE_TIME, AUTHOR, ALARM_EMAIL, SCHEDULE_TYPE, SCHEDULE_CONF, MISFIRE_STRATEGY, EXECUTOR_ROUTE_STRATEGY, EXECUTOR_HANDLER, EXECUTOR_PARAM, EXECUTOR_BLOCK_STRATEGY, EXECUTOR_TIMEOUT, EXECUTOR_FAIL_RETRY_COUNT, GLUE_TYPE, GLUE_SOURCE, GLUE_REMARK, GLUE_UPDATETIME, CHILD_JOBID, TRIGGER_STATUS, TRIGGER_LAST_TIME, TRIGGER_NEXT_TIME) VALUES ( 9, '告警结果生成任务', '2024-02-27 01:45:14', '2024-02-27 01:45:14', 'admin', null, 'CRON', '0 0/30 * * * ?', 'DO_NOTHING', 'FIRST', 'alarmRecordJobHandler', null, 'SERIAL_EXECUTION', 0, 0, 'BEAN', null, null, '2024-02-27 01:45:14', null, 0, 0, 0);

-- ----------------------------
-- Table structure for ck_alarm_config
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_alarm_config]') AND type IN ('U'))
DROP TABLE [dbo].[ck_alarm_config]
    GO

CREATE TABLE [dbo].[ck_alarm_config] (
    [SID] bigint  NOT NULL,
    [ALARM_NAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [THRESHOLD_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [THRESHOLD_RELATION] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [THRESHOLD_VALUE] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [ALARM_LEVEL] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [STATE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_TIME] datetime2(7)  NOT NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [REMARK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [messagetype] int  NULL,
    [STANDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_alarm_config] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、数值 2、百分比',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_config',
    'COLUMN', N'THRESHOLD_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'gt代表> eq代表= lt代表<',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_config',
    'COLUMN', N'THRESHOLD_RELATION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、一般 2、中等 3、严重',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_config',
    'COLUMN', N'ALARM_LEVEL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、新增 2、生效 3、挂起',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_config',
    'COLUMN', N'STATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_ALARM_CONFIG',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_config'
    GO


    -- ----------------------------
-- Records of ck_alarm_config
-- ----------------------------

-- ----------------------------
-- Table structure for ck_alarm_record
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_alarm_record]') AND type IN ('U'))
DROP TABLE [dbo].[ck_alarm_record]
    GO

CREATE TABLE [dbo].[ck_alarm_record] (
    [SID] bigint  NOT NULL,
    [RELATION_ID] bigint  NULL,
    [RELATION_TABLE] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [ALARM_SID] bigint  NULL,
    [CHECK_LOG_SID] bigint  NULL,
    [CONTENT] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
    [message_send_result] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [RECEIVED_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [RECEIPT_TIME] datetime2(7)  NULL,
    [STATE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_alarm_record] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'TABLE:表检核、ITEM:nosql检核、COMMON:通用检核',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_record',
    'COLUMN', N'RELATION_TABLE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_ALARM_CONFIG SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_record',
    'COLUMN', N'ALARM_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_CHECK_LOG SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_record',
    'COLUMN', N'CHECK_LOG_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'提醒、不再提醒',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_record',
    'COLUMN', N'STATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1删除，0不删除（默认0）',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_record',
    'COLUMN', N'DELETED'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'告警记录表',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_alarm_record'
    GO


    -- ----------------------------
-- Records of ck_alarm_record
-- ----------------------------

-- ----------------------------
-- Table structure for ck_calendar
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_calendar]') AND type IN ('U'))
DROP TABLE [dbo].[ck_calendar]
    GO

CREATE TABLE [dbo].[ck_calendar] (
    [CK_ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CK_NAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CK_DESC] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CK_YEAR] int  NOT NULL,
    [CK_DATELIST] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_calendar] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of ck_calendar
-- ----------------------------

-- ----------------------------
-- Table structure for ck_check_log
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_check_log]') AND type IN ('U'))
DROP TABLE [dbo].[ck_check_log]
    GO

CREATE TABLE [dbo].[ck_check_log] (
    [SID] bigint  NOT NULL,
    [METHOD_CONFIG_ID] bigint  NULL,
    [CHECK_TIME] datetime2(7)  NULL,
    [CHECK_END_TIME] datetime2(7)  NULL,
    [CHECK_DURATION] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [JOB_ID] bigint  NULL,
    [JOB_LOG_ID] bigint  NULL,
    [CHECK_STATUS] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESULT_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [ERROR_REMARK] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_check_log] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of ck_check_log
-- ----------------------------

-- ----------------------------
-- Table structure for ck_check_log_latest
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_check_log_latest]') AND type IN ('U'))
DROP TABLE [dbo].[ck_check_log_latest]
    GO

CREATE TABLE [dbo].[ck_check_log_latest] (
    [METHOD_CONFIG_ID] bigint  NOT NULL,
[LOG_SID] bigint  NULL
)
    GO

ALTER TABLE [dbo].[ck_check_log_latest] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of ck_check_log_latest
-- ----------------------------

-- ----------------------------
-- Table structure for ck_check_result
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_check_result]') AND type IN ('U'))
DROP TABLE [dbo].[ck_check_result]
    GO

CREATE TABLE [dbo].[ck_check_result] (
    [SID] bigint  NOT NULL,
    [INDEX_SID] bigint  NULL,
    [CHECK_FREQUENCY] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_TIME] datetime2(7)  NULL,
    [CHECK_END_TIME] datetime2(7)  NULL,
    [CHECK_DURATION] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [ERROR_NUM] bigint  NULL,
    [SUM_NUM] bigint  NULL,
    [RESOURCE_SID] bigint  NULL,
    [ITEM_SID] bigint  NULL,
    [ERROR_KEYWORD] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [ERROR_VALUE] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [ERROR_REMARK] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_DATE] datetime2(7)  NULL,
    [ERROR_SOURCE1] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [ERROR_SOURCE2] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [ERROR_SOURCE3] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [METHOD_CONFIG_ID] bigint  NOT NULL,
    [JOB_ID] bigint  NULL,
    [JOB_LOG_ID] bigint  NULL,
    [CHECK_RESULT_URL] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_STATUS] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_RESULT_PATH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_RESULT] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_check_result] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'主键',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'所属指标',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'INDEX_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核频率',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_FREQUENCY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核时间',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_TIME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核结束时间',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_END_TIME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核时长',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_DURATION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'错误总数',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ERROR_NUM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'总次数',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'SUM_NUM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'RESOURCE_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源项id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ITEM_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'错误数据关键字',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ERROR_KEYWORD'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'错误数据关键字',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ERROR_VALUE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'归属日期',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'SOURCE_DATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'错误数据来源目录',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ERROR_SOURCE1'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'错误数据来源资源',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ERROR_SOURCE2'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'错误数据来源定位',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'ERROR_SOURCE3'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'关联"检核规则配置表"的主键',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'METHOD_CONFIG_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'任务id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'JOB_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'日志id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'JOB_LOG_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核结果文件下载地址',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_RESULT_URL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核状态 1 成功 0失败',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_STATUS'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核结果上传路径',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_RESULT_PATH'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核结果上传路径',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_check_result',
    'COLUMN', N'CHECK_RESULT'
    GO


    -- ----------------------------
-- Records of ck_check_result
-- ----------------------------

-- ----------------------------
-- Table structure for ck_check_result_latest
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_check_result_latest]') AND type IN ('U'))
DROP TABLE [dbo].[ck_check_result_latest]
    GO

CREATE TABLE [dbo].[ck_check_result_latest] (
    [METHOD_CONFIG_ID] bigint  NOT NULL,
    [JOB_ID] bigint  NULL,
    [MAX_JOB_LOG_ID] bigint  NULL,
    [MAX_CHECK_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_check_result_latest] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of ck_check_result_latest
-- ----------------------------

-- ----------------------------
-- Table structure for ck_frequency
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_frequency]') AND type IN ('U'))
DROP TABLE [dbo].[ck_frequency]
    GO

CREATE TABLE [dbo].[ck_frequency] (
    [NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [INTERVALNUM] int  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [EXPRESSION] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_frequency] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'如果是类型是周期性，间隔不允许为空，默认为1',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_frequency',
    'COLUMN', N'INTERVALNUM'
    GO


    -- ----------------------------
-- Records of ck_frequency
-- ----------------------------

-- ----------------------------
-- Table structure for ck_general_config
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_general_config]') AND type IN ('U'))
DROP TABLE [dbo].[ck_general_config]
    GO

CREATE TABLE [dbo].[ck_general_config] (
    [SID] bigint  NOT NULL,
    [CONFIG_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CONFIG_NAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STATE] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_TIME] datetime2(7)  NOT NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [REMARK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STANDBY] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [SCHEDULE_ID] bigint  NULL,
    [SCHEDULE_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [PRINCIPAL] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [ALARM_ID] bigint  NULL,
    [CHECK_CONFIG] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_general_config] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、数据抖动 2、数据偏移 3、数据堆积 4、数据对照',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config',
    'COLUMN', N'CONFIG_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、新建 2、启用  3、停用',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config',
    'COLUMN', N'STATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'责任人',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config',
    'COLUMN', N'PRINCIPAL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_GENERAL_CONFIG',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config'
    GO


    -- ----------------------------
-- Records of ck_general_config
-- ----------------------------

-- ----------------------------
-- Table structure for ck_general_config_detail
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_general_config_detail]') AND type IN ('U'))
DROP TABLE [dbo].[ck_general_config_detail]
    GO

CREATE TABLE [dbo].[ck_general_config_detail] (
    [SID] bigint  NOT NULL,
    [CONFIG_ID] bigint  NOT NULL,
    [RESOURCE_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESOURCE_ID] bigint  NULL,
    [DATA_SOURCE_NAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [INSTANCE_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_CODE] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [EXT_CONDITION] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [UP_THRESHOLD] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [DOWN_THRESHOLD] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [PERIOD] int  NULL,
    [PERIOD_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_ID] bigint  NULL,
    [DATA_SOURCE_SID] bigint  NULL,
    [SCHEMA_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_general_config_detail] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与通用检核规则配置表SID关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'CONFIG_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的数据资源编码（RESOURCE_NAME）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'RESOURCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的主键SID关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'RESOURCE_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与DS_RESOURCE_ITEM的INSTANCE_CODE关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'INSTANCE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的数据资源项标识（ITEM_CODE）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'ITEM_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的元数据项名称（ITEM_NAME）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'ITEM_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的数据资源编码（TABLE_CODE）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'TABLE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、天 2、小时 3、分钟',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail',
    'COLUMN', N'PERIOD_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_GENERAL_CONFIG_DETAIL',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_config_detail'
    GO


    -- ----------------------------
-- Records of ck_general_config_detail
-- ----------------------------

-- ----------------------------
-- Table structure for ck_general_result
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_general_result]') AND type IN ('U'))
DROP TABLE [dbo].[ck_general_result]
    GO

CREATE TABLE [dbo].[ck_general_result] (
    [SID] bigint  NOT NULL,
    [CONFIG_ID] bigint  NOT NULL,
    [AVERAGE_VALUE] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [UP_THRESHOLD] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [DOWN_THRESHOLD] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [JOB_ID] bigint  NULL,
    [JOB_LOG_ID] bigint  NULL,
    [LOG_MESSAGE] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [COUNT_OUT_OF_RANGE] bigint  NULL
    )
    GO

ALTER TABLE [dbo].[ck_general_result] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'关联通用检核规则配置表主键SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result',
    'COLUMN', N'CONFIG_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_GENERAL_RESULT',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result'
    GO


    -- ----------------------------
-- Records of ck_general_result
-- ----------------------------

-- ----------------------------
-- Table structure for ck_general_result_detail
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_general_result_detail]') AND type IN ('U'))
DROP TABLE [dbo].[ck_general_result_detail]
    GO

CREATE TABLE [dbo].[ck_general_result_detail] (
    [SID] bigint  NOT NULL,
    [RESULT_SID] bigint  NOT NULL,
    [DATA_SOURCE_NAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESOURCE_ID] bigint  NULL,
    [RESOURCE_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_CODE] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [ACTUAL_VALUE] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [LINE_NUM] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [INSTANCE_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [EXT_CONDITION] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_ID] bigint  NULL,
    [DATA_SOURCE_SID] bigint  NULL,
    [SCHEMA_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_general_result_detail] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'关联通用检核结果表的SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result_detail',
    'COLUMN', N'RESULT_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的数据资源编码（TABLE_CODE）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result_detail',
    'COLUMN', N'TABLE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的主键SID关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result_detail',
    'COLUMN', N'RESOURCE_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的数据资源编码（RESOURCE_NAME）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result_detail',
    'COLUMN', N'RESOURCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的数据资源项标识（SID）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result_detail',
    'COLUMN', N'ITEM_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的元数据项名称（ITEM_NAME）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_general_result_detail',
    'COLUMN', N'ITEM_NAME'
    GO


    -- ----------------------------
-- Records of ck_general_result_detail
-- ----------------------------

-- ----------------------------
-- Table structure for ck_group
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_group]') AND type IN ('U'))
DROP TABLE [dbo].[ck_group]
    GO

CREATE TABLE [dbo].[ck_group] (
    [SID] bigint  NOT NULL,
    [GROUP_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPPER_GROUP] bigint  NULL,
    [DESCRIPTION] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [UPPER_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_group] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'父节点id，一级节点为空',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_group',
    'COLUMN', N'UPPER_GROUP'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'简称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_group',
    'COLUMN', N'UPPER_NAME'
    GO


    -- ----------------------------
-- Records of ck_group
-- ----------------------------

-- ----------------------------
-- Table structure for ck_group_relation
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_group_relation]') AND type IN ('U'))
DROP TABLE [dbo].[ck_group_relation]
    GO

CREATE TABLE [dbo].[ck_group_relation] (
    [CONFIGSID] bigint  NOT NULL,
    [CONFIGTYPE] int  NOT NULL,
    [GROUPSID] bigint  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_group_relation] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1,检核规则，2，通用检核配置',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_group_relation',
    'COLUMN', N'CONFIGTYPE'
    GO


    -- ----------------------------
-- Records of ck_group_relation
-- ----------------------------

-- ----------------------------
-- Table structure for ck_index_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_index_info]') AND type IN ('U'))
DROP TABLE [dbo].[ck_index_info]
    GO

CREATE TABLE [dbo].[ck_index_info] (
    [SID] bigint  NOT NULL,
    [INDEX_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [INDEX_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [INDEX_LEVEL] nvarchar(2) COLLATE Chinese_PRC_CI_AS  NULL,
    [PARENT_SID] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
    [INDEX_WEIGHT] bigint  NULL,
    [REMARK] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [ALARM_ID] bigint  NULL,
    [ALARM_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_index_info] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'主键',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'指标代码',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'INDEX_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'指标名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'INDEX_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核类型',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'CHECK_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'指标级别',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'INDEX_LEVEL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'上级指标ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'PARENT_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'权重（百分制）',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'INDEX_WEIGHT'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'告警信息ID,关联告警信息id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'ALARM_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'告警名称,关联告警信息名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info',
    'COLUMN', N'ALARM_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核指标表',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_info'
    GO


    -- ----------------------------
-- Records of ck_index_info
-- ----------------------------

-- ----------------------------
-- Table structure for ck_index_weight_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_index_weight_info]') AND type IN ('U'))
DROP TABLE [dbo].[ck_index_weight_info]
    GO

CREATE TABLE [dbo].[ck_index_weight_info] (
    [SID] bigint  NOT NULL,
    [INDEX_SID] bigint  NULL,
    [INDEX_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [START_VALUE] bigint  NULL,
    [END_VALUE] bigint  NULL,
    [SCORE] bigint  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_index_weight_info] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'主键',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info',
    'COLUMN', N'SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'标准主键SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info',
    'COLUMN', N'INDEX_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'指标名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info',
    'COLUMN', N'INDEX_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'起始值',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info',
    'COLUMN', N'START_VALUE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'结束值',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info',
    'COLUMN', N'END_VALUE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'分数',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info',
    'COLUMN', N'SCORE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'标准权值设置表',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_index_weight_info'
    GO


    -- ----------------------------
-- Records of ck_index_weight_info
-- ----------------------------

-- ----------------------------
-- Table structure for ck_knowledge_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_knowledge_info]') AND type IN ('U'))
DROP TABLE [dbo].[ck_knowledge_info]
    GO

CREATE TABLE [dbo].[ck_knowledge_info] (
    [SID] bigint  NOT NULL,
    [TITLE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CONTENT] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [TARGET] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [PREVIEW] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [READNUM] bigint  NULL
    )
    GO

ALTER TABLE [dbo].[ck_knowledge_info] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of ck_knowledge_info
-- ----------------------------

-- ----------------------------
-- Table structure for ck_knowledge_log
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_knowledge_log]') AND type IN ('U'))
DROP TABLE [dbo].[ck_knowledge_log]
    GO

CREATE TABLE [dbo].[ck_knowledge_log] (
    [SID] bigint  NOT NULL,
    [KNOWLEDGE_SID] bigint  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_knowledge_log] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of ck_knowledge_log
-- ----------------------------

-- ----------------------------
-- Table structure for ck_method_config
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_method_config]') AND type IN ('U'))
DROP TABLE [dbo].[ck_method_config]
    GO

CREATE TABLE [dbo].[ck_method_config] (
    [SID] bigint  NOT NULL,
    [NAME] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_METHOD] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESOURCE_ID] bigint  NULL,
    [RESOURCE_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_ID] bigint  NULL,
    [ITEM_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [INSTANCE_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [FULLSQL] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
    [WHERESQL] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
    [NUMSQL] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [INDEX_ID] bigint  NULL,
    [INDEX_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [INDEX_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [SCHEDULE_ID] bigint  NULL,
    [SCHEDULE_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [CONFIG_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_TPL] int  NULL,
    [CHECK_CONFIG] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_ALARM] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [ALARM_ID] bigint  NULL,
    [ALARM_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [ALARM_TIME] datetime2(7)  NULL,
    [STATE] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_TIME] datetime2(7)  NOT NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [REMARK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STANDBY] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [SHOW_FIELD] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_SOURCE_NAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_SOURCE_SID] bigint  NULL,
    [RESOURCE_TYPE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SCHEMA_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [PRINCIPAL] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SINK_MODE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_FROM] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_method_config] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'保留字段',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、SQL检核 2、NOSQL检核',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'CHECK_METHOD'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的主键SID关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'RESOURCE_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的数据资源编码（RESOURCE_NAME）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'RESOURCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的数据资源项标识（SID）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'ITEM_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的元数据项编码（ITEM_CODE）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'ITEM_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产数据项（DA_RESOURCE_ITEM）表中的元数据项名称（ITEM_NAME）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'ITEM_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与资产信息表（DA_RESOURCE_INFO)表的数据资源编码（TABLE_CODE）关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'TABLE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'与DS_RESOURCE_ITEM的INSTANCE_CODE关联',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'INSTANCE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'根据前端配置的信息，组装成的完整的SQL 如果条件中存在{CheckField}占位符，则需要替换为相应的字段名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'FULLSQL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'SQL配置方式中，用户输入的where的SQL语句',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'WHERESQL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'指标id（SQL检核配置需要写入）',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'INDEX_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、可视化配置   2、SQL配置',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'CONFIG_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核模板',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'CHECK_TPL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检查配置JSON',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'CHECK_CONFIG'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、自定义告警  0、默认使用检核指标配置的告警 默认是0',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'IS_ALARM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、新建 2、启用 3、停用',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'STATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'显示字段',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'SHOW_FIELD'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据源名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'DATA_SOURCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据源SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'DATA_SOURCE_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源类型',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'RESOURCE_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'责任人',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'PRINCIPAL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'结果输出方式',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'SINK_MODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核规则创建来源, 默认为NULL',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config',
    'COLUMN', N'DATA_FROM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'此表用于配置检核规则（即原检核方法配置）CK_METHOD_CONFIG',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config'
    GO


    -- ----------------------------
-- Records of ck_method_config
-- ----------------------------

-- ----------------------------
-- Table structure for ck_method_config_course
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_method_config_course]') AND type IN ('U'))
DROP TABLE [dbo].[ck_method_config_course]
    GO

CREATE TABLE [dbo].[ck_method_config_course] (
    [SID] bigint  NOT NULL,
    [METHOD_CONFIG_ID] bigint  NULL,
    [OPT] nchar(2) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [INSTANCE_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [WILDCARD] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [ACTUAL_VALUE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [STARTTIME] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [ENDTIME] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [DICT_ID] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_ID] bigint  NULL,
    [ITEM_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_method_config_course] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'&&且 ||或',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config_course',
    'COLUMN', N'OPT'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'前缀匹配、后缀匹配、全模糊匹配、等于、不等于、包含、不包含、大于、大于等于、小于、小于等于、区间（包括边界）、区间（不包括边界）、区间（包含前边界）、区间（包含后边界）',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config_course',
    'COLUMN', N'WILDCARD'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'记录SQL检核配置过程的表。主要是记录可视化配置的信息',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_config_course'
    GO


    -- ----------------------------
-- Records of ck_method_config_course
-- ----------------------------

-- ----------------------------
-- Table structure for ck_method_item
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_method_item]') AND type IN ('U'))
DROP TABLE [dbo].[ck_method_item]
    GO

CREATE TABLE [dbo].[ck_method_item] (
    [SID] bigint  NOT NULL,
    [CONFIG_SID] bigint  NULL,
    [INDEX_SID] bigint  NULL,
    [PARENT_SID] bigint  NULL,
    [OPT] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [RULE_SID] bigint  NULL,
    [EXPRESSION] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [IDENTIFIER] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [CHECK_MODE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [REMARK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STANDBY] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_method_item] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据项ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_item',
    'COLUMN', N'CONFIG_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'指标ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_item',
    'COLUMN', N'INDEX_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'父级ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_item',
    'COLUMN', N'PARENT_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'规则ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_item',
    'COLUMN', N'RULE_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'CK_METHOD_ITEM',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_method_item'
    GO


    -- ----------------------------
-- Records of ck_method_item
-- ----------------------------

-- ----------------------------
-- Table structure for ck_result_detail
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_result_detail]') AND type IN ('U'))
DROP TABLE [dbo].[ck_result_detail]
    GO

CREATE TABLE [dbo].[ck_result_detail] (
    [SID] bigint  NOT NULL,
    [RESULTID] bigint  NULL,
    [CHECK_COLUMN] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN1] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN2] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN3] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN4] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN5] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN6] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN7] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN8] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN9] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN10] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN11] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN12] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN13] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN14] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN15] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN16] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN17] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN18] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN19] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN20] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN21] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN22] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN23] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN24] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN25] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN26] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN27] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN28] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN29] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN30] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN31] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN32] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN33] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLUMN34] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_result_detail] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'预留字段1',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail',
    'COLUMN', N'COLUMN1'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'预留字段2',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail',
    'COLUMN', N'COLUMN2'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'预留字段3',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail',
    'COLUMN', N'COLUMN3'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'预留字段4',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail',
    'COLUMN', N'COLUMN4'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'预留字段5',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail',
    'COLUMN', N'COLUMN5'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1字段名，2字段对应的值',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail',
    'COLUMN', N'TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核结果明细表 CK_RESULT_DETAIL',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_detail'
    GO


    -- ----------------------------
-- Records of ck_result_detail
-- ----------------------------

-- ----------------------------
-- Table structure for ck_result_options
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_result_options]') AND type IN ('U'))
DROP TABLE [dbo].[ck_result_options]
    GO

CREATE TABLE [dbo].[ck_result_options] (
    [SID] bigint  NOT NULL,
    [CHECK_METHOD] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [RESULT_SID] bigint  NOT NULL,
    [OPTION_SID] bigint  NOT NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [REMARK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STANDBY] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_result_options] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、SQL检核 2、NOSQL检核',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_options',
    'COLUMN', N'CHECK_METHOD'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'关联damp库下的PO_OPTIONS表的SID',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_options',
    'COLUMN', N'OPTION_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'检核结果与问题的对应关系表',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_result_options'
    GO


    -- ----------------------------
-- Records of ck_result_options
-- ----------------------------

-- ----------------------------
-- Table structure for ck_rule_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_rule_info]') AND type IN ('U'))
DROP TABLE [dbo].[ck_rule_info]
    GO

CREATE TABLE [dbo].[ck_rule_info] (
    [SID] bigint  NOT NULL,
    [RULE_CODE] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
    [RULE_NAME] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [RULE_OPTION] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [RULE_VALUE] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [RULE_VALUE_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [EXPRESSION] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [REMARK] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[ck_rule_info] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'规则编码',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'RULE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'规则名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'RULE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作符，CK_RULE_OPTION 包含【=,!=,<,>,match,in等】',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'RULE_OPTION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'规则值，包含【具体值，正则表达式，表名.字段名 等】',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'RULE_VALUE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'规则值类型，CK_RULE_VALUE_TYPE :包含【1为普通值；2为特殊值；3为码表值】',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'RULE_VALUE_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'根据操作符和规则值运算出来的最终表达式',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'EXPRESSION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'备注',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'REMARK'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否删除 0:否 1:是',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info',
    'COLUMN', N'DELETED'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据检核规则',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_rule_info'
    GO


    -- ----------------------------
-- Records of ck_rule_info
-- ----------------------------

-- ----------------------------
-- Table structure for ck_schedule_config
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ck_schedule_config]') AND type IN ('U'))
DROP TABLE [dbo].[ck_schedule_config]
    GO

CREATE TABLE [dbo].[ck_schedule_config] (
    [SID] bigint  NOT NULL,
    [NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [JOB_ID] int  NULL,
    [JOB_GROUP] int  NULL,
    [TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [INTERVALNUM] int  NULL,
    [STARTTIME] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [JOB_HANDLER] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STATE] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [DELETED] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_TIME] datetime2(7)  NOT NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [REMARK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STANDBY] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [CALENDAR] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [FREQUENCY_NAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [EXPRESSION] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ck_schedule_config] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'关联xxljob任务的主键id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_schedule_config',
    'COLUMN', N'JOB_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'XXLJOB的执行器id',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_schedule_config',
    'COLUMN', N'JOB_GROUP'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'如果是类型是周期性，间隔不允许为空，默认为1',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_schedule_config',
    'COLUMN', N'INTERVALNUM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'任务类别',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_schedule_config',
    'COLUMN', N'JOB_HANDLER'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、新建 2、启用 3、停用',
    'SCHEMA', N'dbo',
    'TABLE', N'ck_schedule_config',
    'COLUMN', N'STATE'
    GO


    -- ----------------------------
-- Records of ck_schedule_config
-- ----------------------------

-- ----------------------------
-- Table structure for cl_classif_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_classif_info]') AND type IN ('U'))
DROP TABLE [dbo].[cl_classif_info]
    GO

CREATE TABLE [dbo].[cl_classif_info] (
    [SID] bigint  NOT NULL,
    [CLASSIF_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPPER_CLASSIF] bigint  NULL,
    [SEQ] nvarchar(1024) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_LEAF] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [DISPLAY_ORDER] bigint  NULL,
    [DESCRIPTION] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [LEVEL_NUM] bigint  NULL,
    [CLASSIF_FULL_NAME] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [CLASSIF_TYPE] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESOURCE_MAPPING] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_AUTH] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [CLASSIFTEMPLATE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SHOW_SCHEMA] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [ABBR_NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[cl_classif_info] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'父节点id，一级节点为空',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'UPPER_CLASSIF'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'.11.22.33.',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'SEQ'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'Y/N',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'IS_LEAF'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、2、3...99',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'DISPLAY_ORDER'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1、2、3',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'LEVEL_NUM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'一级名称-二级名称-叶子名称',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'CLASSIF_FULL_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'自动映射数据资源',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'RESOURCE_MAPPING'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'确定该分类是否需要做鉴权 0:不需要 1:需要',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'IS_AUTH'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否展示SCHEMA节点 0:否,1:是',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'SHOW_SCHEMA'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'简称',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_classif_info',
    'COLUMN', N'ABBR_NAME'
    GO


    -- ----------------------------
-- Table structure for cl_data_classif
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_data_classif]') AND type IN ('U'))
DROP TABLE [dbo].[cl_data_classif]
    GO

CREATE TABLE [dbo].[cl_data_classif] (
    [RESOURCE_ID] bigint  NOT NULL,
    [CLASSIF_SID] bigint  NOT NULL,
    [RESOURCE_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[cl_data_classif] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源注册后，关联数据资源',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_data_classif',
    'COLUMN', N'RESOURCE_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'目录级、数据级、数据项级',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_data_classif',
    'COLUMN', N'RESOURCE_TYPE'
    GO


    -- ----------------------------
-- Records of cl_data_classif
-- ----------------------------

-- ----------------------------
-- Table structure for cl_data_level
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_data_level]') AND type IN ('U'))
DROP TABLE [dbo].[cl_data_level]
    GO

CREATE TABLE [dbo].[cl_data_level] (
    [RESOURCE_SID] bigint  NOT NULL,
    [LEVEL_SID] bigint  NOT NULL,
    [RESOURCE_TYPE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[cl_data_level] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源注册后，关联数据资源',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_data_level',
    'COLUMN', N'RESOURCE_SID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'0目录级、1数据级、2数据项级',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_data_level',
    'COLUMN', N'RESOURCE_TYPE'
    GO


    -- ----------------------------
-- Records of cl_data_level
-- ----------------------------

-- ----------------------------
-- Table structure for cl_level_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_level_info]') AND type IN ('U'))
DROP TABLE [dbo].[cl_level_info]
    GO

CREATE TABLE [dbo].[cl_level_info] (
    [SID] bigint  NOT NULL,
    [LEVEL_CODE] bigint  NULL,
    [LEVEL_NAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [LEVEL_DESC] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPPER_LEVEL] bigint  NULL,
    [LEVEL_NUM] bigint  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[cl_level_info] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'第一级时为空',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_level_info',
    'COLUMN', N'UPPER_LEVEL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'1/2',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_level_info',
    'COLUMN', N'LEVEL_NUM'
    GO


    -- ----------------------------
-- Records of cl_level_info
-- ----------------------------

-- ----------------------------
-- Table structure for cl_resouce_count
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_resouce_count]') AND type IN ('U'))
DROP TABLE [dbo].[cl_resouce_count]
    GO

CREATE TABLE [dbo].[cl_resouce_count] (
    [sid] bigint  NOT NULL,
    [TOTAL_NUM] int  NULL,
[BATCH_NUMBER] bigint  NULL
)
    GO

ALTER TABLE [dbo].[cl_resouce_count] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of cl_resouce_count
-- ----------------------------

-- ----------------------------
-- Table structure for cl_resouce_count_temp
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_resouce_count_temp]') AND type IN ('U'))
DROP TABLE [dbo].[cl_resouce_count_temp]
    GO

CREATE TABLE [dbo].[cl_resouce_count_temp] (
    [sid] bigint  NOT NULL,
    [TOTAL_NUM] int  NULL,
[BATCH_NUMBER] bigint  NULL
)
    GO

ALTER TABLE [dbo].[cl_resouce_count_temp] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'批次号',
    'SCHEMA', N'dbo',
    'TABLE', N'cl_resouce_count_temp',
    'COLUMN', N'BATCH_NUMBER'
    GO


    -- ----------------------------
-- Records of cl_resouce_count_temp
-- ----------------------------

-- ----------------------------
-- Table structure for cl_role_classif
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_role_classif]') AND type IN ('U'))
DROP TABLE [dbo].[cl_role_classif]
    GO

CREATE TABLE [dbo].[cl_role_classif] (
    [ROLE_SID] nvarchar(65) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CLASSIF_SID] bigint  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[cl_role_classif] SET (LOCK_ESCALATION = TABLE)
    GO





    -- ----------------------------
-- Table structure for cl_role_level
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cl_role_level]') AND type IN ('U'))
DROP TABLE [dbo].[cl_role_level]
    GO

CREATE TABLE [dbo].[cl_role_level] (
    [ROLE_SID] nvarchar(65) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [LEVEL_SID] bigint  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[cl_role_level] SET (LOCK_ESCALATION = TABLE)
    GO


    -- ----------------------------
-- Records of cl_role_level
-- ----------------------------

-- ----------------------------
-- Table structure for cof_dict_entry
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cof_dict_entry]') AND type IN ('U'))
DROP TABLE [dbo].[cof_dict_entry]
    GO

CREATE TABLE [dbo].[cof_dict_entry] (
    [ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CODE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [DICT_TYPE_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [NAME] nvarchar(512) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESCRIPTION] nvarchar(256) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [TENANT_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [PARENT_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [LOCALE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [STATUS] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [SORT_NO] int  NULL,
    [IS_LEAF] tinyint  NULL,
    [TREE_LEVEL] int  NULL,
    [SEQ] nvarchar(256) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_FIXED] tinyint  NULL
    )
    GO

ALTER TABLE [dbo].[cof_dict_entry] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典项ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典项编码',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典类型ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'DICT_TYPE_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典项名称',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'描述',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'DESCRIPTION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'创建时间',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'CREATE_TIME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'更新时间',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'UPDATE_TIME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'租户ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'TENANT_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'父字典项ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'PARENT_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'默认语言',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'LOCALE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'状态 ',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'STATUS'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'排序字段',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'SORT_NO'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否叶节点',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'IS_LEAF'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'层级',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'TREE_LEVEL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'序列码',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'SEQ'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否固定，如果是，则数据不能修改，不能删除',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry',
    'COLUMN', N'IS_FIXED'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典项',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_entry'
    GO





    -- ----------------------------
-- Table structure for cof_dict_type
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cof_dict_type]') AND type IN ('U'))
DROP TABLE [dbo].[cof_dict_type]
    GO

CREATE TABLE [dbo].[cof_dict_type] (
    [ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CODE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [NAME] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESCRIPTION] nvarchar(256) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [TENANT_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [PARENT_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [LOCALE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [SORT_NO] int  NULL,
    [IS_LEAF] tinyint  NULL,
    [TREE_LEVEL] int  NULL,
    [SEQ] nvarchar(256) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_FIXED] tinyint  NULL
    )
    GO

ALTER TABLE [dbo].[cof_dict_type] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典类型ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典类型编码',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典类型名称',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'描述',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'DESCRIPTION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'创建时间',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'CREATE_TIME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'更新时间',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'UPDATE_TIME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'租户ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'TENANT_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'父字典类型ID',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'PARENT_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'默认语言',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'LOCALE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'排序字段',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'SORT_NO'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否叶节点',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'IS_LEAF'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'层级',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'TREE_LEVEL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'序列码',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'SEQ'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否固定，如果是，则数据不能修改，不能删除',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type',
    'COLUMN', N'IS_FIXED'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字典类型',
    'SCHEMA', N'dbo',
    'TABLE', N'cof_dict_type'
    GO




    -- ----------------------------
-- Table structure for dqms_operation_log
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[dqms_operation_log]') AND type IN ('U'))
DROP TABLE [dbo].[dqms_operation_log]
    GO

CREATE TABLE [dbo].[dqms_operation_log] (
    [ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [OPERATOR_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [OPERATOR_NAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [OPERATE_TYPE] int  NULL,
    [OPERATE_DATE] datetime2(7)  NULL,
    [TARGET_TYPE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [TARGET_MODEL_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [TARGET_MODEL_NAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [MESSAGE] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [TENANT_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[dqms_operation_log] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作日志ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作者ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'OPERATOR_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作者名称',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'OPERATOR_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作类型',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'OPERATE_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'时间',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'OPERATE_DATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'目标类型',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'TARGET_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'目标ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'TARGET_MODEL_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'目标名称',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'TARGET_MODEL_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'信息',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'MESSAGE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'租户ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log',
    'COLUMN', N'TENANT_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作日志',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log'
    GO


    -- ----------------------------
-- Records of dqms_operation_log
-- ----------------------------

-- ----------------------------
-- Table structure for dqms_operation_log_detail
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[dqms_operation_log_detail]') AND type IN ('U'))
DROP TABLE [dbo].[dqms_operation_log_detail]
    GO

CREATE TABLE [dbo].[dqms_operation_log_detail] (
    [ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [OLD_DATA_JSON] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [NEW_DATA_JSON] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[dqms_operation_log_detail] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'日志详情ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log_detail',
    'COLUMN', N'ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'旧值',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log_detail',
    'COLUMN', N'OLD_DATA_JSON'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'新值',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log_detail',
    'COLUMN', N'NEW_DATA_JSON'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'操作日志详情',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_operation_log_detail'
    GO


    -- ----------------------------
-- Records of dqms_operation_log_detail
-- ----------------------------

-- ----------------------------
-- Table structure for dqms_rating_result
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[dqms_rating_result]') AND type IN ('U'))
DROP TABLE [dbo].[dqms_rating_result]
    GO

CREATE TABLE [dbo].[dqms_rating_result] (
    [ID] bigint  NOT NULL,
    [ORG_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [ORG_NAME] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [ORG_LEVEL] nvarchar(2) COLLATE Chinese_PRC_CI_AS  NULL,
    [PARENT_ORG_ID] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [SCORE] float(53)  NULL,
    [START_DATE] datetime2(7)  NULL,
    [END_DATE] datetime2(7)  NULL,
    [RATING_CYCLE] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [RATING_POINT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [CREATE_USER] nvarchar(25) COLLATE Chinese_PRC_CI_AS  NULL,
    [LAST_MODIFIER_TIME] datetime2(7)  NULL,
    [LAST_MODIFIER_USER] nvarchar(25) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[dqms_rating_result] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'组织ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'ORG_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'组织名',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'ORG_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'组织等级',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'ORG_LEVEL'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'父组织ID',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'PARENT_ORG_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'得分',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'SCORE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'评估开始日期',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'START_DATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'评估截至日期',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'END_DATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'评分周期 年（year）、季度（quarter）、月（month）、周（week），默认月',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'RATING_CYCLE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'评分点 例如：2023-01',
    'SCHEMA', N'dbo',
    'TABLE', N'dqms_rating_result',
    'COLUMN', N'RATING_POINT'
    GO


    -- ----------------------------
-- Records of dqms_rating_result
-- ----------------------------

-- ----------------------------
-- Table structure for ds_data_config_mgr
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ds_data_config_mgr]') AND type IN ('U'))
DROP TABLE [dbo].[ds_data_config_mgr]
    GO

CREATE TABLE [dbo].[ds_data_config_mgr] (
    [SID] bigint  NOT NULL,
    [CONFIGCODE] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CONFIGNAME] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CONFIGTYPE] nvarchar(25) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [USERKEYTABFILE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [KRB5FILE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [HIVECLIENTPROPFILE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [HDFSSITEFILE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CORESITEFILE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [HBASESITEFILE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESCRIPTION] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [PATH_TYPE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SFTP_PATH] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ds_data_config_mgr] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'LOCAL/SFTP',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_data_config_mgr',
    'COLUMN', N'PATH_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'SFTP的路径',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_data_config_mgr',
    'COLUMN', N'SFTP_PATH'
    GO


    -- ----------------------------
-- Records of ds_data_config_mgr
-- ----------------------------

-- ----------------------------
-- Table structure for ds_data_source
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ds_data_source]') AND type IN ('U'))
DROP TABLE [dbo].[ds_data_source]
    GO

CREATE TABLE [dbo].[ds_data_source] (
    [SID] bigint  NOT NULL,
    [DATA_SOURCE_NAME] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
    [URL] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
    [DRIVER] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [USER_NAME] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
    [PWD] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [DATA_SOURCE_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [METACUBE_DEFINE_NAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATASOURCE_TYPE] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [CONFIGMGR_SID] nvarchar(65) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ds_data_source] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据源名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_data_source',
    'COLUMN', N'DATA_SOURCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据源来源：1：元数据:2：自建:3：同步',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_data_source',
    'COLUMN', N'SOURCE'
    GO


    -- ----------------------------
-- Records of ds_data_source
-- ----------------------------

-- ----------------------------
-- Table structure for ds_hbase_mappping
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ds_hbase_mappping]') AND type IN ('U'))
DROP TABLE [dbo].[ds_hbase_mappping]
    GO

CREATE TABLE [dbo].[ds_hbase_mappping] (
    [sid] bigint  NOT NULL,
    [hive_ds_id] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hive_ds_name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hive_db_name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hive_table] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hbase_ds_id] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hbase_ds_name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hbase_namespace] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [hbase_table] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [storage_type] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [column_mappings] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [serde_properties] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [tbl_properties] nvarchar(1024) COLLATE Chinese_PRC_CI_AS  NULL,
    [create_time] datetime2(7)  NULL,
    [create_by] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [update_time] datetime2(7)  NULL,
    [update_by] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ds_hbase_mappping] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'HBase映射表管理',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_hbase_mappping'
    GO


    -- ----------------------------
-- Records of ds_hbase_mappping
-- ----------------------------

-- ----------------------------
-- Table structure for ds_resource_info
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ds_resource_info]') AND type IN ('U'))
DROP TABLE [dbo].[ds_resource_info]
    GO

CREATE TABLE [dbo].[ds_resource_info] (
    [TABLE_TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SID] bigint  NOT NULL,
    [RESOURCE_CODE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESOURCE_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [DIRECTORY_CODE] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [DIRECTORY_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [AUTHORITY_UNIT] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_TYPE] bigint  NULL,
    [OBTAIN_WAY] bigint  NULL,
    [APP_SYSTEM] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [MANAGE_UNIT] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_LOCATION] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
    [STORAGE_CENTER] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
    [STATUS] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESCRIPTION] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [STORAGE_SCALE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [STORAGE_CYCLE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_CYCLE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_SCALE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_UPDATE_TIME] datetime2(7)  NULL,
    [REGISTER_TIME] datetime2(7)  NULL,
    [META_DIR_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [SCHEMA_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_CODE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [DATA_SOURCE_NAME] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
    [RESOURCE_TYPE] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
    [INIT_SOLR] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_ORGANIZATION] bigint  NULL,
    [LABEL_1] bigint  NULL,
    [LABEL_2] bigint  NULL,
    [LABEL_3] bigint  NULL,
    [LABEL_4] bigint  NULL,
    [LABEL_5] bigint  NULL,
    [INSTANCE_ID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [ISPEAT] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLEDESC] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATAMODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [WHYREPEAT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [DIFFERSERV] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_RECORD] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [MAPPING_NUMBER] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [MAPPING_FIELD] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_TABLE_NUM] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DEPLOY_TYPE] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
    [LAST_UPDATE_TIME] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [FUNCTION_TEMPLATE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SUB_FUNCTION_TEMPLATE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_ACCESS] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [mainDataId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [WHY_NEGATIVELIST] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_NEGATIVELIST] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [ID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [mainTableId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [busi_type_num] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [topic_num] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_NAMESPACE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [TABLE_NAME] nvarchar(512) COLLATE Chinese_PRC_CI_AS  NULL,
    [principal] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ds_resource_info] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'状态:  4已发布',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'STATUS'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源关联的表所在目录编码',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'META_DIR_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源关联的表所在库编码',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'SCHEMA_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'资源关联的表编码',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'TABLE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据源名称',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'DATA_SOURCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否已加入solr',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'INIT_SOLR'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数组组织ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'DATA_ORGANIZATION'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数组组织-标签1ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'LABEL_1'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数组组织-标签2ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'LABEL_2'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数组组织-标签3ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'LABEL_3'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数组组织-标签4ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'LABEL_4'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数组组织-标签5ID',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'LABEL_5'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否重复',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'ISPEAT'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据生成方式',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'DATAMODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'重复原因',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'WHYREPEAT'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'责任人',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info',
    'COLUMN', N'principal'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'存储数据资源基本信息，如数据名称等，与元数据的表对应',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_info'
    GO


    -- ----------------------------
-- Records of ds_resource_info
-- ----------------------------

-- ----------------------------
-- Table structure for ds_resource_item
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ds_resource_item]') AND type IN ('U'))
DROP TABLE [dbo].[ds_resource_item]
    GO

CREATE TABLE [dbo].[ds_resource_item] (
    [SID] bigint  NOT NULL,
    [RESOURCE_SID] bigint  NULL,
    [ITEM_CODE] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
    [ITEM_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_QUERY] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [QUERY_MATCH_TYPE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_SUBSCRIBE] nchar(1) COLLATE Chinese_PRC_CI_AS  NULL,
    [SUBSCRIBE_MATCH_TYPE] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [INSTANCE_ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SYNCDATE] datetime2(7)  NULL,
    [SEQ] bigint  NULL,
    [ITEM_TYPE] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [INSTANCE_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [INSTANCE_NAME] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [COMMENTS] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_PK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_UNIQUE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_FK] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_NULLABLE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [COLLENGTHS] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SCALES] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [INITIAL_VALUE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_SHARE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_MASKING] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_TYPE] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [WHY_SHARE] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESEN_RULE] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
    [STD_CODE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [STORAGE_FORMAT] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [IS_BASE] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_SYSTEM] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [OWN_USER] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_TB_EN] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_TB_CN] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_TB_DESC] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_COL_EN] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_COL_CN] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_COL_DESC] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
    [REB_DEPT] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [BUS_DEPT_IS_CFM] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [DATA_IS_CFM] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [LATEST_VER_NO] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [LATEST_REVISION_NO] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CONSTRAINTS_KEY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [status] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
    [ID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [mainTableId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [mainDataId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [SOURCE_COL_TYPE] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
    [principal] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[ds_resource_item] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'元数据id',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'INSTANCE_ID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'元数据同步时间',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SYNCDATE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'字段英文名',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'INSTANCE_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'中文名',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'INSTANCE_NAME'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'描述，注释',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'COMMENTS'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否主键',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_PK'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否唯一键',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_UNIQUE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否外键',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_FK'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否为空',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_NULLABLE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'长度',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'COLLENGTHS'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'小数位',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SCALES'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'默认值',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'INITIAL_VALUE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否有条件共享',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_SHARE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否脱敏',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_MASKING'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据类型',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'DATA_TYPE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'不能共享原因',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'WHY_SHARE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'脱敏规则',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'DESEN_RULE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'标准编码',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'STD_CODE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'存储格式',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'STORAGE_FORMAT'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'是否基线版',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'IS_BASE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'来源系统',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SOURCE_SYSTEM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'所属用户',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'OWN_USER'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'源表英文名',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SOURCE_TB_EN'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'源表中文名',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SOURCE_TB_CN'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'源表字段英文',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SOURCE_COL_EN'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'源字段中文名',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'SOURCE_COL_CN'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'责任部门',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'REB_DEPT'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'业务部门是否确认',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'BUS_DEPT_IS_CFM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'数据是否落地',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'DATA_IS_CFM'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最新版本号',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'LATEST_VER_NO'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最终修订版本号',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'LATEST_REVISION_NO'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'约束键',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'CONSTRAINTS_KEY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'责任人',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item',
    'COLUMN', N'principal'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'存储数据资源项信息，与元数据的列对应，其与数据资源信息表对应关系为多对1',
    'SCHEMA', N'dbo',
    'TABLE', N'ds_resource_item'
    GO


    -- ----------------------------
-- Records of ds_resource_item
-- ----------------------------

-- ----------------------------
-- Table structure for po_feedback
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[po_feedback]') AND type IN ('U'))
DROP TABLE [dbo].[po_feedback]
    GO

CREATE TABLE [dbo].[po_feedback] (
    [SID] bigint  NOT NULL,
    [OPTIONID] bigint  NOT NULL,
    [USERNAME] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [FEEDBACK] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[po_feedback] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'创建时的userid',
    'SCHEMA', N'dbo',
    'TABLE', N'po_feedback',
    'COLUMN', N'CREATE_BY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最后一次修改者的userid',
    'SCHEMA', N'dbo',
    'TABLE', N'po_feedback',
    'COLUMN', N'UPDATE_BY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最后一次修改该记录的时间',
    'SCHEMA', N'dbo',
    'TABLE', N'po_feedback',
    'COLUMN', N'UPDATE_TIME'
    GO


    -- ----------------------------
-- Records of po_feedback
-- ----------------------------

-- ----------------------------
-- Table structure for po_files
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[po_files]') AND type IN ('U'))
DROP TABLE [dbo].[po_files]
    GO

CREATE TABLE [dbo].[po_files] (
    [SID] bigint  NOT NULL,
    [RELID] bigint  NULL,
    [FILENAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [ACTUALFILENAME] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [FILEPATH] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_TIME] datetime2(7)  NULL
    )
    GO

ALTER TABLE [dbo].[po_files] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'附件所关联的对象ID',
    'SCHEMA', N'dbo',
    'TABLE', N'po_files',
    'COLUMN', N'RELID'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'可以使用 http://ip:port/files/文件名称 访问上传路径下的文件',
    'SCHEMA', N'dbo',
    'TABLE', N'po_files',
    'COLUMN', N'FILEPATH'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'创建时的userid',
    'SCHEMA', N'dbo',
    'TABLE', N'po_files',
    'COLUMN', N'CREATE_BY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最后一次修改者的userid',
    'SCHEMA', N'dbo',
    'TABLE', N'po_files',
    'COLUMN', N'UPDATE_BY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最后一次修改该记录的时间',
    'SCHEMA', N'dbo',
    'TABLE', N'po_files',
    'COLUMN', N'UPDATE_TIME'
    GO


    -- ----------------------------
-- Records of po_files
-- ----------------------------

-- ----------------------------
-- Table structure for po_options
-- ----------------------------
    IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[po_options]') AND type IN ('U'))
DROP TABLE [dbo].[po_options]
    GO

CREATE TABLE [dbo].[po_options] (
    [SID] bigint  NOT NULL,
    [TITLE] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [SOURCE] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [DATARESOURCE] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
    [FIELD] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
    [DESCRIPTION] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [STATUS] nchar(1) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [USERNAME] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NOT NULL,
    [CREATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [UPDATE_BY] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
    [CREATE_TIME] datetime2(7)  NULL,
    [UPDATE_TIME] datetime2(7)  NULL,
    [CONTACTINFO] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL
    )
    GO

ALTER TABLE [dbo].[po_options] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'来源于静态参数 存静态参数的ID 有   质量检核  隐患  用户反馈 其他途径',
    'SCHEMA', N'dbo',
    'TABLE', N'po_options',
    'COLUMN', N'SOURCE'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'0  未反馈 1  已反馈 9  已关闭',
    'SCHEMA', N'dbo',
    'TABLE', N'po_options',
    'COLUMN', N'STATUS'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'创建时的userid',
    'SCHEMA', N'dbo',
    'TABLE', N'po_options',
    'COLUMN', N'CREATE_BY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最后一次修改者的userid',
    'SCHEMA', N'dbo',
    'TABLE', N'po_options',
    'COLUMN', N'UPDATE_BY'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'最后一次修改该记录的时间',
    'SCHEMA', N'dbo',
    'TABLE', N'po_options',
    'COLUMN', N'UPDATE_TIME'
    GO


    -- ----------------------------
-- Records of po_options
-- ----------------------------


-- ----------------------------
-- Primary Key structure for table ck_alarm_config
-- ----------------------------
ALTER TABLE [dbo].[ck_alarm_config] ADD CONSTRAINT [PK__ck_alarm__CA19597075C8EC6A] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_alarm_record
-- ----------------------------
ALTER TABLE [dbo].[ck_alarm_record] ADD CONSTRAINT [PK__ck_alarm__CA1959705FCCD9C3] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_calendar
-- ----------------------------
ALTER TABLE [dbo].[ck_calendar] ADD CONSTRAINT [PK__ck_calen__C36D020C0A0F5837] PRIMARY KEY CLUSTERED ([CK_ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ck_check_log
-- ----------------------------
CREATE UNIQUE NONCLUSTERED INDEX [SID]
ON [dbo].[ck_check_log] (
  [SID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [JOB_LOG_ID]
ON [dbo].[ck_check_log] (
  [JOB_LOG_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [METHOD_CONFIG_ID]
ON [dbo].[ck_check_log] (
  [METHOD_CONFIG_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ck_check_log
-- ----------------------------
ALTER TABLE [dbo].[ck_check_log] ADD CONSTRAINT [PK__ck_check__CA19597090278B85] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_check_log_latest
-- ----------------------------
ALTER TABLE [dbo].[ck_check_log_latest] ADD CONSTRAINT [PK__ck_check__634AF3038C15769F] PRIMARY KEY CLUSTERED ([METHOD_CONFIG_ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ck_check_result
-- ----------------------------
CREATE UNIQUE NONCLUSTERED INDEX [SID]
ON [dbo].[ck_check_result] (
  [SID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [JOB_LOG_ID]
ON [dbo].[ck_check_result] (
  [JOB_LOG_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [METHOD_CONFIG_ID]
ON [dbo].[ck_check_result] (
  [METHOD_CONFIG_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [index_ck_check_result]
ON [dbo].[ck_check_result] (
  [CHECK_TIME] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [index_ck_check_result_method_config_id]
ON [dbo].[ck_check_result] (
  [METHOD_CONFIG_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ck_check_result
-- ----------------------------
ALTER TABLE [dbo].[ck_check_result] ADD CONSTRAINT [PK__ck_check__CA19597014C8E78C] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_check_result_latest
-- ----------------------------
ALTER TABLE [dbo].[ck_check_result_latest] ADD CONSTRAINT [PK__ck_check__634AF303A6C7C90A] PRIMARY KEY CLUSTERED ([METHOD_CONFIG_ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_frequency
-- ----------------------------
ALTER TABLE [dbo].[ck_frequency] ADD CONSTRAINT [PK__ck_frequ__D9C1FA013CEF6CB4] PRIMARY KEY CLUSTERED ([NAME])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_general_config
-- ----------------------------
ALTER TABLE [dbo].[ck_general_config] ADD CONSTRAINT [PK__ck_gener__CA19597089484EAA] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_general_config_detail
-- ----------------------------
ALTER TABLE [dbo].[ck_general_config_detail] ADD CONSTRAINT [PK__ck_gener__CA195970570B66F4] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_general_result
-- ----------------------------
ALTER TABLE [dbo].[ck_general_result] ADD CONSTRAINT [PK__ck_gener__CA1959708D240DEB] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_general_result_detail
-- ----------------------------
ALTER TABLE [dbo].[ck_general_result_detail] ADD CONSTRAINT [PK__ck_gener__CA19597044E7A8E4] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ck_group
-- ----------------------------
CREATE NONCLUSTERED INDEX [INDEX_CK_GROUP_UPPERGROUP]
ON [dbo].[ck_group] (
  [GROUP_NAME] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ck_group
-- ----------------------------
ALTER TABLE [dbo].[ck_group] ADD CONSTRAINT [PK__ck_group__CA19597016349F7A] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_group_relation
-- ----------------------------
ALTER TABLE [dbo].[ck_group_relation] ADD CONSTRAINT [PK__ck_group__D62A63561F690003] PRIMARY KEY CLUSTERED ([CONFIGSID], [CONFIGTYPE])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_index_info
-- ----------------------------
ALTER TABLE [dbo].[ck_index_info] ADD CONSTRAINT [PK__ck_index__CA1959708DCB8750] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_index_weight_info
-- ----------------------------
ALTER TABLE [dbo].[ck_index_weight_info] ADD CONSTRAINT [PK__ck_index__CA195970788DBEF5] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_knowledge_info
-- ----------------------------
ALTER TABLE [dbo].[ck_knowledge_info] ADD CONSTRAINT [PK__ck_knowl__CA1959707D764B70] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ck_method_config
-- ----------------------------
CREATE NONCLUSTERED INDEX [index_ck_method_config]
ON [dbo].[ck_method_config] (
  [RESOURCE_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [index_ck_method_config1]
ON [dbo].[ck_method_config] (
  [DELETED] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ck_method_config
-- ----------------------------
ALTER TABLE [dbo].[ck_method_config] ADD CONSTRAINT [PK__ck_metho__CA1959706C20BBB2] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_method_config_course
-- ----------------------------
ALTER TABLE [dbo].[ck_method_config_course] ADD CONSTRAINT [PK__ck_metho__CA195970374CE9E1] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_method_item
-- ----------------------------
ALTER TABLE [dbo].[ck_method_item] ADD CONSTRAINT [PK__ck_metho__CA1959703CC8DA9B] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_result_detail
-- ----------------------------
ALTER TABLE [dbo].[ck_result_detail] ADD CONSTRAINT [PK__ck_resul__CA19597054BF5E7C] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_result_options
-- ----------------------------
ALTER TABLE [dbo].[ck_result_options] ADD CONSTRAINT [PK__ck_resul__CA195970FC17766B] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ck_rule_info
-- ----------------------------
ALTER TABLE [dbo].[ck_rule_info] ADD CONSTRAINT [PK__ck_rule___CA195970A3AED80C] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ck_schedule_config
-- ----------------------------
CREATE NONCLUSTERED INDEX [I_job_id1]
ON [dbo].[ck_schedule_config] (
  [JOB_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ck_schedule_config
-- ----------------------------
ALTER TABLE [dbo].[ck_schedule_config] ADD CONSTRAINT [PK__ck_sched__CA195970A7E11749] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table cl_classif_info
-- ----------------------------
CREATE UNIQUE NONCLUSTERED INDEX [IDEX_CLS_SEQ]
ON [dbo].[cl_classif_info] (
  [SEQ] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [IDEX_CLS_UPPERCLASSIF]
ON [dbo].[cl_classif_info] (
  [UPPER_CLASSIF] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table cl_classif_info
-- ----------------------------
ALTER TABLE [dbo].[cl_classif_info] ADD CONSTRAINT [PK__cl_class__CA19597000F456C9] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table cl_data_classif
-- ----------------------------
CREATE NONCLUSTERED INDEX [IDX_CDC_CLASSIF_SID]
ON [dbo].[cl_data_classif] (
  [CLASSIF_SID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [IDX_CDC_RESOURCE_ID]
ON [dbo].[cl_data_classif] (
  [RESOURCE_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table cl_data_classif
-- ----------------------------
ALTER TABLE [dbo].[cl_data_classif] ADD CONSTRAINT [PK__cl_data___E9A77C4E146958F7] PRIMARY KEY CLUSTERED ([RESOURCE_ID], [CLASSIF_SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table cl_data_level
-- ----------------------------
ALTER TABLE [dbo].[cl_data_level] ADD CONSTRAINT [PK__cl_data___2ADCF63EC525F5F7] PRIMARY KEY CLUSTERED ([RESOURCE_SID], [LEVEL_SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table cl_level_info
-- ----------------------------
ALTER TABLE [dbo].[cl_level_info] ADD CONSTRAINT [PK__cl_level__CA195970D33DFE1F] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table cl_resouce_count
-- ----------------------------
ALTER TABLE [dbo].[cl_resouce_count] ADD CONSTRAINT [PK__cl_resou__DDDFDD3686E4AB34] PRIMARY KEY CLUSTERED ([sid])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table cl_resouce_count_temp
-- ----------------------------
ALTER TABLE [dbo].[cl_resouce_count_temp] ADD CONSTRAINT [PK__cl_resou__DDDFDD3690977B88] PRIMARY KEY CLUSTERED ([sid])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table cl_role_classif
-- ----------------------------
ALTER TABLE [dbo].[cl_role_classif] ADD CONSTRAINT [PK__cl_role___E3BBBEC781F457AD] PRIMARY KEY CLUSTERED ([ROLE_SID], [CLASSIF_SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table cl_role_level
-- ----------------------------
ALTER TABLE [dbo].[cl_role_level] ADD CONSTRAINT [PK__cl_role___7C6DFEF1C083502C] PRIMARY KEY CLUSTERED ([ROLE_SID], [LEVEL_SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table cof_dict_entry
-- ----------------------------
CREATE NONCLUSTERED INDEX [COF_DICT_ENTRY_INDEX_CODE]
ON [dbo].[cof_dict_entry] (
  [CODE] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [COF_DICT_ENTRY_INDEX_NAME]
ON [dbo].[cof_dict_entry] (
  [NAME] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [COF_DICT_ENTRY_INDEX_SEQ]
ON [dbo].[cof_dict_entry] (
  [SEQ] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table cof_dict_entry
-- ----------------------------
ALTER TABLE [dbo].[cof_dict_entry] ADD CONSTRAINT [PK__cof_dict__3214EC2751E9008C] PRIMARY KEY CLUSTERED ([ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table cof_dict_type
-- ----------------------------
CREATE NONCLUSTERED INDEX [COF_DICT_TYPE_INDEX_CODE]
ON [dbo].[cof_dict_type] (
  [CODE] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [COF_DICT_TYPE_INDEX_NAME]
ON [dbo].[cof_dict_type] (
  [NAME] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [COF_DICT_TYPE_INDEX_SEQ]
ON [dbo].[cof_dict_type] (
  [SEQ] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table cof_dict_type
-- ----------------------------
ALTER TABLE [dbo].[cof_dict_type] ADD CONSTRAINT [PK__cof_dict__3214EC27D8EA7488] PRIMARY KEY CLUSTERED ([ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table dqms_operation_log
-- ----------------------------
CREATE NONCLUSTERED INDEX [DQMS_OPERATION_LOG_INDEX_OPERATOR]
ON [dbo].[dqms_operation_log] (
  [OPERATOR_NAME] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [DQMS_OPERATION_LOG_INDEX_OPERATE_TYPE]
ON [dbo].[dqms_operation_log] (
  [OPERATE_TYPE] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [DQMS_OPERATION_LOG_INDEX_TARGET]
ON [dbo].[dqms_operation_log] (
  [TARGET_TYPE] ASC,
  [TARGET_MODEL_ID] ASC,
  [TARGET_MODEL_NAME] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table dqms_operation_log
-- ----------------------------
ALTER TABLE [dbo].[dqms_operation_log] ADD CONSTRAINT [PK__dqms_ope__3214EC27BBB8EDFA] PRIMARY KEY CLUSTERED ([ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table dqms_operation_log_detail
-- ----------------------------
ALTER TABLE [dbo].[dqms_operation_log_detail] ADD CONSTRAINT [PK__dqms_ope__3214EC275DF61FF7] PRIMARY KEY CLUSTERED ([ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table dqms_rating_result
-- ----------------------------
ALTER TABLE [dbo].[dqms_rating_result] ADD CONSTRAINT [PK__dqms_rat__3214EC271963F385] PRIMARY KEY CLUSTERED ([ID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ds_data_config_mgr
-- ----------------------------
ALTER TABLE [dbo].[ds_data_config_mgr] ADD CONSTRAINT [PK__ds_data___CA1959705B1BF806] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ds_data_source
-- ----------------------------
ALTER TABLE [dbo].[ds_data_source] ADD CONSTRAINT [PK__ds_data___CA19597081815110] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table ds_hbase_mappping
-- ----------------------------
ALTER TABLE [dbo].[ds_hbase_mappping] ADD CONSTRAINT [PK__ds_hbase__DDDFDD360AB650DA] PRIMARY KEY CLUSTERED ([sid])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ds_resource_info
-- ----------------------------
CREATE NONCLUSTERED INDEX [IDX_DRI_DATAORGANIZATION]
ON [dbo].[ds_resource_info] (
  [DATA_ORGANIZATION] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ds_resource_info
-- ----------------------------
ALTER TABLE [dbo].[ds_resource_info] ADD CONSTRAINT [PK__ds_resou__CA195970201E1235] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Indexes structure for table ds_resource_item
-- ----------------------------
CREATE NONCLUSTERED INDEX [IDX_DSRI_RESOURCESID]
ON [dbo].[ds_resource_item] (
  [RESOURCE_SID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO

CREATE NONCLUSTERED INDEX [IDX_DSRI_INSTANCEID]
ON [dbo].[ds_resource_item] (
  [INSTANCE_ID] ASC
)
WITH (
  STATISTICS_NORECOMPUTE = ON
)
GO


-- ----------------------------
-- Primary Key structure for table ds_resource_item
-- ----------------------------
ALTER TABLE [dbo].[ds_resource_item] ADD CONSTRAINT [PK__ds_resou__CA1959709436AC5E] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table po_feedback
-- ----------------------------
ALTER TABLE [dbo].[po_feedback] ADD CONSTRAINT [PK__po_feedb__CA1959704E78D387] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table po_files
-- ----------------------------
ALTER TABLE [dbo].[po_files] ADD CONSTRAINT [PK__po_files__CA195970F601B754] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO


-- ----------------------------
-- Primary Key structure for table po_options
-- ----------------------------
ALTER TABLE [dbo].[po_options] ADD CONSTRAINT [PK__po_optio__CA195970428D3A2E] PRIMARY KEY CLUSTERED ([SID])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    GO






INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314575736782065664', N'CK_CHECK_TYPE', N'检核类型', NULL, N'2019-09-02 16:11:05.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.82.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'42497a16-8bb6-4c06-8142-880efb4ee397', N'CHECK_RESOURCE_TYPE', N'检核规则类型', NULL, N'2021-04-21 16:49:39.0000000', N'2021-04-21 16:49:39.0000000', N'default', NULL, N'zh', 0, 1, 1, N'.87.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'429501651677614080', N'CK_GENERAL_CHECK_STATE', N'通用检核配置状态', NULL, N'2020-06-07 14:53:03.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.46.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306247813742333952', N'CK_RULE_VALUE_TYPE', N'规则值类型', NULL, N'2019-09-02 16:11:05.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.82.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242162043523072', N'CK_RULE_OPTION', N'规则操作符', NULL, N'2019-09-02 16:11:05.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.82.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'423644463499317248', N'CK_COMMONCHECK_TYPE', N'通用检核配置类型', NULL, N'2020-05-22 10:58:41.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.49.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'25fcceeb-12bf-4b11-ad5f-6af625fb2028', N'CK_CHECK_GENERAL', N'通用检核', NULL, N'2021-07-14 11:21:14.0000000', N'2021-07-14 11:21:14.0000000', N'default', NULL, N'zh', 0, 1, 1, N'.90.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'430613552059285504', N'CK_SCHEDULE_TYPE', N'调度类型', NULL, N'2020-06-10 16:31:21.0000000', NULL, N'default', NULL, N'zh', 45, 1, 1, N'.45.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'435019220119879680', N'CK_JOB_HANDLER', N'任务类别', NULL, N'2020-06-22 20:17:54.0000000', NULL, N'default', NULL, N'zh', 42, 1, 1, N'.42.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'464219649722449921', N'CK_SCHEDULER_MONITOR_STATUS', N'调度任务监控状态', NULL, N'2020-09-11 10:09:59.0000000', NULL, N'default', NULL, N'zh', 23, 1, 1, N'.23.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418455066902528', N'CK_ALARM_TYPE', N'告警阈值类型', NULL, N'2020-06-29 11:11:36.0000000', NULL, N'default', NULL, N'zh', 40, 1, 1, N'.40.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418825000321024', N'CK_ALARM_RELATION', N'告警阈值关系', NULL, N'2020-06-29 11:13:04.0000000', NULL, N'default', NULL, N'zh', 39, 1, 1, N'.39.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437419085214941184', N'CK_ALARM_LEVEL', N'告警级别', NULL, N'2020-06-29 11:14:06.0000000', NULL, N'default', NULL, N'zh', 38, 1, 1, N'.38.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'438970573996953600', N'CK_ALARM_STATE', N'告警配置状态', NULL, N'2020-07-03 17:59:10.0000000', NULL, N'default', NULL, N'zh', 37, 1, 1, N'.37.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'449125026590896128', N'CK_ALARM_RECORD_STATE', N'告警记录状态', NULL, N'2020-07-31 18:29:20.0000000', NULL, N'default', NULL, N'zh', 31, 1, 1, N'.31.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306738524021460992', N'PO_OPTIONS_SOURCE', N'问题来源', NULL, N'2019-09-02 16:11:05.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.82.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'478779397398495232', N'DATA_SOURCE_TYPE', N'数据源类型', NULL, N'2020-10-21 14:25:13.0000000', NULL, N'default', NULL, N'zh', 20, 1, 1, N'.20.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341743150732808192', N'DS_SOURCE', N'数据源来源', NULL, N'2019-10-09 10:52:00.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.66.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'328430455870853120', N'ITEM_TYPE', N'数据项值类型', NULL, N'2019-09-02 16:11:05.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.74.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341474990574145536', N'DS_DIRVER', N'数据源驱动', NULL, N'2019-10-08 17:06:03.0000000', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.67.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'486772360502214656', N'CK_EXECUTOR_CONFIG', N'检核执行相关配置', null, null, null, N'default', null, N'zh', 19, 1, 1, N'.19.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'449121282373464064', N'CK_ALARM_STAT_START_TIME', N'告警信息记录起始时间', NULL, N'2020-07-31 18:14:28', NULL, N'default', NULL, N'zh', 32, 1, 1, N'.32.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'44e4253a-2105-4a4e-a091-45952c7c5dc8', N'CK_CHECK_MONITOR_STATUS', N'检核规则监控状态', NULL, N'2021-04-22 15:18:34', N'2021-04-22 15:18:34', N'default', NULL, N'zh', 0, 1, 1, N'.88.', 0);
INSERT INTO [dbo].[cof_dict_type] ([ID], [CODE], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'308046373039247360', N'CK_INDEX_LEVEL', N'指标级别', NULL, N'2019-09-02 16:11:05', NULL, N'default', NULL, N'zh', NULL, 1, 1, N'.82.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009384934412288', 'PO_OPTIONS_STATUS', '问题状态', NULL, '2019-09-02 16:11:05', NULL, 'default', NULL, 'zh', NULL, 1, 1, '.82.', 0);


DELETE FROM COF_DICT_ENTRY;
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'449121473755361280', N'starttime', N'449121282373464064', N'2021-06-02 17:10:55', NULL, NULL, NULL, N'default', NULL, N'zh', N'ENABLED', 1, 1, NULL, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314575915853680640', N'1', N'314575736782065664', N'完整性', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314575941719953408', N'2', N'314575736782065664', N'有效性', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314575967619780608', N'3', N'314575736782065664', N'正确性', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314576003359444992', N'4', N'314575736782065664', N'唯一性', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314576033013174272', N'5', N'314575736782065664', N'及时性', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'314576061412806656', N'6', N'314575736782065664', N'合理性', null, null, null, N'default', null, N'zh', N'ENABLED', 6, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'354570112157437952', N'7', N'314575736782065664', N'空值率', null, null, null, N'default', null, N'zh', N'ENABLED', 7, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'48abe20e-cf21-4038-8fb4-fe0fc3c8d1d3', N'HiveTable', N'42497a16-8bb6-4c06-8142-880efb4ee397', N'Hive检核规则', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, 1, N'.100.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'8ba203f7-749d-4e98-95c9-c0d577db83c6', N'table', N'42497a16-8bb6-4c06-8142-880efb4ee397', N'表检核规则', null, null, null, N'default', null, N'zh', N'ENABLED', 0, 1, 1, N'.99.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'9edfcb14-5c33-4b3b-9b52-a71551dbf22a', N'HBaseTable', N'42497a16-8bb6-4c06-8142-880efb4ee397', N'HBase检核规则', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, 1, N'.101.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'429501736977174528', N'1', N'429501651677614080', N'新建', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'429501802991325184', N'2', N'429501651677614080', N'启用', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'429501838730989568', N'3', N'429501651677614080', N'停用', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306300301090623488', N'1', N'306247813742333952', N'普通值', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306300389359751168', N'2', N'306247813742333952', N'特殊值', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306300420691202048', N'3', N'306247813742333952', N'码表值', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242501815701504', N'==', N'306242162043523072', N'等于', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242567506890752', N'!=', N'306242162043523072', N'不等于', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242604093804544', N'<=', N'306242162043523072', N'小于等于', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242638248022016', N'<', N'306242162043523072', N'小于', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242684507000832', N'>=', N'306242162043523072', N'大于等于', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306242718308896768', N'>', N'306242162043523072', N'大于', null, null, null, N'default', null, N'zh', N'ENABLED', 6, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306301168330084352', N'matches', N'306242162043523072', N'匹配正则', null, null, null, N'default', null, N'zh', N'ENABLED', 7, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306301814399700992', N'contains', N'306242162043523072', N'包含码表', null, null, null, N'default', null, N'zh', N'ENABLED', 8, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'423664174639353856', N'1', N'423644463499317248', N'数据抖动', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'423664223591075840', N'2', N'423644463499317248', N'数据偏移', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'423664297431797760', N'3', N'423644463499317248', N'数据堆积', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'423664380911030272', N'4', N'423644463499317248', N'数据对照', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'3611f8bc-3d6e-4961-98f3-12ea35119f8c', N'YES_OR_NO', N'25fcceeb-12bf-4b11-ad5f-6af625fb2028', N'NO', null, null, null, N'default', null, N'zh', N'ENABLED', 0, 1, 1, N'.118.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'08860cc4-003d-4b73-877b-236b5aa60f2b', N'7', N'430613552059285504', N'每月', N'', null, null, N'default', null, N'zh', N'ENABLED', 6, 1, 1, N'.97.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'3c915bf7-8965-439f-a902-982fbb7d2e19', N'8', N'430613552059285504', N'每季', N'', null, null, N'default', null, N'zh', N'ENABLED', 7, 1, 1, N'.98.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'44f2b6ef-866d-4d8c-a8d7-d097804f99a7', N'1', N'430613552059285504', N'一次', null, null, null, N'default', null, N'zh', N'ENABLED', 0, 1, 1, N'.91.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'7af83165-d7ec-46c4-8eaa-2c4d9a88da3e', N'6', N'430613552059285504', N'每旬', N'', null, null, N'default', null, N'zh', N'ENABLED', 5, 1, 1, N'.96.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'97d5ffb6-c19e-4192-ad38-3c1844c4ea77', N'3', N'430613552059285504', N'每小时', N'', null, null, N'default', null, N'zh', N'ENABLED', 2, 1, 1, N'.93.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'a26a270d-fb01-448e-a42e-347ebf265236', N'2', N'430613552059285504', N'每分', N'', null, null, N'default', null, N'zh', N'ENABLED', 1, 1, 1, N'.92.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'adf34d8a-6a3d-4758-8cc4-b833abbd9f5b', N'5', N'430613552059285504', N'每周', N'', null, null, N'default', null, N'zh', N'ENABLED', 4, 1, 1, N'.95.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'f540e60f-7708-4460-8581-44c4abe41cb2', N'4', N'430613552059285504', N'每天', N'', null, null, N'default', null, N'zh', N'ENABLED', 3, 1, 1, N'.94.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'435019761520640000', N'GeneralCheckHandler', N'435019220119879680', N'通用检核任务', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'435020625639538688', N'tableCheckJobHandler', N'435019220119879680', N'表检核任务', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'435020729301762048', N'CheckHbaseTableJobHandler', N'435019220119879680', N'hbase检核任务', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'438567657444638720', N'CheckHiveTableJobHandler', N'435019220119879680', N'Hive检核任务', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'04adfe0b-c224-4f20-ac40-6f7a729757b3', N'200', N'464219649722449921', N'完成', N'', null, null, N'default', null, N'zh', N'ENABLED', 2, 1, 1, N'.112.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'13053f36-ab55-4c18-baeb-06843283f610', N'-100', N'464219649722449921', N'运行', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, 1, N'.111.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'd3e2bbab-acc5-43bd-943e-b4b069119c3b', N'500', N'464219649722449921', N'失败', N'', null, null, N'default', null, N'zh', N'ENABLED', 3, 1, 1, N'.113.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418566052380672', N'1', N'437418455066902528', N'数值', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418643554729984', N'2', N'437418455066902528', N'百分比', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418915186245632', N'lt', N'437418825000321024', N'<', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418950540034048', N'eq', N'437418825000321024', N'=', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437418984052523008', N'gt', N'437418825000321024', N'>', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437419157604433920', N'1', N'437419085214941184', N'一般', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437419190605217792', N'2', N'437419085214941184', N'中等', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'437419238596444160', N'3', N'437419085214941184', N'严重', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'438970836551995392', N'1', N'438970573996953600', N'新增', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'438970880189534208', N'2', N'438970573996953600', N'生效', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'438970914096287744', N'3', N'438970573996953600', N'挂起', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306738663343656960', N'0', N'306738524021460992', N'质量检核 ', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306738779987251200', N'1', N'306738524021460992', N'隐患', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306738841576411136', N'3', N'306738524021460992', N'用户反馈', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'306738880365334528', N'4', N'306738524021460992', N'其他途径', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'478779614147543040', N'table', N'478779397398495232', N'关系型', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'478779893454635008', N'MrsHiveTable', N'478779397398495232', N'MRS Hive', null, null, null, N'default', null, N'zh', N'ENABLED', 8, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'478779946848124928', N'MrsHBaseTable', N'478779397398495232', N'MRS HBase', null, null, null, N'default', null, N'zh', N'ENABLED', 9, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'478780012283461632', N'sftp', N'478779397398495232', N'文件系统', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'478781045504114688', N'other', N'478779397398495232', N'其他', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'516505563761606656', N'HIVE', N'478779397398495232', N'Hive', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'516505627292729344', N'HBASE', N'478779397398495232', N'HBase', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'516505740207587328', N'KERBEROS_HIVE', N'478779397398495232', N'Kerberos Hive', null, null, null, N'default', null, N'zh', N'ENABLED', 6, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'516505838819868672', N'KERBEROS_HBASE', N'478779397398495232', N'Kerberos HBase', null, null, null, N'default', null, N'zh', N'ENABLED', 7, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341743210044461056', N'1', N'341743150732808192', N'自建', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341743210044461057', N'3', N'341743150732808192', N'同步', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341743258182488064', N'2', N'341743150732808192', N'元数据导入', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'328433537769934848', N'1', N'328430455870853120', N'字符串', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'328433835393552384', N'2', N'328430455870853120', N'整数', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425792', N'com.mysql.cj.jdbc.Driver', N'341474990574145536', N'com.mysql.cj.jdbc.Driver', null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475101521874944', N'oracle.jdbc.OracleDriver', N'341474990574145536', N'oracle.jdbc.OracleDriver', null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425793', N'dm.jdbc.driver.DmDriver', N'341474990574145536', N'dm.jdbc.driver.DmDriver', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425794', N'org.opengauss.Driver', N'341474990574145536', N'org.opengauss.Driver', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425795', N'org.postgresql.Driver', N'341474990574145536', N'org.postgresql.Driver', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'428093768050778112', N'org.apache.hive.jdbc.HiveDriver', N'341474990574145536', N'org.apache.hive.jdbc.HiveDriver', null, null, null, N'default', null, N'zh', N'ENABLED', 6, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425796', N'com.kingbase8.Driver', N'341474990574145536', N'com.kingbase8.Driver', null, null, null, N'default', null, N'zh', N'ENABLED', 7, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425797', N'com.highgo.jdbc.Driver', N'341474990574145536', N'com.highgo.jdbc.Driver', null, null, null, N'default', null, N'zh', N'ENABLED', 8, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'341475184619425798', N'com.microsoft.sqlserver.jdbc.SQLServerDriver', N'341474990574145536', N'com.microsoft.sqlserver.jdbc.SQLServerDriver', null, null, null, N'default', null, N'zh', N'ENABLED', 8, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'486777881183551488', N'FILE_STORE_JOBID', N'486772360502214656', null, null, null, null, N'default', null, N'zh', N'ENABLED', 1, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'486780201149562880', N'FILE_PROCESS_JOBID', N'486772360502214656', null, null, null, null, N'default', null, N'zh', N'ENABLED', 2, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'491099272561197056', N'APACHE_HTTP_URL', N'486772360502214656', N'http://<ip>:<port>/', null, null, null, N'default', null, N'zh', N'ENABLED', 3, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'491099441839112192', N'CDH_HTTP_URL', N'486772360502214656', N'http://<ip>:<port>/', null, null, null, N'default', null, N'zh', N'ENABLED', 4, 1, null, N'.60.', 0);
INSERT INTO [dbo].[cof_dict_entry] ([ID], [CODE], [DICT_TYPE_ID], [NAME], [DESCRIPTION], [CREATE_TIME], [UPDATE_TIME], [TENANT_ID], [PARENT_ID], [LOCALE], [STATUS], [SORT_NO], [IS_LEAF], [TREE_LEVEL], [SEQ], [IS_FIXED]) VALUES (N'491850335119638528', N'MRS_HTTP_URL', N'486772360502214656', N'http://<ip>:<port>/', null, null, null, N'default', null, N'zh', N'ENABLED', 5, 1, null, N'.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009508569911296', '0', '307009384934412288', '未反馈', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 1, 1, NULL, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009548298358784', '1', '307009384934412288', '已反馈', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 2, 1, NULL, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009600056070144', '9', '307009384934412288', '已关闭', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 3, 1, NULL, '.60.', 0);

INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'ONCE', N'1', null, N'admin', N'2024-01-01 00:00:00', null, null, N'', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EVERY_MINUTE', N'2', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00/1 * * * ? ', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EVERY_HOUR', N'3', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00 00/1 * * ? *', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EVERY_DAY', N'4', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00 00 /1 * ? *', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EVERY_WEEK', N'5', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00 00 ? * MON,TUE,WED,THU,FRI *', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EVERY_TEN_DAYS', N'6', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00 00 1,11,21 * ? *', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EVERY_MONTH', N'7', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00 00 1 1,2,3,4,5,6,7,8,9,10,11,12 ? *', null);
INSERT INTO [dbo].[ck_frequency] ([NAME], [TYPE], [INTERVALNUM], [CREATE_BY], [CREATE_TIME], [UPDATE_BY], [UPDATE_TIME], [EXPRESSION], [DESCRIPTION]) VALUES (N'EACH_QUARTER', N'8', null, N'admin', N'2024-01-01 00:00:00', null, null, N'0 00 00 1 1,4,7,10 ? *', null);


