--
-- Host: 172.19.0.128    Database: opscloud4-github
-- ------------------------------------------------------

 SET NAMES utf8mb4 ;
SET @MYSQLDUMP_TEMP_LOG_BIN = @@SESSION.SQL_LOG_BIN;

--
-- GTID state at the beginning of the backup 
--

e5e3cf8e-3ae1-11ec-8151-00163e04d5fb:1-177843377';

--
-- Table structure for table `access_token`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `access_token` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户登录名',
  `token_id` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '令牌标识',
  `token` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'None' COMMENT '访问令牌',
  `valid` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否无效',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `expired_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `token` (`token`) USING BTREE,
  UNIQUE KEY `token_id` (`token_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='api调用令牌';

--
-- Dumping data for table `access_token`
--


--
-- Table structure for table `alert_notify_event`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `alert_notify_event` (
  `id` int NOT NULL AUTO_INCREMENT,
  `event_uuid` varchar(32) NOT NULL COMMENT '告警事件uuid',
  `alert_name` varchar(64) NOT NULL DEFAULT '' COMMENT '告警名称',
  `severity` varchar(8) NOT NULL COMMENT '告警等级  MAX、MID、LOW',
  `message` varchar(128) NOT NULL DEFAULT '' COMMENT '告警描述',
  `alert_value` varchar(32) NOT NULL COMMENT '监控指标的样本值',
  `alert_check` varchar(64) NOT NULL COMMENT '事件检查项',
  `alert_source` varchar(64) NOT NULL COMMENT '告警事件的来源',
  `alert_type` varchar(32) DEFAULT NULL COMMENT '探测端类型',
  `service` varchar(64) NOT NULL COMMENT '服务名称',
  `metadata` text NOT NULL COMMENT '告警元数据',
  `alert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '事件开始时间的时间戳',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `severity` (`severity`,`service`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='告警事件';

--
-- Dumping data for table `alert_notify_event`
--


--
-- Table structure for table `alert_notify_history`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `alert_notify_history` (
  `id` int NOT NULL AUTO_INCREMENT,
  `alert_notify_event_id` int DEFAULT NULL,
  `alert_notify_media` varchar(32) DEFAULT NULL COMMENT '告警通知媒介',
  `username` varchar(32) DEFAULT NULL,
  `alert_notify_status` varchar(32) DEFAULT NULL COMMENT '告警通知状态',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `alert_notify_event_id` (`alert_notify_event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='告警历史';

--
-- Dumping data for table `alert_notify_history`
--


--
-- Table structure for table `aliyun_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `aliyun_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `datasource_instance_id` int NOT NULL COMMENT '数据源实例ID',
  `project` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `logstore` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `config` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `account_uid` (`datasource_instance_id`,`project`,`logstore`,`config`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='阿里云日志服务';

--
-- Dumping data for table `aliyun_log`
--


--
-- Table structure for table `aliyun_log_member`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `aliyun_log_member` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `aliyun_log_id` int NOT NULL COMMENT 'SLS表主键ID',
  `server_group_id` int NOT NULL,
  `server_group_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `topic` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '',
  `env_type` int NOT NULL DEFAULT '0' COMMENT '环境类型',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `last_push_time` timestamp NULL DEFAULT NULL COMMENT '最后推送时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `aliyun_sls_id` (`aliyun_log_id`,`server_group_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='阿里云日志服务服务器组成员';

--
-- Dumping data for table `aliyun_log_member`
--


--
-- Table structure for table `ansible_playbook`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `ansible_playbook` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `playbook_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '剧本UUID',
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '名称',
  `playbook` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '剧本内容',
  `tags` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '标签配置',
  `vars` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '外部变量',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `playbook_uuid` (`playbook_uuid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `ansible_playbook`
--

INSERT INTO `ansible_playbook` VALUES (1,'60ea4519d68045719a78a8c995c59a11','Remote replication','---\n- hosts: \"{{ hosts }}\"\n  tasks:\n    - name: copy\n      copy:\n        src: \"{{ src }}\"\n        dest: \"{{ dest }}\"\n        owner: manage\n        group: manage\n      become: yes','','','远程复制文件','2021-09-01 13:18:34','2021-09-07 09:02:12'),(2,'2ff188d2d7fa4880a321f3446fc833e0','Test','---\n- hosts: \"{{ hosts }}\"\n  tasks:\n    - name: test1\n      shell: w','','','测试剧本','2021-09-23 14:28:25','2022-04-07 03:55:32'),(5,'1ad8e2adb7094190b29bdc4504b00c2a','push-dnsmasq-conf','---\n- hosts: \"{{ hosts }}\"\n  tasks:\n    - name:\n      shell: cd /data/www/data/dnsmasq && wget -O dnsmasq.conf vc-res.ops.yangege.cn/res/dnsmasq/{{ useType }}/dnsmasq.conf\n    - name: check conf\n      shell: /usr/sbin/dnsmasq --test -C /data/www/data/dnsmasq/dnsmasq.conf\n      register: result\n    - name: check if deploy fail\n      fail: msg=\"conf check fail\"\n      when: result.failed == true\n    - name: restart service\n      shell: /etc/init.d/dnsmasq restart','','','推送dnsmasq配置文件','2021-09-28 09:09:02','2021-09-28 09:09:02'),(6,'8c639f378e5343859c85e4332de9cd20','playbook-nginx','---\n- hosts: \"{{ hosts }}\"\n  tasks:\n    - name: copy file \n      copy: src={{ src }} dest={{ dest }} owner=root group=root  \n      notify:\n       - reloaded service\n    - name: get ps\n      shell: ps -ef|grep nginx|grep -v grep\n      register: psInfo\n    - name: show ps\n      debug: msg=\"{{ psInfo }}\"\n  handlers:  \n    - name: reloaded service\n      shell: /bin/systemctl reload nginx.service','','vars:\n  src: /home/app/opscloud-data/nginx/\n  dest: /data/nginx/conf','','2021-09-28 09:10:08','2021-09-28 09:16:50'),(10,'ea91fc9fa6e245de890a277bd5ed34c0','playbook-nginx-sync-config','---\n- hosts: \"{{ hosts }}\"\n  become: yes\n  tasks:\n    - name: install rsync\n      yum:\n        name: rsync\n        state: present\n    - name: creates directory\n      file:\n        path: \"/data/www/nginx-conf/{{ dest }}\"\n        state: directory\n        owner: www\n        group: www\n        mode: 0775\n    - name: sync config \n      synchronize:\n        src: \"{{ src }}/\"\n        dest: \"/data/www/nginx-conf/{{ dest }}/\"\n        delete: yes\n    - name: recursively change ownership of a directory\n      file:\n        path: /data/www/nginx-conf\n        state: directory\n        recurse: yes\n        owner: www\n        group: www\n        mode: 0644\n    - name: reloaded nginx\n      shell: /etc/init.d/nginx reload\n    - name: get ps\n      shell: ps -ef|grep nginx|grep -v grep\n      register: psInfo\n    - name: show ps\n      debug: msg=\"{{ psInfo }}\"\n','','vars:\n  src:\n  dest:','同步nginx配置文件','2021-09-28 09:13:42','2021-09-28 09:13:42'),(12,'62ceb487b6bb4b869510ac8083a5b847','playbook-nginx-push-config','---\n- hosts: \"{{ hosts }}\"\n  become: yes\n  tasks:\n    - name: push file\n      copy:\n        src: \"{{ src }}\"\n        dest: \"/data/www/nginx-conf/{{ dest }}\"\n        owner: www\n        group: www\n        mode: 0644\n      notify:\n       - reloaded nginx\n    - name: get ps\n      shell: ps -ef|grep nginx|grep -v grep\n      register: psInfo\n    - name: show ps\n      debug: msg=\"{{ psInfo }}\"\n  handlers:  \n    - name: reloaded nginx\n      shell: /etc/init.d/nginx reload','','vars:\n  src:\n  dest:','推送nginx配置文件','2021-09-28 09:22:32','2021-09-28 09:22:32'),(13,'dcf0a7a51ec048f9ac8ab0365a42a498','playbook-nginx-del-config','---\n- hosts: \"{{ hosts }}\"\n  become: yes\n  tasks:\n    - name: remove file (delete file)\n      file:\n        path: \"/data/www/nginx-conf/{{ path }}\"\n        state: absent\n      notify:\n       - reloaded nginx\n    - name: get ps\n      shell: ps -ef|grep nginx|grep -v grep\n      register: psInfo\n    - name: show ps\n      debug: msg=\"{{ psInfo }}\"\n  handlers:  \n    - name: reloaded nginx\n      shell: /etc/init.d/nginx reload','','vars:\n  path:','删除nginx配置文件','2021-09-28 09:23:33','2021-09-28 09:23:33'),(16,'7ddba3d9948449a0a6802d0b04e2d51a','playbook-k8s-worker-init','---\n- name: base\n  include: \"{{ basePath }}/k8s-worker-init.yml\"','','vars:\n  basePath: /home/app/opscloud-data/ansible/playbook/tool-install','k8s集群工作节点初始化','2021-11-19 09:58:37','2021-11-19 09:58:37'),(17,'38022fae68ad441bb67f59e7327ede25','playbook-zabbix-agent-install','---\n- name: zabbix agent install\n  include: \"{{ basePath }}/zabbix-agent-install.yml\"','','vars:\n  basePath: /home/app/opscloud-data/ansible/playbook/tool-install\n  #######  aliyun ##########\n  # hangzhou.proxy.zabbix.chuanyinet.com 杭州proxy\n  # london.proxy.zabbix.chuanyinet.com   伦敦proxy\n  # server.zabbix.chuanyinet.com         伦敦server\n  ######   aws ############\n  # ireland.proxy.zabbix.transspay.net   爱尔兰proxy\n  zabbixServer: london.proxy.zabbix.chuanyinet.com','安装zabbix5-agent','2021-12-23 09:14:32','2022-05-09 13:29:04'),(18,'77ba4fdfaf6c476fb7710175662836a1','playbook-server-base-init','---\n- name: zabbix agent install\n  include: \"{{ basePath }}/server-base-init.yml\"','','vars:\n  basePath: /home/app/opscloud-data/ansible/playbook/tool-install','服务器初始化','2021-12-28 09:07:06','2021-12-28 09:11:47'),(19,'e4316af8ec854835a1efedd0424c7616','playbook-server-base-uk-init','---\n- name: zabbix agent install\n  include: \"{{ basePath }}/server-base-uk-init.yml\"','','vars:\n  basePath: /home/app/opscloud-data/ansible/playbook/tool-install','UK服务器初始化','2022-01-19 06:06:41','2022-01-19 06:07:20'),(20,'e11bf546a4e44504ab7b55b0d45acbf8','zabbix.palmpay-inc.com-agent-install','---\n- name: zabbix agent install\n  include: \"{{ basePath }}/zabbix-agent-uk-install.yml\"','','vars:\n  basePath: /home/app/opscloud-data/ansible/playbook/tool-install\n  # 杭州 proxy\n  # proxy-hangzhou.zabbix.palmpay-inc.com\n  # 伦敦 proxy\n  # proxy-london.zabbix.palmpay-inc.com\n  # 爱尔兰 proxy\n  # proxy-ireland.zabbix.palmpay-inc.com\n  zabbixServer: proxy-frankfurt.zabbix.palmpay-inc.com','','2022-05-09 14:43:50','2023-08-02 06:10:30');

--
-- Table structure for table `application`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `application` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '应用名称',
  `application_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '应用Key',
  `application_type` int DEFAULT '0' COMMENT '应用类型',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `application_key` (`application_key`) USING BTREE,
  UNIQUE KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='聚合应用';

--
-- Dumping data for table `application`
--


--
-- Table structure for table `application_resource`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `application_resource` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `application_id` int NOT NULL COMMENT '应用ID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资源名称',
  `virtual_resource` tinyint(1) DEFAULT '0' COMMENT '虚拟资源',
  `resource_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '资源类型',
  `business_id` int DEFAULT NULL COMMENT '业务ID',
  `business_type` int DEFAULT NULL COMMENT '业务类型',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `application_id` (`application_id`,`resource_type`,`business_id`) USING BTREE,
  KEY `name` (`name`),
  KEY `resource_type` (`resource_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='应用资源';

--
-- Dumping data for table `application_resource`
--


--
-- Table structure for table `audit_api`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `audit_api` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '用户名',
  `api` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `use_ak` tinyint(1) NOT NULL DEFAULT '0' COMMENT '使用AK',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='API审计';

--
-- Dumping data for table `audit_api`
--


--
-- Table structure for table `auth_group`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_group` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `group_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `base_path` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '基本路径',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_group`
--

INSERT INTO `auth_group` VALUES (1,'Auth','/api/auth','权限管理','2020-02-15 16:04:55','2021-07-13 14:45:26'),(2,'User','/api/user','用户','2020-02-20 10:58:56','2021-07-13 14:45:31'),(40,'Datasource','/api/datasource','数据源管理','2021-05-15 14:44:36','2021-07-13 14:45:37'),(41,'System','','系统管理','2021-05-17 16:26:30','2021-05-17 16:26:30'),(42,'Tag','/api/tag','标签','2021-05-19 14:05:06','2021-07-13 14:45:41'),(43,'ServerGroup','/api/server/group','服务器组','2021-05-24 10:18:33','2021-07-13 14:45:46'),(44,'Server','/api/server','服务器管理','2021-05-25 10:43:59','2021-07-13 14:45:51'),(45,'ServerAccount','/api/server/account','服务器账户管理','2021-05-25 10:44:17','2021-07-13 14:45:56'),(46,'Env','/api/env','环境管理','2021-05-25 16:22:40','2021-07-13 14:46:00'),(47,'Menu','/api/sys/menu','菜单管理','2021-06-02 13:26:08','2021-07-13 14:46:05'),(48,'Document','/api/sys/doc','文档管理','2021-06-16 12:34:02','2021-07-13 14:46:11'),(50,'Application','/api/application','应用管理','2021-07-13 14:42:30','2021-07-13 14:42:30'),(52,'TerminalSession','/api/terminal/session','终端会话管理','2021-07-22 16:29:27','2021-07-22 16:29:27'),(53,'Static',NULL,'前端静态资源','2021-07-27 15:48:24','2021-07-27 15:48:24'),(54,'Business','/api/business','业务对象管理','2021-08-20 13:54:50','2021-08-20 13:55:29'),(55,'Task','/api/task','任务管理','2021-09-01 13:15:56','2021-09-01 13:16:10'),(56,'Aliyun',NULL,'阿里云服务','2021-09-17 14:05:07','2021-09-17 14:05:07'),(57,'ServerTask','/api/server/task','服务器任务','2021-09-18 16:06:32','2021-09-18 16:06:32'),(58,'Event','/api/receive/event','事件','2021-10-29 15:15:39','2021-10-29 15:15:39'),(59,'Template','/api/template','模版管理','2021-12-06 05:22:37','2021-12-06 05:22:37'),(60,'WorkOrder','/api/workorder','工单','2022-01-06 07:55:58','2022-01-06 07:55:58'),(61,'OutAPI','/api/out','外部API','2022-06-10 02:57:10',NULL),(62,'Report','/api/report','报表管理','2022-07-08 02:26:08',NULL),(63,'WorkEvent','/api/workevent','工作事件','2022-08-16 09:03:04',NULL),(64,'Message','/api/message','','2022-09-08 13:31:30',NULL),(65,'Leo','/api/leo','leo发布模块','2022-11-01 12:47:13','2022-11-04 07:25:58'),(66,'Announcement','/api/sys/announcement','公告','2022-12-28 09:31:46','2022-12-28 09:44:15'),(67,'Project','/api/project','项目','2023-05-19 03:04:20',NULL),(68,'Kubernetes','/api/kubernetes','Kubernetes','2023-05-22 09:28:56',NULL),(69,'SerDeploy','/api/ser/','ser包发布','2023-06-07 07:23:24',NULL),(70,'Example','/api/example','接口例子','2023-09-14 06:46:15','2023-09-14 06:59:16');

--
-- Table structure for table `auth_menu`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_menu` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `role_id` int NOT NULL DEFAULT '0' COMMENT '角色ID',
  `menu_type` int NOT NULL DEFAULT '0' COMMENT '0:aside 1:header',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '描述',
  `menu` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_menu`
--

INSERT INTO `auth_menu` VALUES (10,1,0,'super_admin','[\n  {\n    title: \'首页\',\n    icon: \'home\',\n    children: [\n      { path: \'/dashboard\', title: \'仪表盘\', icon: \'area-chart\' },\n      { path: \'/dashboard/hot\', title: \'热门排行\', icon: \'fire\' },\n      { path: \'/dashboard/pipeline\', title: \'任务视图\', icon: \'modx\' }\n    ]\n  },\n  {\n    title: \'全局配置\',\n    icon: \'cogs\',\n    children: [\n      { path: \'/env\', title: \'环境配置\', icon: \'cog\' },\n      { path: \'/tag\', title: \'标签配置\', icon: \'tags\' },\n      { path: \'/workorder/mgmt\', title: \'工单配置\', icon: \'ticket\' },\n      { path: \'/setting/keybox\', title: \'密钥管理\', icon: \'key\' },\n      { path: \'/setting/global\', title: \'系统参数\', icon: \'cog\' }\n    ]\n  },\n  {\n    title: \'应用配置\',\n    icon: \'codepen\',\n    children: [\n      { path: \'/application\', title: \'应用\', iconSvg: \'application\' }\n    ]\n  },\n  {\n    title: \'我的工作台\',\n    icon: \'desktop\',\n    children: [\n      { path: \'/workbench/continuous-integration\', title: \'持续集成\', icon: \'envira\' },\n      { path: \'/workbench/jump\', title: \'堡垒机\', icon: \'terminal\' },\n      { path: \'/workbench/web-terminal\', title: \'Web终端\', iconSvg: \'xterm\' },\n      { path: \'/workbench/application\', title: \'我的应用\', iconSvg: \'k8s-application\' }\n    ]\n  },\n  {\n    title: \'Caesar配置\',\n    icon: \'connectdevelop\',\n    children: [\n      { path: \'/caesar/instance\', title: \'实例管理\', iconSvg: \'caesar\' }\n    ]\n  },\n  {\n    title: \'Jenkins配置\',\n    icon: \'google-wallet\',\n    children: [\n      { path: \'/jenkins/instance\', title: \'实例管理\', iconSvg: \'jenkins\' },\n      { path: \'/jenkins/job/template\', title: \'任务模版\', iconSvg: \'template\' },\n      { path: \'/jenkins/job/template/version\', title: \'模版版本\', iconSvg: \'template\' }\n    ]\n  },\n  {\n    title: \'Gitlab配置\',\n    icon: \'gitlab\',\n    children: [\n      { path: \'/gitlab/instance\', title: \'实例管理\', icon: \'git\' },\n      { path: \'/gitlab/group\', title: \'群组管理\', icon: \'th-large\' },\n      { path: \'/gitlab/project\', title: \'项目管理\', icon: \'th-list\' }\n    ]\n  },\n  {\n    title: \'存储管理\',\n    icon: \'database\',\n    children: [\n      { path: \'/storage/oss\', title: \'对象存储\', iconSvg: \'oss\' }\n    ]\n  },\n  {\n    title: \'通知中心\',\n    icon: \'volume-control-phone\',\n    children: [\n      { path: \'/dingtalk\', title: \'钉钉配置\', iconSvg: \'dingtalk\' }\n    ]\n  },\n  {\n    title: \'服务器管理\',\n    icon: \'server\',\n    children: [\n      { path: \'/server\', title: \'服务器\', icon: \'server\' },\n      { path: \'/server/attribute\', title: \'服务器属性\', icon: \'tag\' },\n      { path: \'/server/group\', title: \'服务器组\', icon: \'window-restore\' },\n      { path: \'/server/group/type\', title: \'服务器组类型\', icon: \'align-justify\' }\n    ]\n  },\n  {\n    title: \'Kubernetes\',\n    icon: \'dropbox\',\n    children: [\n      { path: \'/kubernetes/application\', title: \'应用管理\', iconSvg: \'k8s-application\' },\n      { path: \'/kubernetes/application/instance\', title: \'应用实例管理\', iconSvg: \'k8s-instance\' },\n      { path: \'/kubernetes/cluster\', title: \'集群管理\', iconSvg: \'kubernetes\' },\n      { path: \'/kubernetes/deployment\', title: \'无状态管理\', iconSvg: \'k8s-deployment\' },\n      { path: \'/kubernetes/service\', title: \'服务管理\', iconSvg: \'k8s-service\' },\n      { path: \'/kubernetes/template\', title: \'模版管理\', iconSvg: \'YAML\' }\n    ]\n  },\n  {\n    title: \'堡垒机\',\n    icon: \'empire\',\n    children: [\n      { path: \'/jump/jumpserver/settings\', title: \'Jump设置\', icon: \'cog\' },\n      { path: \'/jump/jumpserver/user\', title: \'用户管理\', icon: \'user\' },\n      { path: \'/jump/jumpserver/asset\', title: \'资产管理\', icon: \'server\' },\n      { path: \'/term/session\', title: \'Web终端会话\', icon: \'server\' } \n    ]\n  },\n  {\n    title: \'用户管理\',\n    icon: \'user-circle\',\n    children: [\n      { path: \'/user\', title: \'用户\', icon: \'user\' },\n      { path: \'/user/group\', title: \'用户组\', icon: \'users\' },\n      { path: \'/user/retired\', title: \'用户离职管理\', icon: \'user\' },\n      { path: \'/org\', title: \'组织架构\', icon:\'sitemap\'},\n      { path: \'/org/department\', title: \'部门管理\', icon: \'connectdevelop\' }\n    ]\n  },\n  {\n    title: \'任务管理\',\n    icon: \'th-list\',\n    children: [\n      { path: \'/task/ansible/mgmt\', title: \'配置管理\', icon: \'file-text-o\' },\n      { path: \'/task/profile/subscription\', title: \'配置订阅\', iconSvg: \'subscription\' },\n      { path: \'/task/command\', title: \'批量命令\', icon: \'terminal\' },\n      { path: \'/task/script\', title: \'批量脚本\', icon: \'retweet\' },\n      { path: \'/task/playbook\', title: \'playbook\', icon: \'recycle\' },\n      { path: \'/task/history\', title: \'任务查询\', icon: \'yelp\' }\n    ]\n  },\n  {\n    title: \'RBAC配置\',\n    icon: \'address-card\',\n    children: [\n      { path: \'/auth/resource\', title: \'资源管理\', icon: \'modx\' },\n      { path: \'/auth/role\', title: \'角色管理\', icon: \'users\' },\n      { path: \'/auth/user/role\', title: \'用户角色配置\', icon: \'id-card\' }\n    ]\n  },\n  {\n    title: \'个人详情\',\n    icon: \'user-o\',\n    children: [\n      { path: \'/user/detail\', title: \'我的详情\', icon: \'address-book\' }\n    ]\n  }\n]\n','2020-04-23 07:56:17','2021-04-20 14:02:53'),(11,2,0,'admin','[\n  {\n    title: \'全局配置\',\n    icon: \'cogs\',\n    children: [\n      { path: \'/env\', title: \'环境配置\', icon: \'cog\' },\n      { path: \'/tag\', title: \'标签配置\', icon: \'cog\' }\n    ]\n  },\n  {\n    title: \'服务器管理\',\n    icon: \'server\',\n    children: [\n      { path: \'/server\', title: \'服务器\', icon: \'server\' },\n      { path: \'/server/attribute\', title: \'服务器属性\', icon: \'tag\' },\n      { path: \'/server/group\', title: \'服务器组\', icon: \'window-restore\' },\n      { path: \'/server/group/type\', title: \'服务器组类型\', icon: \'align-justify\' }\n    ]\n  },\n  {\n    title: \'云主机管理\',\n    icon: \'cloud\',\n    children: [\n      { path: \'/cloud/server/ecs\', title: \'ECS\', iconSvg: \'aliyun-ecs\' },\n      { path: \'/cloud/server/ec2\', title: \'EC2\', iconSvg: \'amazonaws\' },\n      { path: \'/cloud/server/esxi\', title: \'ESXI\', iconSvg: \'vmware\' },\n      // tencent\n      { path: \'/cloud/server/vm\', title: \'VM\', iconSvg: \'vmware\' },\n      { path: \'/cloud/server/zabbixhost\', title: \'ZabbixHost\', iconSvg: \'zabbix\' }\n    ]\n  },\n   {\n    title: \'阿里云\',\n    icon: \'cloud\',\n    children: [\n      { path: \'/cloud/aliyun/ram\', title: \'访问控制管理\', iconSvg: \'aliyun-ram\' }\n    ]\n  }, \n  {\n    title: \'云数据库\',\n    icon: \'database\',\n    children: [\n      { path: \'/cloud/db/instance\', title: \'数据库实例\', icon: \'cube\' },\n      { path: \'/cloud/db/database\', title: \'数据库\', icon: \'cubes\' },\n      { path: \'/cloud/db/database/slowlog\', title: \'慢日志\', icon: \'warning\' },\n      { path: \'/cloud/db/my/database\', title: \'我的数据库\', icon: \'diamond\' }\n    ]\n  },\n  {\n    title: \'堡垒机\',\n    icon: \'empire\',\n    children: [\n      { path: \'/jump/jumpserver/settings\', title: \'设置\', icon: \'cog\' },\n      { path: \'/jump/jumpserver/user\', title: \'用户管理\', icon: \'user\' },\n      { path: \'/jump/jumpserver/asset\', title: \'资产管理\', icon: \'server\' },\n      { path: \'/term/session\', title: \'Web终端会话\', icon: \'server\' }\n    ]\n  },\n  {\n    title: \'我的工作台\',\n    icon: \'desktop\',\n    children: [\n      { path: \'/workbench/workorder\', title: \'工单\', icon: \'list\' },\n      { path: \'/workbench/jump\', title: \'堡垒机\', icon: \'terminal\' },\n      { path: \'/workbench/xterm\', title: \'web终端\', iconSvg: \'xterm\' },\n      { path: \'/workbench/application\', title: \'我的应用\', iconSvg: \'k8s-application\' }\n    ]\n  },\n  {\n    title: \'用户管理\',\n    icon: \'user-circle\',\n    children: [\n      { path: \'/user\', title: \'用户\', icon: \'user\' },\n      { path: \'/user/group\', title: \'用户组\', icon: \'users\' },\n      { path: \'/org/department\', title: \'部门管理\', icon: \'connectdevelop\' }\n    ]\n  },\n  {\n    title: \'RBAC配置\',\n    icon: \'address-card\',\n    children: [\n      { path: \'/auth/resource\', title: \'资源管理\', icon: \'modx\' },\n      { path: \'/auth/role\', title: \'角色管理\', icon: \'users\' },\n      { path: \'/auth/user/role\', title: \'用户角色配置\', icon: \'id-card\' }\n    ]\n  },\n  {\n    title: \'任务管理\',\n    icon: \'th-list\',\n    children: [\n      { path: \'/task/ansible-mgmt\', title: \'配置管理\', icon: \'file-text-o\' },\n      { path: \'/task/command\', title: \'批量命令\', icon: \'terminal\' },\n      { path: \'/task/script\', title: \'批量脚本\', icon: \'retweet\' },\n      { path: \'/task/playbook\', title: \'playbook\', icon: \'recycle\' },\n      { path: \'/task/history\', title: \'任务查询\', icon: \'yelp\' }\n    ]\n  },\n  {\n    title: \'个人详情\',\n    icon: \'user-o\',\n    children: [\n      { path: \'/user/detail\', title: \'我的详情\', icon: \'address-book\' }\n    ]\n  }\n]\n','2020-04-23 10:12:46','2020-07-05 19:54:39'),(12,3,0,'ops','[\n  {\n    title: \'全局配置\',\n    icon: \'cogs\',\n    children: [\n      { path: \'/env\', title: \'环境配置\', icon: \'cog\' },\n      { path: \'/tag\', title: \'标签配置\', icon: \'cog\' }\n    ]\n  },\n  {\n    title: \'服务器管理\',\n    icon: \'server\',\n    children: [\n      { path: \'/server\', title: \'服务器\', icon: \'server\' },\n      { path: \'/server/attribute\', title: \'服务器属性\', icon: \'tag\' },\n      { path: \'/server/group\', title: \'服务器组\', icon: \'window-restore\' },\n      { path: \'/server/group/type\', title: \'服务器组类型\', icon: \'align-justify\' }\n    ]\n  },\n  {\n    title: \'云主机管理\',\n    icon: \'cloud\',\n    children: [\n      { path: \'/cloud/server/ecs\', title: \'ECS\', iconSvg: \'aliyun-ecs\' },\n      { path: \'/cloud/server/ec2\', title: \'EC2\', iconSvg: \'amazonaws\' },\n      { path: \'/cloud/server/esxi\', title: \'ESXI\', iconSvg: \'vmware\' },\n      // tencent\n      { path: \'/cloud/server/vm\', title: \'VM\', iconSvg: \'vmware\' },\n      { path: \'/cloud/server/zabbixhost\', title: \'ZabbixHost\', iconSvg: \'zabbix\' }\n    ]\n  },\n   {\n    title: \'阿里云\',\n    icon: \'cloud\',\n    children: [\n      { path: \'/cloud/aliyun/ram\', title: \'访问控制管理\', iconSvg: \'aliyun-ram\' }\n    ]\n  },\n   {\n    title: \'Kubernetes\',\n    icon: \'dropbox\',\n    children: [\n      { path: \'/kubernetes/application\', title: \'应用管理\', iconSvg: \'k8s-application\' },\n      { path: \'/kubernetes/application/instance\', title: \'应用实例管理\', iconSvg: \'k8s-instance\' },\n      { path: \'/kubernetes/cluster\', title: \'集群管理\', iconSvg: \'kubernetes\' },\n      { path: \'/kubernetes/deployment\', title: \'无状态管理\', iconSvg: \'k8s-deployment\' },\n      { path: \'/kubernetes/service\', title: \'服务管理\', iconSvg: \'k8s-service\' },\n      { path: \'/kubernetes/template\', title: \'模版管理\', iconSvg: \'YAML\' }\n    ]\n  },\n  {\n    title: \'云数据库\',\n    icon: \'database\',\n    children: [\n      { path: \'/cloud/db/instance\', title: \'数据库实例\', icon: \'cube\' },\n      { path: \'/cloud/db/database\', title: \'数据库\', icon: \'cubes\' },\n      { path: \'/cloud/db/database/slowlog\', title: \'慢日志\', icon: \'warning\' },\n      { path: \'/cloud/db/my/database\', title: \'我的数据库\', icon: \'diamond\' }\n    ]\n  },\n  {\n    title: \'堡垒机\',\n    icon: \'empire\',\n    children: [\n      { path: \'/jump/jumpserver/settings\', title: \'设置\', icon: \'cog\' },\n      { path: \'/jump/jumpserver/user\', title: \'用户管理\', icon: \'user\' },\n      { path: \'/jump/jumpserver/asset\', title: \'资产管理\', icon: \'server\' },\n      { path: \'/term/session\', title: \'Web终端会话\', icon: \'server\' }\n    ]\n  },\n  {\n    title: \'我的工作台\',\n    icon: \'desktop\',\n    children: [\n      { path: \'/workbench/workorder\', title: \'工单\', icon: \'list\' },\n      { path: \'/workbench/jump\', title: \'堡垒机\', icon: \'terminal\' },\n      { path: \'/workbench/xterm\', title: \'web终端\', iconSvg: \'xterm\' },\n      { path: \'/workbench/application\', title: \'我的应用\', iconSvg: \'k8s-application\' }\n    ]\n  },\n  {\n    title: \'用户管理\',\n    icon: \'user-circle\',\n    children: [\n      { path: \'/user\', title: \'用户\', icon: \'user\' },\n      { path: \'/user/group\', title: \'用户组\', icon: \'users\' },\n      { path: \'/org/department\', title: \'部门管理\', icon: \'connectdevelop\' }\n    ]\n  },\n   {\n    title: \'RBAC配置\',\n    icon: \'address-card\',\n    children: [\n      { path: \'/auth/resource\', title: \'资源管理\', icon: \'modx\' },\n      { path: \'/auth/role\', title: \'角色管理\', icon: \'users\' },\n      { path: \'/auth/user/role\', title: \'用户角色配置\', icon: \'id-card\' }\n    ]\n  },\n  {\n    title: \'任务管理\',\n    icon: \'th-list\',\n    children: [\n      { path: \'/task/ansible-mgmt\', title: \'配置管理\', icon: \'file-text-o\' },\n      { path: \'/task/command\', title: \'批量命令\', icon: \'terminal\' },\n      { path: \'/task/script\', title: \'批量脚本\', icon: \'retweet\' },\n      { path: \'/task/playbook\', title: \'playbook\', icon: \'recycle\' },\n      { path: \'/task/history\', title: \'任务查询\', icon: \'yelp\' }\n    ]\n  },\n  {\n    title: \'个人详情\',\n    icon: \'user-o\',\n    children: [\n      { path: \'/user/detail\', title: \'我的详情\', icon: \'address-book\' }\n    ]\n  }\n]\n','2020-04-23 10:14:17','2020-07-07 16:55:27'),(13,4,0,'dev','[\n {\n    title: \'首页\',\n    icon: \'home\',\n    children: [\n      { path: \'/dashboard\', title: \'仪表盘\', icon: \'area-chart\' },\n      { path: \'/dashboard/hot\', title: \'热门排行\', icon: \'fire\' },\n      { path: \'/dashboard/pipeline\', title: \'流水线视图\', icon: \'modx\' }\n    ]\n  },\n {\n    title: \'我的工作台\',\n    icon: \'desktop\',\n    children: [\n      { path: \'/workbench/continuous-integration\', title: \'持续集成\', icon: \'envira\' },\n      { path: \'/workbench/xterm\', title: \'web终端\', iconSvg: \'xterm\' }\n    ]\n  },\n  {\n    title: \'应用配置\',\n    icon: \'codepen\',\n    children: [\n      { path: \'/application\', title: \'应用\', iconSvg: \'application\' }\n    ]\n  },\n  {\n    title: \'个人详情\',\n    icon: \'user-o\',\n    children: [\n      { path: \'/user/detail\', title: \'我的详情\', icon: \'address-book\' }\n    ]\n  }\n]\n','2020-04-23 10:17:22','2021-04-06 10:27:06'),(14,5,0,'base','[\n  {\n    title: \'用户管理\',\n    icon: \'user-circle\',\n    children: [\n      { path: \'/user\', title: \'用户\', icon: \'user\' },\n      { path: \'/user/group\', title: \'用户组\', icon: \'users\' },\n      { path: \'/org/department\', title: \'部门管理\', icon: \'connectdevelop\' }\n    ]\n  },\n  {\n    title: \'个人详情\',\n    icon: \'user-o\',\n    children: [\n      { path: \'/user/detail\', title: \'我的详情\', icon: \'address-book\' }\n    ]\n  }\n]\n','2020-04-23 10:18:04','2020-04-23 10:18:04'),(15,13,0,'aliyun_log_admin','[\n  {\n    title: \'服务器管理\',\n    icon: \'server\',\n    children: [\n      { path: \'/server\', title: \'服务器\', icon: \'server\' },\n      { path: \'/server/attribute\', title: \'服务器属性\', icon: \'tag\' },\n      { path: \'/server/group\', title: \'服务器组\', icon: \'window-restore\' },\n      { path: \'/server/group/type\', title: \'服务器组类型\', icon: \'align-justify\' }\n    ]\n  },\n  {\n    title: \'云主机管理\',\n    icon: \'cloud\',\n    children: [\n      { path: \'/cloud/server/ecs\', title: \'ECS\', iconSvg: \'aliyun-ecs\' },\n      { path: \'/cloud/server/ec2\', title: \'EC2\', iconSvg: \'amazonaws\' },\n      { path: \'/cloud/server/esxi\', title: \'ESXI\', iconSvg: \'vmware\' },\n      { path: \'/cloud/server/vm\', title: \'VM\', iconSvg: \'vmware\' },\n      { path: \'/cloud/server/zabbixhost\', title: \'ZabbixHost\', iconSvg: \'zabbix\' }\n    ]\n  },\n  {\n    title: \'阿里云\',\n    icon: \'cloud\',\n    children: [\n      { path: \'/cloud/aliyun/ram\', title: \'访问控制管理\', iconSvg: \'aliyun-ram\' },\n      { path: \'/cloud/aliyun/log\', title: \'日志服务管理\', iconSvg: \'aliyun-log\' }\n    ]\n  },\n  {\n    title: \'云数据库\',\n    icon: \'database\',\n    children: [\n      { path: \'/cloud/db/instance\', title: \'数据库实例\', icon: \'cube\' },\n      { path: \'/cloud/db/database\', title: \'数据库\', icon: \'cubes\' },\n      { path: \'/cloud/db/database/slowlog\', title: \'慢日志\', icon: \'warning\' },\n      { path: \'/cloud/db/my/database\', title: \'我的数据库\', icon: \'diamond\' }\n    ]\n  },\n  {\n    title: \'我的工作台\',\n    icon: \'desktop\',\n    children: [\n      { path: \'/workbench/workorder\', title: \'工单\', icon: \'list\' },\n      { path: \'/workbench/jump\', title: \'堡垒机\', icon: \'terminal\' },\n      { path: \'/workbench/xterm\', title: \'web终端\', icon: \'object-ungroup\' }\n    ]\n  },\n  {\n    title: \'用户管理\',\n    icon: \'user-circle\',\n    children: [\n      { path: \'/user\', title: \'用户\', icon: \'user\' },\n      { path: \'/user/group\', title: \'用户组\', icon: \'users\' },\n      { path: \'/org/department\', title: \'部门管理\', icon: \'connectdevelop\' }\n    ]\n  },\n  {\n    title: \'任务管理\',\n    icon: \'th-list\',\n    children: [\n      { path: \'/task/ansible-mgmt\', title: \'配置管理\', icon: \'file-text-o\' },\n      { path: \'/task/command\', title: \'批量命令\', icon: \'terminal\' },\n      { path: \'/task/script\', title: \'批量脚本\', icon: \'retweet\' },\n      { path: \'/task/ansible\', title: \'playbook\', icon: \'recycle\' }\n    ]\n  },\n  {\n    title: \'个人详情\',\n    icon: \'user-o\',\n    children: [\n      { path: \'/user/detail\', title: \'我的详情\', icon: \'address-book\' }\n    ]\n  }\n]\n','2020-06-15 16:45:51','2020-06-15 16:46:32');

--
-- Table structure for table `auth_platform`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_platform` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '平台名称',
  `token` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '认证令牌',
  `credential_id` int NOT NULL DEFAULT '0' COMMENT '凭据ID',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '平台描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `name` (`name`),
  KEY `token` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_platform`
--


--
-- Table structure for table `auth_platform_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_platform_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `platform_id` int NOT NULL,
  `platform_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '平台名称',
  `username` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '认证令牌',
  `otp` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'otp标识',
  `result` tinyint(1) NOT NULL COMMENT '认证结果',
  `result_msg` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '认证消息',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `token` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_platform_log`
--


--
-- Table structure for table `auth_resource`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_resource` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `group_id` int NOT NULL COMMENT '资源组ID',
  `resource_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资源名称',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `need_auth` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否鉴权',
  `ui` tinyint(1) NOT NULL DEFAULT '0' COMMENT '用户界面',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `resource_name` (`resource_name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=717 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_resource`
--

INSERT INTO `auth_resource` VALUES (1,1,'/api/log/login','用户登录接口',0,0,'2020-02-18 17:39:09','2021-06-30 17:24:51'),(2,1,'/api/auth/role/page/query','角色分页查询',1,0,'2020-02-14 09:40:38','2021-06-30 17:25:14'),(3,1,'/api/auth/role/add','新增角色',1,0,'2020-02-14 19:27:57','2021-06-30 17:25:14'),(4,1,'/api/auth/role/update','更新角色配置',1,0,'2020-02-14 19:28:11','2021-06-30 17:25:14'),(5,1,'/api/auth/role/del','删除角色',1,0,'2020-02-14 19:28:36','2021-06-30 17:25:14'),(6,1,'/api/auth/resource/page/query','资源分页查询',1,0,'2020-02-14 21:11:59','2021-06-30 17:25:14'),(7,1,'/api/auth/resource/add','新增资源',1,1,'2020-02-14 21:12:14','2021-06-30 17:25:14'),(8,1,'/api/auth/resource/update','更新资源配置',1,1,'2020-02-14 21:12:23','2021-06-30 17:25:14'),(9,1,'/api/auth/resource/del','删除资源',1,0,'2020-02-14 21:12:33','2021-06-30 17:25:14'),(10,1,'/api/auth/group/page/query','资源组分页查询',1,0,'2020-02-15 16:33:30','2021-06-30 17:25:14'),(15,1,'/api/auth/group/add','新增资源组',1,0,'2020-02-18 12:57:54','2021-06-30 17:25:14'),(16,1,'/api/auth/group/del','删除资源组',1,0,'2020-02-18 12:58:03','2021-06-30 17:25:14'),(17,1,'/api/auth/group/update','更新资源组',1,0,'2020-02-18 12:58:27','2021-06-30 17:25:14'),(27,1,'/api/auth/role/resource/bind/page/query','分页查询角色绑定的资源列表',1,0,'2020-02-19 11:08:55','2021-06-30 17:25:14'),(29,1,'/api/auth/role/resource/add','角色资源关联',1,0,'2020-02-19 18:04:14','2021-06-30 17:25:14'),(30,1,'/api/auth/role/resource/del','角色资源删除',1,0,'2020-02-19 18:04:22','2021-06-30 17:25:14'),(31,1,'/api/auth/user/role/page/query','用户角色分页查询',1,0,'2020-02-20 09:36:25','2021-06-30 17:25:14'),(32,2,'/api/user/page/query','用户查询接口',1,0,'2020-02-20 10:59:30','2021-06-30 17:25:14'),(33,1,'/api/auth/user/role/add','新增用户角色配置',1,0,'2020-02-20 11:33:40','2021-06-30 17:25:14'),(34,1,'/api/auth/user/role/del','删除用户角色配置',1,0,'2020-02-20 11:34:01','2021-06-30 17:25:14'),(165,1,'/api/auth/menu/query','用户菜单查询',1,0,'2020-04-23 08:41:41','2021-06-30 17:25:14'),(188,1,'/api/auth/role/menu/save','保存角色菜单配置',1,1,'2020-05-19 09:47:21','2021-06-30 17:25:14'),(189,1,'/api/auth/role/menu/query','查询角色菜单配置',1,0,'2020-05-19 09:47:40','2021-06-30 17:25:14'),(236,1,'/api/home','首页',0,0,'2020-06-16 18:23:05','2021-06-30 17:25:14'),(386,1,'/api/auth/token/revoke','吊销所有用户令牌',1,0,'2021-04-19 12:59:19','2021-06-30 17:25:14'),(389,40,'/api/datasource/config/page/query','分页查询数据源配置',1,0,'2021-05-15 14:45:34','2021-06-30 17:25:14'),(390,40,'/api/datasource/config/add','新增数据源配置',1,0,'2021-05-17 10:31:50','2021-06-30 17:25:14'),(391,40,'/api/datasource/config/update','更新数据源配置',1,0,'2021-05-17 10:32:11','2021-06-30 17:25:14'),(392,41,'/api/sys/credential/kind/options/get','查询系统凭据分类选项',1,0,'2021-05-17 16:27:17','2021-06-30 17:25:14'),(393,41,'/api/sys/credential/page/query','分页查询系统凭据列表',1,0,'2021-05-17 16:45:36','2021-06-30 17:25:14'),(394,41,'/api/sys/credential/add','新增系统凭据配置',1,0,'2021-05-18 10:08:17','2021-06-30 17:25:14'),(395,41,'/api/sys/credential/update','更新系统凭据配置',1,0,'2021-05-18 10:08:30','2021-06-30 17:25:14'),(396,42,'/api/tag/page/query','分页查询标签列表',1,0,'2021-05-19 14:05:44','2021-06-30 17:25:14'),(397,42,'/api/tag/add','新增标签信息',1,0,'2021-05-19 14:06:00','2021-06-30 17:25:14'),(398,42,'/api/tag/update','更新标签信息',1,0,'2021-05-19 14:06:11','2021-06-30 17:25:14'),(399,42,'/api/tag/business/options/get','查询业务类型选项',1,0,'2021-05-19 14:36:29','2021-06-30 17:25:14'),(400,40,'/api/datasource/instance/register','注册数据源实例',1,0,'2021-05-19 17:12:34','2021-06-30 17:25:14'),(401,40,'/api/datasource/instance/query','查询数据源实例',1,0,'2021-05-20 08:32:40','2021-06-30 17:25:14'),(402,42,'/api/tag/business/type/get','按类型查询所有标签',1,0,'2021-05-20 11:52:05','2021-06-30 17:25:14'),(404,42,'/api/tag/business/update','更新业务标签',1,0,'2021-05-20 12:32:37','2021-06-30 17:25:14'),(405,40,'/api/datasource/config/type/options/get','查询数据源配置类型选项',1,0,'2021-05-21 09:36:20','2021-06-30 17:25:14'),(406,43,'/api/server/group/type/page/query','分页查询服务器组类型列表',1,0,'2021-05-24 10:19:04','2021-06-30 17:25:14'),(407,43,'/api/server/group/type/add','新增服务器组类型',1,0,'2021-05-24 10:19:33','2021-06-30 17:25:14'),(408,43,'/api/server/group/type/update','更新服务器组类型',1,0,'2021-05-24 10:19:53','2021-06-30 17:25:14'),(409,43,'/api/server/group/type/del','删除指定的服务器组类型',1,0,'2021-05-24 10:20:06','2021-06-30 17:25:14'),(410,43,'/api/server/group/page/query','分页查询服务器组列表',1,0,'2021-05-24 13:31:11','2021-06-30 17:25:14'),(411,43,'/api/server/group/add','新增服务器组',1,0,'2021-05-24 13:31:38','2021-06-30 17:25:14'),(412,43,'/api/server/group/update','更新服务器组',1,0,'2021-05-24 14:41:51','2021-06-30 17:25:14'),(413,45,'/api/server/account/page/query','分页查询服务器账户列表',1,0,'2021-05-25 10:44:49','2021-06-30 17:25:14'),(414,44,'/api/server/protocol/options/get','查询服务器协议选项',1,0,'2021-05-25 12:40:14','2021-06-30 17:25:14'),(415,45,'/api/server/account/add','新增服务器账户',1,0,'2021-05-25 13:31:29','2021-06-30 17:25:14'),(416,45,'/api/server/account/update','更新服务器账户',1,0,'2021-05-25 13:31:38','2021-06-30 17:25:14'),(417,46,'/api/sys/env/page/query','分页查询环境列表',1,0,'2021-05-25 16:23:17','2021-06-30 17:25:14'),(418,46,'/api/sys/env/add','新增环境',1,0,'2021-05-25 16:23:30','2021-06-30 17:25:14'),(419,46,'/api/sys/env/update','更新环境',1,0,'2021-05-25 16:23:40','2021-06-30 17:25:14'),(420,46,'/api/sys/env/del','删除指定的环境',1,0,'2021-05-25 16:23:56','2021-06-30 17:25:14'),(421,44,'/api/server/page/query','分页查询服务器列表',1,0,'2021-05-25 17:02:07','2021-06-30 17:25:14'),(422,44,'/api/server/add','新增服务器',1,0,'2021-05-26 09:01:46','2021-06-30 17:25:14'),(423,44,'/api/server/update','更新服务器',1,0,'2021-05-26 09:02:00','2021-06-30 17:25:14'),(424,44,'/api/server/del','删除指定的服务器',1,0,'2021-05-26 09:02:19','2021-06-30 17:25:14'),(425,45,'/api/server/account/permission/update','更新服务器账户授权',1,0,'2021-05-26 14:00:11','2021-06-30 17:25:14'),(426,2,'/api/user/add','新增用户',1,0,'2021-05-27 08:21:29','2021-06-30 17:25:14'),(427,2,'/api/user/update','更新用户',1,0,'2021-05-27 08:21:44','2021-06-30 17:25:14'),(428,2,'/api/user/del','删除指定的用户',1,0,'2021-05-27 08:21:59','2021-06-30 17:25:14'),(430,2,'/api/user/business/permission/revoke','解除用户业务许可',1,0,'2021-05-27 13:49:07','2021-06-30 17:25:14'),(431,2,'/api/user/business/permission/grant','授予用户业务许可',1,0,'2021-05-27 13:56:53','2021-06-30 17:25:14'),(433,2,'/api/user/business/permission/set','设置用户业务许可（角色）',1,0,'2021-05-27 16:36:45','2021-06-30 17:25:14'),(434,2,'/api/user/server/tree/query','查询用户的服务器树',1,0,'2021-05-28 13:43:33','2021-06-30 17:25:14'),(435,1,'/api/auth/user/role/update','更新用户角色',1,0,'2021-06-01 16:43:28','2021-06-30 17:25:14'),(436,47,'/api/sys/menu/save','保存菜单',1,0,'2021-06-02 13:26:45','2021-06-30 17:25:14'),(437,47,'/api/sys/menu/child/save','保存子菜单',1,0,'2021-06-02 13:26:55','2021-06-30 17:25:14'),(438,47,'/api/sys/menu/del','删除菜单',1,0,'2021-06-02 13:27:15','2021-06-30 17:25:14'),(439,47,'/api/sys/menu/child/del','删除子菜单',1,0,'2021-06-02 13:27:25','2021-06-30 17:25:14'),(440,47,'/api/sys/menu/query','查询菜单',1,0,'2021-06-02 13:27:35','2021-06-30 17:25:14'),(441,47,'/api/sys/menu/child/query','查询子菜单',1,0,'2021-06-02 13:27:53','2021-06-30 17:25:14'),(442,47,'/api/sys/menu/tree/query','查询菜单树',1,0,'2021-06-03 14:23:45','2021-06-30 17:25:14'),(443,47,'/api/sys/menu/role/save','保存角色菜单',1,0,'2021-06-03 14:23:56','2021-06-30 17:25:14'),(444,47,'/api/sys/menu/role/query','查询角色菜单',1,0,'2021-06-03 14:24:08','2021-06-30 17:25:14'),(445,47,'/api/sys/menu/role/detail/query','查询角色菜单详情',1,0,'2021-06-03 14:24:18','2021-06-30 17:25:14'),(446,2,'/api/user/ui/info/get','查询用户前端界面信息(菜单&UI鉴权)',1,0,'2021-06-07 08:35:52','2021-08-04 17:07:27'),(447,2,'/api/user/details/get','查询用户详情',1,0,'2021-06-09 10:12:46','2021-06-30 17:25:14'),(448,2,'/api/user/credential/save','保存用户凭据',1,0,'2021-06-09 15:06:22','2021-06-30 17:25:14'),(453,48,'/api/sys/doc/preview','查阅文档',1,0,'2021-06-16 12:34:34','2021-06-30 17:25:14'),(454,2,'/api/user/group/page/query','分页查询用户组列表',1,0,'2021-06-16 15:03:20','2021-06-30 17:25:14'),(455,2,'/api/user/business/permission/query','分页查询用户授权业务对象列表',1,0,'2021-06-16 16:10:01','2021-06-30 17:25:14'),(456,40,'/api/datasource/instance/asset/page/query','分页查询数据源资产列表',1,0,'2021-06-18 16:57:30','2021-06-30 17:25:14'),(458,40,'/api/datasource/instance/asset/pull','拉取数据源资产信息',1,0,'2021-06-21 12:27:23','2021-06-30 17:25:14'),(459,40,'/api/datasource/instance/asset/del','删除指定的资产',1,0,'2021-06-22 12:05:46','2021-06-30 17:25:14'),(460,40,'/api/datasource/instance/asset/set/config','设置数据源配置文件',1,0,'2021-06-29 16:20:08','2021-06-30 17:25:14'),(462,2,'/api/user/server/remote/query','查询用户授权的远程服务器',1,0,'2021-07-09 15:09:38','2021-07-09 15:09:38'),(463,50,'/api/application/kubernetes/page/query','分页查询容器应用列表',1,0,'2021-07-13 16:01:06','2021-07-13 16:01:06'),(464,50,'/api/application/page/query','分页查询应用列表',1,0,'2021-07-15 14:49:33','2021-07-15 14:49:33'),(465,50,'/api/application/get','查询应用',1,0,'2021-07-16 14:17:04','2021-08-19 13:51:26'),(466,50,'/api/application/add','新增应用',1,0,'2021-07-16 14:17:13','2021-07-16 14:17:13'),(467,50,'/api/application/update','更新应用',1,0,'2021-07-16 14:17:22','2021-07-16 14:17:22'),(468,50,'/api/application/del','删除应用',1,0,'2021-07-16 14:17:28','2021-07-16 14:17:28'),(469,50,'/api/application/res/bind','应用资源绑定',1,0,'2021-07-16 14:17:55','2021-07-16 14:17:55'),(470,50,'/api/application/res/unbind','应用资源解除绑定',1,0,'2021-07-16 14:18:10','2021-07-16 14:18:10'),(472,50,'/api/application/business/options/get','查询应用业务类型选项',1,0,'2021-07-19 14:33:59','2021-07-19 14:33:59'),(473,52,'/api/terminal/session/page/query','分页查询终端会话列表',1,0,'2021-07-22 16:30:36','2021-07-22 16:30:36'),(474,53,'/','首页',0,0,'2021-07-27 15:48:46','2021-07-27 15:48:46'),(475,40,'/api/datasource/instance/asset/business/scan','扫描资产与业务对象关系',1,0,'2021-08-02 16:10:29','2021-08-02 16:15:54'),(476,52,'/api/terminal/session/instance/command/page/query','分页查询终端会话命令列表',1,0,'2021-08-03 09:17:11','2021-08-03 09:17:11'),(477,2,'/api/user/access/token/grant','授权用户AccessToken',1,0,'2021-08-05 13:23:29','2021-08-05 13:23:29'),(478,2,'/api/user/access/token/revoke','撤销用户AccessToken',1,0,'2021-08-05 13:23:42','2021-08-05 13:23:42'),(479,2,'/api/user/group/add','新增用户组',1,0,'2021-08-06 16:16:54','2021-08-06 16:16:54'),(481,2,'/api/user/group/update','更新用户组',1,0,'2021-08-06 16:17:17','2021-08-06 16:17:17'),(482,2,'/api/user/group/del','删除用户组',1,0,'2021-08-09 10:07:42','2021-08-09 10:07:42'),(483,2,'/api/user/permission/business/query','分页查询业务对象授权的用户列表',1,0,'2021-08-10 17:07:01','2021-08-10 17:07:01'),(484,54,'/api/business/property/add','新增业务对象属性配置',1,0,'2021-08-20 13:55:47','2021-08-20 13:55:47'),(485,54,'/api/business/property/update','更新业务对象属性配置',1,0,'2021-08-20 13:55:59','2021-08-20 13:55:59'),(486,43,'/api/server/group/del','删除服务器组配置',1,0,'2021-08-25 09:16:08','2021-08-25 09:16:08'),(487,40,'/api/datasource/instance/asset/subscription/page/query','分页查询数据源资产订阅列表',1,0,'2021-08-27 15:53:21','2021-08-27 15:53:21'),(488,40,'/api/datasource/instance/asset/subscription/add','新增数据源资产订阅',1,0,'2021-08-30 15:21:02','2021-08-30 15:21:02'),(489,40,'/api/datasource/instance/asset/subscription/update','更新数据源资产订阅',1,0,'2021-08-30 15:21:17','2021-08-30 15:21:17'),(490,40,'/api/datasource/instance/asset/subscription/del','删除指定的数据源资产订阅',1,0,'2021-08-30 15:21:36','2021-08-30 15:21:36'),(491,40,'/api/datasource/instance/asset/subscription/publish','发布数据源资产订阅',1,0,'2021-08-31 14:38:50','2021-08-31 14:38:50'),(492,55,'/api/task/ansible/playbook/page/query','分页查询剧本列表',1,0,'2021-09-01 13:16:47','2021-09-01 13:16:47'),(493,55,'/api/task/ansible/playbook/add','新增剧本配置',1,0,'2021-09-01 17:20:17','2021-09-01 17:20:17'),(494,55,'/api/task/ansible/playbook/update','更新剧本配置',1,0,'2021-09-01 17:20:32','2021-09-01 17:20:32'),(495,55,'/api/task/ansible/playbook/del','删除剧本配置',1,0,'2021-09-01 17:20:46','2021-09-01 17:20:46'),(496,41,'/api/instance/registered/page/query','分页查询注册实例列表',1,0,'2021-09-06 10:23:45','2021-09-06 10:23:45'),(497,41,'/api/instance/registered/active/set','设置注册实例的有效/无效',1,0,'2021-09-06 14:28:03','2021-09-06 14:28:41'),(499,41,'/api/instance/health/lb-check','负载均衡健康检查接口',0,0,'2021-09-06 15:17:32','2021-09-06 15:20:36'),(500,50,'/api/application/res/preview/page/query','预览应用资源',1,0,'2021-09-09 08:48:40','2021-09-09 08:48:40'),(501,2,'/api/user/sync','同步用户与用户关系（数据源实例）',1,0,'2021-09-16 09:45:44','2021-09-16 09:45:44'),(515,57,'/api/server/task/submit','提交服务器任务',1,0,'2021-09-18 16:06:48','2021-09-18 16:06:48'),(516,57,'/api/server/task/page/query','分页查询服务器任务列表',1,0,'2021-09-24 13:50:12','2021-09-24 13:51:26'),(517,43,'/api/server/group/env/pattern/query','查询服务器组环境分组信息(发布平台专用)',1,0,'2021-10-25 15:37:26','2021-10-25 15:37:26'),(518,41,'/api/sys/credential/del','删除指定的系统凭据配置',1,0,'2021-10-27 12:40:54','2021-10-27 12:40:54'),(519,42,'/api/tag/del','删除指定的标签信息',1,0,'2021-10-28 09:12:17','2021-10-28 09:12:17'),(520,58,'/api/receive/event/gitlab/v4/system/hooks','Gitlab(API:v4)通知接口',0,0,'2021-10-29 15:16:08','2021-10-29 15:16:08'),(522,1,'/api/log/logout','用户登出',1,0,'2021-11-15 06:03:40','2022-11-21 10:00:21'),(523,2,'/api/user/active/set','设置用户是否有效',1,0,'2021-11-23 06:29:59','2021-11-23 06:29:59'),(524,59,'/api/template/page/query','分页查询模版列表',1,0,'2021-12-06 05:23:07','2021-12-06 05:23:07'),(525,59,'/api/template/business/page/query','分页查询业务模版列表',1,0,'2021-12-06 05:23:26','2021-12-06 05:23:26'),(526,59,'/api/template/business/add','新增业务模版',1,0,'2021-12-06 09:07:40','2021-12-06 09:07:40'),(527,59,'/api/template/business/update','更新业务模版',1,0,'2021-12-07 01:33:41','2021-12-07 01:33:41'),(528,59,'/api/template/business/asset/create','业务模版创建资产',1,0,'2021-12-07 06:14:11','2021-12-07 06:17:40'),(529,59,'/api/template/business/del','删除指定的业务模板',1,0,'2021-12-07 10:54:32','2021-12-07 10:54:32'),(530,59,'/api/template/add','新增模板',1,0,'2021-12-08 07:11:55','2021-12-08 07:11:55'),(531,59,'/api/template/update','更新模板',1,0,'2021-12-08 07:12:07','2021-12-08 07:12:07'),(532,59,'/api/template/del','删除指定的模板',1,0,'2021-12-08 07:12:18','2021-12-08 07:12:18'),(533,59,'/api/template/business/scan','扫描业务模板与业务对象的关联关系',1,0,'2021-12-08 09:36:05','2021-12-08 09:36:05'),(534,2,'/api/user/am/get','查询用户AM授权信息',1,0,'2021-12-10 08:11:08','2022-02-08 08:57:56'),(535,2,'/api/user/am/user/create','创建AM账户',1,0,'2021-12-13 03:49:00','2022-02-11 01:48:26'),(536,2,'/api/user/details/username/get','查询用户详情',1,0,'2021-12-13 07:06:53','2021-12-13 07:06:53'),(537,2,'/api/user/am/policy/grant','授权AM账户策略',1,0,'2021-12-13 09:15:29','2022-02-11 01:48:39'),(538,2,'/api/user/am/policy/revoke','撤销AM账户策略',1,0,'2021-12-13 09:15:57','2022-02-11 01:48:48'),(539,40,'/api/datasource/instance/asset/active/set','设置数据源资产是否有效',1,0,'2021-12-14 07:30:38','2021-12-14 07:30:38'),(540,40,'/api/datasource/instance/asset/push','推送数据源资产信息',1,0,'2021-12-17 02:24:32','2021-12-17 02:24:32'),(541,40,'/api/datasource/instance/id/query','id查询数据源实例',1,0,'2021-12-20 07:49:21','2021-12-20 07:49:21'),(542,60,'/api/workorder/view/get','查询工单视图',1,0,'2022-01-06 07:56:22','2022-01-06 07:56:22'),(543,60,'/api/workorder/ticket/entry/query','查询工单票据条目',1,0,'2022-01-12 07:35:17','2022-01-12 07:35:17'),(544,60,'/api/workorder/ticket/create','创建工单',1,0,'2022-01-12 10:07:06','2022-01-12 10:07:06'),(545,60,'/api/workorder/ticket/entry/add','新增工单票据配置条目',1,0,'2022-01-13 01:56:59','2022-01-13 01:56:59'),(546,60,'/api/workorder/ticket/view/get','查询工单票据视图',1,0,'2022-01-13 03:33:03','2022-01-13 03:33:03'),(547,60,'/api/workorder/ticket/entry/del','删除工单票据条目',1,0,'2022-01-13 06:26:31','2022-01-13 06:26:31'),(548,60,'/api/workorder/ticket/save','保存(暂存)工单票据',1,0,'2022-01-17 03:45:52','2022-01-17 03:45:52'),(549,60,'/api/workorder/ticket/submit','提交工单票据',1,0,'2022-01-17 08:29:07','2022-01-17 08:29:07'),(550,60,'/api/workorder/ticket/my/page/query','分页查询我的工单票据',1,0,'2022-01-18 03:30:57','2022-01-18 03:30:57'),(551,60,'/api/workorder/ticket/approve','审批工单',1,0,'2022-01-19 03:28:42','2022-01-19 03:28:42'),(552,60,'/api/workorder/ticket/entries/get','查询工单所有配置条目',1,0,'2022-01-20 05:33:01','2022-01-20 05:33:01'),(553,60,'/api/workorder/ticket/entry/update','更新工单票据配置条目',1,0,'2022-01-24 08:14:23','2022-01-24 08:14:23'),(554,60,'/api/workorder/ticket/del','删除工单票据（仅管理员使用）',1,0,'2022-01-26 01:33:56','2022-01-26 01:33:56'),(555,60,'/api/workorder/ticket/page/query','管理员查询工单票据',1,0,'2022-01-26 03:45:14','2022-01-26 03:45:14'),(556,60,'/api/workorder/page/query','分页查询工单配置',1,0,'2022-02-08 01:31:41','2022-02-08 01:31:41'),(557,60,'/api/workorder/group/page/query','分页查询工单组配置',1,0,'2022-02-08 01:31:59','2022-02-08 01:31:59'),(558,60,'/api/workorder/group/save','保存工单组配置',1,0,'2022-02-08 08:28:29','2022-02-08 08:28:29'),(559,60,'/api/workorder/group/del','删除工单组配置',1,0,'2022-02-08 08:28:40','2022-02-08 08:28:40'),(560,60,'/api/workorder/update','更新工单配置',1,0,'2022-02-08 11:34:42','2022-02-08 11:34:42'),(561,60,'/api/workorder/report/name','工单报表(按名称汇总)',1,0,'2022-02-14 03:47:22','2022-02-14 03:47:22'),(562,60,'/api/workorder/report/month','工单报表(按月份汇总)',1,0,'2022-02-14 07:15:27','2022-02-14 07:15:27'),(563,40,'/api/datasource/config/id/query','id查询数据源配置',1,0,'2022-02-15 07:42:29',NULL),(564,2,'/api/user/mfa/get','用户查询MFA详情',1,0,'2022-02-28 06:01:06',NULL),(565,2,'/api/user/mfa/reset','用户重置MFA',1,0,'2022-02-28 13:05:00',NULL),(566,2,'/api/user/mfa/iam/get','用户查询IAM-MFA详情',1,0,'2022-03-10 06:55:22',NULL),(567,40,'/api/datasource/instance/schedule/get','查询指定ID的数据源实例任务',1,0,'2022-03-23 08:19:01',NULL),(568,40,'/api/datasource/instance/schedule/add','新增数据源实例任务',1,0,'2022-03-24 07:41:08',NULL),(569,40,'/api/datasource/instance/schedule/pause','暂停数据源实例任务',1,0,'2022-03-24 07:41:23',NULL),(570,40,'/api/datasource/instance/schedule/resume','恢复数据源实例任务',1,0,'2022-03-24 07:45:47',NULL),(571,40,'/api/datasource/instance/schedule/delete','删除数据源实例任务',1,0,'2022-03-24 07:46:21',NULL),(572,40,'/api/datasource/instance/schedule/cron/check','检查Cron表达式',1,0,'2022-03-24 09:31:45',NULL),(573,45,'/api/server/account/del','删除指定的服务器账户',1,0,'2022-03-31 09:36:58',NULL),(574,44,'/api/server/monitor/scan','扫描服务器监控状态',1,0,'2022-05-09 03:51:16',NULL),(576,54,'/api/business/document/save','保存业务文档',1,0,'2022-05-16 04:20:27','2022-05-17 08:06:54'),(577,54,'/api/business/document/get','按ID查询业务文档',1,0,'2022-05-16 05:41:08',NULL),(578,60,'/api/workorder/options/get','查询工单选项',1,0,'2022-05-23 01:56:50',NULL),(579,61,'/api/out/ticket/approve','审批工单票据',0,0,'2022-06-10 02:58:20',NULL),(580,1,'/api/log/platform/login','用户登录接口（外部认证使用不返回Token）',0,0,'2022-06-20 03:03:08','2022-07-26 03:34:48'),(581,41,'/api/sys/nav/list','查询导航信息',1,0,'2022-06-30 14:40:56',NULL),(583,62,'/api/report/terminal/get','查询终端报表',1,0,'2022-07-08 03:10:08',NULL),(584,63,'/api/workevent/page/query','分页查询工作事件',1,0,'2022-08-16 09:03:36',NULL),(585,63,'/api/workevent/add','新增工作事件',1,0,'2022-08-16 09:03:53',NULL),(586,63,'/api/workevent/update','更新工作事件',1,0,'2022-08-16 09:04:10',NULL),(587,63,'/api/workevent/del','删除工作事件',1,0,'2022-08-16 09:04:21',NULL),(588,63,'/api/workevent/item/tree/query','工作事项树查询',1,0,'2022-08-16 09:04:32',NULL),(589,63,'/api/workevent/role/query','工作角色查询',1,0,'2022-08-16 09:10:45',NULL),(590,63,'/api/workevent/item/id/query','工作事项id查询',1,0,'2022-08-17 02:12:28',NULL),(591,63,'/api/workevent/role/id/query','工作角色id查询',1,0,'2022-08-19 07:14:18',NULL),(592,62,'/api/report/workevent/weekly/get','查询工作事件周报表',1,0,'2022-08-23 09:30:18','2022-08-23 09:30:35'),(593,62,'/api/report/workevent/item','工作事件报表(按类目汇总)',1,0,'2022-08-23 12:35:51',NULL),(594,63,'/api/workevent/my/role/query','查询我的工作角色',1,0,'2022-08-24 06:24:31',NULL),(595,52,'/api/terminal/session/close','关闭终端会话',1,0,'2022-08-25 06:42:13',NULL),(596,62,'/api/report/workevent/timeliness','工作事件处理时效周报表',1,0,'2022-08-25 10:15:58',NULL),(597,62,'/api/report/workevent/intercept','工作事件拦截率周报表',1,0,'2022-08-25 10:16:07',NULL),(598,62,'/api/report/workevent/solve','工作事件故障统计周报表',1,0,'2022-08-25 10:16:16',NULL),(599,62,'/api/report/workevent/fault','工作事件处理时效周报表',1,0,'2022-08-25 10:16:23',NULL),(600,52,'/api/terminal/session/batch/close','批量关闭终端会话',1,0,'2022-08-25 11:30:22','2022-08-25 11:30:27'),(601,64,'/api/message/send','消息发送',0,0,'2022-09-08 13:31:48',NULL),(602,1,'/api/log/platform/options/get','平台认证选项',1,0,'2022-09-19 02:58:30','2022-09-19 05:43:19'),(603,1,'/api/log/platform/auth/log/page/query','平台认证日志分页查询',1,0,'2022-09-19 03:01:14','2022-09-19 05:43:30'),(604,54,'/api/business/document/unique/get','按联合键查询业务文档',1,0,'2022-10-20 06:15:08','2022-10-20 06:15:32'),(605,65,'/api/leo/template/page/query','分页查询模板列表',1,0,'2022-11-01 12:48:14','2022-11-01 12:50:11'),(606,65,'/api/leo/template/add','新增模板',1,0,'2022-11-02 07:49:59',NULL),(607,65,'/api/leo/template/update','更新模板',1,0,'2022-11-02 07:50:16',NULL),(608,65,'/api/leo/template/content/update','从JenkinsJob更新模板内容',1,0,'2022-11-04 03:17:39',NULL),(609,65,'/api/leo/job/page/query','分页查询任务列表',1,0,'2022-11-04 07:25:43',NULL),(610,65,'/api/leo/job/add','新增任务',1,0,'2022-11-07 06:49:27',NULL),(611,65,'/api/leo/job/update','更新任务',1,0,'2022-11-07 06:49:40',NULL),(612,65,'/api/leo/build/branch/options/get','构建分支选项',1,0,'2022-11-10 03:34:59',NULL),(613,65,'/api/leo/build/do','执行构建',1,0,'2022-11-10 09:55:34',NULL),(614,65,'/api/leo/job/template/content/upgrade','更新任务模板内容',1,0,'2022-11-16 07:21:29','2022-11-22 02:45:03'),(615,65,'/api/leo/job/del','删除指定的任务',1,0,'2022-11-22 02:45:23',NULL),(616,65,'/api/leo/build/del','删除指定的构建信息',1,0,'2022-11-22 02:45:35',NULL),(617,65,'/api/leo/template/del','删除指定的任务模板',1,0,'2022-11-22 02:45:49',NULL),(618,65,'/api/leo/pipeline/node/steps/get','查询流水线节点步骤',1,0,'2022-11-28 09:09:38',NULL),(619,65,'/api/leo/build/stop','停止构建',1,0,'2022-11-29 04:56:39',NULL),(620,65,'/api/leo/build/update','更新构建详情',1,0,'2022-12-01 08:18:27',NULL),(621,65,'/api/leo/job/build/page/query','分页查询任务构建历史',1,0,'2022-12-01 09:33:40',NULL),(622,65,'/api/leo/deploy/version/query','查询构建版本',1,0,'2022-12-05 02:53:27','2022-12-05 06:50:40'),(623,65,'/api/leo/deploy/deployment/query','查询部署Deployment',1,0,'2022-12-05 06:50:57',NULL),(624,65,'/api/leo/deploy/do','执行部署',1,0,'2022-12-06 03:33:26',NULL),(625,65,'/api/leo/chart/keywords/get','图表-云词',1,0,'2022-12-09 06:07:13',NULL),(626,65,'/api/leo/job/deploy/page/query','分页查询任务部署历史',1,0,'2022-12-27 05:59:14',NULL),(627,50,'/api/application/my/page/query','分页查询我的应用列表',1,0,'2022-12-28 05:30:53',NULL),(628,66,'/api/sys/announcement/get','分类查询公告',1,0,'2022-12-28 09:32:06','2022-12-28 09:44:37'),(629,65,'/api/leo/build/branch/create','创建默认分支',1,0,'2022-12-30 06:04:16',NULL),(630,65,'/api/leo/rule/page/query','分页查询规则配置列表',1,0,'2023-01-10 10:03:35','2023-01-11 03:33:05'),(631,65,'/api/leo/rule/update','更新规则配置',1,0,'2023-01-11 03:33:41',NULL),(632,65,'/api/leo/rule/add','新增规则配置',1,0,'2023-01-11 03:34:09',NULL),(633,65,'/api/leo/rule/del','删除指定的规则配置',1,0,'2023-01-11 05:47:10',NULL),(634,62,'/api/report/leo/get','查询Leo报表',1,0,'2023-01-11 11:32:53',NULL),(635,64,'/api/message/send/grafana','',0,0,'2023-01-12 12:07:25',NULL),(636,65,'/api/leo/job/cr/repository/create','创建CR仓库',1,0,'2023-01-17 09:14:55',NULL),(637,65,'/api/leo/job/clone','从应用复制任务',1,0,'2023-02-01 06:17:06',NULL),(638,65,'/api/leo/deploy/stop','停止部署',1,0,'2023-02-07 03:20:31',NULL),(639,48,'/api/sys/doc/zone/get','按挂载区查询文档',1,0,'2023-02-08 05:21:31',NULL),(640,48,'/api/sys/doc/page/query','分页查询文档',1,0,'2023-02-14 09:32:29','2023-02-15 02:27:03'),(641,48,'/api/sys/doc/zone/page/query','分页查询文档挂载区',1,0,'2023-02-14 09:32:45','2023-02-15 02:26:50'),(642,48,'/api/sys/doc/add','新增文档',1,0,'2023-02-14 11:48:55',NULL),(643,48,'/api/sys/doc/update','更新文档',1,0,'2023-02-14 11:49:14',NULL),(644,48,'/api/sys/doc/zone/update','更新文档挂载区',1,0,'2023-02-15 03:35:00',NULL),(645,48,'/api/sys/doc/del','删除指定的文档',1,0,'2023-02-15 08:29:37',NULL),(646,60,'/api/workorder/ticket/order/phase/del','删除指定类型和阶段的工单票据',1,0,'2023-02-20 09:41:05','2023-02-20 10:05:02'),(647,50,'/api/application/kubernetes/get','查询应用的kubernetes',1,0,'2023-03-01 08:29:38',NULL),(648,65,'/api/leo/deploy/deployment/clone','克隆部署无状态',1,0,'2023-03-10 07:27:53',NULL),(649,65,'/api/leo/template/job/upgrade','关联的任务模板升级',1,0,'2023-03-23 07:24:26',NULL),(650,59,'/api/template/message/page/query','分页查询消息模板列表',1,0,'2023-03-27 05:51:05',NULL),(651,59,'/api/template/message/update','更新消息模板列表',1,0,'2023-03-27 05:51:25',NULL),(652,65,'/api/leo/latest/build/get','查询最近的构建详情',1,0,'2023-03-30 02:16:13',NULL),(653,65,'/api/leo/latest/deploy/get','查询最近的部署详情',1,0,'2023-03-30 02:16:30',NULL),(654,65,'/api/leo/build/maven/publish/get','查询MavenPublish信息',1,0,'2023-04-24 12:05:21',NULL),(655,65,'/api/report/leo/prod/get','查询Leo生产报表',1,0,'2023-04-28 03:40:47',NULL),(656,65,'/api/leo/job/my/deploy/page/query','分页查询我的部署任务',1,0,'2023-05-18 03:06:48',NULL),(657,65,'/api/leo/job/my/build/page/query','分页查询我的构建任务',1,0,'2023-05-18 03:07:12',NULL),(658,65,'/api/leo/job/my/page/query','构建页面分页查询我的任务列表',1,0,'2023-05-18 03:29:16',NULL),(659,65,'/api/leo/job/my/deployment/version/details/query','查询我的Deployment版本详情',1,0,'2023-05-18 06:05:01',NULL),(660,67,'/api/project/res/page/query','分页查询资源关联的项目',1,0,'2023-05-19 03:05:04',NULL),(661,67,'/api/project/page/query','分页查询项目列表',1,0,'2023-05-19 03:21:48',NULL),(662,67,'/api/project/get','查询项目详情',1,0,'2023-05-19 03:22:05',NULL),(663,67,'/api/project/add','新增项目',1,0,'2023-05-19 03:22:20',NULL),(664,67,'/api/project/del','删除项目',1,0,'2023-05-19 03:22:31',NULL),(665,67,'/api/project/update','更新项目',1,0,'2023-05-19 03:22:47',NULL),(666,67,'/api/project/res/preview/page/query','预览项目资源',1,0,'2023-05-19 07:19:29',NULL),(667,67,'/api/project/res/bind','项目资源绑定',1,0,'2023-05-19 07:19:46',NULL),(669,67,'/api/project/res/unbind','项目资源解除绑定',1,0,'2023-05-19 07:20:03',NULL),(670,67,'/api/project/business/options/get','查询项目业务类型选项',1,0,'2023-05-19 07:41:45',NULL),(671,40,'/api/datasource/instance/asset/type/del','删除数据源实例下指定类型的所有资产',1,0,'2023-05-22 05:39:44',NULL),(672,68,'/api/kubernetes/terminal/deployment/get','按应用&环境查询无状态信息',1,0,'2023-05-22 09:29:26',NULL),(673,69,'/api/ser/upload','ser包上传',1,0,'2023-06-07 07:25:21',NULL),(674,61,'/api/out/apollo/release/intercept','Apollo配置发布拦截器',0,0,'2023-06-13 03:39:29',NULL),(675,69,'/api/ser/task/page/query','分页查询Ser 包发布任务',1,0,'2023-06-16 08:10:10',NULL),(676,69,'/api/ser/task/add','新增Ser 包发布任务',1,0,'2023-06-16 08:10:23',NULL),(677,69,'/api/ser/task/update','更新Ser 包发布任务',1,0,'2023-06-16 08:11:06',NULL),(678,69,'/api/ser/task/item/del','删除Ser 包发布任务 Item',1,0,'2023-06-16 08:11:18',NULL),(679,69,'/api/ser/task/uuid/query','UUID 查询 Ser 包发布任务详情',1,0,'2023-06-20 02:30:52','2023-06-20 06:12:31'),(680,69,'/api/ser/subtask/add','新增 Ser 包发布子任务',1,0,'2023-06-25 07:22:18',NULL),(681,69,'/api/ser/subtask/deploy','Ser 包子任务发布',1,0,'2023-06-25 07:22:29',NULL),(682,69,'/api/ser/subtask/deploy/callback','Ser 包子任务发布回调',0,0,'2023-07-06 02:40:22',NULL),(683,69,'/api/ser/current/query','当前 Ser 包列表查询',1,0,'2023-07-06 06:03:21',NULL),(684,65,'/api/leo/job/one/clone','从任务复制任务',1,0,'2023-07-11 05:10:06',NULL),(685,40,'/api/datasource/instance/apollo/release/asset/page/query','分页查询Apollo:release资产列表',1,0,'2023-07-17 05:23:44',NULL),(686,62,'/api/report/apollo/release/get','查询ApolloRelease报表',1,0,'2023-07-17 11:18:57','2023-07-17 11:34:16'),(687,65,'/api/leo/deploy/close','关闭部署',1,0,'2023-07-20 03:44:30',NULL),(688,65,'/api/leo/build/close','关闭构建',1,0,'2023-07-20 03:44:54',NULL),(689,65,'/api/leo/deploy/deployment/del','删除部署无状态',1,0,'2023-08-02 02:39:51',NULL),(690,59,'/api/template/kind/options/get','查询模板分类选项',1,0,'2023-08-17 06:40:33',NULL),(691,65,'/api/leo/template/upload','上传模板到Jenkins',1,0,'2023-08-18 08:21:32',NULL),(692,42,'/api/tag/finops/options/get','查询FinOps标签选项',1,0,'2023-08-28 07:09:03',NULL),(693,62,'/api/report/kubernetes/finops/get','查询KubernetesFinOps报表',1,0,'2023-08-29 06:48:41',NULL),(694,70,'/api/example/helloWorld','Hello World',1,0,'2023-09-14 06:46:39','2023-09-14 06:59:03'),(695,65,'/api/leo/deploy/deployment/update','更新部署无状态(DevOps组需求)',1,0,'2023-09-18 05:54:25',NULL),(696,65,'/api/leo/deploy/deployment/container/env/query','查询部署无状态容器Env(DevOps组需求)',1,0,'2023-09-18 05:54:38',NULL),(697,65,'/api/leo/deploy/deployment/container/env/update','更新部署无状态容器Env(DevOps组需求)',1,0,'2023-09-18 05:54:54',NULL),(698,65,'/api/leo/build/get','查询构建详情',1,0,'2023-09-21 09:04:26',NULL),(699,65,'/api/leo/deploy/get','查询部署详情',1,0,'2023-09-21 09:04:42',NULL),(700,68,'/api/kubernetes/istio/virtualService/get','查询VirtualService',1,0,'2023-10-09 01:49:35',NULL),(701,68,'/api/kubernetes/istio/virtualService/update','更新VirtualService',1,0,'2023-10-09 01:49:49',NULL),(703,68,'/api/kubernetes/istio/virtualService/create','创建VirtualService',1,0,'2023-10-09 01:50:13',NULL),(704,68,'/api/kubernetes/istio/destinationRule/get','查询DestinationRule',1,0,'2023-10-09 01:50:27',NULL),(705,68,'/api/kubernetes/istio/destinationRule/update','更新DestinationRule',1,0,'2023-10-09 01:50:40',NULL),(706,68,'/api/kubernetes/istio/destinationRule/create','创建DestinationRule',1,0,'2023-10-09 01:50:52',NULL),(707,65,'/api/leo/deploys/get','Query all deploys associated with build',1,0,'2023-10-17 01:57:04',NULL),(708,68,'/api/kubernetes/deployment/get','查询Deployment',1,0,'2023-10-18 09:02:15',NULL),(709,65,'/api/leo/build/branch/compare','比较分支',1,0,'2023-11-16 03:16:59',NULL),(710,68,'/api/kubernetes/ingress/get','查询Ingress',1,0,'2023-12-13 05:45:20',NULL),(711,68,'/api/kubernetes/ingress/update','更新Ingress',1,0,'2023-12-13 05:45:33',NULL),(712,68,'/api/kubernetes/ingress/create','创建Ingress',1,0,'2023-12-13 05:45:44',NULL),(713,68,'/api/kubernetes/service/get','查询Service',1,0,'2023-12-13 05:45:57',NULL),(715,68,'/api/kubernetes/service/update','更新Service',1,0,'2023-12-13 05:46:17',NULL),(716,68,'/api/kubernetes/service/create','创建Service',1,0,'2023-12-13 05:46:30',NULL);

--
-- Table structure for table `auth_role`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_role` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `role_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '角色名称',
  `access_level` int NOT NULL DEFAULT '0' COMMENT '访问级别',
  `allow_order` tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许工单申请',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '角色描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `role_name` (`role_name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_role`
--

INSERT INTO `auth_role` VALUES (1,'super_admin',100,0,'超级管理员[OC开发者]','2020-02-18 12:00:50','2020-06-13 14:55:10'),(2,'admin',90,0,'管理员','2020-02-14 16:05:06','2020-04-11 01:10:37'),(3,'ops',50,0,'运维','2020-02-14 16:05:16','2021-11-08 03:22:02'),(4,'dev',40,1,'研发','2020-02-14 16:05:25','2020-04-11 01:10:43'),(5,'base',10,1,'普通用户','2020-02-14 16:05:31','2021-05-12 09:24:30'),(18,'support',30,0,'支持','2022-08-17 06:51:41','2022-08-17 06:51:58'),(19,'hr',20,0,'人力资源，用户管理权限','2022-10-25 12:11:22','2022-10-25 12:15:21'),(20,'security_audit',0,0,'安全审计（查看操作审计权限）','2023-02-09 05:07:00',NULL),(21,'leo_ro',0,0,'持续交付菜单','2023-06-09 06:14:50',NULL),(22,'risk',40,1,'风控','2023-07-11 09:25:59',NULL);

--
-- Table structure for table `auth_role_menu`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_role_menu` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `role_id` int NOT NULL COMMENT '角色ID',
  `menu_child_id` int NOT NULL COMMENT '子菜单ID',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1588 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_role_menu`
--

INSERT INTO `auth_role_menu` VALUES (688,5,16,'2022-06-16 03:29:00',NULL),(689,5,6,'2022-06-16 03:29:00',NULL),(690,5,28,'2022-06-16 03:29:00',NULL),(691,5,15,'2022-06-16 03:29:00',NULL),(692,5,30,'2022-06-16 03:29:00',NULL),(805,18,33,'2022-08-17 06:51:51',NULL),(1234,20,21,'2023-02-09 05:08:32',NULL),(1394,21,35,'2023-06-09 06:15:00',NULL),(1395,21,36,'2023-06-09 06:15:00',NULL),(1396,21,39,'2023-06-09 06:15:00',NULL),(1397,22,43,'2023-07-11 09:26:08',NULL),(1468,2,1,'2023-09-08 06:04:08',NULL),(1469,2,2,'2023-09-08 06:04:08',NULL),(1470,2,3,'2023-09-08 06:04:08',NULL),(1471,2,4,'2023-09-08 06:04:08',NULL),(1472,2,21,'2023-09-08 06:04:08',NULL),(1473,2,24,'2023-09-08 06:04:08',NULL),(1474,2,29,'2023-09-08 06:04:08',NULL),(1475,2,31,'2023-09-08 06:04:08',NULL),(1476,2,41,'2023-09-08 06:04:08',NULL),(1477,2,6,'2023-09-08 06:04:08',NULL),(1478,2,20,'2023-09-08 06:04:08',NULL),(1479,2,32,'2023-09-08 06:04:08',NULL),(1480,2,33,'2023-09-08 06:04:08',NULL),(1481,2,34,'2023-09-08 06:04:08',NULL),(1482,2,38,'2023-09-08 06:04:08',NULL),(1483,2,40,'2023-09-08 06:04:08',NULL),(1484,2,7,'2023-09-08 06:04:08',NULL),(1485,2,44,'2023-09-08 06:04:08',NULL),(1486,2,8,'2023-09-08 06:04:08',NULL),(1487,2,9,'2023-09-08 06:04:08',NULL),(1488,2,23,'2023-09-08 06:04:08',NULL),(1489,2,10,'2023-09-08 06:04:08',NULL),(1490,2,11,'2023-09-08 06:04:08',NULL),(1491,2,25,'2023-09-08 06:04:08',NULL),(1492,2,22,'2023-09-08 06:04:08',NULL),(1493,2,15,'2023-09-08 06:04:08',NULL),(1494,2,30,'2023-09-08 06:04:08',NULL),(1513,3,31,'2023-10-12 06:54:47',NULL),(1514,3,16,'2023-10-12 06:54:47',NULL),(1515,3,6,'2023-10-12 06:54:47',NULL),(1516,3,17,'2023-10-12 06:54:47',NULL),(1517,3,19,'2023-10-12 06:54:47',NULL),(1518,3,28,'2023-10-12 06:54:47',NULL),(1519,3,37,'2023-10-12 06:54:47',NULL),(1520,3,43,'2023-10-12 06:54:47',NULL),(1521,3,35,'2023-10-12 06:54:47',NULL),(1522,3,36,'2023-10-12 06:54:47',NULL),(1523,3,39,'2023-10-12 06:54:47',NULL),(1524,3,32,'2023-10-12 06:54:47',NULL),(1525,3,33,'2023-10-12 06:54:47',NULL),(1526,3,34,'2023-10-12 06:54:47',NULL),(1527,3,38,'2023-10-12 06:54:47',NULL),(1528,3,40,'2023-10-12 06:54:47',NULL),(1529,3,7,'2023-10-12 06:54:47',NULL),(1530,3,44,'2023-10-12 06:54:47',NULL),(1531,3,10,'2023-10-12 06:54:47',NULL),(1532,3,11,'2023-10-12 06:54:47',NULL),(1533,3,25,'2023-10-12 06:54:47',NULL),(1534,3,22,'2023-10-12 06:54:47',NULL),(1535,4,16,'2023-11-23 02:12:03',NULL),(1536,4,6,'2023-11-23 02:12:03',NULL),(1537,4,17,'2023-11-23 02:12:03',NULL),(1538,4,19,'2023-11-23 02:12:03',NULL),(1539,4,37,'2023-11-23 02:12:03',NULL),(1540,4,20,'2023-11-23 02:12:03',NULL),(1541,4,7,'2023-11-23 02:12:03',NULL),(1542,4,27,'2023-11-23 02:12:03',NULL),(1543,4,8,'2023-11-23 02:12:03',NULL),(1544,4,9,'2023-11-23 02:12:03',NULL),(1545,4,10,'2023-11-23 02:12:03',NULL),(1546,4,15,'2023-11-23 02:12:03',NULL),(1547,1,1,'2023-11-23 02:12:16',NULL),(1548,1,2,'2023-11-23 02:12:16',NULL),(1549,1,3,'2023-11-23 02:12:16',NULL),(1550,1,4,'2023-11-23 02:12:16',NULL),(1551,1,21,'2023-11-23 02:12:16',NULL),(1552,1,24,'2023-11-23 02:12:16',NULL),(1553,1,29,'2023-11-23 02:12:16',NULL),(1554,1,31,'2023-11-23 02:12:16',NULL),(1555,1,41,'2023-11-23 02:12:16',NULL),(1556,1,16,'2023-11-23 02:12:16',NULL),(1557,1,6,'2023-11-23 02:12:16',NULL),(1558,1,17,'2023-11-23 02:12:16',NULL),(1559,1,19,'2023-11-23 02:12:16',NULL),(1560,1,28,'2023-11-23 02:12:16',NULL),(1561,1,37,'2023-11-23 02:12:16',NULL),(1562,1,43,'2023-11-23 02:12:16',NULL),(1563,1,20,'2023-11-23 02:12:16',NULL),(1564,1,35,'2023-11-23 02:12:16',NULL),(1565,1,36,'2023-11-23 02:12:16',NULL),(1566,1,39,'2023-11-23 02:12:16',NULL),(1567,1,32,'2023-11-23 02:12:16',NULL),(1568,1,33,'2023-11-23 02:12:16',NULL),(1569,1,34,'2023-11-23 02:12:16',NULL),(1570,1,38,'2023-11-23 02:12:16',NULL),(1571,1,40,'2023-11-23 02:12:16',NULL),(1572,1,7,'2023-11-23 02:12:16',NULL),(1573,1,44,'2023-11-23 02:12:16',NULL),(1574,1,26,'2023-11-23 02:12:16',NULL),(1575,1,27,'2023-11-23 02:12:16',NULL),(1576,1,8,'2023-11-23 02:12:16',NULL),(1577,1,9,'2023-11-23 02:12:16',NULL),(1578,1,23,'2023-11-23 02:12:16',NULL),(1579,1,10,'2023-11-23 02:12:16',NULL),(1580,1,11,'2023-11-23 02:12:16',NULL),(1581,1,25,'2023-11-23 02:12:16',NULL),(1582,1,22,'2023-11-23 02:12:16',NULL),(1583,1,12,'2023-11-23 02:12:16',NULL),(1584,1,14,'2023-11-23 02:12:16',NULL),(1585,1,13,'2023-11-23 02:12:16',NULL),(1586,1,15,'2023-11-23 02:12:16',NULL),(1587,1,30,'2023-11-23 02:12:16',NULL);

--
-- Table structure for table `auth_role_resource`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_role_resource` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `role_id` int NOT NULL COMMENT '角色ID',
  `resource_id` int NOT NULL COMMENT '资源ID',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `role_id` (`role_id`,`resource_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=896 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_role_resource`
--

INSERT INTO `auth_role_resource` VALUES (2,1,2,'2021-05-15 13:14:59','2021-05-15 13:14:59'),(3,1,10,'2021-05-15 13:14:59','2021-05-15 13:14:59'),(4,1,6,'2021-05-15 13:17:03','2021-05-15 13:17:03'),(5,1,32,'2021-05-15 13:17:13','2021-05-15 13:17:13'),(6,1,15,'2021-05-15 14:44:35','2021-05-15 14:44:35'),(7,1,7,'2021-05-15 14:45:34','2021-05-15 14:45:34'),(8,1,389,'2021-05-15 14:45:37','2021-05-15 14:45:37'),(9,1,4,'2021-05-17 10:10:50','2021-05-17 10:10:50'),(10,1,391,'2021-05-17 12:50:07','2021-05-17 12:50:07'),(11,1,392,'2021-05-17 16:27:21','2021-05-17 16:27:21'),(12,1,393,'2021-05-17 16:45:39','2021-05-17 16:45:39'),(13,1,395,'2021-05-18 10:08:40','2021-05-18 10:08:40'),(14,1,396,'2021-05-19 14:50:02','2021-05-19 14:50:02'),(15,1,399,'2021-05-19 15:03:10','2021-05-19 15:03:10'),(16,1,397,'2021-05-19 15:30:22','2021-05-19 15:30:22'),(17,1,400,'2021-05-19 17:18:32','2021-05-19 17:18:32'),(18,1,401,'2021-05-20 08:32:42','2021-05-20 08:32:42'),(19,1,402,'2021-05-20 12:27:47','2021-05-20 12:27:47'),(20,1,404,'2021-05-20 12:32:47','2021-05-20 12:32:47'),(21,1,405,'2021-05-21 09:43:14','2021-05-21 09:43:14'),(22,1,390,'2021-05-21 09:48:02','2021-05-21 09:48:02'),(23,1,394,'2021-05-21 10:23:12','2021-05-21 10:23:12'),(24,1,406,'2021-05-24 10:20:31','2021-05-24 10:20:31'),(25,1,408,'2021-05-24 11:45:36','2021-05-24 11:45:36'),(26,1,410,'2021-05-24 13:32:18','2021-05-24 13:32:18'),(27,1,411,'2021-05-24 14:02:27','2021-05-24 14:02:27'),(28,1,412,'2021-05-24 14:42:03','2021-05-24 14:42:03'),(29,1,413,'2021-05-25 12:14:49','2021-05-25 12:14:49'),(30,1,414,'2021-05-25 12:45:38','2021-05-25 12:45:38'),(31,1,415,'2021-05-25 13:31:50','2021-05-25 13:31:50'),(32,1,416,'2021-05-25 13:43:37','2021-05-25 13:43:37'),(33,1,417,'2021-05-25 16:23:59','2021-05-25 16:23:59'),(34,1,419,'2021-05-25 16:40:55','2021-05-25 16:40:55'),(35,1,421,'2021-05-25 17:02:16','2021-05-25 17:02:16'),(36,1,407,'2021-05-26 08:56:26','2021-05-26 08:56:26'),(37,1,422,'2021-05-26 09:02:43','2021-05-26 09:02:43'),(38,1,423,'2021-05-26 09:47:50','2021-05-26 09:47:50'),(39,1,424,'2021-05-26 10:28:45','2021-05-26 10:28:45'),(40,1,425,'2021-05-26 14:00:22','2021-05-26 14:00:22'),(41,1,17,'2021-05-27 08:28:02','2021-05-27 08:28:02'),(42,1,427,'2021-05-27 10:22:12','2021-05-27 10:22:12'),(44,1,430,'2021-05-27 13:54:03','2021-05-27 13:54:03'),(45,1,8,'2021-05-27 13:56:41','2021-05-27 13:56:41'),(46,1,431,'2021-05-27 14:45:18','2021-05-27 14:45:18'),(48,1,27,'2021-05-27 16:23:14','2021-05-27 16:23:14'),(49,1,433,'2021-05-27 16:36:53','2021-05-27 16:36:53'),(50,1,434,'2021-05-28 14:37:12','2021-05-28 14:37:12'),(51,1,435,'2021-06-01 16:43:37','2021-06-01 16:43:37'),(52,1,440,'2021-06-02 13:27:55','2021-06-02 13:27:55'),(53,1,436,'2021-06-02 13:29:02','2021-06-02 13:29:02'),(54,1,441,'2021-06-02 13:31:31','2021-06-02 13:31:31'),(55,1,437,'2021-06-02 13:37:00','2021-06-02 13:37:00'),(56,1,438,'2021-06-02 14:50:14','2021-06-02 14:50:14'),(57,1,442,'2021-06-03 14:24:23','2021-06-03 14:24:23'),(58,1,444,'2021-06-03 14:24:25','2021-06-03 14:24:25'),(59,1,445,'2021-06-03 14:24:25','2021-06-03 14:24:25'),(60,1,443,'2021-06-03 14:26:37','2021-06-03 14:26:37'),(61,1,446,'2021-06-07 08:36:06','2021-06-07 08:36:06'),(62,1,398,'2021-06-07 17:00:20','2021-06-07 17:00:20'),(63,1,447,'2021-06-09 10:12:49','2021-06-09 10:12:49'),(64,1,448,'2021-06-09 15:06:44','2021-06-09 15:06:44'),(69,1,453,'2021-06-16 12:47:35','2021-06-16 12:47:35'),(70,1,454,'2021-06-16 15:06:48','2021-06-16 15:06:48'),(71,1,9,'2021-06-16 16:09:22','2021-06-16 16:09:22'),(72,1,455,'2021-06-16 16:14:29','2021-06-16 16:14:29'),(73,1,456,'2021-06-18 16:57:37','2021-06-18 16:57:37'),(74,1,16,'2021-06-19 17:45:07','2021-06-19 17:45:07'),(75,1,458,'2021-06-21 15:04:46','2021-06-21 15:04:46'),(76,1,459,'2021-06-22 12:06:04','2021-06-22 12:06:04'),(77,1,460,'2021-06-29 16:20:14','2021-06-29 16:20:14'),(78,1,29,'2021-07-06 10:07:04','2021-07-06 10:07:04'),(79,4,2,'2021-07-06 10:07:04','2021-07-06 10:07:04'),(80,4,6,'2021-07-06 10:07:08','2021-07-06 10:07:08'),(81,4,10,'2021-07-06 10:07:10','2021-07-06 10:07:10'),(82,4,27,'2021-07-06 10:07:13','2021-07-06 10:07:13'),(83,4,31,'2021-07-06 10:07:17','2021-07-06 10:07:17'),(84,4,165,'2021-07-06 10:07:19','2021-07-06 10:07:19'),(85,4,189,'2021-07-06 10:07:20','2021-07-06 10:07:20'),(86,4,454,'2021-07-06 10:07:26','2021-07-06 10:07:26'),(87,4,455,'2021-07-06 10:07:27','2021-07-06 10:07:27'),(88,4,389,'2021-07-06 10:07:29','2021-07-06 10:07:29'),(89,4,401,'2021-07-06 10:07:32','2021-07-06 10:07:32'),(90,4,405,'2021-07-06 10:07:33','2021-07-06 10:07:33'),(91,4,456,'2021-07-06 10:07:34','2021-07-06 10:07:34'),(92,4,392,'2021-07-06 10:07:39','2021-07-06 10:07:39'),(93,4,393,'2021-07-06 10:07:40','2021-07-06 10:07:40'),(94,4,396,'2021-07-06 10:07:45','2021-07-06 10:07:45'),(95,4,399,'2021-07-06 10:07:46','2021-07-06 10:07:46'),(96,4,402,'2021-07-06 10:07:47','2021-07-06 10:07:47'),(97,4,406,'2021-07-06 10:07:51','2021-07-06 10:07:51'),(98,4,410,'2021-07-06 10:07:52','2021-07-06 10:07:52'),(99,4,414,'2021-07-06 10:07:57','2021-07-06 10:07:57'),(100,4,421,'2021-07-06 10:07:58','2021-07-06 10:07:58'),(101,4,413,'2021-07-06 10:08:01','2021-07-06 10:08:01'),(102,4,417,'2021-07-06 10:08:06','2021-07-06 10:08:06'),(103,4,440,'2021-07-06 10:08:11','2021-07-06 10:08:11'),(104,4,441,'2021-07-06 10:08:11','2021-07-06 10:08:11'),(105,4,442,'2021-07-06 10:08:12','2021-07-06 10:08:12'),(106,4,444,'2021-07-06 10:08:14','2021-07-06 10:08:14'),(107,4,445,'2021-07-06 10:08:15','2021-07-06 10:08:15'),(108,4,453,'2021-07-06 10:08:21','2021-07-06 10:08:21'),(109,4,446,'2021-07-06 10:09:21','2021-07-06 10:09:21'),(110,4,32,'2021-07-06 10:09:24','2021-07-06 10:09:24'),(111,4,434,'2021-07-06 10:09:28','2021-07-06 10:09:28'),(112,4,447,'2021-07-06 10:09:29','2021-07-06 10:09:29'),(113,1,439,'2021-07-09 13:51:27','2021-07-09 13:51:27'),(114,1,462,'2021-07-09 15:11:33','2021-07-09 15:11:33'),(115,1,463,'2021-07-13 16:02:45','2021-07-13 16:02:45'),(116,1,464,'2021-07-15 14:49:37','2021-07-15 14:49:37'),(117,1,465,'2021-07-16 14:22:33','2021-07-16 14:22:33'),(119,1,467,'2021-07-16 14:28:46','2021-07-16 14:28:46'),(120,1,466,'2021-07-16 14:34:50','2021-07-16 14:34:50'),(121,1,470,'2021-07-16 15:02:38','2021-07-16 15:02:38'),(123,1,469,'2021-07-19 13:12:44','2021-07-19 13:12:44'),(124,1,472,'2021-07-19 14:34:06','2021-07-19 14:34:06'),(125,4,463,'2021-07-20 09:56:18','2021-07-20 09:56:18'),(126,4,464,'2021-07-20 09:56:19','2021-07-20 09:56:19'),(127,4,465,'2021-07-20 09:56:19','2021-07-20 09:56:19'),(128,4,472,'2021-07-20 09:56:23','2021-07-20 09:56:23'),(129,1,473,'2021-07-22 16:54:03','2021-07-22 16:54:03'),(130,1,475,'2021-08-02 16:16:04','2021-08-02 16:16:04'),(131,1,476,'2021-08-03 09:25:49','2021-08-03 09:25:49'),(132,1,426,'2021-08-03 15:42:40','2021-08-03 15:42:40'),(133,1,477,'2021-08-05 13:23:52','2021-08-05 13:23:52'),(134,1,478,'2021-08-05 13:44:46','2021-08-05 13:44:46'),(135,1,479,'2021-08-09 08:28:24','2021-08-09 08:28:24'),(136,1,482,'2021-08-09 10:08:05','2021-08-09 10:08:05'),(137,1,483,'2021-08-10 17:16:58','2021-08-10 17:16:58'),(138,1,468,'2021-08-16 09:12:04','2021-08-16 09:12:04'),(139,1,484,'2021-08-20 13:58:25','2021-08-20 13:58:25'),(140,1,485,'2021-08-20 14:18:15','2021-08-20 14:18:15'),(141,1,486,'2021-08-25 09:16:50','2021-08-25 09:16:50'),(142,1,487,'2021-08-27 16:16:10','2021-08-27 16:16:10'),(143,1,489,'2021-08-30 15:22:19','2021-08-30 15:22:19'),(144,1,488,'2021-08-30 16:36:00','2021-08-30 16:36:00'),(145,1,490,'2021-08-30 16:39:33','2021-08-30 16:39:33'),(146,1,491,'2021-08-31 14:38:56','2021-08-31 14:38:56'),(147,1,492,'2021-09-01 13:16:51','2021-09-01 13:16:51'),(148,1,494,'2021-09-02 10:49:46','2021-09-02 10:49:46'),(149,1,496,'2021-09-06 10:24:14','2021-09-06 10:24:14'),(150,1,497,'2021-09-06 14:37:57','2021-09-06 14:37:57'),(151,1,500,'2021-09-09 09:03:49','2021-09-09 09:03:49'),(152,1,481,'2021-09-15 13:48:28','2021-09-15 13:48:28'),(153,1,501,'2021-09-16 09:49:20','2021-09-16 09:49:20'),(165,1,515,'2021-09-18 16:07:05','2021-09-18 16:07:05'),(167,1,493,'2021-09-23 14:28:24','2021-09-23 14:28:24'),(168,1,516,'2021-09-24 13:52:23','2021-09-24 13:52:23'),(169,1,495,'2021-09-28 09:07:49','2021-09-28 09:07:49'),(170,4,448,'2021-10-08 13:42:11','2021-10-08 13:42:11'),(171,1,517,'2021-10-25 17:36:59','2021-10-25 17:36:59'),(172,1,409,'2021-10-25 17:37:02','2021-10-25 17:37:02'),(173,1,518,'2021-10-27 13:30:48','2021-10-27 13:30:48'),(174,1,519,'2021-10-28 09:12:35','2021-10-28 09:12:35'),(175,1,420,'2021-10-28 09:58:03','2021-10-28 09:58:03'),(176,5,427,'2021-11-05 04:31:44','2021-11-05 04:31:44'),(177,5,522,'2021-11-15 06:04:03','2021-11-15 06:04:03'),(178,1,523,'2021-11-29 06:14:49','2021-11-29 06:14:49'),(179,1,525,'2021-12-06 05:42:27','2021-12-06 05:42:27'),(180,1,524,'2021-12-06 07:54:26','2021-12-06 07:54:26'),(181,1,526,'2021-12-06 09:11:46','2021-12-06 09:11:46'),(182,1,527,'2021-12-07 01:36:40','2021-12-07 01:36:40'),(183,1,528,'2021-12-07 06:14:31','2021-12-07 06:14:31'),(184,1,529,'2021-12-07 10:55:15','2021-12-07 10:55:15'),(185,1,531,'2021-12-08 07:12:39','2021-12-08 07:12:39'),(186,1,530,'2021-12-08 07:17:16','2021-12-08 07:17:16'),(187,1,532,'2021-12-08 07:21:10','2021-12-08 07:21:10'),(188,1,533,'2021-12-08 09:51:37','2021-12-08 09:51:37'),(189,1,428,'2021-12-10 02:02:57','2021-12-10 02:02:57'),(190,1,534,'2021-12-10 08:35:01','2021-12-10 08:35:01'),(191,1,5,'2021-12-10 09:12:16','2021-12-10 09:12:16'),(192,1,535,'2021-12-13 05:54:56','2021-12-13 05:54:56'),(193,1,537,'2021-12-13 09:16:41','2021-12-13 09:16:41'),(194,1,538,'2021-12-13 10:22:07','2021-12-13 10:22:07'),(195,1,536,'2021-12-13 11:52:35','2021-12-13 11:52:35'),(196,1,539,'2021-12-14 07:32:55','2021-12-14 07:32:55'),(197,1,540,'2021-12-17 02:49:16','2021-12-17 02:49:16'),(198,1,541,'2021-12-20 08:08:41','2021-12-20 08:08:41'),(200,1,3,'2021-12-21 11:39:56','2021-12-21 11:39:56'),(201,1,522,'2021-12-21 11:39:59','2021-12-21 11:39:59'),(202,1,189,'2021-12-21 11:40:00','2021-12-21 11:40:00'),(203,1,188,'2021-12-21 11:40:01','2021-12-21 11:40:01'),(204,1,34,'2021-12-21 11:40:02','2021-12-21 11:40:02'),(205,1,31,'2021-12-21 11:40:03','2021-12-21 11:40:03'),(206,1,30,'2021-12-21 11:40:04','2021-12-21 11:40:04'),(207,1,33,'2021-12-21 11:40:05','2021-12-21 11:40:05'),(209,1,542,'2022-01-06 09:13:35','2022-01-06 09:13:35'),(210,1,544,'2022-01-12 10:07:19','2022-01-12 10:07:19'),(211,1,543,'2022-01-12 11:28:04','2022-01-12 11:28:04'),(212,1,545,'2022-01-13 01:57:45','2022-01-13 01:57:45'),(213,1,547,'2022-01-13 06:35:41','2022-01-13 06:35:41'),(214,1,546,'2022-01-13 06:38:23','2022-01-13 06:38:23'),(215,1,548,'2022-01-17 04:49:41','2022-01-17 04:49:41'),(216,1,549,'2022-01-17 08:29:28','2022-01-17 08:29:28'),(217,1,550,'2022-01-18 03:33:56','2022-01-18 03:33:56'),(220,1,551,'2022-01-19 08:32:23','2022-01-19 08:32:23'),(221,1,552,'2022-01-20 05:47:04','2022-01-20 05:47:04'),(222,5,542,'2022-01-21 01:39:14','2022-01-21 01:39:14'),(223,5,543,'2022-01-21 01:39:16','2022-01-21 01:39:16'),(224,5,546,'2022-01-21 01:39:18','2022-01-21 01:39:18'),(225,5,550,'2022-01-21 01:39:22','2022-01-21 01:39:22'),(226,5,552,'2022-01-21 01:39:24','2022-01-21 01:39:24'),(227,5,544,'2022-01-21 01:39:28','2022-01-21 01:39:28'),(228,5,545,'2022-01-21 01:39:31','2022-01-21 01:39:31'),(229,5,547,'2022-01-21 01:39:32','2022-01-21 01:39:32'),(230,5,548,'2022-01-21 01:39:33','2022-01-21 01:39:33'),(232,5,549,'2022-01-21 01:39:33','2022-01-21 01:39:33'),(234,5,551,'2022-01-21 01:39:34','2022-01-21 01:39:34'),(236,4,542,'2022-01-21 05:52:19','2022-01-21 05:52:19'),(237,4,543,'2022-01-21 05:52:20','2022-01-21 05:52:20'),(238,4,544,'2022-01-21 05:52:21','2022-01-21 05:52:21'),(240,4,545,'2022-01-21 05:52:22','2022-01-21 05:52:22'),(241,4,546,'2022-01-21 05:52:23','2022-01-21 05:52:23'),(244,4,547,'2022-01-21 05:52:24','2022-01-21 05:52:24'),(246,4,548,'2022-01-21 05:52:25','2022-01-21 05:52:25'),(248,4,549,'2022-01-21 05:52:26','2022-01-21 05:52:26'),(250,4,550,'2022-01-21 05:52:27','2022-01-21 05:52:27'),(252,4,551,'2022-01-21 05:52:28','2022-01-21 05:52:28'),(254,4,552,'2022-01-21 05:52:29','2022-01-21 05:52:29'),(256,5,553,'2022-01-24 08:14:45','2022-01-24 08:14:45'),(257,1,555,'2022-01-26 04:11:13','2022-01-26 04:11:13'),(258,1,554,'2022-01-26 04:25:50','2022-01-26 04:25:50'),(259,1,557,'2022-02-08 01:51:32','2022-02-08 01:51:32'),(260,1,556,'2022-02-08 02:29:58','2022-02-08 02:29:58'),(261,1,558,'2022-02-08 09:18:03','2022-02-08 09:18:03'),(262,1,559,'2022-02-08 09:18:31','2022-02-08 09:18:31'),(263,1,560,'2022-02-08 11:35:09','2022-02-08 11:35:09'),(264,1,561,'2022-02-14 03:52:12','2022-02-14 03:52:12'),(265,1,562,'2022-02-14 07:15:45','2022-02-14 07:15:45'),(266,1,563,'2022-02-15 07:43:02',NULL),(272,5,453,'2022-02-28 05:48:03',NULL),(273,5,446,'2022-02-28 05:49:22',NULL),(274,5,447,'2022-02-28 05:49:52',NULL),(275,5,455,'2022-02-28 05:50:05',NULL),(276,5,564,'2022-02-28 06:01:36',NULL),(277,5,565,'2022-02-28 13:05:33',NULL),(278,3,566,'2022-03-10 06:55:46',NULL),(279,3,565,'2022-03-10 06:55:50',NULL),(280,3,564,'2022-03-10 06:55:54',NULL),(281,4,566,'2022-03-10 06:56:53',NULL),(282,4,565,'2022-03-10 06:56:54',NULL),(283,4,564,'2022-03-10 06:56:55',NULL),(284,3,524,'2022-03-16 02:56:32',NULL),(285,3,525,'2022-03-16 02:56:33',NULL),(286,3,473,'2022-03-16 02:56:45',NULL),(287,3,476,'2022-03-16 02:56:45',NULL),(288,3,526,'2022-03-16 02:56:52',NULL),(289,3,527,'2022-03-16 02:56:53',NULL),(290,3,528,'2022-03-16 02:56:54',NULL),(291,3,529,'2022-03-16 02:56:55',NULL),(293,3,530,'2022-03-16 02:56:56',NULL),(295,3,531,'2022-03-16 02:56:57',NULL),(297,3,532,'2022-03-16 02:56:58',NULL),(299,3,533,'2022-03-16 02:56:59',NULL),(301,3,392,'2022-03-16 02:57:02',NULL),(302,3,393,'2022-03-16 02:57:03',NULL),(303,3,394,'2022-03-16 02:57:04',NULL),(304,3,395,'2022-03-16 02:57:05',NULL),(305,3,496,'2022-03-16 02:57:06',NULL),(306,3,497,'2022-03-16 02:57:07',NULL),(307,3,518,'2022-03-16 02:57:09',NULL),(308,2,392,'2022-03-16 02:57:12',NULL),(309,2,393,'2022-03-16 02:57:13',NULL),(311,2,394,'2022-03-16 02:57:14',NULL),(312,2,395,'2022-03-16 02:57:15',NULL),(314,2,496,'2022-03-16 02:57:16',NULL),(315,2,497,'2022-03-16 02:57:16',NULL),(316,2,518,'2022-03-16 02:57:17',NULL),(318,2,473,'2022-03-16 02:57:19',NULL),(319,2,476,'2022-03-16 02:57:20',NULL),(320,2,524,'2022-03-16 02:57:23',NULL),(321,2,525,'2022-03-16 02:57:24',NULL),(323,2,526,'2022-03-16 02:57:24',NULL),(325,2,527,'2022-03-16 02:57:25',NULL),(326,2,528,'2022-03-16 02:57:26',NULL),(328,2,529,'2022-03-16 02:57:27',NULL),(329,2,530,'2022-03-16 02:57:28',NULL),(330,2,531,'2022-03-16 02:57:28',NULL),(332,2,532,'2022-03-16 02:57:29',NULL),(334,2,533,'2022-03-16 02:57:30',NULL),(336,2,2,'2022-03-16 02:57:38',NULL),(343,2,6,'2022-03-16 02:57:41',NULL),(350,2,10,'2022-03-16 02:57:45',NULL),(355,2,27,'2022-03-16 02:57:48',NULL),(356,2,29,'2022-03-16 02:57:49',NULL),(359,2,31,'2022-03-16 02:57:51',NULL),(363,2,165,'2022-03-16 02:57:53',NULL),(366,2,189,'2022-03-16 02:57:55',NULL),(371,2,522,'2022-03-16 02:57:57',NULL),(372,2,32,'2022-03-16 02:58:00',NULL),(373,2,426,'2022-03-16 02:58:02',NULL),(375,2,427,'2022-03-16 02:58:03',NULL),(376,2,428,'2022-03-16 02:58:04',NULL),(377,2,477,'2022-03-16 03:06:38',NULL),(378,2,478,'2022-03-16 03:06:39',NULL),(379,2,479,'2022-03-16 03:06:42',NULL),(380,2,481,'2022-03-16 03:06:43',NULL),(381,2,482,'2022-03-16 03:06:47',NULL),(382,2,483,'2022-03-16 03:06:48',NULL),(383,2,501,'2022-03-16 03:06:48',NULL),(384,2,523,'2022-03-16 03:06:49',NULL),(386,2,534,'2022-03-16 03:06:50',NULL),(388,2,535,'2022-03-16 03:06:51',NULL),(390,2,536,'2022-03-16 03:06:52',NULL),(392,2,537,'2022-03-16 03:06:53',NULL),(394,2,538,'2022-03-16 03:06:54',NULL),(396,2,564,'2022-03-16 03:06:54',NULL),(398,2,565,'2022-03-16 03:06:55',NULL),(400,2,566,'2022-03-16 03:06:56',NULL),(402,2,430,'2022-03-16 03:06:58',NULL),(404,2,431,'2022-03-16 03:06:59',NULL),(405,2,433,'2022-03-16 03:07:00',NULL),(407,2,434,'2022-03-16 03:07:01',NULL),(409,2,446,'2022-03-16 03:07:02',NULL),(411,2,447,'2022-03-16 03:07:03',NULL),(413,2,448,'2022-03-16 03:07:03',NULL),(415,2,454,'2022-03-16 03:07:04',NULL),(417,2,455,'2022-03-16 03:07:05',NULL),(418,2,462,'2022-03-16 03:07:06',NULL),(420,2,475,'2022-03-16 03:07:24',NULL),(421,2,487,'2022-03-16 03:07:25',NULL),(422,2,488,'2022-03-16 03:07:33',NULL),(423,2,489,'2022-03-16 03:07:34',NULL),(424,2,490,'2022-03-16 03:07:35',NULL),(426,2,491,'2022-03-16 03:07:36',NULL),(427,2,539,'2022-03-16 03:07:37',NULL),(429,2,540,'2022-03-16 03:07:38',NULL),(431,2,541,'2022-03-16 03:07:39',NULL),(433,2,563,'2022-03-16 03:07:40',NULL),(435,2,389,'2022-03-16 03:07:41',NULL),(436,2,390,'2022-03-16 03:07:42',NULL),(438,2,391,'2022-03-16 03:07:43',NULL),(440,2,400,'2022-03-16 03:07:44',NULL),(442,2,401,'2022-03-16 03:07:44',NULL),(443,2,405,'2022-03-16 03:07:45',NULL),(445,2,456,'2022-03-16 03:07:46',NULL),(447,2,458,'2022-03-16 03:07:47',NULL),(449,2,459,'2022-03-16 03:07:48',NULL),(451,2,460,'2022-03-16 03:07:49',NULL),(453,2,396,'2022-03-16 03:08:02',NULL),(454,2,397,'2022-03-16 03:08:03',NULL),(455,2,398,'2022-03-16 03:08:04',NULL),(457,2,399,'2022-03-16 03:08:05',NULL),(459,2,402,'2022-03-16 03:08:06',NULL),(461,2,404,'2022-03-16 03:08:06',NULL),(463,2,519,'2022-03-16 03:08:07',NULL),(465,2,406,'2022-03-16 03:08:10',NULL),(466,2,407,'2022-03-16 03:08:11',NULL),(468,2,408,'2022-03-16 03:08:12',NULL),(470,2,409,'2022-03-16 03:08:13',NULL),(472,2,410,'2022-03-16 03:08:14',NULL),(474,2,411,'2022-03-16 03:08:15',NULL),(476,2,412,'2022-03-16 03:08:15',NULL),(478,2,486,'2022-03-16 03:08:16',NULL),(480,2,517,'2022-03-16 03:08:17',NULL),(482,2,414,'2022-03-16 03:08:20',NULL),(483,2,421,'2022-03-16 03:08:21',NULL),(485,2,422,'2022-03-16 03:08:22',NULL),(487,2,423,'2022-03-16 03:08:23',NULL),(489,2,424,'2022-03-16 03:08:24',NULL),(491,2,413,'2022-03-16 03:08:27',NULL),(492,2,415,'2022-03-16 03:08:28',NULL),(494,2,416,'2022-03-16 03:08:29',NULL),(496,2,425,'2022-03-16 03:08:30',NULL),(498,2,417,'2022-03-16 03:08:33',NULL),(500,2,418,'2022-03-16 03:08:34',NULL),(501,2,419,'2022-03-16 03:08:35',NULL),(503,2,420,'2022-03-16 03:08:36',NULL),(507,2,453,'2022-03-16 03:10:25',NULL),(508,2,463,'2022-03-16 03:10:28',NULL),(509,2,464,'2022-03-16 03:10:28',NULL),(510,2,465,'2022-03-16 03:10:30',NULL),(511,2,466,'2022-03-16 03:10:31',NULL),(512,2,467,'2022-03-16 03:10:32',NULL),(513,2,468,'2022-03-16 03:10:33',NULL),(515,2,469,'2022-03-16 03:10:33',NULL),(517,2,470,'2022-03-16 03:10:34',NULL),(519,2,472,'2022-03-16 03:10:36',NULL),(520,2,484,'2022-03-16 03:10:37',NULL),(521,2,485,'2022-03-16 03:10:38',NULL),(522,2,492,'2022-03-16 03:10:39',NULL),(523,2,493,'2022-03-16 03:10:40',NULL),(524,2,494,'2022-03-16 03:10:41',NULL),(526,2,495,'2022-03-16 03:10:42',NULL),(527,2,500,'2022-03-16 03:10:43',NULL),(544,2,515,'2022-03-16 03:11:01',NULL),(545,2,516,'2022-03-16 03:11:02',NULL),(547,2,542,'2022-03-16 03:11:03',NULL),(549,2,543,'2022-03-16 03:11:04',NULL),(550,2,544,'2022-03-16 03:11:05',NULL),(551,2,545,'2022-03-16 03:11:06',NULL),(552,2,546,'2022-03-16 03:11:07',NULL),(553,2,548,'2022-03-16 03:11:12',NULL),(554,2,547,'2022-03-16 03:11:13',NULL),(555,2,549,'2022-03-16 03:11:13',NULL),(557,2,550,'2022-03-16 03:11:14',NULL),(558,2,551,'2022-03-16 03:11:15',NULL),(560,2,552,'2022-03-16 03:11:17',NULL),(561,2,553,'2022-03-16 03:11:18',NULL),(562,2,555,'2022-03-16 03:11:19',NULL),(563,2,556,'2022-03-16 03:11:20',NULL),(564,2,557,'2022-03-16 03:11:21',NULL),(565,2,558,'2022-03-16 03:11:22',NULL),(566,2,559,'2022-03-16 03:11:23',NULL),(568,2,560,'2022-03-16 03:11:24',NULL),(569,2,561,'2022-03-16 03:11:26',NULL),(570,2,562,'2022-03-16 03:11:27',NULL),(572,2,386,'2022-03-16 03:17:55',NULL),(573,2,435,'2022-03-16 03:18:46',NULL),(574,1,567,'2022-03-23 08:57:22',NULL),(575,1,572,'2022-03-24 09:49:12',NULL),(576,1,569,'2022-03-24 11:00:07',NULL),(577,1,570,'2022-03-24 11:01:54',NULL),(578,1,571,'2022-03-24 11:02:29',NULL),(579,1,568,'2022-03-24 11:03:11',NULL),(580,1,573,'2022-03-31 09:41:47',NULL),(581,4,500,'2022-04-21 02:36:56',NULL),(582,3,389,'2022-04-21 08:59:04',NULL),(583,3,401,'2022-04-21 08:59:06',NULL),(584,3,405,'2022-04-21 08:59:08',NULL),(585,3,456,'2022-04-21 08:59:09',NULL),(586,3,458,'2022-04-21 08:59:12',NULL),(587,3,475,'2022-04-21 08:59:14',NULL),(588,3,487,'2022-04-21 08:59:15',NULL),(589,3,540,'2022-04-21 08:59:26',NULL),(590,3,541,'2022-04-21 08:59:27',NULL),(591,3,563,'2022-04-21 08:59:29',NULL),(592,3,567,'2022-04-21 08:59:31',NULL),(593,3,568,'2022-04-21 08:59:33',NULL),(594,3,572,'2022-04-21 08:59:36',NULL),(603,4,462,'2022-05-07 01:40:24',NULL),(604,1,574,'2022-05-09 03:51:46',NULL),(605,3,574,'2022-05-09 04:00:01',NULL),(606,1,576,'2022-05-16 04:27:18',NULL),(608,4,577,'2022-05-16 15:43:02',NULL),(609,1,578,'2022-05-23 02:01:08',NULL),(610,4,578,'2022-05-23 08:00:42',NULL),(611,5,578,'2022-05-23 08:00:51',NULL),(612,2,576,'2022-05-24 09:06:55',NULL),(613,2,577,'2022-05-24 09:06:57',NULL),(614,3,484,'2022-05-24 09:07:05',NULL),(615,3,485,'2022-05-24 09:07:06',NULL),(617,3,576,'2022-05-24 09:07:08',NULL),(618,3,577,'2022-05-24 09:07:09',NULL),(619,5,406,'2022-06-16 03:29:59',NULL),(620,5,434,'2022-06-16 03:30:48',NULL),(621,1,581,'2022-06-30 14:41:14',NULL),(623,4,581,'2022-06-30 21:08:03',NULL),(626,1,583,'2022-07-08 03:10:14',NULL),(627,3,404,'2022-07-20 05:55:24',NULL),(628,4,536,'2022-07-26 05:55:09',NULL),(629,4,477,'2022-07-26 06:44:53',NULL),(630,1,588,'2022-08-16 09:05:08',NULL),(631,1,584,'2022-08-16 09:05:08',NULL),(632,1,589,'2022-08-16 09:10:48',NULL),(633,1,590,'2022-08-17 03:36:35',NULL),(634,1,585,'2022-08-17 03:37:36',NULL),(635,1,587,'2022-08-17 03:47:48',NULL),(636,18,584,'2022-08-17 06:52:14',NULL),(637,18,585,'2022-08-17 06:52:15',NULL),(638,18,586,'2022-08-17 06:52:16',NULL),(639,18,589,'2022-08-17 06:52:17',NULL),(640,18,590,'2022-08-17 06:52:18',NULL),(641,18,587,'2022-08-17 06:52:18',NULL),(642,18,588,'2022-08-17 06:52:19',NULL),(643,4,404,'2022-08-18 06:18:39',NULL),(644,1,591,'2022-08-19 07:16:06',NULL),(645,18,591,'2022-08-19 10:21:24',NULL),(646,1,592,'2022-08-23 09:35:46',NULL),(647,1,593,'2022-08-23 12:35:57',NULL),(648,18,592,'2022-08-24 06:06:35',NULL),(649,18,593,'2022-08-24 06:06:37',NULL),(650,18,594,'2022-08-24 06:24:56',NULL),(651,1,594,'2022-08-24 06:27:23',NULL),(652,1,586,'2022-08-24 08:26:40',NULL),(653,1,595,'2022-08-25 07:27:05',NULL),(654,1,597,'2022-08-25 10:16:52',NULL),(655,1,596,'2022-08-25 10:16:52',NULL),(656,1,598,'2022-08-25 10:16:52',NULL),(657,1,599,'2022-08-25 10:16:53',NULL),(658,1,600,'2022-08-25 11:31:00',NULL),(659,18,583,'2022-08-29 05:08:08',NULL),(660,18,596,'2022-08-29 05:08:08',NULL),(661,18,597,'2022-08-29 05:08:10',NULL),(662,18,598,'2022-08-29 05:08:10',NULL),(663,18,599,'2022-08-29 05:08:12',NULL),(664,1,602,'2022-09-19 05:43:38',NULL),(665,1,603,'2022-09-19 05:43:38',NULL),(666,5,581,'2022-10-18 02:43:49',NULL),(667,1,604,'2022-10-20 06:15:53',NULL),(668,4,541,'2022-10-27 07:01:31',NULL),(669,19,426,'2022-10-27 07:02:49',NULL),(670,4,604,'2022-10-31 02:05:02',NULL),(672,3,604,'2022-10-31 02:05:16',NULL),(673,1,605,'2022-11-01 12:55:07',NULL),(674,1,606,'2022-11-02 07:53:30',NULL),(675,1,607,'2022-11-02 08:02:54',NULL),(676,1,608,'2022-11-04 03:31:15',NULL),(677,1,609,'2022-11-04 07:55:01',NULL),(678,1,611,'2022-11-07 07:22:28',NULL),(679,1,612,'2022-11-10 03:45:14',NULL),(680,1,613,'2022-11-10 09:57:35',NULL),(681,1,614,'2022-11-16 07:21:46',NULL),(682,1,610,'2022-11-22 01:52:03',NULL),(683,1,617,'2022-11-22 02:46:18',NULL),(684,1,615,'2022-11-22 02:48:34',NULL),(685,4,605,'2022-11-22 06:30:55',NULL),(686,4,609,'2022-11-22 06:30:59',NULL),(687,4,612,'2022-11-22 06:31:02',NULL),(688,4,613,'2022-11-22 06:31:06',NULL),(689,3,605,'2022-11-22 06:31:14',NULL),(690,3,606,'2022-11-22 06:31:15',NULL),(691,3,607,'2022-11-22 06:31:16',NULL),(692,3,608,'2022-11-22 06:31:17',NULL),(693,3,609,'2022-11-22 06:31:19',NULL),(694,3,610,'2022-11-22 06:31:20',NULL),(695,3,611,'2022-11-22 06:31:21',NULL),(696,3,612,'2022-11-22 06:31:23',NULL),(697,3,613,'2022-11-22 06:31:25',NULL),(698,3,614,'2022-11-22 06:31:26',NULL),(699,3,615,'2022-11-22 06:31:27',NULL),(700,3,616,'2022-11-22 06:31:28',NULL),(701,3,617,'2022-11-22 06:31:29',NULL),(702,1,618,'2022-11-28 09:12:27',NULL),(703,1,619,'2022-11-29 05:07:09',NULL),(704,1,620,'2022-12-01 08:22:49',NULL),(705,1,621,'2022-12-01 09:54:05',NULL),(706,1,622,'2022-12-05 02:59:21',NULL),(707,1,623,'2022-12-05 07:55:09',NULL),(708,1,624,'2022-12-06 03:34:05',NULL),(709,4,618,'2022-12-07 08:13:54',NULL),(710,4,619,'2022-12-07 08:13:59',NULL),(711,4,621,'2022-12-07 08:14:05',NULL),(712,4,622,'2022-12-07 08:14:07',NULL),(713,4,623,'2022-12-07 08:14:08',NULL),(714,4,624,'2022-12-07 08:14:09',NULL),(715,3,618,'2022-12-07 08:14:18',NULL),(716,3,619,'2022-12-07 08:14:18',NULL),(717,3,620,'2022-12-07 08:14:19',NULL),(718,3,621,'2022-12-07 08:14:20',NULL),(719,3,622,'2022-12-07 08:14:22',NULL),(720,3,623,'2022-12-07 08:14:23',NULL),(721,3,624,'2022-12-07 08:14:24',NULL),(722,1,625,'2022-12-09 06:36:06',NULL),(723,1,626,'2022-12-27 06:02:50',NULL),(724,1,627,'2022-12-28 05:37:32',NULL),(726,4,627,'2022-12-28 05:41:57',NULL),(727,4,625,'2022-12-28 08:44:07',NULL),(728,5,628,'2022-12-28 09:32:23',NULL),(729,1,629,'2022-12-30 06:13:26',NULL),(730,3,629,'2022-12-30 06:22:35',NULL),(731,1,630,'2023-01-10 12:42:44',NULL),(732,1,631,'2023-01-11 03:35:16',NULL),(733,1,632,'2023-01-11 03:49:22',NULL),(734,1,633,'2023-01-11 05:47:48',NULL),(735,3,633,'2023-01-11 09:20:05',NULL),(736,3,632,'2023-01-11 09:20:08',NULL),(737,3,631,'2023-01-11 09:20:11',NULL),(738,3,630,'2023-01-11 09:20:13',NULL),(739,1,634,'2023-01-11 11:43:13',NULL),(740,3,583,'2023-01-11 12:01:25',NULL),(741,3,593,'2023-01-11 12:01:26',NULL),(742,3,596,'2023-01-11 12:01:28',NULL),(744,3,592,'2023-01-11 12:01:29',NULL),(745,3,597,'2023-01-11 12:01:30',NULL),(746,3,598,'2023-01-11 12:01:31',NULL),(747,3,599,'2023-01-11 12:01:32',NULL),(748,3,634,'2023-01-11 12:01:33',NULL),(749,4,626,'2023-01-17 02:20:49',NULL),(750,4,630,'2023-01-17 02:20:54',NULL),(751,3,636,'2023-01-17 09:15:12',NULL),(752,3,626,'2023-01-17 09:15:17',NULL),(753,3,625,'2023-01-17 09:15:19',NULL),(754,1,637,'2023-02-01 06:23:11',NULL),(755,3,637,'2023-02-01 06:37:54',NULL),(756,4,638,'2023-02-07 03:21:03',NULL),(757,1,639,'2023-02-08 06:14:29',NULL),(758,5,639,'2023-02-08 11:56:12',NULL),(759,20,473,'2023-02-09 05:07:40',NULL),(760,20,476,'2023-02-09 05:07:41',NULL),(761,20,496,'2023-02-09 05:12:08',NULL),(762,20,595,'2023-02-09 05:13:06',NULL),(763,20,600,'2023-02-09 05:13:09',NULL),(764,1,640,'2023-02-15 02:27:13',NULL),(765,1,641,'2023-02-15 02:55:56',NULL),(766,1,644,'2023-02-15 03:35:38',NULL),(767,1,643,'2023-02-15 05:30:38',NULL),(768,3,453,'2023-02-15 07:24:37',NULL),(769,3,640,'2023-02-15 07:24:38',NULL),(770,3,639,'2023-02-15 07:24:39',NULL),(771,3,641,'2023-02-15 07:24:40',NULL),(772,3,642,'2023-02-15 07:24:42',NULL),(773,3,643,'2023-02-15 07:24:43',NULL),(774,3,644,'2023-02-15 07:24:44',NULL),(775,1,645,'2023-02-15 08:30:41',NULL),(776,4,620,'2023-02-17 03:02:59',NULL),(777,1,646,'2023-02-21 02:25:54',NULL),(778,1,647,'2023-03-01 08:36:15',NULL),(779,4,647,'2023-03-02 03:45:18',NULL),(780,3,483,'2023-03-02 09:32:15',NULL),(781,3,431,'2023-03-02 09:32:46',NULL),(782,3,430,'2023-03-02 09:32:56',NULL),(783,1,648,'2023-03-10 07:31:23',NULL),(784,3,648,'2023-03-13 02:36:33',NULL),(785,3,649,'2023-03-23 07:24:44',NULL),(786,1,650,'2023-03-27 06:03:46',NULL),(787,1,651,'2023-03-27 06:46:28',NULL),(788,1,653,'2023-03-30 02:19:56',NULL),(789,1,652,'2023-03-30 02:19:56',NULL),(790,4,652,'2023-03-30 07:51:51',NULL),(791,4,653,'2023-03-30 07:51:52',NULL),(792,1,654,'2023-04-24 12:06:47',NULL),(793,1,655,'2023-04-28 03:53:08',NULL),(794,4,655,'2023-04-28 06:38:46',NULL),(795,3,655,'2023-04-28 06:38:51',NULL),(796,2,655,'2023-04-28 06:38:58',NULL),(797,4,656,'2023-05-18 03:07:52',NULL),(798,4,657,'2023-05-18 03:08:00',NULL),(799,1,658,'2023-05-18 03:31:10',NULL),(800,1,659,'2023-05-18 06:11:18',NULL),(801,4,659,'2023-05-18 06:37:13',NULL),(802,4,658,'2023-05-18 06:37:15',NULL),(803,1,660,'2023-05-19 03:05:11',NULL),(804,1,661,'2023-05-19 07:47:58',NULL),(805,1,662,'2023-05-19 08:41:16',NULL),(806,1,670,'2023-05-19 08:41:16',NULL),(807,1,665,'2023-05-19 08:51:27',NULL),(808,1,666,'2023-05-19 08:54:14',NULL),(809,1,667,'2023-05-19 08:54:21',NULL),(810,1,669,'2023-05-19 09:18:50',NULL),(811,1,663,'2023-05-19 10:41:48',NULL),(812,1,671,'2023-05-22 05:46:18',NULL),(813,4,672,'2023-05-22 09:29:42',NULL),(814,4,660,'2023-05-22 12:11:49',NULL),(815,4,662,'2023-05-22 12:11:50',NULL),(816,4,661,'2023-05-22 12:11:57',NULL),(817,4,666,'2023-05-22 12:12:02',NULL),(818,4,670,'2023-05-22 12:12:04',NULL),(819,4,663,'2023-05-24 06:53:32',NULL),(820,4,667,'2023-05-24 06:53:33',NULL),(821,4,665,'2023-05-24 06:53:34',NULL),(822,4,669,'2023-05-24 06:53:35',NULL),(823,1,664,'2023-05-25 05:49:24',NULL),(824,1,673,'2023-06-07 10:43:28',NULL),(825,1,675,'2023-06-19 02:34:40',NULL),(826,1,676,'2023-06-19 07:03:43',NULL),(828,1,677,'2023-06-19 08:51:24',NULL),(829,1,679,'2023-06-20 07:24:54',NULL),(830,1,678,'2023-06-20 07:35:15',NULL),(831,1,680,'2023-06-26 07:25:35',NULL),(832,1,681,'2023-06-26 09:45:33',NULL),(833,1,683,'2023-07-06 09:21:12',NULL),(834,1,684,'2023-07-11 05:15:22',NULL),(835,3,684,'2023-07-11 05:38:42',NULL),(836,22,673,'2023-07-11 09:26:35',NULL),(837,22,675,'2023-07-11 09:26:36',NULL),(838,22,676,'2023-07-11 09:26:37',NULL),(839,22,677,'2023-07-11 09:26:38',NULL),(840,22,678,'2023-07-11 09:26:38',NULL),(841,22,679,'2023-07-11 09:26:39',NULL),(842,22,680,'2023-07-11 09:26:40',NULL),(843,22,681,'2023-07-11 09:26:41',NULL),(844,22,683,'2023-07-11 09:26:42',NULL),(845,1,685,'2023-07-17 05:27:33',NULL),(846,3,673,'2023-07-17 07:51:10',NULL),(847,3,675,'2023-07-17 07:51:11',NULL),(848,3,676,'2023-07-17 07:51:12',NULL),(849,3,677,'2023-07-17 07:51:13',NULL),(850,3,678,'2023-07-17 07:51:14',NULL),(851,3,679,'2023-07-17 07:51:15',NULL),(852,3,680,'2023-07-17 07:51:16',NULL),(853,3,681,'2023-07-17 07:51:17',NULL),(854,3,683,'2023-07-17 07:51:19',NULL),(855,1,686,'2023-07-17 11:34:21',NULL),(856,3,686,'2023-07-17 12:09:09',NULL),(857,3,685,'2023-07-17 12:09:27',NULL),(858,1,688,'2023-07-20 03:56:37',NULL),(859,3,687,'2023-07-20 05:50:58',NULL),(860,3,688,'2023-07-20 05:51:00',NULL),(861,3,652,'2023-07-20 05:51:03',NULL),(862,3,653,'2023-07-20 05:51:08',NULL),(863,3,689,'2023-08-02 02:40:15',NULL),(864,3,654,'2023-08-16 13:38:08',NULL),(865,4,654,'2023-08-17 02:05:54',NULL),(866,1,690,'2023-08-17 06:45:39',NULL),(867,3,690,'2023-08-17 10:11:59',NULL),(868,1,691,'2023-08-18 08:29:07',NULL),(869,5,692,'2023-08-28 07:09:19',NULL),(870,1,693,'2023-08-29 07:01:05',NULL),(871,5,694,'2023-09-14 06:46:52',NULL),(872,4,698,'2023-09-21 09:05:00',NULL),(873,4,699,'2023-09-21 09:05:02',NULL),(874,3,695,'2023-09-26 02:20:48',NULL),(875,3,696,'2023-09-26 02:20:50',NULL),(876,3,697,'2023-09-26 02:20:52',NULL),(877,3,698,'2023-09-26 02:20:53',NULL),(878,3,699,'2023-09-26 02:20:54',NULL),(879,3,700,'2023-10-09 01:51:06',NULL),(880,3,701,'2023-10-09 01:51:08',NULL),(881,3,703,'2023-10-09 01:51:09',NULL),(882,3,704,'2023-10-09 01:51:10',NULL),(883,3,705,'2023-10-09 01:51:10',NULL),(884,3,706,'2023-10-09 01:51:13',NULL),(885,3,707,'2023-10-17 01:59:09',NULL),(886,4,707,'2023-10-17 01:59:21',NULL),(887,3,708,'2023-10-18 09:02:32',NULL),(888,3,672,'2023-10-18 09:02:33',NULL),(889,4,709,'2023-11-16 03:17:23',NULL),(890,3,710,'2023-12-13 05:46:45',NULL),(891,3,711,'2023-12-13 05:46:47',NULL),(892,3,712,'2023-12-13 05:46:49',NULL),(893,3,713,'2023-12-13 05:46:50',NULL),(894,3,715,'2023-12-13 05:46:51',NULL),(895,3,716,'2023-12-13 05:46:51',NULL);

--
-- Table structure for table `auth_user_role`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_user_role` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户登录名',
  `role_id` int NOT NULL COMMENT '角色ID',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username_role_unique` (`username`,`role_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `auth_user_role`
--

INSERT INTO `auth_user_role` VALUES (1,'baiyi',1,'2023-12-19 02:18:43',NULL),(2,'baiyi',3,'2023-12-19 02:18:48',NULL),(3,'baiyi',4,'2023-12-19 02:18:53',NULL),(4,'baiyi',5,'2023-12-19 02:18:59',NULL);

--
-- Table structure for table `business_asset_relation`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `business_asset_relation` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_type` int NOT NULL COMMENT '业务类型',
  `business_id` int NOT NULL COMMENT '业务ID',
  `datasource_instance_asset_id` int NOT NULL COMMENT '资产ID',
  `asset_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资产类型',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `business_type` (`business_type`,`business_id`,`datasource_instance_asset_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='业务对象与资产的绑定关系';

--
-- Dumping data for table `business_asset_relation`
--


--
-- Table structure for table `business_document`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `business_document` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_type` int NOT NULL COMMENT '业务类型',
  `business_id` int NOT NULL COMMENT '业务ID',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '文档内容',
  `document_type` int NOT NULL DEFAULT '1' COMMENT '文档类型',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `business_type` (`business_type`,`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `business_document`
--


--
-- Table structure for table `business_property`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `business_property` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_type` int NOT NULL COMMENT '业务类型',
  `business_id` int NOT NULL COMMENT '业务ID',
  `property` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性',
  `comment` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `business_type` (`business_type`,`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `business_property`
--


--
-- Table structure for table `business_tag`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `business_tag` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_type` int NOT NULL COMMENT '业务类型',
  `business_id` int NOT NULL COMMENT '业务ID',
  `tag_id` int NOT NULL COMMENT '标签ID',
  `tag_value` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `business_type` (`business_type`,`business_id`,`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务器标签关联表';

--
-- Dumping data for table `business_tag`
--


--
-- Table structure for table `business_template`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `business_template` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '显示名称',
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '实例UUID',
  `business_type` int NOT NULL COMMENT '业务类型',
  `business_id` int NOT NULL COMMENT '业务ID',
  `template_id` int NOT NULL COMMENT '模板ID',
  `env_type` int NOT NULL COMMENT '环境类型',
  `kind` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '分类',
  `vars` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板变量',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板内容',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='业务模版';

--
-- Dumping data for table `business_template`
--


--
-- Table structure for table `datasource_config`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `datasource_config` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源名称',
  `uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'UUID',
  `ds_type` int NOT NULL COMMENT '数据源类型',
  `version` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `kind` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '分类',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `credential_id` int DEFAULT NULL COMMENT '凭据ID',
  `ds_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '数据源地址',
  `props_yml` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '属性(yaml)',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='数据源配置';

--
-- Dumping data for table `datasource_config`
--


--
-- Table structure for table `datasource_instance`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `datasource_instance` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int NOT NULL DEFAULT '0' COMMENT '数据源关联ID',
  `instance_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源名称',
  `uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'UUID',
  `instance_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '实例类型',
  `kind` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '实例分类',
  `version` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '实例版本',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `config_id` int unsigned NOT NULL COMMENT '数据源配置ID',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username` (`instance_name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='数据源实例';

--
-- Dumping data for table `datasource_instance`
--


--
-- Table structure for table `datasource_instance_asset`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `datasource_instance_asset` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int NOT NULL DEFAULT '0' COMMENT '资产父关系',
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源实例UUID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产名称',
  `asset_id` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资产ID',
  `asset_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资产类型',
  `kind` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '资产分类',
  `version` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产版本',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `asset_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资产关键字1',
  `asset_key_2` varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产关键字2',
  `zone` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '区域',
  `region_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '地区ID',
  `asset_status` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产状态',
  `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `created_time` timestamp NULL DEFAULT NULL COMMENT '资产创建时间',
  `expired_time` datetime DEFAULT NULL COMMENT '资产过期时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `asset_id` (`asset_id`,`asset_type`,`instance_uuid`,`asset_key`) USING BTREE,
  KEY `parent_id` (`parent_id`),
  KEY `instance_uuid` (`instance_uuid`,`is_active`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='数据源实例资产';

--
-- Dumping data for table `datasource_instance_asset`
--


--
-- Table structure for table `datasource_instance_asset_property`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `datasource_instance_asset_property` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `datasource_instance_asset_id` int NOT NULL DEFAULT '0' COMMENT '资产ID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '属性名称',
  `value` varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '属性值',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `datasource_instance_asset_id` (`datasource_instance_asset_id`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='资产属性';

--
-- Dumping data for table `datasource_instance_asset_property`
--


--
-- Table structure for table `datasource_instance_asset_relation`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `datasource_instance_asset_relation` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '实例UUID',
  `source_asset_id` int NOT NULL COMMENT '源资产ID',
  `target_asset_id` int NOT NULL COMMENT '目标资产ID',
  `relation_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '关系类型',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `instance_uuid` (`instance_uuid`,`source_asset_id`,`target_asset_id`,`relation_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='资产关系';

--
-- Dumping data for table `datasource_instance_asset_relation`
--


--
-- Table structure for table `datasource_instance_asset_subscription`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `datasource_instance_asset_subscription` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源实例UUID',
  `datasource_instance_asset_id` int NOT NULL DEFAULT '0' COMMENT '资产ID',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `playbook` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '订阅剧本',
  `vars` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '外部变量',
  `last_subscription_time` timestamp NULL DEFAULT NULL COMMENT '最后订阅时间',
  `last_subscription_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '最后订阅日志',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `instance_uuid` (`instance_uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='资产订阅';

--
-- Dumping data for table `datasource_instance_asset_subscription`
--


--
-- Table structure for table `event`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `event` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源实例UUID',
  `event_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源事件ID',
  `event_id_desc` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '数据源事件ID描述',
  `event_name` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '事件名称',
  `event_message` longtext COMMENT '数据源事件信息',
  `priority` int NOT NULL DEFAULT '0' COMMENT '严重性级别',
  `lastchange_time` timestamp NULL DEFAULT NULL COMMENT '最后更改其状态的时间',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效事件',
  `expired_time` timestamp NULL DEFAULT NULL COMMENT '过期时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `instance_uuid` (`instance_uuid`,`event_id`) USING BTREE,
  KEY `is_active` (`is_active`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='事件';

--
-- Dumping data for table `event`
--


--
-- Table structure for table `event_business`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `event_business` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `event_id` int NOT NULL COMMENT '事件ID',
  `business_type` int NOT NULL COMMENT '业务类型',
  `business_id` int NOT NULL DEFAULT '0' COMMENT '业务ID',
  `name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '名称',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `event_id` (`event_id`,`business_type`,`business_id`) USING BTREE,
  KEY `event_id_2` (`event_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='事件业务对象关联';

--
-- Dumping data for table `event_business`
--


--
-- Table structure for table `instance`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `instance` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '实例名',
  `hostname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '主机名',
  `host_ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '主机IP',
  `status` int NOT NULL COMMENT '实例状态',
  `is_active` tinyint(1) NOT NULL COMMENT '有效',
  `license` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `comment` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `name_UNIQUE` (`name`) USING BTREE,
  UNIQUE KEY `host_ip_UNIQUE` (`host_ip`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `instance`
--


--
-- Table structure for table `leo_build`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_build` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `job_id` int NOT NULL COMMENT '任务ID',
  `job_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  `application_id` int NOT NULL COMMENT '应用ID',
  `build_job_name` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '构建任务名',
  `build_number` int NOT NULL COMMENT '构建编号',
  `build_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '构建配置',
  `version_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '版本',
  `version_desc` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '版本描述',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间',
  `build_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '构建状态',
  `build_result` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '构建结果',
  `is_finish` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已完成任务',
  `is_deleted_build_job` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已删除构建任务',
  `execution_type` int NOT NULL DEFAULT '0' COMMENT '执行类型',
  `pipeline_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '流水线',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '操作用户',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `oc_instance` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT 'OC实例名',
  `ticket_id` int NOT NULL DEFAULT '0' COMMENT '工单ID',
  `project_id` int DEFAULT '0' COMMENT '项目ID',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `build_job_name` (`build_job_name`),
  UNIQUE KEY `job_id` (`job_id`,`build_number`),
  KEY `is_active` (`is_active`),
  KEY `is_finish` (`is_finish`),
  KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='构建任务';

--
-- Dumping data for table `leo_build`
--


--
-- Table structure for table `leo_build_image`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_build_image` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `build_id` int NOT NULL COMMENT '构建ID',
  `job_id` int NOT NULL COMMENT '任务ID',
  `image` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '镜像',
  `version_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '版本',
  `version_desc` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '版本描述',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `build_id` (`build_id`,`image`),
  UNIQUE KEY `image` (`image`),
  KEY `job_id` (`job_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务构建';

--
-- Dumping data for table `leo_build_image`
--


--
-- Table structure for table `leo_build_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_build_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `build_id` int NOT NULL COMMENT '构建ID',
  `log_level` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '日志级别',
  `log_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '日志类型',
  `log` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '构建日志',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `build_id` (`build_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务构建日志';

--
-- Dumping data for table `leo_build_log`
--


--
-- Table structure for table `leo_deploy`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_deploy` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `application_id` int NOT NULL COMMENT '应用ID',
  `job_id` int NOT NULL COMMENT '任务ID',
  `job_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  `deploy_number` int NOT NULL COMMENT '部署编号',
  `deploy_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部署配置',
  `build_id` int NOT NULL COMMENT '构建ID',
  `asset_id` int DEFAULT '0' COMMENT 'Deployment资产ID',
  `version_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '版本名称',
  `version_desc` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '版本描述',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间',
  `deploy_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '部署状态',
  `deploy_result` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '部署结果',
  `is_finish` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已完成任务',
  `execution_type` int NOT NULL DEFAULT '0' COMMENT '执行类型',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '操作用户',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `is_rollback` tinyint(1) NOT NULL DEFAULT '0' COMMENT '回滚操作',
  `oc_instance` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT 'OC实例名',
  `project_id` int DEFAULT '0' COMMENT '项目ID',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `job_id` (`job_id`,`deploy_number`),
  KEY `is_finish` (`is_finish`),
  KEY `is_active` (`is_active`),
  KEY `job_id_2` (`job_id`),
  KEY `build_id` (`build_id`),
  KEY `project_id` (`project_id`),
  KEY `job_id_3` (`job_id`,`asset_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='部署任务';

--
-- Dumping data for table `leo_deploy`
--


--
-- Table structure for table `leo_deploy_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_deploy_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `deploy_id` int NOT NULL COMMENT '部署ID',
  `log_level` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '日志级别',
  `log_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '日志类型',
  `log` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '部署日志',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `deploy_id` (`deploy_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务构建日志';

--
-- Dumping data for table `leo_deploy_log`
--


--
-- Table structure for table `leo_job`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_job` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int NOT NULL DEFAULT '0' COMMENT '关联任务ID',
  `application_id` int NOT NULL COMMENT '应用ID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '显示名称',
  `job_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '任务Key(不可变名称)',
  `branch` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '默认分支',
  `env_type` int DEFAULT NULL COMMENT '环境类型',
  `job_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '任务参数配置',
  `build_number` int NOT NULL DEFAULT '0' COMMENT '当前构建编号',
  `build_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT 'kubernetes-image' COMMENT '构建类型',
  `template_id` int NOT NULL COMMENT '模版ID',
  `template_version` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '模板版本',
  `template_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板内容',
  `hide` tinyint(1) NOT NULL DEFAULT '0' COMMENT '隐藏任务',
  `href` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '任务超文本链接',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `application_id` (`application_id`,`job_key`) USING BTREE,
  KEY `application_id_2` (`application_id`),
  KEY `is_active` (`is_active`),
  KEY `build_type` (`build_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Leo任务配置';

--
-- Dumping data for table `leo_job`
--


--
-- Table structure for table `leo_rule`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_rule` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '名称',
  `rule_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则配置',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务构建日志';

--
-- Dumping data for table `leo_rule`
--


--
-- Table structure for table `leo_template`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `leo_template` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '显示名称',
  `jenkins_instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '实例UUID',
  `template_name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '模板名称',
  `template_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板配置',
  `template_parameter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板参数(保留)',
  `template_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板内容',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `name` (`name`,`jenkins_instance_uuid`,`template_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务模板';

--
-- Dumping data for table `leo_template`
--


--
-- Table structure for table `license`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `license` (
  `id` int NOT NULL AUTO_INCREMENT,
  `license` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '授权文件',
  `secret_key` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `is_active` tinyint NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='授权信息';

--
-- Dumping data for table `license`
--


--
-- Table structure for table `message_template`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `message_template` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '名称',
  `msg_key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '消息关键字',
  `msg_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '消息类型',
  `consumer` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '消费者',
  `title` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '标题',
  `msg_template` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '通知模版',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `msg_key` (`msg_key`,`msg_type`,`consumer`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知模版';

--
-- Dumping data for table `message_template`
--

INSERT INTO `message_template` VALUES (1,'创建用户消息通知模板','CREATE_USER','markdown','DINGTALK_APP','OPSCLOUD通知','### 统一认证账户\n>Be careful not to copy spaces when copying usernames and passwords 复制用户名和密码注意不要复制空格\n\n+ Username:${username} \n+ Password:${password}','','2021-12-01 09:56:15','2023-12-19 02:24:27'),(2,'修改用户密码消息通知模板','UPDATE_USER_PASSWORD','markdown','DINGTALK_APP','OPSCLOUD通知','### 统一认证账户密码重置\n>Be careful not to copy spaces when copying usernames and passwords 复制用户名和密码注意不要复制空格\n\n+ Username:${username} \n+ Password:${password}','本人修改密码则不发送','2021-12-01 10:06:47','2023-12-19 02:24:32'),(3,'创建RAM用户通知模板','CREATE_RAM_USER','markdown','DINGTALK_APP','OPSCLOUD通知','### Aliyun RAM Account opening\n- Aliyun Instance Name: ${aliyunName}\n- RAM Login URL: ${loginUrl}\n- Username:${username}   \n- Password:${password}',NULL,'2021-12-14 02:01:40','2023-06-07 03:04:13'),(4,'工单审批通知模板','TICKET_APPROVE','markdown','DINGTALK_APP','OPSCLOUD工单审批通知','### No.${ticketId} ${workOrderName}\n\n您有 **${createUser}** 发起的工单需要审批:\n<% for(ticketEntry in ticketEntities){ %> \n<%if(ticketEntry.role != null && ticketEntry.role != \'\'){%>\n  + ${ticketEntry.name}  (**${ticketEntry.role}**)  ${ticketEntry.comment} \n<%}else{%>\n  + ${ticketEntry.name} ${ticketEntry.comment} \n<%}%>\n<% } %>\n\n[审批同意](${apiAgree})                    [审批拒绝](${apiReject})\n\n[点击查看(仅支持PC)](https://oc.example.com/index.html#/workorder)',NULL,'2022-01-26 06:20:38','2023-12-19 02:30:49'),(5,'工单结束通知模板','TICKET_END','markdown','DINGTALK_APP','OPSCLOUD工单结束通知','### No.${ticketId} ${workOrderName}\n\n您发起的工单已经结束:\n${result}\n\n[点击查看(仅支持PC)](https://oc.example.com/index.html#/workorder)',NULL,'2022-01-26 08:25:02','2023-12-19 02:30:55'),(6,'创建IAM用户通知模板','CREATE_IAM_USER','markdown','DINGTALK_APP','OPSCLOUD通知','### AWS-IAM Account opening\n- AWS Instance Name: ${awsName}\n- IAM Login URL: ${loginUrl}\n- Account ID (12 位数)或账户别名: ${accountId}\n- Username: ${username}   \n- Password: ${password}\n- (EN)Enable MFA link [click to view QR code](https://oc.example.com/index.html#/user/mfa/iam)\n- (中文)启用MFA链接[点击查看二维码](https://oc.example.com/index.html#/user/mfa/iam)',NULL,'2022-02-11 01:19:39','2023-12-19 02:31:06'),(7,'钉钉告警模版(Zabbix)','ZBX_ALERT','markdown','DINGTALK_APP','监控告警','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"监控告警\",\n    \"text\": \n\"### ${severity}\\n\\n\n>${host} ${ip}\\n\\n\n<%\n  if(events == null || events.~size == 0){\n    print(\'No Problems\\n\\n\');     \n  }else{\n    print(\'\\n\\n\');\n    for(event in events){\n       print(\'- \' + event.eventName + \'\\n\');     \n    } \n    print(\'\\n\\n\');\n  }\n%>\n\"}\n}',NULL,'2022-05-31 09:11:24','2022-05-31 13:52:55'),(8,'钉钉告警模板(Consul)','CONSUL_ALERT','markdown','DINGTALK_APP','Consul 告警','{\"msgtype\":\"markdown\",\n\"markdown\":\n  {\"title\":\"Consul 告警\",\"text\": \n\"### ${service}\\n\\n\n实例名称 : ${check}\\n\\n\n告警描述 : ${message}\\n\\n\n当前数值 : ${value}\\n\\n\n故障节点 :\n<%\n  for(data in metadata){\n    if(dataLP.last){\n      print(\'- \' + data.name + \'\\n\\n\');     \n    }else{\n      print(\'- \' + data.name + \'\\n\');     \n    }\n  } \n%>\n告警时间 : ${alertTime,dateFormat=\"yyyy-MM-dd HH:mm:ss\"}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);\n    }else{\n      print(\'@\' + user.phone + \', \');\n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');\n            }else{\n               print(\'\"\' + user.phone + \'\",\');\n            }\n          }\n        %>], \n\"isAtAll\":false}\n}',NULL,'2022-07-21 16:04:03','2022-07-26 11:45:28'),(9,'构建开始通知','LEO_BUILD_START','markdown','DINGTALK_ROBOT','Leo构建开始通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n构建阶段 : ${buildPhase}\\n\\n\n构建版本 : ${versionName}\\n\\n\n构建编号 : ${buildNumber}\\n\\n\n构建分支 : ${branch}\\n\\n\nCOMMIT : ${commitId}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-11-15 05:55:49','2022-12-06 06:37:28'),(10,'构建结束通知','LEO_BUILD_END','markdown','DINGTALK_ROBOT','Leo构建结束通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n构建阶段 : ${buildPhase}\\n\\n\n构建结果 : ${buildResult}\\n\\n\n构建版本 : ${versionName}\\n\\n\n构建编号 : ${buildNumber}\\n\\n\n构建分支 : ${branch}\\n\\n\nCOMMIT : ${commitId}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-11-17 02:36:33','2022-12-06 06:39:22'),(11,'部署开始通知','LEO_DEPLOY_START','markdown','DINGTALK_ROBOT','Leo部署开始通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n环境分组 : ${envGroup}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n部署阶段 : ${deployPhase}\\n\\n\n部署类型 : ${deployTypeDesc}\\n\\n\n部署编号 : ${deployNumber}\\n\\n\n版本名称 : ${versionName}\\n\\n\n版本镜像 : ${image}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-12-06 06:36:15','2023-02-28 05:26:32'),(12,'部署结束通知','LEO_DEPLOY_END','markdown','DINGTALK_ROBOT','Leo部署结束通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n环境分组 : ${envGroup}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n部署阶段 : ${deployPhase}\\n\\n\n部署结果 : ${deployResult}\\n\\n\n部署类型 : ${deployTypeDesc}\\n\\n\n部署编号 : ${deployNumber}\\n\\n\n版本名称 : ${versionName}\\n\\n\n版本镜像 : ${image}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n} ',NULL,'2022-12-06 06:36:28','2023-02-28 05:26:43'),(13,'重新部署开始通知','LEO_REDEPLOY_START','markdown','DINGTALK_ROBOT','Leo重新部署开始通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n环境分组 : ${envGroup}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n部署阶段 : ${deployPhase}\\n\\n\n部署类型 : ${deployTypeDesc}\\n\\n\n部署编号 : ${deployNumber}\\n\\n\n版本镜像 : ${image}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-12-13 12:23:11','2023-03-20 02:50:27'),(14,'重新部署结束通知','LEO_REDEPLOY_END','markdown','DINGTALK_ROBOT','Leo重新部署结束通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n环境分组 : ${envGroup}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n部署阶段 : ${deployPhase}\\n\\n\n部署结果 : ${deployResult}\\n\\n\n部署类型 : ${deployTypeDesc}\\n\\n\n部署编号 : ${deployNumber}\\n\\n\n版本镜像 : ${image}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-12-13 12:23:36','2023-03-20 02:50:32'),(15,'小流量环境下线开始通知','LEO_OFFLINE_START','markdown','DINGTALK_ROBOT','Leo小流量环境下线开始通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n部署阶段 : ${deployPhase}\\n\\n\n部署类型 : ${deployTypeDesc}\\n\\n\n部署编号 : ${deployNumber}\\n\\n\n版本镜像 : ${image}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-12-26 09:39:53','2022-12-26 09:43:23'),(19,'小流量环境下线结束通知','LEO_OFFLINE_END','markdown','DINGTALK_ROBOT','Leo小流量环境下线结束通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Leo通知\",\n    \"text\": \n\"### ${applicationName}\\n\\n\n任务名称 : ${jobName}\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n任务环境 : ${env}\\n\\n\n部署阶段 : ${deployPhase}\\n\\n\n部署结果 : ${deployResult}\\n\\n\n部署类型 : ${deployTypeDesc}\\n\\n\n部署编号 : ${deployNumber}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n}',NULL,'2022-12-26 09:43:58','2022-12-26 09:45:48'),(20,'AWS-IAM重置密码通知模板','AWS_IAM_UPDATE_LOGIN_PROFILE','markdown','DINGTALK_APP','OPSCLOUD通知','### AWS-IAM Resetting Login Profile(重置登录配置)\n- AWS Instance Name: ${awsName}\n- IAM Login URL: ${loginUrl}\n- Account ID (12 位数)或账户别名: ${accountId}\n- Username: ${username}   \n- Password: ${password}',NULL,'2023-04-18 10:12:39','2023-06-07 03:00:25'),(21,'Aliyun-RAM重置密码通知模板','ALIYUN_RAM_UPDATE_LOGIN_PROFILE','markdown','DINGTALK_APP','OPSCLOUD通知','### Aliyun RAM Resetting Login Profile(重置登录配置)\n- Aliyun Instance Name: ${aliyunName}\n- RAM Login URL: ${loginUrl}\n- Username:${username}   \n- Password:${password}',NULL,'2023-06-07 02:51:20','2023-06-07 03:04:29'),(22,'Apollo应用配置发布通知','APOLLO_RELEASE','markdown','DINGTALK_ROBOT','Apollo应用配置发布通知','{ \"msgtype\": \"markdown\",\n  \"markdown\": \n  { \"title\": \"Apollo发布通知\",\n    \"text\": \n\"### ${applicationName} 配置发布\\n\\n\n通知时间 : ${nowDate}\\n\\n\n应用标签 : ${applicationTags}\\n\\n\n实例名称 : ${instanceName}\\n\\n\n任务环境 : ${env}\\n\\n\n是否灰度 : ${isGray}\\n\\n\n发布工单 : ${ticketMsg}\\n\\n\n操作用户 : ${displayName}\\n\\n\n<%\n  for(user in users){\n    if(userLP.last){\n      print(\'@\' + user.phone);     \n    }else{\n      print(\'@\' + user.phone + \',\');   \n    }\n  }%>\"\n  }, \"at\": {\n     \"atMobiles\": [ \n        <%\n          for(user in users){\n            if(userLP.last){\n               print(\'\"\' + user.phone + \'\"\');     \n            }else{\n               print(\'\"\' + user.phone + \'\",\');   \n            }\n          }\n        %>], \"isAtAll\": false }\n} ',NULL,'2023-09-26 07:48:47','2023-09-26 09:20:47');

--
-- Table structure for table `platform_notify_history`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `platform_notify_history` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `platform_name` varchar(128) NOT NULL DEFAULT '' COMMENT '平台名称',
  `param` text NOT NULL COMMENT '入参',
  `code` varchar(8) NOT NULL COMMENT '返回值',
  `request_id` varchar(32) DEFAULT NULL COMMENT '平台描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `platform_notify_history`
--


--
-- Table structure for table `project`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `project` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '' COMMENT '项目名称',
  `project_key` varchar(128) NOT NULL DEFAULT '' COMMENT '项目Key',
  `project_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '项目类型',
  `project_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '项目状态',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` text COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `project_key` (`project_key`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='聚合项目';

--
-- Dumping data for table `project`
--


--
-- Table structure for table `project_resource`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `project_resource` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `project_id` int NOT NULL COMMENT '项目ID',
  `name` varchar(128) NOT NULL DEFAULT '' COMMENT '资源名称',
  `virtual_resource` tinyint(1) DEFAULT '0' COMMENT '虚拟资源',
  `resource_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '资源类型',
  `business_id` int NOT NULL COMMENT '业务ID',
  `business_type` int NOT NULL COMMENT '业务类型',
  `role` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '角色',
  `comment` text COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `project_id` (`project_id`,`resource_type`,`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='项目资源';

--
-- Dumping data for table `project_resource`
--


--
-- Table structure for table `ser_deploy_subtask`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `ser_deploy_subtask` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ser_deploy_task_id` int NOT NULL COMMENT '任务ID',
  `env_type` int NOT NULL DEFAULT '0' COMMENT '环境类型',
  `task_status` varchar(32) DEFAULT NULL COMMENT '任务状态',
  `task_result` varchar(32) DEFAULT NULL COMMENT '任务结果',
  `deploy_username` varchar(128) DEFAULT NULL,
  `end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间',
  `request_content` text COMMENT '请求内容',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
  `response_content` text COMMENT '响应内容',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='ser发布子任务';

--
-- Dumping data for table `ser_deploy_subtask`
--


--
-- Table structure for table `ser_deploy_subtask_callback`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `ser_deploy_subtask_callback` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ser_deploy_subtask_id` int NOT NULL COMMENT '子任务ID',
  `callback_content` text COMMENT '回调内容',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ser_deploy_subtask_callback_ser_deploy_subtask_id_index` (`ser_deploy_subtask_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='ser发布子任务回调';

--
-- Dumping data for table `ser_deploy_subtask_callback`
--


--
-- Table structure for table `ser_deploy_task`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `ser_deploy_task` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `application_id` int NOT NULL COMMENT '应用ID',
  `task_uuid` char(32) NOT NULL COMMENT '任务UUID',
  `task_name` varchar(64) DEFAULT NULL COMMENT '任务名称',
  `task_desc` varchar(128) DEFAULT NULL COMMENT '任务描述',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `is_finish` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已完成任务',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `task_uuid` (`task_uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='ser包发布任务';

--
-- Dumping data for table `ser_deploy_task`
--


--
-- Table structure for table `ser_deploy_task_item`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `ser_deploy_task_item` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ser_deploy_task_id` int NOT NULL COMMENT '任务ID',
  `item_name` varchar(32) DEFAULT NULL COMMENT 'item名称',
  `item_key` varchar(256) NOT NULL COMMENT 'item key',
  `item_bucket_name` varchar(64) NOT NULL COMMENT 'item bucketName',
  `item_md5` varchar(32) DEFAULT NULL COMMENT 'item md5',
  `item_size` varchar(32) NOT NULL COMMENT 'item 大小',
  `reload_username` varchar(128) NOT NULL COMMENT '发布人',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `ser_deploy_task_item_ser_deploy_task_id_item_name_uindex` (`ser_deploy_task_id`,`item_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务构建日志';

--
-- Dumping data for table `ser_deploy_task_item`
--


--
-- Table structure for table `server`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '服务器名称',
  `display_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '显示名称',
  `server_group_id` int NOT NULL COMMENT '服务器组ID',
  `os_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '系统类型',
  `env_type` int NOT NULL DEFAULT '0' COMMENT '环境类型',
  `public_ip` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '公网IP',
  `private_ip` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '私网IP',
  `server_type` int DEFAULT NULL COMMENT '服务器类型',
  `area` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '地区',
  `serial_number` int NOT NULL DEFAULT '0' COMMENT '序号',
  `monitor_status` int NOT NULL DEFAULT '-1' COMMENT '监控状态',
  `comment` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '说明',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `server_status` int NOT NULL DEFAULT '1' COMMENT '服务器状态',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `env_type` (`env_type`,`serial_number`,`server_group_id`) USING BTREE,
  UNIQUE KEY `private_ip_2` (`private_ip`),
  KEY `name` (`name`) USING BTREE,
  KEY `private_ip` (`private_ip`) USING BTREE,
  KEY `server_group_id` (`server_group_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `server`
--


--
-- Table structure for table `server_account`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server_account` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '服务器名称',
  `credential_id` int NOT NULL COMMENT '凭据ID',
  `account_type` int NOT NULL DEFAULT '0' COMMENT '0普通账户/1管理员',
  `protocol` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '连接协议',
  `comment` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '说明',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username` (`username`,`account_type`,`protocol`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务器账户';

--
-- Dumping data for table `server_account`
--


--
-- Table structure for table `server_account_permission`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server_account_permission` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `server_id` int NOT NULL COMMENT '服务器ID',
  `server_account_id` int NOT NULL COMMENT '账户ID',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `server_id` (`server_id`,`server_account_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务器-账户 授权表';

--
-- Dumping data for table `server_account_permission`
--


--
-- Table structure for table `server_group`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server_group` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '服务器组名称',
  `server_group_type_id` int NOT NULL DEFAULT '0' COMMENT '服务器组类型',
  `allow_order` tinyint(1) NOT NULL DEFAULT '1' COMMENT '允许工单申请',
  `comment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `name` (`name`) USING BTREE,
  KEY `server_group_type_id` (`server_group_type_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `server_group`
--


--
-- Table structure for table `server_group_type`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server_group_type` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `color` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `comment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `server_group_type`
--

INSERT INTO `server_group_type` VALUES (1,'default','#858585','默认类型','2021-05-24 10:34:49','2021-05-24 10:34:49'),(2,'gitLab','#dd4d3a','','2021-05-26 08:56:27','2023-02-06 08:24:10'),(3,'microservice','#F29603','微服务','2021-06-08 12:23:38','2021-06-08 12:23:38'),(4,'zookeeper','#dd4d3a','zookeeper','2021-06-24 08:42:11','2021-06-24 08:42:11'),(5,'mysql','#1451B4','mysql','2021-06-24 08:42:11','2021-06-24 08:42:11'),(6,'other',NULL,NULL,'2021-06-24 08:42:11','2021-06-24 08:42:11'),(7,'public','#E80F07',NULL,'2021-06-24 08:42:11','2021-06-24 08:42:11'),(8,'redis','#D7160F',NULL,'2021-06-24 08:42:11','2021-06-24 08:42:11'),(9,'web-server',NULL,NULL,'2021-06-24 08:42:11','2021-06-24 08:42:11'),(10,'front-end',NULL,NULL,'2021-06-24 08:42:12','2021-06-24 08:42:12'),(18,'zabbix',NULL,'','2021-06-24 08:42:12','2021-06-24 08:42:12'),(20,'jenkins','#00690C','持续集成','2021-06-24 08:42:12','2023-12-15 07:44:39'),(21,'bigdata','#dd4d3a','大数据相关服务(非业务)','2021-06-24 08:42:12','2021-06-24 08:42:12'),(22,'kubernetes','#dd4d3a','容器服务','2021-06-24 08:42:12','2021-06-24 08:42:12'),(23,'canal','#3093EA','','2021-06-24 08:42:12','2021-06-24 08:42:12'),(24,'qa','#dd4d3a','测试组','2021-06-24 08:42:13','2021-06-24 08:42:13'),(26,'third-party','#3ADD48','第三方厂商服务','2022-05-07 02:45:52','2022-05-07 02:46:30'),(27,'channel','#D53ADD','渠道','2022-05-09 05:41:12',NULL),(28,'mongo','#6C2B4D','','2022-05-12 07:52:54',NULL),(29,'clickhouse','#3ADD3D','','2022-05-12 09:52:47',NULL),(30,'risk','#dd4d3a','同盾风控','2023-02-06 08:18:53',NULL),(31,'vpn','#dd4d3a','','2023-07-24 06:34:53',NULL),(32,'nginx','#dd4d3a','Nginx Web Server','2023-11-08 09:13:16',NULL);

--
-- Table structure for table `server_task`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server_task` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '数据源实例UUID',
  `task_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '任务UUID',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `member_size` int NOT NULL DEFAULT '0' COMMENT '成员数量',
  `ansible_playbook_id` int DEFAULT NULL COMMENT '剧本ID',
  `vars` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `tags` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `task_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT 'PLAYBOOK',
  `finalized` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否完成',
  `stop_type` int DEFAULT '0' COMMENT '终止任务',
  `task_status` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '任务状态',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '任务开始时间',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '任务结束时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `task_uuid` (`task_uuid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务器任务';

--
-- Dumping data for table `server_task`
--


--
-- Table structure for table `server_task_member`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `server_task_member` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `server_task_id` int NOT NULL COMMENT '任务ID',
  `server_id` int DEFAULT NULL COMMENT '服务器ID',
  `server_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '服务器名称',
  `env_type` int NOT NULL DEFAULT '0' COMMENT '环境类型',
  `manage_ip` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '管理IP',
  `task_status` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '任务状态',
  `finalized` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否完成',
  `stop_type` int DEFAULT '0' COMMENT '终止任务',
  `exit_value` int DEFAULT NULL COMMENT '退出值',
  `task_result` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '',
  `output_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `error_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `start_time` timestamp NULL DEFAULT NULL COMMENT '任务开始时间',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '任务结束时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `server_task_member`
--


--
-- Table structure for table `shedlock`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `shedlock` (
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `lock_until` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  `locked_at` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `locked_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  PRIMARY KEY (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `shedlock`
--


--
-- Table structure for table `sys_announcement`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_announcement` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '标题',
  `kind` int NOT NULL DEFAULT '0' COMMENT '分类',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '内容',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效的',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `kind` (`kind`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='公告';

--
-- Dumping data for table `sys_announcement`
--


--
-- Table structure for table `sys_credential`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_credential` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `kind` int NOT NULL COMMENT '凭据分类',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '用户名',
  `credential` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '凭据内容',
  `credential_2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT 'PublicKey',
  `passphrase` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '密码短语',
  `fingerprint` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '指纹',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `create_time` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='系统凭据';

--
-- Dumping data for table `sys_credential`
--


--
-- Table structure for table `sys_document`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_document` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `icon` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '图标',
  `mount_zone` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '装载区域',
  `seq` int NOT NULL DEFAULT '1' COMMENT '顺序',
  `document_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '文档内容',
  `document_type` int NOT NULL DEFAULT '1' COMMENT '文档类型',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `doc_key` (`document_key`) USING BTREE,
  KEY `mount_zone` (`mount_zone`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `sys_document`
--

INSERT INTO `sys_document` VALUES (3,'Chrome','fab fa-chrome','MFA',1,'MFA_CHROME_README','> 使用身份验证器(插件)生成一次性密码（OTP）\n\n#### 1.安装插件\n[插件安装](https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai?hl=zh-CN)\n\n#### 2.固定插件（chrome浏览器右侧插件快捷栏目）\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/mfa/mfa_chrome_1.png\" style=\"height: 300px\"></img>\n\n#### 2.添加密钥（插件扫码）\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/mfa/mfa_chrome_2.jpeg\" style=\"height: 400px\"></img>\n\n#### 3.绑定MFA\n+ 右上角注销\n+ 在登录页面输入有效的OTP完成绑定\n+ [MFA页面查看绑定状态](https://oc.chuanyinet.com/index.html#/user/mfa)\n::: success\n必须重新登录，输入有效的OTP密码才能完成绑定\n:::',1,1,NULL,'2020-05-18 12:37:31','2023-02-08 07:43:54'),(4,'iOS','fab fa-apple','MFA',2,'MFA_IOS_README','> 使用Google Authenticator生成一次性密码(OTP)\n\n#### 1.App Store搜索\"Google Authenticator\"并安装\n</br>\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/mfa/mfa-ios.jpg\" style=\"height: 500px\"></img>\n\n#### 2.添加密钥（扫码）\n\n#### 3.绑定MFA\n+ 右上角注销\n+ 在登录页面输入有效的OTP完成绑定\n+ [MFA页面查看绑定状态](https://oc.chuanyinet.com/index.html#/user/mfa)',1,1,NULL,'2020-05-18 12:38:36','2023-02-08 07:41:49'),(5,'Android','fab fa-android','MFA',3,'MFA_ANDROID_README','> 使用Google 身份验证器生成一次性密码（OTP）\n\n#### 1.安装Google 身份验证器\n+ 手机支持 [Google Play](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)\n+ 其他Android系统\n  + [点击下载安装包(5.10)](https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/mfa/Google%20Authenticator_v5.10_apkpure.com.apk)\n::: success\nandroid-4.4或以上版本\n:::\n\n#### 2.添加密钥（扫码）\n\n#### 3.绑定MFA\n+ 右上角注销\n+ 在登录页面输入有效的OTP完成绑定\n+ [MFA页面查看绑定状态](https://oc.chuanyinet.com/index.html#/user/mfa)',1,1,NULL,'2020-05-18 12:39:22','2023-02-08 07:41:51'),(7,'登录认证','fas fa-sign-in-alt','SSH-SERVER',2,'SSH_SERVER_LOGIN_README','<h1>OpsCloud v4.0 SSH-Server</h1>\n\n#### 认证\n+  认证优先级\n\n```mermaid\nflowchart LR;\n    id1{{Local PubKey}}--> id2{{GitLab PubKey}}--> id3{{LDAP Password}}\n```\n\n::: success\n密钥支持RSA，ED25519（推荐）\n:::\n+  添加个人公钥（若在GitLab中已添加则忽略此步骤）\n    + <span style=\"color: #E00990\">`用户信息`</span>-<span style=\"color: #E00990\">`个人详情`</span>-<span style=\"color: #E00990\">`SSH密钥`</span>（编辑-添加公钥）\n```bash\n# 查看公钥\n$ cat ~/.ssh/id_rsa.pub\n```\n\n#### 登录 `Opscloud SSH-Server`\n+ Mac终端命令行中执行\n```bash\n# -o StrictHostKeyChecking=no 跳过公钥检查\n$ ssh ${username}@${sshServerHost}\n                           .__                   .___\n  ____ ______  ______ ____ |  |   ____  __ __  __| _/\n /  _ \\\\____ \\/  ___// ___\\|  |  /  _ \\|  |  \\/ __ |\n(  <_> )  |_> >___ \\\\  \\___|  |_(  <_> )  |  / /_/ |\n \\____/|   __/____  >\\___  >____/\\____/|____/\\____ |\n       |__|       \\/     \\/                       \\/ version:4.0\n\nPlease type `help` to see available commands\n${username} 欢迎使用 Opscloud SSH Server! \n```\n\n#### 帮助命令\n```\nssh-server>help\nAVAILABLE COMMANDS\n\nBuilt-In Commands\n       help: Display help about available commands\n       * stacktrace: Display the full stacktrace of the last error.\n       clear: Clear the shell screen.\n       quit, exit: Exit the shell.\n       version: Show version info\n\nKubernetes\n       list-k8s-deployment: List kubernetes deployment info.\n       list-k8s-pod: List kubernetes pod info.\n       login-k8s-pod: Login kubernetes pod container [Enter ctrl+d to exit the session]\n       show-k8s-pod-log: Show kubernetes pod container log [Enter ctrl+c to exit the session]\n\nServer Commands\n       b: List server info on the before page.\n       server-login, login, open: Login to the server.\n       server-list, ls: List server info.\n       n: List server info on the next page.\n\n\nCommands marked with (*) are currently unavailable.\nType `help <command>` to learn more.\n```\n\n#### 命令帮助\n+ 查看 `ls` 命令帮助\n```bash\nssh-server>help ls\nNAME\n       ls - List server info.\n\nSYNOPSIS\n       ls --name String --ip String --help\n\nOPTIONS\n       --name String\n       Server\n       [Optional]\n\n       --ip String\n       IP\n       [Optional]\n\n       --help or -h\n       help for server-list\n       [Optional]\n\n\nALSO KNOWN AS\n       ls\n```',1,1,NULL,'2021-06-16 12:35:52','2023-05-18 09:46:02'),(8,'登录容器','fab fa-docker','SSH-SERVER',3,'SSH_SERVER_KUBERNETES_README','<h1>OpsCloud v4.0 SSH-Server</h1>\n\n#### 登录 Opscloud SSH-Server\n+ Mac终端命令行中执行\n```bash\n# -o StrictHostKeyChecking=no 跳过公钥检查\n$ ssh ${username}@${sshServerHost}\n```\n\n#### 查询无状态信息\n```\nssh-server>list-k8s-deployment\n+----+--------------------------+-----------+------------------------+\n| ID | Kubernetes Instance Name | Namespace | Deployment Name        |\n+----+--------------------------+-----------+------------------------+\n|  1 | kubernetes-dev           | dev       | merchant-gateway-dev   | \n|  2 | kubernetes-dev           | dev       | merchant-kili-dev      | \n|  3 | kubernetes-dev           | dev       | dingtalk-center-dev    | \n|  4 | kubernetes-dev           | dev       | merchant-rss-dev       | \n|  5 | kubernetes-daily         | daily     | merchant-gateway-daily | \n|  6 | kubernetes-daily         | daily     | merchant-kili-daily    | \n|  7 | kubernetes-daily         | daily     | merchant-rss-daily     | \n|  8 | kubernetes-daily         | daily     | dingtalk-center-daily  | \n|  9 | kubernetes-gray          | gray      | merchant-gateway-gray  | \n| 10 | kubernetes-gray          | gray      | merchant-kili-gray     | \n| 11 | kubernetes-gray          | gray      | dingtalk-center-gray   | \n| 12 | kubernetes-gray          | gray      | merchant-rss-gray      | \n| 13 | kubernetes-prod          | prod      | merchant-gateway-prod  | \n| 14 | kubernetes-prod          | prod      | merchant-kili-prod     | \n| 15 | kubernetes-prod          | prod      | dingtalk-center-prod   | \n| 16 | kubernetes-prod          | prod      | merchant-rss-prod      | \n+----+--------------------------+-----------+------------------------+\n页码: 1 ,分页长度: 38 ,总页数: 1 ,总数量: 16\n```\n\n#### 查询容器组信息\n```\nssh-server>list-k8s-pod gateway\n+----+---------------------+-----------+-----------------------------------------+-------------+---------------------+----------+---------+------------------------+\n| ID | Kubernetes Instance | Namespace | Pod Name                                | Pod IP      | Start Time          | Status   | Restart | Container Name         |\n+----+---------------------+-----------+-----------------------------------------+-------------+---------------------+----------+---------+------------------------+\n|  1 | kubernetes-dev      | [dev]     | merchant-gateway-dev-7ff89f6758-zdlsz   | 10.10.0.126 | 2022-03-10 11:18:40 | Running  |       7 | merchant-gateway-dev   | \n|  2 | kubernetes-daily    | [daily]   | merchant-gateway-daily-6cc876df85-wtjdm | 10.12.0.109 | 2022-03-15 12:04:37 | Running  |       0 | merchant-gateway-daily | \n|  3 | kubernetes-gray     | [gray]    | merchant-gateway-gray-5c6c7d9c4b-2bqs7  | 10.14.0.29  | 2022-03-15 11:08:19 | Running  |       0 | merchant-gateway-gray  | \n|  4 | kubernetes-gray     | [gray]    | merchant-gateway-gray-5c6c7d9c4b-mqm4k  | 10.14.0.154 | 2022-03-15 11:08:19 | Running  |       0 | merchant-gateway-gray  | \n|  5 | kubernetes-prod     | [prod]    | merchant-gateway-prod-6c7f96f6cb-9bk8c  | 10.16.0.164 | 2022-03-17 10:01:14 | Running  |       0 | merchant-gateway-prod  | \n|  6 | kubernetes-prod     | [prod]    | merchant-gateway-prod-6c7f96f6cb-9lrxs  | 10.16.0.24  | 2022-03-17 10:02:39 | Running  |       0 | merchant-gateway-prod  | \n+----+---------------------+-----------+-----------------------------------------+-------------+---------------------+----------+---------+------------------------+\n```\n\n#### 查看容器日志\n::: success\n退出容器日志 `ctrl+c`\n:::\n```bash\nssh-server>show-k8s-pod-log 1\n```\n\n#### 登录容器\n::: success\n退出容器 `exit`\n:::\n```bash\nssh-server>login-k8s-pod 1\n```\n\n#### 命令帮助\n+ 查看 `list-k8s-pod` 命令帮助\n```bash\nssh-server>help list-k8s-pod\n\n\nNAME\n	list-k8s-pod - 查询容器组列表信息\n\nSYNOPSYS\n	list-k8s-pod [[--deployment-name] string]  [[--id] int]  \n\nOPTIONS\n	--deployment-name  string\n		Deployment Name\n		[Optional, default = ]\n\n	--id  int\n		Deployment ID\n		[Optional, default = 0]\n```\n\n+ 查看 `login-k8s-pod ` 命令帮助\n```bash\nssh-server>help login-k8s-pod \n\n\nNAME\n	login-k8s-pod - 登录容器组,通过参数可指定容器 [ 输入 ctrl+d 退出会话 ]\n\nSYNOPSYS\n	login-k8s-pod [[--id] int]  [[--name] string]  [-R]  \n\nOPTIONS\n	--id  int\n		Pod ID\n		[Optional, default = ]\n\n	--name  string\n		Container Name\n		[Optional, default = ]\n\n	-R or --arthas\n		Arthas\n		[Optional, default = false]\n```\n',1,1,NULL,'2022-03-18 01:45:07','2023-02-08 07:51:10'),(9,'登录服务器','fas fa-server','SSH-SERVER',4,'SSH_SERVER_SERVER_README','<h1>OpsCloud v4.0 SSH-Server</h1>\n\n#### 登录 Opscloud SSH-Server\n+ Mac终端命令行中执行\n```bash\n# -o StrictHostKeyChecking=no 跳过公钥检查\n$ ssh ${username}@${sshServerHost}\n```\n\n#### 查询服务器信息\n```bash\nssh-server>list\n+----+-------------------------+------------------------+---------+----------------------------+-----------+--------------+---------+\n| ID | Server Name             | ServerGroup Name       | Env     | IP                         | Tag       | Account      | Comment |\n+----+-------------------------+------------------------+---------+----------------------------+-----------+--------------+---------+\n|  1 | caesar-1                | group_caesar           | [prod]  | 172.19.0.135               |           |  [manage]    |         | \n|  2 | caesar-2                | group_caesar           | [prod]  | 172.19.1.132               |           |  [manage]    |         | \n|  3 | discuz-1                | group_discuz           | [prod]  | 172.31.4.195               |           |  [manage]    |         | \n|  4 | dnsmasq-1               | group_dnsmasq          | [prod]  | 172.19.16.115              |           |  [manage]    |         | \n|  5 | dnsmasq-2               | group_dnsmasq          | [prod]  | 172.19.17.189              |           |  [manage]    |         | \n|  6 | dnsmasq-hangzhou-1      | group_dnsmasq-hangzhou | [prod]  | 47.98.222.130/172.31.4.193 | @Hangzhou |  [manage]    |         | \n|  7 | dnsmasq-hangzhou-2      | group_dnsmasq-hangzhou | [prod]  | 47.99.54.218/172.31.5.9    | @Hangzhou |  [manage]    |         | \n|  8 | eksdemo-ng-2            | group_aws              | [prod]  | 172.24.2.176               |           |  [ec2-user]  |         | \n|  9 | eksdemo-ng-1-1          | group_aws              | [prod]  | 172.24.1.253               |           |  [ec2-user]  |         | \n| 10 | front-tool-1            | group_front            | [prod]  | 172.31.8.19                | @Hangzhou |  [manage]    |         | \n| 11 | gitlab.chuanyinet.com-1 | group_gitlab           | [prod]  | 172.19.16.112              | Gitlab    |  [manage]    |         | \n| 12 | guacamole-1             | group_guacamole        | [prod]  | 172.19.0.146               |           |  [manage]    |         | \n| 13 | jenkins-1               | group_jenkins          | [prod]  | 172.19.0.134               | Jenkins   |  [manage]    |         | \n+----+-------------------------+------------------------+---------+----------------------------+-----------+--------------+---------+\n页码: 1 ,分页长度: 13 ,总页数: 6 ,总数量: 75 ,翻页< 上一页: b 下一页: n >\n```\n\n#### 登录服务器\n```bash\nssh-server>login 1\n```\n\n#### 命令帮助\n+ 查看 `list` 命令帮助\n```bash\nssh-server>help list\n\n\nNAME\n	list - 查询授权服务器列表信息\n\nSYNOPSYS\n	list [[--name] string]  [[--ip] string]  \n\nOPTIONS\n	--name  string\n		Server Name\n		[Optional, default = ]\n\n	--ip  string\n		IP\n		[Optional, default = ]\n\nALSO KNOWN AS\n	ls\n```\n\n+ 查看 `login` 命令帮助\n```bash\nssh-server>help login\n\n\nNAME\n	login - 登录服务器(开启会话)\n\nSYNOPSYS\n	login [[--id] int]  [[--account] string]  [-R]  [-A]  \n\nOPTIONS\n	--id  int\n		Server Id\n		[Optional, default = 1]\n\n	--account  string\n		Account Name\n		[Optional, default = ]\n\n	-R or --arthas\n		Arthas\n		[Optional, default = false]\n\n	-A or --admin\n		Admin\n		[Optional, default = false]\n\nALSO KNOWN AS\n	open\n```\n',1,1,NULL,'2022-03-18 01:45:32','2023-02-08 07:51:13'),(10,'Event','fab fa-google-drive','SSH-SERVER',5,'SSH_SERVER_EVENT_README','<h1>OpsCloud v4.0 SSH-Server</h1>\n\n> 事件驱动技术运维专用\n\n#### 登录 Opscloud SSH-Server\n+ Mac终端命令行中执行\n```bash\n# -o StrictHostKeyChecking=no 跳过公钥检查\n$ ssh ${username}@${sshServerHost}\n```\n\n#### 查询有效事件\n+ 查看事件命令\n```\nssh-server>event\n+----+----------+--------------------------------------------------------+-----------------+--------------+---------------------+------------+\n| ID | Severity | Event Name                                             | Server Name     | IP           | Lastchange Time     | Accounts   |\n+----+----------+--------------------------------------------------------+-----------------+--------------+---------------------+------------+\n|  1 | AVERAGE  | Zabbix unreachable poller processes more than 75% busy | zabbix-server-1 | 172.19.1.139 | 2022-01-07 16:39:54 |  [manage]  | \n+----+----------+--------------------------------------------------------+-----------------+--------------+---------------------+------------+\n页码: 1 ,分页长度: 39 ,总页数: 1 ,总数量: 1\n```\n\n+ Zabbix问题\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/ssh-server/ssh-server-event-1.png\" width=\"1100\"></img> \n\n#### 登录关联事件的服务器\n```\nssh-server>login-event 1\nLast login: Thu Mar 17 17:12:37 2022 from 172.19.0.129\n\nWelcome to Alibaba Cloud Elastic Compute Service !\n\n[manage@zabbix ~]$ \n```\n\n#### 命令帮助\n+ 查看 `event` 命令帮助\n```bash\nssh-server>help event\n\n\nNAME\n	event - 查询事件\n\nSYNOPSYS\n	event [[--name] string]  [[--page] integer]  \n\nOPTIONS\n	--name  string\n		Event Name\n		[Optional, default = ]\n\n	--page  integer\n		Page\n		[Optional, default = 1]\n\nALSO KNOWN AS\n	list-event\n```\n\n+ 查看 ` login-event` 命令帮助\n```bash\nssh-server>help login-event\n\n\nNAME\n	login-event - 事件ID登录服务器\n\nSYNOPSYS\n	login-event [--id] int  [[--account] string]  [-A]  \n\nOPTIONS\n	--id  int\n		Event Id\n		[Mandatory]\n\n	--account  string\n		Account Name\n		[Optional, default = ]\n\n	-A or --admin\n		Admin\n		[Optional, default = false]\n```\n',1,1,NULL,'2022-03-18 03:06:41','2023-02-08 07:51:34'),(11,'使用前','fas fa-bookmark','SSH-SERVER',1,'SSH_SERVER_README','<h1>SSH-Server 2.0</h1>\n\n![](https://img.shields.io/badge/SpringShell-3.0.0-brightgreen.svg?style=plastic)\n\n#### 简介\n`SSH-Server`是`Opscloud4`项目中的`SSH`服务模块，支持标准的ssh连接\n\n\n#### 集群架构\n```mermaid\nflowchart LR\n    A[User] -->|SSH:22| B{SLB}\n    B-->|TCP:2222| C[Opscloud Server] \n    B-->|TCP:2222| D[Opscloud Server] \n```\n\n#### 如何上传文件到服务器\n+ 工具地址 https://fe.chuanyinet.com/upload\n+ 使用Web工具上传文件后可以得到下载地址\n\n#### Generate an SSH key pair\n\n>Type ssh-keygen -t followed by the key type and an optional comment.This comment is included in the .pub file that\'s created.You may want to use an email address for the comment.\n\n+ For example, for ED25519:\n```\n$ ssh-keygen -t ed25519 -C \"${email}\"\n```\n\n+ For 2048-bit RSA:\n```\n$ ssh-keygen -t rsa -b 2048 -C \"${email}\"\n```',1,1,NULL,'2022-03-18 03:19:21','2023-04-06 01:23:55'),(12,'统一账户','fas fa-home','HOME',2,'UNIFIED_ACCOUNT_README','<h1>统一账户（用户全生命周期管理）</h1>\n\n#### 账户开通\n  + 钉钉联系：运维\n  + 账户开通会收到钉钉工作通知，通知中包含 <span style=\"color: #E00990\">`用户名`</span>和 <span style=\"color: #E00990\">`密码`</span>\n  + 修改个人信息、密码: 用户信息-[个人详情](/#/user/details)（需要在办公网或拨入VPN后访问）\n::: info\n权限申请: WorkBench-[WorkOrder](/index.html#/workorder)\n:::',1,1,NULL,'2022-03-20 12:25:12','2023-12-15 02:19:19'),(13,'VPN帮助','fas fa-project-diagram','HOME',3,'VPN_README','<h1>VPN使用帮助</h1>\n\n#### VPN账户\n+ 使用统一账户拨号认证\n+ 统一账户需要 <span style=\"color: #E00990\">`vpn-users`</span> 角色权限\n  \n#### 安装VPN客户端\n+ <i class=\"fab fa-windows\"></i> Windows\n  + [openvpn-install-2.4.8-I602-Win10.exe](https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/vpn/openvpn-install-2.4.8-I602-Win10.exe)\n+ <i class=\"fab fa-apple\"></i> MacOS\n  + [Tunnelblick_3.8.7a_build_5770.dmg](https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/vpn/Tunnelblick_3.8.7a_build_5770.dmg) \n+ <i class=\"fab fa-apple\"></i> iOS(iPhone)\n  + 国内不支持，国外用户可以在AppStore中下载\n+ <i class=\"fab fa-android\"></i> Android、智能POS\n  + [de.blinkt.openvpn_183.apk](https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/vpn/de.blinkt.openvpn_183.apk)\n+ <i class=\"fab fa-ubuntu\"></i> Linux系统使用请参考如下文档\n  + https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/ \n\n#### 导入VPN配置文件\n+ 华东区云端接入点（远程办公）\n  + [VPN配置文件 - config.ovpn](https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/vpn/config.ovpn)\n\n#### 配置说明\n+ 安装完成后，导入配置文件（MacOS拖入配置文件）\n+ 使用个人账户登录VPN\n+ 此VPN不支持翻墙\n\n#### VPN可访问平台列表\n+ 注册中心\n  + https://consul-dev.transspay.net <span style=\"color: #5BC0DE\">`开发环境`</span>、<span style=\"color: #E00990\">`服务注册中心`</span>\n  + https://consul-daily.transspay.net <span style=\"color: #449D44\">`日常环境`</span>、<span style=\"color: #E00990\">`服务注册中心`</span>\n  + https://consul-gray.transspay.net <span style=\"color: #1A1717\">`灰度环境`</span>、<span style=\"color: #E00990\">`服务注册中心`</span>\n  + https://consul-prod.transspay.net <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`服务注册中心`</span>\n+ 配置管理\n  + https://gitconfig.transspay.net/root/config-center.git <span style=\"color: #5BC0DE\">`开发环境`</span>\n  + https://gitconfig.transspay.net/root/hk-test.git  <span style=\"color: #449D44\">`日常环境`</span>\n  + https://prodconfig.transspay.net/root/new-preoprod-config.git  <span style=\"color: #1A1717\">`灰度环境`</span>\n  + https://prodconfig.transspay.net/root/pre-config.git  <span style=\"color: #FFAE00\">`预发环境`</span>\n  + https://prodconfig.transspay.net/root/prod-config.git <span style=\"color: #E34C15\">`生产环境`</span>\n+ swagger\n  + https://swagger-daily.transspay.net/swagger-ui.html <span style=\"color: #449D44\">`日常环境`</span>\n+ 调度中心\n  + https://scheduler-dev.transspay.net/palmpay/toLogin <span style=\"color: #5BC0DE\">`开发环境`</span>\n  + https://scheduler-daily.transspay.net/palmpay/toLogin <span style=\"color: #449D44\">`日常环境`</span>\n  + https://scheduler-gray.transspay.net/palmpay/toLogin <span style=\"color: #1A1717\">`灰度环境`</span>\n  + https://scheduler-prod.transspay.net/palmpay/toLogin <span style=\"color: #E34C15\">`生产环境`</span>\n+ DevOps\n  + https://jenkins-palmpay.transspay.net <span style=\"color: #E00990\">`C侧前端持续集成`</span>\n  + https://oms.palmpay.app/h5/#/login <span style=\"color: #E00990\">`OMS平台`</span>、<span style=\"color: #E00990\">`专线加速`</span>\n  + https://wiki.transspay.net <span style=\"color: #E00990\">`文档中心`</span>、<span style=\"color: #E00990\">`专线加速`</span>\n  + https://jenkins.transspay.net/jenkins/ <span style=\"color: #E00990\">`Jenkins`</span>\n  + https://zabbix.transspay.net/zabbix/ <span style=\"color: #E00990\">`运维监控`</span>\n  + https://grafana.transspay.net <span style=\"color: #E00990\">`数据可视化平台`</span>\n  + https://grafana-prod.transspay.net <span style=\"color: #E00990\">`数据可视化平台`</span>\n  + https://nexus.transspay.net <span style=\"color: #E00990\">`构件仓库`</span>\n  + https://nexus.chuanyinet.com <span style=\"color: #E00990\">`构件仓库`</span>\n  + https://gitlab.transspay.net  <span style=\"color: #E00990\">`代码仓库`</span>\n  + https://config-dev.transspay.net <span style=\"color: #5BC0DE\">`开发环境`</span>、<span style=\"color: #E00990\">`配置中心`</span>\n  + https://tms.transspay.net/tms/home <span style=\"color: #E00990\">`测试平台中心`</span>\n+ 风控\n  + https://riskdevmanager.transspay.net/user/login \n+ 大数据\n  + https://shuri-test.palmpay-inc.com <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`埋点数据分析平台`</span>\n  + https://mass-test.transspay.net/dolphinscheduler/ <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`海豚调度器`</span>\n  + https://yarn-test.transspay.net/ <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`YARN(Flink)`</span>\n  + https://datasimba-test.palmpay-inc.com <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`datasimba`</span>\n  + https://superset-prod.transspay.net/ <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`superset`</span>\n  + https://yarn-prod.transspay.net/ <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`YARN(Flink)`</span>\n  + https://hyarn-prod.transspay.net/ <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`YARN(Hadoop)`</span>\n  + https://hbase-prod.transspay.net/ <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`HBASE`</span>\n  + https://hue-prod.transspay.net/ <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`HUE`</span>\n+ Redshift\n  + prod-bidw.cx7mhkxjbw1m.eu-west-1.redshift.amazonaws.com:5439 <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`prod-bidw`</span>\n  + redshift-test.cy7ueylfauvl.ap-east-1.redshift.amazonaws.com:5439 <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`redshift-test`</span>\n  + prod-reconciliation.cx7mhkxjbw1m.eu-west-1.redshift.amazonaws.com:5439 <span style=\"color: #E34C15\">`生产环境`</span>、<span style=\"color: #E00990\">`prod-reconciliation`</span>\n+ RDS(Mysql)\n  + paydbtest.cl1uatzrl7om.ap-east-1.rds.amazonaws.com:3306 <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`paydbtest`</span>\n  + ci.cl1uatzrl7om.ap-east-1.rds.amazonaws.com:3306 <span style=\"color: #5BC0DE\">`开发环境`</span>、<span style=\"color: #E00990\">`rds-ci`</span>\n+ MongoDB\n  + mongodb-dev.transspay.net:27017 <span style=\"color: #5BC0DE\">`开发环境`</span>、<span style=\"color: #E00990\">`mongodb-dev`</span>\n  + mongodb-test.transspay.net:27017 <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`mongodb-test`</span>\n  + mongodb-query-dev.transspay.net:27017 <span style=\"color: #5BC0DE\">`测试环境`</span>、<span style=\"color: #E00990\">`mongodb-query-dev`</span>\n  + mongodb-query-test.transspay.net:27017 <span style=\"color: #A0AE07\">`测试环境`</span>、<span style=\"color: #E00990\">`mongodb-query-test`</span>\n\n#### 导航\n+ https://admin.palmmerchant.com/data-screen/#/collect<span style=\"color: #E00990\">`汇总大屏`</span>\n+ https://admin.palmmerchant.com/data-screen/#/c-terminal<span style=\"color: #E00990\">`PalmPay大屏`</span>\n\n#### 网络图\n```mermaid\nflowchart LR\n    User --->|OpenVPN远程办公| AliyunVPCHangzhou\n\n    AliyunVPCHangzhou[VPC Hangzhou] --- |CEN 155ms| AliyunVPCLondon[VPC London]\n    AliyunVPCHangzhou --- |CEN 30ms| AliyunVPCHongkong[VPC Hongkong]\n    AliyunVPCLondon ---|IPSecVPN 207ms| AliyunVPCHongkong\n\n    AWSVPCIreland[VPC Ireland] --- |IPSecVPN 14ms| AliyunVPCLondon\n    AWSVPCHongkong[VPC Hongkong] --- |IPSecVPN 12ms| AliyunVPCHongkong\n    AWSVPCIreland ---|对等连接 217ms|AWSVPCHongkong\n    subgraph ide1 [ AWS ]\n    AWSVPCIreland\n    AWSVPCHongkong\n    end\n    subgraph ide2 [ Aliyun ]\n    AliyunVPCHangzhou\n    AliyunVPCLondon\n    AliyunVPCHongkong\n    end\n```',1,1,NULL,'2022-03-20 12:45:48','2023-12-15 02:19:23'),(14,'SQS消息队列','fab fa-ubuntu','WORKORDER_QUEUE',1,'SQS_README','<h1>Amazon SQS 概述</h1>\n\n> Amazon SQS 是一种消息队列服务；Amazon SQS 提供高吞吐量的系统到系统消息收发队列。您可以使用队列来解耦高开销流程，并实现作业的缓冲和批处理。Amazon SQS 会在微服务和无服务器应用程序完成处理前一直存储消息。\n\n[AWS帮助链接](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html)\n\n#### 工作原理\n\n<img src=\"https://d2u3159clq64q4.cloudfront.net/sqsconsole-20220324181435461/assets/images/5e3f44ce52788a4fb8b8432e4441bf3f-SQS-diagram.svg\"></img>\n\n\n',1,1,NULL,'2022-03-30 06:22:36','2023-02-08 09:38:42'),(15,'SNS消息收发服务','fas fa-stream','WORKORDER_QUEUE',2,'SNS_README','<h1>Amazon SNS 概述</h1>\n\n> Amazon Simple Notification Service (Amazon SNS) 是一项托管服务，可提供从发布者到订阅者（也称为生产者和消费者）的消息传递。发布者通过向主题发送消息来与订阅者异步通信，主题是逻辑访问点和通信通道。客户端可以订阅 SNS 主题并使用受支持的终端节点类型接收已发布的消息，例如 Amazon Kinesis Data Firehose、Amazon SQS、AWS Lambda、HTTP、电子邮件、移动推送通知和移动文本消息 (SMS)。\n\n[AWS帮助链接](https://docs.aws.amazon.com/sns/latest/dg/welcome.html)\n\n#### 一张图看懂SNS\n<img src=\"https://docs.aws.amazon.com/sns/latest/dg/images/sns-delivery-protocols.png\" width=\"800\"></img>\n\n#### 应用程序到应用程序(A2A)\n\n> Amazon SNS 是一项托管消息收发服务，可让您将发布者与订阅者解耦。这对于用于微服务、分布式系统和无服务器应用程序的应用程序到应用程序消息收发很有用\n\n<img src=\"https://d2hna00yu1i5vj.cloudfront.net/e9543631e71f882f7d6999a1e0bfac97cf9800a3/assets/images/7aa2a52ffa8c026ea0624c0564c631e6-system-to-system-diagram.png\"></img>\n\n#### 应用程序到人(A2P)\n\n> Amazon SNS 可让您将推送通知发送到移动应用程序，将文本消息发送到电话号码，并将纯文本电子邮件发送到电子邮件地址。您可以通过主题来散发消息，或直接将消息发布到移动终端节点\n\n<img src=\"https://d2hna00yu1i5vj.cloudfront.net/e9543631e71f882f7d6999a1e0bfac97cf9800a3/assets/images/ffeac526286f53f79e1c4f634c9e7aef-user-notifications-diagram.png\"></img>',1,1,NULL,'2022-03-30 06:43:20','2023-06-20 03:42:39'),(16,'Nexus构件仓库','fab fa-instalod','WORKORDER_NEXUS',1,'NEXUS_README','<h1>Sonatype Nexus Repository Manager</h1>\n\n#### 登录账户\n  + 使用统一账户认证\n  + 统一账户需要 <span style=\"color: #E00990\">`nexus-users`</span> 或 <span style=\"color: #E00990\">`nexus-developer`</span> 或 <span style=\"color: #E00990\">`nexus-admin`</span> 等角色权限才能登录\n\n#### 构件仓库\n+ `商户域` [nexus.chuanyinet.com](https://nexus.chuanyinet.com)\n+ `用户域` [nexus.transspay.net](https://nexus.transspay.net)\n\n#### Maven 配置注意事项\n\n> settings.xml配置文件中密码可能需要转义\n\n+ <span style=\"color: #E00990\">`\'`</span> is replaced with <span style=\"color: #E00990\">`&apos`</span>\n+  <span style=\"color: #E00990\">`\"`</span> is replaced with <span style=\"color: #E00990\">`&quot`</span>\n+ <span style=\"color: #E00990\">`&`</span> is replaced with <span style=\"color: #E00990\">`&amp`</span>\n+ <span style=\"color: #E00990\">`<`</span> is replaced with <span style=\"color: #E00990\">`&lt`</span>\n+ <span style=\"color: #E00990\">`>`</span> is replaced with <span style=\"color: #E00990\">`&gt`</span>\n\n::: info\nXML中特殊字符需要转义请参考: [工具链接](https://www.freeformatter.com/xml-escape.html#ad-output)\n:::\n\n#### settings.xml 配置参考\n> 替换 ${password} 为你的统一账户密码，并转义密码中的特殊字符\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.  \n-->\n\n<!--\n | This is the configuration file for Maven. It can be specified at two levels: \n |\n |  1. User Level. This settings.xml file provides configuration for a single user, \n |                 and is normally provided in ${user.home}/.m2/settings.xml.\n |\n |                 NOTE: This location can be overridden with the CLI option:\n |\n |                 -s /path/to/user/settings.xml\n |\n |  2. Global Level. This settings.xml file provides configuration for all Maven\n |                 users on a machine (assuming they\'re all using the same Maven\n |                 installation). It\'s normally provided in \n |                 ${maven.home}/conf/settings.xml.\n |\n |                 NOTE: This location can be overridden with the CLI option:\n |\n |                 -gs /path/to/global/settings.xml\n |\n | The sections in this sample file are intended to give you a running start at\n | getting the most out of your Maven installation. Where appropriate, the default\n | values (values used when the setting is not specified) are provided.\n |\n |-->\n<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\" \n          xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n          xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd\">\n  <!-- localRepository\n   | The path to the local repository maven will use to store artifacts.\n   |\n   | Default: ~/.m2/repository -->\n\n<!--\n  <localRepository>/Users/yangyang/.m2/repository</localRepository>\n \n -->\n  <!-- interactiveMode\n   | This will determine whether maven prompts you when it needs input. If set to false,\n   | maven will use a sensible default value, perhaps based on some other setting, for\n   | the parameter in question.\n   |\n   | Default: true\n  <interactiveMode>true</interactiveMode>\n  -->\n\n  <!-- offline\n   | Determines whether maven should attempt to connect to the network when executing a build.\n   | This will have an effect on artifact downloads, artifact deployment, and others.\n   |\n   | Default: false\n  <offline>false</offline>\n  -->\n\n  <!-- pluginGroups\n   | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.\n   | when invoking a command line like \"mvn prefix:goal\". Maven will automatically add the group identifiers\n   | \"org.apache.maven.plugins\" and \"org.codehaus.mojo\" if these are not already contained in the list.\n   |-->\n  <pluginGroups>\n    <!-- pluginGroup\n     | Specifies a further group identifier to use for plugin lookup.\n    <pluginGroup>com.your.plugins</pluginGroup>\n    -->\n  </pluginGroups>\n\n  <!-- proxies\n   | This is a list of proxies which can be used on this machine to connect to the network.\n   | Unless otherwise specified (by system property or command-line switch), the first proxy\n   | specification in this list marked as active will be used.\n   |-->\n  <proxies>\n    <!-- proxy\n     | Specification for one proxy, to be used in connecting to the network.\n     |\n    <proxy>\n      <id>optional</id>\n      <active>true</active>\n      <protocol>http</protocol>\n      <username>proxyuser</username>\n      <password>proxypass</password>\n      <host>proxy.host.net</host>\n      <port>80</port>\n      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>\n    </proxy>\n    -->\n  </proxies>\n\n  <!-- servers\n   | This is a list of authentication profiles, keyed by the server-id used within the system.\n   | Authentication profiles can be used whenever maven must make a connection to a remote server.\n   |-->\n  <servers>\n    <!-- server\n     | Specifies the authentication information to use when connecting to a particular server, identified by\n     | a unique name within the system (referred to by the \'id\' attribute below).\n     | \n     | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are \n     |       used together.\n     |\n    <server>\n      <id>deploymentRepo</id>\n      <username>repouser</username>\n      <password>repopwd</password>\n    </server>\n    -->\n\n    \n    <!-- Another sample, using keys to authenticate.\n    <server>\n      <id>siteServer</id>\n      <privateKey>/path/to/private/key</privateKey>\n      <passphrase>optional; leave empty if not used.</passphrase>\n    </server>\n    -->\n\n  <server>\n      <id>releases</id>\n      <username>${username}</username>\n      <password>${password}</password>\n    </server>\n    <server>\n      <id>chuanyi-releases</id>\n      <username>${username}</username>\n      <password>${password}</password>\n    </server>\n    <server>\n      <id>chuanyi-snapshots</id>\n      <username>${username}</username>\n      <password>${password}</password>\n    </server>\n    <server>\n      <id>chuanyi-central</id>\n      <username>${username}</username>\n      <password>${password}</password>\n    </server>\n    <server>\n      <id>chuanyi-public</id>\n      <username>${username}</username>\n      <password>${password}</password>\n    </server>\n\n  </servers>\n\n  <!-- mirrors\n   | This is a list of mirrors to be used in downloading artifacts from remote repositories.\n   | \n   | It works like this: a POM may declare a repository to use in resolving certain artifacts.\n   | However, this repository may have problems with heavy traffic at times, so people have mirrored\n   | it to several places.\n   |\n   | That repository definition will have a unique id, so we can create a mirror reference for that\n   | repository, to be used as an alternate download site. The mirror site will be the preferred \n   | server for that repository.\n   |-->\n  <mirrors>\n    <!-- mirror\n     | Specifies a repository mirror site to use instead of a given repository. The repository that\n     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used\n     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.\n     |\n    <mirror>\n      <id>mirrorId</id>\n      <mirrorOf>repositoryId</mirrorOf>\n      <name>Human Readable Name for this Mirror.</name>\n      <url>http://my.repository.com/repo/path</url>\n    </mirror>\n     -->\n    <mirror>\n      <id>chuanyi-public</id>\n      <mirrorOf>*</mirrorOf>\n      <url>https://nexus.chuanyinet.com/repository/maven-public/</url>\n    </mirror>\n\n  <mirror>\n        <id>nexus-aliyun</id>\n        <mirrorOf>*</mirrorOf>\n        <name>Nexus aliyun</name>\n        <url>http://maven.aliyun.com/nexus/content/groups/public</url>\n    </mirror>\n  </mirrors>\n  \n  <!-- profiles\n   | This is a list of profiles which can be activated in a variety of ways, and which can modify\n   | the build process. Profiles provided in the settings.xml are intended to provide local machine-\n   | specific paths and repository locations which allow the build to work in the local environment.\n   |\n   | For example, if you have an integration testing plugin - like cactus - that needs to know where\n   | your Tomcat instance is installed, you can provide a variable here such that the variable is \n   | dereferenced during the build process to configure the cactus plugin.\n   |\n   | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles\n   | section of this document (settings.xml) - will be discussed later. Another way essentially\n   | relies on the detection of a system property, either matching a particular value for the property,\n   | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a \n   | value of \'1.4\' might activate a profile when the build is executed on a JDK version of \'1.4.2_07\'.\n   | Finally, the list of active profiles can be specified directly from the command line.\n   |\n   | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact\n   |       repositories, plugin repositories, and free-form properties to be used as configuration\n   |       variables for plugins in the POM.\n   |\n   |-->\n  <profiles>\n    <!-- profile\n     | Specifies a set of introductions to the build process, to be activated using one or more of the\n     | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>\n     | or the command line, profiles have to have an ID that is unique.\n     |\n     | An encouraged best practice for profile identification is to use a consistent naming convention\n     | for profiles, such as \'env-dev\', \'env-test\', \'env-production\', \'user-jdcasey\', \'user-brett\', etc.\n     | This will make it more intuitive to understand what the set of introduced profiles is attempting\n     | to accomplish, particularly when you only have a list of profile id\'s for debug.\n     |\n     | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.\n    <profile>\n      <id>jdk-1.4</id>\n\n      <activation>\n        <jdk>1.4</jdk>\n      </activation>\n\n      <repositories>\n        <repository>\n          <id>jdk14</id>\n          <name>Repository for JDK 1.4 builds</name>\n          <url>http://www.myhost.com/maven/jdk14</url>\n          <layout>default</layout>\n          <snapshotPolicy>always</snapshotPolicy>\n        </repository>\n      </repositories>\n    </profile>\n    -->\n\n    <!--\n     | Here is another profile, activated by the system property \'target-env\' with a value of \'dev\',\n     | which provides a specific path to the Tomcat instance. To use this, your plugin configuration\n     | might hypothetically look like:\n     |\n     | ...\n     | <plugin>\n     |   <groupId>org.myco.myplugins</groupId>\n     |   <artifactId>myplugin</artifactId>\n     |   \n     |   <configuration>\n     |     <tomcatLocation>${tomcatPath}</tomcatLocation>\n     |   </configuration>\n     | </plugin>\n     | ...\n     |\n     | NOTE: If you just wanted to inject this configuration whenever someone set \'target-env\' to\n     |       anything, you could just leave off the <value/> inside the activation-property.\n     |\n    <profile>\n      <id>env-dev</id>\n\n      <activation>\n        <property>\n          <name>target-env</name>\n          <value>dev</value>\n        </property>\n      </activation>\n\n      <properties>\n        <tomcatPath>/path/to/tomcat/instance</tomcatPath>\n      </properties>\n    </profile>\n    -->\n\n    <profile>\n            <id>chuanyi</id>\n            <repositories>\n                <repository>\n                    <id>chuanyi-snapshots</id>\n                    <name>Team Nexus Repository</name>\n                    <url>https://nexus.chuanyinet.com/repository/maven-snapshots/</url>\n                    <snapshots>\n                        <enabled>true</enabled>\n                    </snapshots>\n                </repository>\n                <repository>\n                    <id>chuanyi-releases</id>\n                    <name>Team Nexus Repository</name>\n                    <url>https://nexus.chuanyinet.com/repository/maven-releases/</url>\n                    <snapshots>\n                        <enabled>true</enabled>\n                    </snapshots>\n                </repository>\n                <repository>\n                    <id>chuanyi-public</id>\n                    <name>Team Nexus Repository</name>\n                    <url>https://nexus.chuanyinet.com/repository/maven-public/</url>\n                    <snapshots>\n                        <enabled>true</enabled>\n                    </snapshots>\n                </repository>\n                <repository>\n                    <id>chuanyi-central</id>\n                    <name>Team Nexus Repository</name>\n                    <url>https://nexus.chuanyinet.com/repository/maven-central/</url>\n                    <snapshots>\n                        <enabled>true</enabled>\n                    </snapshots>\n                </repository>\n                <repository>\n                    <id>central</id>\n                    <name>Central Repository</name>\n                    <url>http://repo.maven.apache.org/maven2</url>\n                    <snapshots>\n                        <enabled>true</enabled>\n                    </snapshots>\n                </repository>\n                <repository>\n                    <id>spy</id>\n                    <name>Spy Repository</name>\n                    <url>http://files.couchbase.com/maven2/</url>\n                    <snapshots>\n                        <enabled>false</enabled>\n                    </snapshots>\n                </repository>\n            </repositories>\n\n            <pluginRepositories>\n                <pluginRepository>\n                    <id>chuanyi</id>\n                    <name>Team Nexus Repository</name>\n                    <url>https://nexus.chuanyinet.com/repository/maven-releases/</url>\n                    <snapshots>\n                        <enabled>false</enabled>\n                    </snapshots>\n                </pluginRepository>\n            </pluginRepositories>\n        </profile>\n \n  </profiles>\n\n  <!-- activeProfiles\n   | List of profiles that are active for all builds.\n   | -->\n  <activeProfiles>\n     <activeProfile>chuanyi</activeProfile>\n  </activeProfiles>  \n</settings>\n```',1,1,NULL,'2022-03-30 07:55:15','2023-02-08 09:34:55'),(17,'阿里云RAM(访问控制)','fab fa-ubuntu','WORKORDER_RAM',1,'RAM_README','<h1>阿里云 RAM 概述</h1>\n\n> 访问控制RAM（Resource Access Management）是阿里云提供的一项管理用户身份与资源访问权限的服务。 [官方文档](https://help.aliyun.com/product/28625.html)\n\n#### DMS数据管理\n\n> 数据管理DMS是一种集数据管理、结构管理、用户授权、安全审计、数据趋势、数据追踪、BI图表、性能与优化和服务器管理于一体的数据管理服务。 [官方文档](https://help.aliyun.com/product/26437.html)\n\n+ DMS使用RAM账户登录\n\n#### 常用策略申请\n\n+ <span style=\"color: #E00990\">`AliyunLogReadOnlyAccess`</span> 只读访问日志服务(Log)的权限\n  + 授权后可以查看各应用的日志\n\n+ <span style=\"color: #E00990\">`policy_sls_developer`</span> 日志服务开发者权限\n  + 授权后可以创建应用的日志仪表盘\n\n+ <span style=\"color: #E00990\">`AliyunARMSReadOnlyAccess`</span> 只读访问业务实时监控服务(ARMS)的权限\n  + 授权后可以查看各应用的全链路监控信息\n\n+ <span style=\"color: #E00990\">`policy_arms-developer`</span> 业务实时监控服务(ARMS)开发者权限\n  + 授权后可以配置arms应用告警\n\n+ <span style=\"color: #E00990\">`AliyunMQReadOnlyAccess`</span> 只读访问消息队列(MQ)的权限\n  + 授权后可以查看消息队列信息\n\n+ <span style=\"color: #E00990\">`policy_ons-developer`</span> MQ开发者权限\n  + 授权后可以发布、订阅 dev daily 环境消息队列(MQ)的权限\n\n+ <span style=\"color: #E00990\">`policy_schedulerx_developer`</span> 只读访问 schedulerx 的权限\n  + 授权后可以查看 schedulerx\n\n+ <span style=\"color: #E00990\">`policy_dms`</span> 申请DMS账户专用\n  + 授权后访问DMS控制台 [传送门](https://dms.aliyun.com/new)\n\n+ <span style=\"color: #E00990\">`AliyunPTSFullAccess`</span> 管理性能测试服务(PTS)的权限\n  + 测试组专用\n\n+ <span style=\"color: #E00990\">`policy_yunxiao`</span> 申请云效账户专用\n  + 授权后访问云效控制台 [传送门](https://devops.aliyun.com/)\n',1,1,NULL,'2022-04-07 03:39:00','2023-08-21 09:01:51'),(18,'阿里云Log(日志服务)','fas fa-stream','WORKORDER_RAM',3,'LOG_README','<h1>阿里云 Log 概述</h1>\n\n> 日志服务SLS是云原生观测与分析平台，为Log、Metric、Trace等数据提供大规模、低成本、实时的平台化服务。日志服务一站式提供数据采集、加工、查询与分析、可视化、告警、消费与投递等功能，全面提升您在研发、运维、运营、安全等场景的数字化能力。 [官方文档](https://help.aliyun.com/product/28958.html)\n\n#### 常用策略申请\n\n+ <span style=\"color: #E00990\">`AliyunLogReadOnlyAccess`</span> 只读访问日志服务(Log)的权限\n  + 授权后可以查看 <span style=\"color: #E00990\">`商户域`</span> 各应用的日志\n\n#### 日志采集说明 [传送门](https://sls.console.aliyun.com/)\n\n环境 | Project | Logstore | 保存时间 | 备注\n---|---|---|---|---\ndev | service-logs-dev | service-logs | 15天 | 直接采集容器中文件\ndaily | service-logs-dev | service-logs | 15天 | 直接采集容器中文件\ndev | service-logs-dev | service-logs | 180天 | 直接采集容器中文件\ngray | service-logs-dev | service-logs | 180天 | 直接采集容器中文件',1,1,NULL,'2022-04-07 05:06:31','2023-02-08 09:08:58'),(19,'阿里云ARMS(应用实时监控服务)','fas fa-stream','WORKORDER_RAM',4,'ARMS_README','<h1>阿里云 ARMS 概述</h1>\n\n> 应用实时监控服务ARMS（Application Real-Time Monitoring Service）是一款阿里云应用性能管理（APM）类监控产品。借助本产品，您可以基于前端、应用、业务自定义等维度，迅速便捷地为企业构建秒级响应的应用监控能力。 [官方文档](https://help.aliyun.com/product/34364.html)\n \n\n#### 常用策略申请\n\n+ <span style=\"color: #E00990\">`AliyunARMSReadOnlyAccess`</span> 只读访问业务实时监控服务(ARMS)的权限\n  + 授权后可以查看 <span style=\"color: #E00990\">`商户域`</span> 各应用的全链路监控信息\n\n#### 说明 [传送门](https://arms-eu.console.aliyun.com/#/home)\n\n+ xxxx-prod 生产环境 、 xxxx-daily 日常环境\n+ 采样率均为10%',1,1,NULL,'2022-04-07 05:06:39','2023-02-08 09:09:20'),(21,'阿里云DMS(数据库管理)','fab fa-ubuntu','WORKORDER_RAM',2,'DMS_README','#### DMS网关访问结构图(AWS侧)\n```mermaid\nflowchart LR\n    User ---> DMS{DMS}\n    DMS --->|专线| S2[DG Server HongKong]\n    DMS --->|专线| S1[DG Server London]\n    A1[ DG Agent x2 ] --> S1\n    A2[ DG Agent x2 ] --> S2\n    A1 --> DB1[RDS Mongo Redis]\n    ide1 ---|VPN| ide2\n    subgraph ide1 [ AWS VPC Ireland ]\n    DB1\n    end\n    subgraph ide2 [ Aliyun VPC London ]\n    A1\n    end\n    A2 --> DB2[RDS Mongo Redis]\n    subgraph ide3 [ AWS VPC HongKong ]\n    A2\n    DB2\n    end\n    click DMS \"https://dms.aliyun.com\" _blank\n```\n\n##### DMS账户\n+ 使用阿里云RAM账户登录\n\n##### DMS登录\n[阿里云DMS](https://dms.aliyun.com/new)\n\nDMS使用阿里云RAM账号登录且需要开通相应的权限\n\nOC上申请`policy_dms`权限，即可开通阿里云RAM账号以及DMS相应权限\n\n![工单提交.png](https://chuanyinet-front-static.oss-eu-west-1.aliyuncs.com/files/fel2id4479gc9wn4/1.png)\n##### 权限申请\n1. 在DMS页面顶部导航栏安全与规范中选择权限工单\n2. 在权限工单页面单击权限申请在下拉菜单中选择对应的权限类别\n3. 在选择要申请权限的库/表/列区域中，进行相应操作即可；dev环境请选择==实例-登录==，获取权限后使用账密登录\n![权限申请.png](https://chuanyinet-front-static.oss-eu-west-1.aliyuncs.com/files/fel2id4qpfr86at3/权限申请.png)\n4. 申请通过后即可在首页看到对应的实例\n![首页实例.png](https://chuanyinet-front-static.oss-eu-west-1.aliyuncs.com/files/fel2id575eqd69uh/首页实例.png)\n5. 单击实例下的对应库就可以进行相应操作\n![sql操作.png](https://chuanyinet-front-static.oss-eu-west-1.aliyuncs.com/files/fel2id5l54uk0f1n/SQL操作.png)',1,1,NULL,'2022-04-21 09:11:41','2023-02-08 08:49:38'),(22,'Amazon IAM(身份认证)','fab fa-aws','WORKORDER_IAM',1,'IAM_README','<h1>Amazon IAM 概述</h1>\n\n> Identity and Access Management (IAM)\n\n#### 常用策略申请\n\n+ <span style=\"color: #E00990\">`SQS_SNQ_RO`</span> 只读访问SNS、SQS权限\n  + 授权后可以查看 SNS、SQS 信息和监控\n  \n+ <span style=\"color: #E00990\">`AWSXrayReadOnlyAccess`</span> 只读访问X-Ray全链路监控权限\n  + 授权后可以查看X-Ray监控信息',1,1,NULL,'2022-04-24 05:43:57','2023-02-08 08:46:51'),(23,'渠道VPN','fab fa-instalod','OPS_DOCS',1,'CHANNEL_VPN_README','#### Nibss VPN-1\n+ VPN-1 \n   + VPN-To-NIBSS-NG-bank\n   + 对端IP 196.6.103.25\n\n```mermaid\nflowchart LR\n    Service[PalmpayService] ---> Proxy1[ Proxy 172.29.204.127:80 ]\n    Service ---> Proxy2[ Proxy 172.29.204.8:80  ]\n    Proxy1 ---> |HTTP| Nibss[NibssService]\n    Proxy2 ---> |HTTP| Nibss\n    ide1 -------|公网 VPN-1| ide2\n    subgraph ide1 [ AWS VPC Ireland ]\n    Service\n    Proxy1\n    Proxy2\n    end\n    subgraph ide2 [ ISP MainOne ]\n    Nibss\n    end\n```\n\n#### Nibss VPN-2\n> nibss电话认证服务使用专线网络\n+ VPN-2\n   + VPN-to-MainOne-NG\n   + 对端IP 154.113.8.35\n\n```mermaid\nflowchart LR\n    ide1 --------|公网 VPN-2| ide2\n    Service[PalmpayService] ---> Proxy1[ Proxy 172.29.204.127:8082 ]\n    Service ---> Proxy2[ Proxy 172.29.204.8:8082   ]\n    Proxy1 ---> |HTTP| Nibss1[NibssProxy 10.7.1.4]\n    Proxy1 ---> |HTTP| Nibss2[NibssProxy 10.7.1.5]\n    Proxy2 ---> |HTTP| Nibss1\n    Proxy2 ---> |HTTP| Nibss2\n    Nibss1 ---> NibssService\n    Nibss2 ---> NibssService\n    subgraph ide1 [ AWS VPC Ireland ]\n    Service\n    Proxy1\n    Proxy2\n    end\n    subgraph ide2 [ Microsoft Azure Nigeria ]\n    Nibss1\n    Nibss2\n    end\n    subgraph ide3 [ ISP MainOne  ]\n    NibssService\n    end\n```',1,0,NULL,'2022-04-25 07:48:29','2023-08-01 06:16:39'),(24,'Zabbix','fab fa-instalod','OPS_DOCS',4,'ZABBIX_README','#### Zabbix 信息表\n\n|  域名   | 类型 | IP |\n|  ----  | ----  | ----  |\n| zabbix.palmpay-inc.com  | <span style=\"color: #E34C15\">`Server`</span> | 172.23.0.48 |\n| proxy-frankfurt.zabbix.palmpay-inc.com  | <span style=\"color: #A0AE07\">`Proxy`</span> | 172.23.1.125 |\n| proxy-london.zabbix.palmpay-inc.com  | <span style=\"color: #A0AE07\">`Proxy`</span> | 172.19.0.151 |\n| proxy-hangzhou.zabbix.palmpay-inc.com | <span style=\"color: #A0AE07\">`Proxy`</span> | 172.31.0.56 |\n| proxy-ireland.zabbix.palmpay-inc.com | <span style=\"color: #A0AE07\">`Proxy`</span> | 172.29.42.218 |\n\n|  域名   | 类型 | IP |\n|  ----  | ----  | ----  |\n| zabbix5.transspay.net  | <span style=\"color: #E34C15\">`Server`</span> | 172.29.43.240 |\n| ireland.proxy.zabbix.transspay.net  | <span style=\"color: #A0AE07\">`Proxy`</span> | 172.29.42.21 |\n| hongkong.proxy.zabbix.transspay.net   | <span style=\"color: #A0AE07\">`Proxy`</span> | - |',1,1,NULL,'2022-05-09 09:58:21','2023-08-01 06:15:57'),(25,'B侧架构','fab fa-instalod','OPS_DOCS',1,'B_ARCHITECT','#### 访问链路\n+ API域名 api-prod.palmmerchant.com\n\n```mermaid\nflowchart LR\n   User --->| 攻击串联高防 HTTPS|DDoS --->|HTTPS|WAF --->|HTTPS|SLB ---> |HTTP|Nginx(Nginx) --->|HTTP| serviceid1(merchant-gateway)\n   User --->| 无攻击时不走高防 HTTPS| WAF\n```\n\n#### 内部服务(HTTP协议)\n```mermaid\nflowchart LR\n   subgraph ide2 [ Middleware ]\n      NACOS\n      RDS\n      Redis\n      ES\n      OSS\n      ONS\n      SLS\n      ARMS\n   end\n```\n```mermaid\nflowchart LR\n   SLB ---> NG1(Nginx 172.18.17.118) \n   SLB ---> NG2(Nginx 172.18.18.138) \n   SLB ---> NG3(Nginx 172.18.17.119) \n   NG1 ---> MG\n   NG2 ---> MG\n   NG3 ---> MG\n   MG ---> A & B\n   A ---> C & D\n   B ---> D\n   subgraph ide1 [ ACK-PROD ]\n      MG(merchant-gateway)\n      A\n      B\n      C\n      D\n   end\n```\n\n#### Nacos\n\n|  登录地址   | 环境 |部署架构 | 版本|\n|  ----  | ----  | ----  | ----  |\n| https://nacos-prod.chuanyinet.com/nacos  | prod | cluster部署3节点|2.0.3 |\n\n+ 生产环境（prod）集群部署架构图\n\n```mermaid\nflowchart LR\n    A[DNS nacos-prod.chuanyinet.com ] -->|HTTP:8848| B{SLB}\n    B--> C[Nacos-1 172.18.17.113] \n    B--> D[Nacos-2 172.18.18.136]\n    B--> E[Nacos-3 172.18.17.112]\n    subgraph ide1 [ Nacos  Cluster ]\n    C    \n    D     \n    E    \n    end\n```',1,0,NULL,'2022-05-25 10:24:05','2023-08-01 06:16:44'),(26,'C侧架构','fab fa-instalod','OPS_DOCS',1,'C_ARCHITECT','#### 手机钱包\n```mermaid\nflowchart LR\n   subgraph ide2 [ Middleware ]\n      consul-template\n      consul\n      config-server\n      redis\n      mysql\n      mongo\n      elastisearch\n      mq[sns sqs]\n   end\n```\n\n```mermaid\nflowchart LR\n   DM1[ ng-m.palmpay.app ] ---> WAF1[WAF] --->|HTTPS| ALB1[ALB NG-prod-m-855924339.eu-west-1] ---> ide1 ---> c-front\n   DM2[ gh-m.palmpay.app] ---> WAF2[WAF] --->|HTTPS| ALB2[ALB GH-prod-m-128130589.eu-west-1] ---> ide2 ---> c-front\n   DM3[ ao-m.palmpay.app] ---> WAF3[WAF] --->|HTTPS| ALB3[ALB AO-prod-m-730976643.eu-west-1] ---> ide2 ---> c-front\n   DM4[ tz-m.palmpay.app] ---> WAF4[WAF] --->|HTTPS| ALB4[ALB TZ-prod-m-67062319.eu-west-1] ---> ide2 ---> c-front\n   subgraph ide1 [ Nginx ]\n       NG1[172.30.27.131]\n       NG2[172.30.27.42]\n       NG3[172.30.28.85]\n       NG4[172.30.25.61]\n   end\n   subgraph ide2 [ Nginx ]\n       NG5[172.30.26.115]\n       NG6[172.30.29.55]\n   end\n   subgraph ide3 [ Container ]\n       c-front\n       account\n       member\n       trade\n       pay-route\n       other[...]\n   end\n```\n\n+ partner、pos\n\n```mermaid\nflowchart LR\n   DM1[ ng-partner.palmpay.app ] ---> WAF1[WAF] --->|HTTPS| ALB1[ALB prod-partner-front-2053654221.eu-west-1] ---> ide1 ---> parter-front\n   DM2[ ng-pos.palmpay.app ] ---> WAF2[WAF] --->|HTTPS| ALB2[ALB ng-prod-posp-726606702.eu-west-1] ---> ide2 ---> posp\n   subgraph ide1 [ Nginx ]\n       NG1[172.30.26.115]\n       NG2[172.30.29.55]\n   end\n   subgraph ide2 [ Nginx ]\n       NG3[172.30.29.231]\n       NG4[172.30.25.25]\n   end\n   subgraph ide3 [ Container ]\n       parter-front\n      posp\n       cash-agent\n       offline-merchant\n       cash-in-out\n       merchant\n       other[...]\n   end\n```\n\n+ oms、portal\n\n```mermaid\nflowchart LR\n   DM1[ oms.palmpay.app ] ---> WAF1[WAF] --->|HTTPS| ALB1[ALB ng-prod-posp-726606702.eu-west-1] ---> ide1 ---> m-front\n   DM2[ portal.palmmerchant.com ] ---> WAF2[WAF] --->|HTTPS| ALB2[ALB NG-prod-merchant-portal-508127041.eu-west-1] ---> ide1 ---> op-m-front\n   subgraph ide1 [ Nginx ]\n       NG1[172.30.28.176]\n       NG2[172.30.24.4]\n   end\n   subgraph ide2 [ Container ]\n       m-front\n       op-m-front\n       m-aa\n       mail\n       m-workflow\n       query\n       other[...]\n   end\n```\n\n+ openapi\n\n```mermaid\nflowchart LR\n   DM1[ openapi.palmmerchant.com ] ---> WAF1[WAF] --->|HTTPS| ALB1[ALB NG-prod-openapi-588775842.eu-west-1] ---> ide1 ---> open-api\n   subgraph ide1 [ Nginx ]\n       NG1[172.30.289.231]\n       NG2[172.30.25.25]\n   end\n   subgraph ide2 [ Container ]\n       open-api\n       merchant-portal\n       m-aa\n       mail\n       m-workflow\n       other[...]\n   end\n```\n\n+ 传音钱包\n\n```mermaid\nflowchart LR\n   DM1[ ng-tecnoapp.walletapp.me ] ---> WAF1[WAF] --->|HTTPS| ALB1[ALB prod-tecnofront-1533138898.eu-west-1] ---> ide1 ---> tecno-front\n   subgraph ide1 [ Nginx ]\n       NG1[172.30.98.162]\n       NG2[172.30.96.107]\n   end\n   subgraph ide2 [ Container ]\n       tecno-front\n       tecno-basic-data\n       tecno-device\n       tecno-member\n       tecno-order\n       other[...]\n   end\n```',1,0,NULL,'2022-05-25 10:27:02','2023-08-01 06:16:49'),(27,'Aliyun Nacos','fab fa-instalod','WORKORDER_NACOS',2,'NACOS_B_README','#### 生产环境集群部署架构图\n\n```mermaid\nflowchart LR\n    A[DNS nacos-prod.chuanyinet.com ] -->|HTTP:8848| B{SLB}\n    B--> C[Nacos-1 172.18.17.113] \n    B--> D[Nacos-2 172.18.18.136]\n    B--> E[Nacos-3 172.18.17.112]\n    subgraph ide1 [ Nacos  Cluster ]\n    C    \n    D     \n    E    \n    end\n```\n\n\n#### 实例信息\n\n\n|  登录地址   | 环境 |部署架构 | 版本| \n|  ----  | ----  | ----  | ----  |\n| https://nacos-dev.chuanyinet.com/nacos  | dev | standalone部署| 2.0.3 |\n| https://nacos-daily.chuanyinet.com/nacos  | daily | standalone部署| 2.0.3 |\n| https://nacos-gray.chuanyinet.com/nacos  | gray | standalone部署| 2.0.3 |\n| https://nacos-prod.chuanyinet.com/nacos  | prod | cluster部署3节点| 2.0.3 |\n| https://nacos-frankfurt-dev.palmpay-inc.com/nacos  | dev | standalone部署| 2.0.3 |\n| https://nacos-frankfurt-daily.palmpay-inc.com/nacos  | daily | standalone部署| 2.0.3 |\n| https://nacos-frankfurt-sit.palmpay-inc.com/nacos  | sit | standalone部署| 2.0.3 |\n| https://nacos-frankfurt-pre.palmpay-inc.com/nacos  | pre | cluster部署3节点| 2.0.3 |\n| https://nacos-frankfurt-prod.palmpay-inc.com/nacos  | prod | cluster部署3节点| 2.0.3 |\n\n#### 登录账户\n + 工单申请权限后使用统一账户登录',1,1,NULL,'2022-06-07 08:00:34','2023-07-25 06:01:29'),(28,'AWS Nacos','fab fa-instalod','WORKORDER_NACOS',1,'NACOS_C_README','#### 实例信息\n\n+ 用户域\n\n|  登录地址   | 环境 |部署架构 | 版本| \n|  ----  | ----  | ----  | ----  |\n| https://nacos-dev.transspay.net/nacos  | dev、test | standalone部署| 2.0.3 |\n| https://nacos-gray.transspay.net/nacos  | gray、perf | standalone部署| 2.0.3 |\n| https://nacos-pre.transspay.net/nacos  | pre | cluster部署3节点| 2.0.3 |\n| https://nacos-prod.transspay.net/nacos  | prod | cluster部署3节点| 2.0.3 |\n\n#### 登录账户\n + 工单申请权限后使用统一账户登录\n\n#### 生产环境（prod）集群部署架构图\n\n```mermaid\nflowchart LR\n    A[DNS nacos-prod.transspay.net ] -->|HTTP:8848| B{SLB}\n    B--> C[Nacos-1 172.30.8.185] \n    B--> D[Nacos-2 172.30.17.63]\n    B--> E[Nacos-3 172.30.15.212]\n    subgraph ide1 [ Nacos  Cluster ]\n    C    \n    D     \n    E    \n    end\n```',1,1,NULL,'2022-06-07 08:00:59','2023-03-14 07:08:26'),(29,'Kubernetes','fab fa-docker','KUBERNETES',1,'KUBERNETES_README','#### 监控\n+ JVM监控 工单:Grafana权限申请<span style=\"color: #E00990\">`grafana-users`</span> [grafana-prod.transspay.net](https://grafana-prod.transspay.net/d/PwMJtdvnz/k8s-for-prometheus-dashboard-20211010?orgId=1)  \n+ 阿里云全链路监控ARMS 工单:阿里云-RAM策略申请 <span style=\"color: #E00990\">`AliyunARMSReadOnlyAccess`</span>\n+ AWS全链路监控X-Ray 工单:AWS-IAM策略申请 <span style=\"color: #E00990\">`AWSXrayReadOnlyAccess`</span>\n\n#### 图标\n+ <i style=\"margin-right: 2px\" class=\"fab fa-artstation\"></i>Pod(容器组)\n+ <i style=\"margin-right: 2px\" class=\"fab fa-docker\"></i>Container(容器)\n\n#### 容器运行状态\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/terminal/running_state.png\" width=\"544\"></img> \n\n+ PodScheduled：Pod 已经被调度到某节点\n+ ContainersReady：Pod 中所有容器都已就绪\n+ Initialized：所有的 Init 容器都已成功启动\n+ Ready：Pod 可以为请求提供服务\n\n#### 界面说明\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/terminal/deployment_pod_1.png\" width=\"385\"></img> \n\n+ A: Kubernets集群名称/ 命名空间(环境) : 应用名称\n+ B: Pod完整名称\n+ C: Pod部署后累计重启次数，下次部署会重置（重启的原因：健康检查接口/内存超过限制）\n+ D: 容器名称（应用名称)可能有多个，目前已过滤掉非应用容器\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/terminal/deployment_pod_2.png\" width=\"648\"></img> \n+ E: 容器镜像地址（应用名称:commit-env-构建编号）\n+ F: Pod IP\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/terminal/deployment_pod_3.png\" width=\"818\"></img> \n+ T: 登录容器操作（执行命令有审计）\n+ L: 查看容器console日志（不能操作，同样有审计）',1,0,NULL,'2022-06-22 09:16:06','2023-06-30 06:34:17'),(30,'Redeploy','fas fa-redo','KUBERNETES',2,'KUBERNETES_REDEPLOY_README','#### 生产环境(prod) Redeploy限制\n+ 需要`应用管理员`权限\n+ 操作间隔不少于90秒（平台限制）\n+ 操作必须填写原因\n\n#### 非生产环境(dev、daily、gray) Redeploy限制\n+ 需要`应用普通用户`权限\n\n#### 操作视频\n<video src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/terminal/kubernetes_redeploy.mov\" width=\"1000px\" controls=\"controls\"></video>',1,0,NULL,'2022-07-06 02:41:25','2023-06-30 06:34:21'),(31,'应用副本扩容','fas fa-location-arrow','WORKORDER_APPLICATION_SCALE_REPLICAS',1,'APPLICATION_SCALE_REPLICAS_README','#### 实例说明\n+ Kubernetes实例\n  + AWS Elastic Kubernetes Service集群\n     + eks-prod <span style=\"color: #E34C15\">`生产环境`</span>\n     + eks-pre <span style=\"color: #FFAE00\">`预发环境`</span>\n     + eks-gray <span style=\"color: #1A1717\">`灰度环境`</span>\n     + eks-test  <span style=\"color: #5BC0DE\">`开发环境`</span>、<span style=\"color: #A0AE07\">`测试环境`</span>\n  + Alibaba Cloud Container Service for Kubernetes，容器服务ACK集群（B侧业务）\n    + ack-prod <span style=\"color: #E34C15\">`生产环境`</span>\n    + ack-gray <span style=\"color: #1A1717\">`灰度环境`</span>\n    + ack-daily <span style=\"color: #A0AE07\">`测试环境`</span>\n    + ack-dev <span style=\"color: #5BC0DE\">`开发环境`</span>\n\n#### 应用副本扩容规则\n+ 最小扩容数 = 当前副本数 + 1\n+ 最大扩容数 = 当前副本数 * 2\n\n#### e.g.\n+ 生产环境c-front应用当前有14个副本；扩容后副本可选范围15-28\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/workorder/applicaion_scale.png\" width=\"1000\"></img> \n',1,1,NULL,'2022-07-21 01:23:02','2023-04-28 02:37:46'),(32,'GitLab 项目权限申请','fab fa-gitlab','WORKORDER_GITLAB',1,'GITLAB_PROJECT_README','<h1>Gitlab项目权限申请帮助</h1>\n\n#### 配置管理\n+ 实例 gitconfig.transspay.net\n    + config-center.git <span style=\"color: #5BC0DE\">`开发环境`</span>\n    + hk-test.git  <span style=\"color: #449D44\">`日常环境`</span>\n+ 实例 prodconfig.transspay.net\n    + new-preoprod-config.git  <span style=\"color: #1A1717\">`灰度环境`</span>\n    + prod-config.git <span style=\"color: #E34C15\">`生产环境`</span>',1,1,NULL,'2022-10-17 09:40:57','2023-02-08 08:45:10'),(33,'模板配置','fa fa-clone','LEO_MGMT',1,'LEO_TEMPLATE_README','# Leo模板配置文档\n\n```yaml\ntemplate:\n  jenkins:\n    # Jenkins实例配置\n    instance:\n       # Jenkins数据源实例UUID，配置优先级高于实例名称\n       # 非必填\n      uuid: 11111111111111111111111111111\n      # Jenkins数据源实例名称\n      name: leo-jenkins-1.chuanyinet.com\n  # 模板名称\n  name: tpl_java-docker-build\n  # 模板所在目录，不建议修改\n  folder: templates\n  # 模板的URL\n  url: \'https://leo-jenkins-1.chuanyinet.com/job/templates/job/tpl_java-docker-build/\'\n  # 模板类型，目前只有这一种\n  type: KUBERNETES_IMAGE\n  # 模板版本号，用于匹配任务关联模板是否需要升级\n  version: 0.0.1\n  # 模板描述\n  comment: \'test\'\n  # 模板标签，保存模板会自动绑定\n  tags:\n    - Maven\n  # 模板参数\n  parameters: \n    - name: project\n      value: html5\n      description: \'项目名称\'\n```',1,1,NULL,'2022-11-22 05:10:34','2023-06-20 03:41:53'),(34,'任务配置','fab fa-unity','LEO_MGMT',2,'LEO_JOB_README','# Leo任务配置文档\n\n```yaml\njob:\n  gitLab:\n    instance:\n      # GitLab实例名称\n      name: gitlab.chuanyinet.com\n    project:  \n      # GitLab项目SSH URL地址\n      sshUrl: git@gitlab.chuanyinet.com:basic-service/merchant-rss.git\n      # 任务首选分支\n      branch: dev\n    gitFlow: true\n  # 容器注册表\n  cr:\n    # 容器注册表类型 ACR、ECR\n    type: ACR\n    cloud:\n      # 云实例UUID（优先级高于名称）\n      uuid: 75cde081a08646e6b8568b3d34f203a3\n      # 云实例名称\n      name: 阿里云-PalmPay主账户\n    # 容器注册表实例配置\n    instance:\n       # RegionId 必填\n       regionId: eu-west-1\n       # 实例id\n       id: cri-4v9b8l2gc3en0x34\n       # 实例名称\n       name: cr-chuanyinet-eu-west-1\n       # 实例对应的仓库URL\n       url: aliyun-cr-uk.chuanyinet.com\n    # 数据不填写会自动生成 id > name > 应用名   \n    repo:\n       # 仓库id\n       id: XXXXXXXX\n       # 仓库名称，填写后会自动注入构建参数project\n       name: merchant-rss\n       # 数据不填写会自动生成\n       # 默认为任务环境类型\n       namespace: dev\n    # instance:\n       # regionId: eu-west-1\n       # url: 502076313352.dkr.ecr.eu-west-1.amazonaws.com       \n  build:\n    # 构建类型，可选: kubernetes-image、maven-publish\n    type: kubernetes-image\n    # 构建版本命名配置\n    version:\n       # 构建版本前缀\n       prefix:\n       # 构建版本后缀, 可注入变量${envName}、${buildNumber}、${commitId}\n       # applicationName-release-5 \n       suffix: release-${commitId}-${buildNumber} \n    # 钉钉通知配置\n    notify:\n      # 类型目前无效\n      type: dingtalk\n      # DingtalkRobot数据源实例\n      name: robot-leo-test\n  deploy:\n    notify:\n      # 类型目前无效\n      type: dingtalk\n      # DingtalkRobot数据源实例\n      name: robot-leo-test\n  sonar:\n    enabled: false\n  # 任务标签必须和Leo实例匹配\n  tags:\n    - \'@London\'\n  # 任务参数配置\n  parameters: \n    - \n      name: project\n      value: merchant-rss\n    - \n      name: buildCmd\n      value: /opt/tools/maven/bin/mvn\n    -\n      name: dockerfile\n      value: Dockerfile-test\n    - \n      name: build\n      value: clean package -e -U -T 2C -DskipTests -Dmaven.compile.fork=true\n    - \n      name: artifactPath\n      value: \'merchant-rss-start/target\'\n    - \n      name: registryUrl\n      value: \'aliyun-cr-uk.chuanyinet.com\'\n```',1,1,NULL,'2022-11-22 05:10:42','2023-06-20 01:57:18'),(35,'规则配置','fab fa-app-store','LEO_MGMT',3,'LEO_RULE_README','# Leo规则配置文档\n\n```yaml\nrule:\n  # 表达式\n  expression: \n    # 表达式类型\n    type: WEEKLY\n    begin: 5 18:00:00\n    end: 7 24:00:00\n  # 匹配标签名称\n  tags:\n    - A1\n    - A2\n    - A3\n    - B1\n    - B2\n    - B3\n  # 匹配环境名称\n  envs:\n    - prod\n```\n\n#### 表达式类型 \n  + DATE 按具体时间范围来匹配\n```\n  expression: \n    type: DATE\n    # 开始时间: 日期格式\n    begin: 2023-01-01 19:00:00\n    # 结束时间: 日期格式\n    end: 2023-01-02 19:00:00\n```\n+ WEEKLY 按每周时间范围来匹配\n```\n  expression: \n    type: WEEKLY\n    # 开始时间: 星期5 18:00:00\n    begin: 5 18:00:00\n    # 结束时间: 星期7 24:00:00\n    end: 7 24:00:00\n```\n+ MONTHLY 按每月时间范围来匹配\n```\n  expression: \n    type: MONTHLY\n    # 开始时间: 每月第10日 18:00:00\n    begin: 10 18:00:00\n    # 结束时间: 每月第11日 09:00:00\n    end: 11 09:00:00\n```\n+ DAILY 按每天时间范围来匹配\n```\n  expression: \n    type: DAILY\n    begin: 11:40:00\n    end: 13:30:00\n```',1,1,NULL,'2023-01-11 02:26:57','2023-06-20 01:57:14'),(36,'持续交付-构建','fa fa-clone','LEO_CD',1,'LEO_BUILD_README','### 构建应用帮助\n#### 构建页面选项说明\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/build1.png\" width=\"1000\"></img>\n+ A、选择持续交付进入应用构建部署页面。\n+ B、构建build。\n+ C、选择需要构建的应用项目。\n+ D、选择需要构建的应用项目的环境。\n+ E、构建应用。\n+ F、应用的历史构建版本详情。\n+ G、可修改应用的版本及版本是否有效。\n+ H、构建的流水线日志。\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/build3.png\" width=\"1000\"></img>\n+ I、构建的git版本确认。\n+ J、可选择构建后自动部署。\n+ K、选择要部署的无状态应用分组。',1,1,NULL,'2023-02-14 07:28:55','2023-05-08 07:59:07'),(40,'持续交付-部署','fa fa-clone','LEO_CD',2,'LEO_DEPLOY_README','### 部署应用帮助\n#### 部署页面选项说明\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/deploy1.png\" width=\"1300\"></img>\n+ A、选择应用部署页面。\n+ B、选择部署的应用。\n+ C、选择需要部署的应用项目的环境。\n+ D、创建部署任务。\n+ E、查看部署的应用历史版本。\n+ F、查看部署的应用的快照，显示当前版本和上一个版本。\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/deploy2.png\" width=\"1300\"></img>\n+ G、选择构建的任务\n+ H、选择部署的无状态应用\n+ I、选择要部署的类型。分别有滚动更新，重启、和金丝雀环境下线。\n+ J、确认要发布的版本。\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/deploy3.png\" width=\"1300\"></img>\n+ K、部署过程中报错可终止部署。\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/deploy6.png\" width=\"1300\"></img>\n+ L、最新部署的版本是蓝色，上一版本是黄色，其他颜色报错或者未知版本。\n\n<img src=\"https://opscloud4-res.oss-cn-hangzhou.aliyuncs.com/help/leo-demo/deploy5.png\" width=\"1300\"></img>\n+ M、25%滚动更新策略，用于应用发布。\n+ N、重启策略，用于镜像没有更新需要重启。\n+ O、下线策略，用于小流量canary环境下线。',1,1,'','2023-03-01 12:33:33','2023-03-29 03:46:23'),(41,'Apollo配置中心','fab fa-whmcs','WORKORDER_APOLLO',1,'APOLLO_README','#### 管理后台\n+ AWS\n\nhttps://apollo.palmpay-inc.com\n\n+ Aliyun\n\nhttps://apollo-frankfurt.palmpay-inc.com\n\n#### 使用规范\nhttps://palmpay.yuque.com/mbsqt7/wq21x7/pd4uxq8zge8ro6ss\n\n#### 应用连接地址\n+ AWS\n\n|  URL   | 环境 |\n|  ----  | ----  | \n| apollo-config-dev.palmpay-inc.com  | dev |\n| apollo-config-daily.palmpay-inc.com  | daily |\n| apollo-config-gray.palmpay-inc.com  | gray |\n| apollo-config-pre.palmpay-inc.com  | pre |\n| apollo-config-prod.palmpay-inc.com  | prod |\n\n+ Aliyun\n\n|  URL   | 环境 |\n|  ----  | ----  | \n| apollo-config-frankfurt-dev.palmpay-inc.com  | dev |\n| apollo-config-frankfurt-daily.palmpay-inc.com  | daily |\n| apollo-config-frankfurt-sit.palmpay-inc.com  | sit |\n| apollo-config-frankfurt-pre.palmpay-inc.com  | pre |\n| apollo-config-frankfurt-prod.palmpay-inc.com  | prod |',1,1,NULL,'2023-03-23 01:29:57','2023-08-11 09:56:47'),(42,'Readme','fas fa-dot-circle','HOME',1,'OPSCLOUD_README','<h1>Welcome to the opscloud wiki!</h1>\n\n<img src=\"https://img.shields.io/badge/Version-4.6.0-brightgreen.svg\"></img>\n<img src=\"https://img.shields.io/badge/OpenJDK-21-brightgreen.svg\"></img> \n<img src=\"https://img.shields.io/badge/SpringBoot-3.2.0GA-brightgreen.svg\"></img> \n<img src=\"https://img.shields.io/badge/MySQL-8-brightgreen.svg\"></img>\n\n作者很懒，他什么都不想写\n<br/>\n<img src=\"https://static.chuanyinet.com/files/felhpvx5orkyueut/4E3F53492C799049D8A5F55A32863BE0.jpg\" width=\"300px\"/>\n\n#### OpenAPI\n\nhttps://${sshServerHost}/swagger-ui.html\n\n#### API Example\n\n::: info\n申请AccessToken: [个人详情](/index.html#/user/details)\n:::\n\n+ For example, command\n```\n$ curl -H \"AccessToken: XXXXXXXXXXXXXX\" https://${sshServerHost}/api/example/helloWorld\n\n{\"body\":{\"msg\":\"Welcome to Baiyi\'s operations world\",\"requestTime\":\"2023-09-14 14:59:21\"},\"success\":true,\"msg\":\"success\",\"code\":0}\n```\n\n+ For feign client\n```Java\npublic interface OpscloudV4API {\n\n    @RequestLine(\"GET /api/example/helloWorld\")\n    @Headers({\"Content-Type: application/json\", \"AccessToken: {accessToken}\"})\n    Object helloWorld(@Param(\"accessToken\") String accessToken);\n\n}\n\npublic class ExampleTest extends BaseUnit {\n\n    private static final String url = \"https://${sshServerHost}\";\n\n    private static final String accessToken = \"XXXXXXXXXXXXXX\";\n\n    private OpscloudV4API buildOc4API() {\n        return Feign.builder()\n                .retryer(new Retryer.Default(3000, 3000, 3))\n                .encoder(new JacksonEncoder())\n                .decoder(new JacksonDecoder())\n                .target(OpscloudV4API.class, ExampleTest.url);\n    }\n\n    @Test\n    public void helloWorldTest() {\n        OpscloudV4API oc4API = buildOc4API();\n        Object result = oc4API.helloWorld(accessToken);\n        System.out.println(result.toString());\n    }\n\n}\n```',1,1,'','2023-04-06 07:14:33','2023-12-15 02:22:14'),(43,'应用发布申请帮助','fas fa-location-arrow','WORKORDER_APPLICATION_DEPLOY',1,'APPLICATION_DEPLOY_README','#### hello word',1,1,'','2023-05-11 09:14:52','2023-05-11 09:15:24'),(44,'配置发布帮助','fas fa-pen-square','WORKORDER_APOLLO',2,'APOLLO_RELEASE_README','#### 配置变更规则\n+ 生产环境变更窗口与服务端代码变更窗口相同\n+ 非变更窗口时间发布配置走OC工单-`Apollo配置发布申请`\n+ 工单审批通过后2小时内，申请的应用变更配置不受限制\n\n#### 配置发布拦截示例\n<img src=\"https://static.chuanyinet.com/files/feliwz2ocbcyl5s6/04E892DE-9DA9-429B-8F49-FFBC9694563A.png\"/>\n\n#### 使用规范\nhttps://palmpay.yuque.com/mbsqt7/wq21x7/pd4uxq8zge8ro6ss',1,1,'','2023-06-15 01:51:07','2023-08-11 09:55:21'),(45,'会话断开','fab fa-chrome','WEB_TERMINAL',1,'CHROME_CONFIG','#### WebTerminal断开原因\n+ OC前端代码使用定时器，每10秒发送一个心跳维持会话\n+ 由于Chrome使用了激进的省电策略，非活跃窗口定时器会延迟执行导致会话中断\n\n#### 修改Chrome浏览器配置\n+ 地址栏输入 `chrome://flags/#expensive-background-timer-throttling`\n+ 禁用 `Temporarily unexpire MXXX flags.`，不同的Chrome版本名称有差异\n+ 修改后在浏览器底部点击`Relaunch`重启浏览器\n<br/>\n![示例](https://static.chuanyinet.com/files/felj27axfairfbsf/WechatIMG28.png)',1,1,'','2023-06-19 02:31:13','2023-06-20 03:44:29'),(47,'GitFlow配置','fas fa-code-branch','LEO_MGMT',4,'GITFLOW','#### GitFlow\n\n![](https://img.shields.io/badge/Opscloud-4.4.9-brightgreen.svg?style=plastic)\n\n\n#### GitLab数据源配置\n```\ngitlab:\n    ...\n    gitFlow:\n      # 启用GitFlow, 默认值false\n      enabled: true\n      # 环境对应分支过滤器\n      filter:\n        # 环境名称\n        prod:\n        # 完全匹配\n        - master\n        # 前缀匹配\n        - \'release/*\'\n        # 未指定环境的默认配置\n        default:\n        # 匹配所有\n        - \'*\'\n```\n\n#### Leo任务配置\n```\njob:\n  gitLab:\n    ...\n    gitFlow:\n      # 启用GitFlow, 默认值true\n      enabled: true\n```\n',1,1,'','2023-06-20 01:55:51','2023-07-26 01:34:20'),(48,'README','fas fa-dot-circle','KUBERNETES',1,'README','#### ARMS使用参考文档\nhttps://palmpay.yuque.com/mbsqt7/wq21x7/pi1g3879qpb8x7fe\n\n#### 监控告警核心指标参考\nhttps://palmpay.yuque.com/mbsqt7/wq21x7/nzk8eix8f4dc6g6b\n\n#### 测试多环境使用参考文档\nhttps://palmpay.yuque.com/mbsqt7/cxr46d/ga67oqzgo86ugw91',1,1,'','2023-06-30 06:32:41','2023-11-08 02:49:08');

--
-- Table structure for table `sys_document_zone`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_document_zone` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '名称',
  `mount_zone` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '装载区域',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `mount_zone` (`mount_zone`),
  KEY `is_active` (`is_active`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `sys_document_zone`
--

INSERT INTO `sys_document_zone` VALUES (1,'首页','HOME',1,'首页挂载区','2023-02-08 01:26:32','2023-02-25 08:28:13'),(2,'运维文档','OPS_DOCS',1,'系统管理-运维文档挂载区','2023-02-08 01:28:41','2023-02-08 11:39:20'),(3,'二次认证','MFA',1,'Settings-MFA文档挂载区','2023-02-08 07:40:25','2023-02-08 11:39:47'),(4,'SSH-Server','SSH-SERVER',1,'工作台-SSH-Server文档挂载区','2023-02-08 07:44:57','2023-02-08 11:40:28'),(5,'Kubernetes','KUBERNETES',1,'容器终端文档挂载区','2023-02-08 07:57:09','2023-06-30 06:30:53'),(6,'工单-应用副本扩容','WORKORDER_APPLICATION_SCALE_REPLICAS',1,'工单文档挂载区','2023-02-08 08:39:49','2023-02-08 11:40:53'),(7,'GitLab权限申请','WORKORDER_GITLAB',1,'工单文档挂载区','2023-02-08 08:43:42','2023-02-08 11:41:20'),(8,'Amazon IAM','WORKORDER_IAM',1,'工单文档挂载区','2023-02-08 08:46:58','2023-02-08 11:41:23'),(9,'阿里云RAM','WORKORDER_RAM',1,'工单文档挂载区','2023-02-08 08:48:13','2023-02-08 11:41:24'),(10,'Nacos','WORKORDER_NACOS',1,'工单文档挂载区','2023-02-08 09:13:15','2023-02-08 11:41:26'),(11,'Nexus','WORKORDER_NEXUS',1,'工单文档挂载区','2023-02-08 09:34:28','2023-02-08 11:41:28'),(12,'Amazon Queue','WORKORDER_QUEUE',1,'工单文档挂载区','2023-02-08 09:37:56','2023-02-08 11:41:32'),(13,'持续交付','LEO_MGMT',1,'持续交付管理文档挂载区','2023-02-08 09:43:46','2023-02-14 07:08:45'),(14,'持续交付','LEO_CD',1,'持续交付文档挂载区','2023-02-14 07:07:47','2023-02-14 07:08:52'),(15,'Apollo','WORKORDER_APOLLO',1,'工单文档挂载区','2023-03-22 10:36:41','2023-03-22 10:37:08'),(16,'应用发布申请','WORKORDER_APPLICATION_DEPLOY',1,'工单文档挂载区','2023-05-11 09:12:22','2023-05-11 09:12:44'),(17,'Web终端','WEB_TERMINAL',1,'Web终端挂载区','2023-06-19 02:30:00',NULL);

--
-- Table structure for table `sys_env`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_env` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `env_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '环境名称',
  `env_type` int NOT NULL COMMENT '环境类型',
  `color` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '环境色',
  `prompt_color` int DEFAULT NULL COMMENT '终端提示色',
  `seq` int NOT NULL DEFAULT '1' COMMENT '顺序',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `comment` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `env_name` (`env_name`) USING BTREE,
  UNIQUE KEY `env_type` (`env_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,';

--
-- Dumping data for table `sys_env`
--

INSERT INTO `sys_env` VALUES (1,'default',0,'#3E4B4D',0,99,0,'默认环境','2020-04-02 21:06:38','2023-04-27 12:54:30'),(2,'dev',1,'#5bc0de',6,1,1,'开发环境','2020-01-10 12:53:51','2022-12-01 05:09:56'),(3,'test',5,'#A0AE07',3,1,0,'测试环境','2020-01-10 12:53:55','2023-08-23 07:26:11'),(4,'gray',3,'#1A1717',8,3,1,'集成测试','2020-03-11 13:03:58','2023-06-20 03:12:40'),(5,'prod',4,'#E34C15',1,5,1,'生产环境','2020-02-22 12:13:16','2023-02-28 05:33:01'),(6,'daily',2,'#449d44',2,2,1,'日常环境','2020-03-04 10:10:44','2023-02-28 05:32:36'),(14,'local',7,'#FC7A00',5,99,0,'本地环境','2020-03-11 13:05:28','2023-04-27 12:54:37'),(15,'lpt',8,'#C93609',3,99,0,'Load and Performance Test environment','2021-06-24 09:36:07','2023-04-27 12:54:43'),(16,'pre',9,'#FFAE00',3,4,1,'预发环境','2022-08-18 05:31:58','2023-02-28 05:32:58'),(17,'canary',10,'#E34C15',0,1,0,'金丝雀环境','2022-08-19 09:45:31','2023-03-21 06:34:52'),(19,'sit',12,'#1B2F5F',5,3,1,'持续测试环境','2023-07-03 08:57:38','2023-07-10 05:15:43');

--
-- Table structure for table `sys_menu`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_menu` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '菜单标题',
  `i18n_en` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '菜单标题国际化',
  `icon` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '菜单图标',
  `seq` int NOT NULL COMMENT '顺序',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `sys_menu`
--

INSERT INTO `sys_menu` VALUES (1,'系统管理','System','fab fa-whmcs',0,'2021-06-09 09:41:34','2023-09-19 01:29:16'),(2,'工作台','WorkBench','fas fa-desktop',1,'2021-06-09 09:41:34','2023-09-18 06:26:42'),(3,'用户管理','User','fas fa-users',6,'2021-06-09 09:41:34','2023-09-18 06:26:29'),(4,'服务器管理','Server','fas fa-server',7,'2021-06-09 09:41:34','2023-09-18 06:26:46'),(5,'数据源配置','DataSource','fas fa-dice-d20',9,'2021-06-09 09:41:34','2023-09-18 06:26:54'),(6,'RBAC','RBAC','fab fa-google-drive',10,'2021-06-09 09:41:34','2023-09-18 06:26:57'),(7,'设置','Settings','fas fa-user-circle',11,'2021-06-09 09:41:34','2023-09-18 06:27:04'),(8,'应用管理','Application','fab fa-deezer',2,'2021-07-15 13:05:05','2023-09-18 06:27:10'),(9,'任务管理','Task','fab fa-google-play',8,'2021-09-01 12:42:07','2023-09-18 06:27:14'),(10,'报表管理','Report','fas fa-chart-bar',5,'2022-07-08 02:30:45','2023-09-18 06:27:18'),(11,'Leo管理','Leo','fab fa-instalod',4,'2022-11-01 12:25:09','2023-09-18 06:27:22'),(12,'项目管理','Project','fab fa-product-hunt',3,'2023-05-19 07:44:25','2023-09-18 06:27:26');

--
-- Table structure for table `sys_menu_child`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_menu_child` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `menu_id` int NOT NULL COMMENT '菜单ID',
  `title` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '子菜单标题',
  `i18n_en` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '子菜单标题国际化',
  `icon` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '子菜单图标名称',
  `path` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '子菜单路径',
  `seq` int NOT NULL COMMENT '子菜单排序',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `sys_menu_child`
--

INSERT INTO `sys_menu_child` VALUES (1,1,'凭证管理','Credential','fas fa-fingerprint','/sys/credential',0,'2021-06-02 13:37:00','2023-09-19 01:35:59'),(2,1,'标签管理','Tag','fas fa-tags','/sys/tag',1,'2021-06-02 13:37:00','2023-09-18 06:29:02'),(3,1,'环境管理','Env','fab fa-pagelines','/sys/env',2,'2021-06-02 13:37:00','2023-09-18 06:29:05'),(4,1,'菜单管理','Menu','fas fa-bars','/sys/menu',3,'2021-06-02 13:37:00','2023-09-18 06:29:10'),(6,2,'Web终端','Web-Terminal','fas fa-th-large','/workbench/web-terminal',1,'2021-06-15 16:10:03','2023-09-18 06:28:20'),(7,3,'用户管理','User','fas fa-user-alt','/user',0,'2021-06-02 14:00:58','2023-09-18 06:29:41'),(8,4,'服务器','Server','fas fa-server','/server',0,'2021-06-02 14:01:51','2023-09-18 06:29:53'),(9,4,'服务器组','ServerGroup','fas fa-window-restore','/server/group',1,'2021-06-02 14:01:51','2023-09-18 06:29:59'),(10,5,'数据源实例','Instance','fab fa-battle-net','/datasource/instance',0,'2021-06-02 14:02:20','2023-09-18 06:30:05'),(11,5,'数据源配置','Config','fab fa-unity','/datasource/config',1,'2021-06-02 14:02:20','2023-09-18 06:30:09'),(12,6,'资源配置','Resource','fas fa-stream','/rbac/resource',0,'2021-06-02 14:03:02','2023-09-18 06:30:20'),(13,6,'用户角色配置','UserRole','fas fa-id-card','/rbac/user-role',2,'2021-06-02 14:03:02','2023-09-18 06:30:25'),(14,6,'角色配置','Role','fas fa-users','/rbac/role',1,'2021-06-02 14:03:02','2023-09-18 06:30:30'),(15,7,'个人详情','Profile','fas fa-address-book','/user/details',0,'2021-06-09 09:36:50','2023-09-18 06:30:49'),(16,2,'SSH服务器','SSH-Server','fas fa-terminal','/workbench/ssh-server',0,'2021-06-15 16:10:04','2023-09-18 06:31:12'),(17,2,'RDP/VNC','RDP/VNC','fab fa-windows','/workbench/remote-desktop',2,'2021-07-09 13:50:59','2023-09-18 06:28:31'),(19,2,'容器终端','Kube-Terminal','fab fa-docker','/workbench/kubernetes-web-terminal',3,'2021-07-13 15:13:19','2023-09-18 06:31:03'),(20,8,'应用','Application','fas fa-grip-horizontal','/application',0,'2021-07-15 13:09:18','2023-09-18 06:28:53'),(21,1,'审计管理','Audit','fas fa-video','/sys/audit',4,'2021-07-22 14:08:59','2023-09-18 06:30:53'),(22,5,'资产订阅','Subscription','fa fa-rss','/datasource/asset/subscription',3,'2021-08-27 14:52:47','2023-09-18 06:31:26'),(23,9,'剧本任务','Playbook','fas fa-recycle','/task/playbook',0,'2021-09-01 12:42:50','2023-09-18 06:31:32'),(24,1,'集群管理','Cluster','fas fa-server','/sys/instance',5,'2021-09-06 10:13:25','2023-09-18 06:31:40'),(25,5,'模版管理','Template','fab fa-slack-hash','/template',2,'2021-12-08 02:47:44','2023-09-18 06:31:44'),(26,3,'无效用户','InactiveUsers','fas fa-user-alt-slash','/user/inactive',2,'2021-12-10 01:51:10','2023-09-18 06:35:08'),(27,3,'用户详情','Users','fas fa-address-book','/user/info',3,'2021-12-13 07:17:17','2023-09-18 06:32:18'),(28,2,'我的工单','WorkOrder','fas fa-ticket-alt','/workorder',4,'2022-01-06 08:00:27','2023-09-18 06:32:03'),(29,1,'工单管理','WorkOrderMgmt','fas fa-ticket-alt','/sys/workorder',6,'2022-01-26 01:36:59','2023-09-18 06:32:37'),(30,7,'二次认证','MFA','fab fa-expeditedssl','/user/mfa',1,'2022-02-28 01:35:23','2023-09-18 06:32:50'),(31,1,'文档管理','Docs','fab fa-creative-commons-share','/sys/docs',7,'2022-05-25 09:23:52','2023-09-18 06:32:54'),(32,10,'终端报表','TerminalReport','fas fa-terminal','/report/terminal',0,'2022-07-08 02:33:17','2023-09-18 06:33:13'),(33,10,'工作事件','WorkEvent','fab fa-accusoft','/report/workevent',1,'2022-08-16 08:48:45','2023-09-18 06:33:20'),(34,10,'平台认证','PlatformAuth','fab fa-angular','/report/platform/auth',2,'2022-09-19 03:07:03','2023-09-18 06:33:33'),(35,11,'模板管理','LeoTemplate','fa fa-clone','/leo/template',0,'2022-11-01 12:40:07','2023-09-18 06:33:49'),(36,11,'任务管理','LeoJob','fab fa-unity','/leo/job',1,'2022-11-04 07:33:12','2023-09-18 06:33:52'),(37,2,'持续交付','CI/CD','fas fa-project-diagram','/workbench/continuous-delivery',5,'2022-11-23 03:16:21','2023-09-18 06:34:07'),(38,10,'工单报表','WorkOrderReport','fas fa-ticket-alt','/report/workorder',3,'2023-01-10 06:43:09','2023-09-18 06:34:15'),(39,11,'规则管理','LeoRule','fab fa-app-store','/leo/rule',2,'2023-01-10 10:04:16','2023-09-18 06:34:20'),(40,10,'持续交付','LeoReport','fab fa-instalod','/report/leo',4,'2023-01-11 11:33:47','2023-09-18 06:34:26'),(41,1,'模板管理','Template','fab fa-tumblr-square','/sys/template',8,'2023-03-27 03:36:22','2023-09-18 06:34:32'),(42,12,'项目','Project','fas fa-stream','/project',0,'2023-05-19 07:44:44','2023-09-18 06:34:46'),(43,2,'风控策略变更','SerDeploy','fab fa-d-and-d','/workbench/ser-deploy',6,'2023-06-07 07:16:42','2023-09-18 06:34:54'),(44,3,'用户组管理','UserGroup','fas fa-user-friends','/user/group',1,'2023-09-08 06:03:40','2023-09-18 06:34:58');

--
-- Table structure for table `sys_nav`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `sys_nav` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `nav_title` varchar(128) NOT NULL DEFAULT '' COMMENT '导航标题',
  `nav_url` varchar(128) NOT NULL DEFAULT '' COMMENT '导航链接',
  `nav_content` varchar(128) NOT NULL DEFAULT '' COMMENT '导航说明',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `sys_nav`
--


--
-- Table structure for table `tag`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `tag` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '标签Key,全局唯一',
  `business_type` int NOT NULL DEFAULT '0' COMMENT '业务类型',
  `color` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '颜色值',
  `comment` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `tag_key` (`tag_key`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,';

--
-- Dumping data for table `tag`
--

INSERT INTO `tag` VALUES (1,'Authorization',16,'#EB0303','启用认证','2021-05-19 15:32:43','2021-05-19 15:32:43'),(2,'Jenkins',1,'#B70707','Jenkins服务器','2021-05-25 17:06:24','2022-04-11 03:17:35'),(3,'Gitlab',1,'#144AD3','Gitlab服务器','2021-05-26 10:18:34','2022-04-11 03:17:45'),(6,'Android',5,'#B70707','','2021-06-22 12:16:27','2021-06-22 12:16:27'),(7,'RDP',16,'#0684C4','支持RDP协议','2021-07-08 17:06:29','2021-07-08 17:06:29'),(8,'VNC',16,'#30ADED','支持VNC协议','2021-07-08 17:06:49','2021-07-08 17:06:49'),(9,'Account',16,'#0320A2','账户管理','2021-08-11 14:59:31','2021-08-11 15:07:54'),(10,'Server',16,'','服务器管理','2021-08-20 15:24:00','2021-08-20 15:24:00'),(11,'Event',16,'#00E5FF','实例事件监听','2021-10-09 16:05:09','2021-10-09 16:05:09'),(12,'TeamLeader',3,'#0026FF','经理','2021-10-20 15:23:05','2021-10-20 15:23:05'),(13,'Operations',3,'','运维工程师','2021-10-20 15:27:02','2021-10-20 15:27:02'),(14,'SystemHooks',16,'#287710','接收SystemHooks','2021-10-28 17:20:39','2021-10-28 17:20:39'),(15,'System',0,'#329D04','系统用户','2021-11-05 03:28:11','2021-12-16 06:04:26'),(16,'Notice',16,'#05735D','消息通知','2021-12-02 02:55:00','2021-12-02 02:55:00'),(17,'@Hangzhou',0,'#BA3D08','杭州地域标签','2021-12-30 09:18:08','2021-12-30 09:18:23'),(18,'MFA',16,'#0BA03F','指定用户在下次登录时是否必须绑定多因素认证器(RAM,IAM专用)','2022-03-08 11:27:53',NULL),(19,'@Shenzhen',0,'#071B89','深圳地域标签','2022-03-14 10:06:27','2022-03-14 10:06:44'),(20,'HR',3,'#C208AC','人力资源','2022-03-23 06:40:06',NULL),(21,'SA',0,'#FF0000','超级管理员','2022-03-24 05:22:39',NULL),(22,'InformationSecurity',3,'#FFA600','信息安全组','2022-04-02 03:36:19',NULL),(23,'AWS',1,'#000DFF','','2022-04-06 11:15:23',NULL),(24,'@Ireland',0,'#B80707','爱尔兰地域标签','2022-04-13 03:23:08','2022-04-13 03:23:15'),(25,'@London',0,'#FF8400','伦敦地域标签','2022-04-13 03:28:23','2022-04-13 03:28:28'),(28,'@Hongkong',0,'#BE4895','香港地域标签','2022-04-20 03:44:03',NULL),(29,'DMS',5,'#FF0073','绑定DMS用户','2022-04-21 01:47:32',NULL),(30,'@Singapore',0,'#920404','新加坡地域标签','2022-04-25 02:05:37',NULL),(31,'ES',1,'#390101','ElasticSearch','2022-05-07 07:08:43','2022-05-07 09:28:39'),(32,'dev',5,'#5BC0DE','开发环境','2022-06-30 09:14:09','2022-06-30 09:19:40'),(33,'daily',5,'#449D44','日常环境','2022-06-30 09:14:24','2022-06-30 09:20:44'),(34,'gray',5,'#1A1717','灰度环境','2022-06-30 09:14:41','2022-06-30 09:21:05'),(35,'prod',5,'#E34C15','生产环境','2022-06-30 09:14:56','2022-06-30 09:20:27'),(36,'金融网络',0,'#FF0000','业务域标签','2022-07-03 08:50:00','2022-08-18 02:11:27'),(37,'基础共享平台',0,'#FF0000','业务域标签','2022-07-03 08:50:29','2022-08-18 02:11:31'),(38,'信用支付',0,'#FC0000','业务域标签','2022-07-03 08:50:40','2022-08-18 02:11:34'),(39,'大数据',0,'#FF0000','业务域标签','2022-07-03 08:50:53','2022-08-18 02:11:38'),(40,'场景支付',0,'#FF0000','业务域标签','2022-07-03 08:51:06','2022-08-18 02:11:42'),(41,'商户域',0,'#FF0000','业务域标签','2022-07-03 08:51:34','2022-08-18 02:11:46'),(42,'业务中台',0,'#FF0000','业务域标签','2022-07-03 08:51:45','2022-08-18 02:11:50'),(43,'B端业务支付中心',0,'#FF0000','业务域标签','2022-07-03 08:52:05','2022-08-18 02:11:54'),(44,'B端业务结算中心',0,'#FF0000','业务域标签','2022-07-03 08:52:16','2022-08-18 02:12:08'),(45,'稳定性平台',0,'#FF0000','业务域标签','2022-07-03 08:52:48','2022-08-18 02:12:12'),(46,'A1',8,'#F80404','重要级别:交易核心链路','2022-07-20 05:45:20','2022-07-20 05:50:35'),(47,'A2',8,'#F9693D','重要级别:非交易核心链路','2022-07-20 05:45:36','2022-07-20 05:50:46'),(48,'A3',8,'#FB6000','重要级别:非交易核心链路','2022-07-20 05:51:05',NULL),(49,'B1',8,'#C900FB','重要级别:非在线类业务','2022-07-20 05:51:33','2022-07-20 05:52:08'),(50,'B2',8,'#008AFB','重要级别:非在线类业务','2022-07-20 05:52:52',NULL),(51,'B3',8,'#31BA00','重要级别:管理后台类应用','2022-07-20 05:53:27','2022-07-20 05:53:51'),(52,'@Frankfurt',0,'#174E4A','法兰克福','2022-08-05 06:15:13',NULL),(53,'支付清算',0,'#FF0000','','2022-08-15 04:55:46','2022-08-18 02:12:16'),(56,'pre',5,'#FFA600','预发环境','2022-08-19 03:10:35',NULL),(57,'IT',3,'#007BFF','IT工程师','2022-08-23 02:57:02',NULL),(58,'NOC',3,'#006AFF','技术支持工程师','2022-08-23 03:01:08',NULL),(59,'SMS',16,'#3B5228','短息信息通知','2022-09-01 06:07:05',NULL),(60,'VMS',16,'#14672F','语音消息通知','2022-09-01 06:07:25',NULL),(61,'Zenlayer',0,'#00AAFF','层峰','2022-09-08 02:11:49',NULL),(62,'@Lagos',0,'#FF6A00','拉各斯','2022-09-08 02:12:42',NULL),(63,'用户域客户端',0,'#F46D0D','业务域标签','2022-09-16 09:05:46','2022-09-16 09:08:06'),(64,'用户域web端',0,'#F46D0D','业务域标签','2022-09-16 09:06:04','2022-09-16 09:08:07'),(65,'商户域客户端',0,'#F46D0D','业务域标签','2022-09-16 09:06:11','2022-09-16 09:08:09'),(66,'商户域web端',0,'#F46D0D','业务域标签','2022-09-16 09:06:18','2022-09-16 09:08:11'),(67,'商户技术',0,'#F46D0D','业务域标签','2022-09-16 09:06:27','2022-09-16 09:08:10'),(69,'基础平台',0,'#F46D0D','业务域标签','2022-09-16 09:06:46','2022-09-16 09:08:12'),(71,'支付平台',0,'#F46D0D','业务域标签','2022-09-16 09:07:22','2022-09-16 09:08:16'),(72,'Zookeeper',0,'#1500FF','','2022-09-26 01:52:38',NULL),(73,'Aerospike',0,'#FF9500','','2022-09-26 01:54:08',NULL),(74,'oneloop',0,'#812E2E','','2022-09-27 02:19:06','2022-09-27 02:19:22'),(75,'MQOwner',3,'#D90404',' 消息队列负责人','2022-09-28 07:33:57','2023-02-27 08:10:18'),(76,'Leo',16,'#00BBFF','启用Leo','2022-11-11 08:45:39','2023-01-31 06:40:33'),(78,'Maven',20,'#0A7301','构建工具','2023-04-25 09:08:06','2023-04-28 01:31:24'),(79,'Gradle',20,'#427EEE','构建工具','2023-04-28 01:30:38',NULL),(80,'Consul',1,'#CB1313','Consul服务端','2023-05-09 02:06:14',NULL),(81,'ConfigServer',1,'#DC0000','','2023-05-09 02:06:59',NULL),(82,'AutoDeploy',0,'#18B320','自动部署','2023-05-09 05:37:45',NULL),(83,'TechnicalDirector',0,'#D90000','技术总监','2023-05-11 06:34:50',NULL),(84,'C1',8,'#8F3131','内部系统','2023-05-11 08:45:11','2023-08-21 06:50:40'),(85,'Ser',8,'#A98462','ser包发布实例','2023-06-08 09:53:57','2023-06-16 09:37:32'),(86,'RiskControlAuditor',3,'#045CE8','风控发布审核员','2023-06-14 10:39:22',NULL),(87,'sit',5,'#100F0F','集成测试环境','2023-06-20 02:49:37',NULL),(88,'FrontEnd',0,'#FF8400','前端','2023-06-21 02:10:36','2023-06-21 02:11:26'),(89,'NPM',0,'#DE9F00','node package manager','2023-06-21 02:22:14',NULL),(90,'AutoBuild',0,'#18B320','自动构建，gitLab push事件触发','2023-06-29 06:51:23','2023-06-29 06:51:37'),(91,'H5',0,'#C8059E','Html5','2023-06-30 06:59:44',NULL),(92,'ApplicationConfigurationManagement',3,'#049629','应用配置管理','2023-08-07 05:32:14',NULL),(93,'C3',8,'#0A7D00','研发域内不系统','2023-08-21 06:51:19',NULL),(95,'$C',0,'#FF0000','FIN:C端业务','2023-08-28 03:10:33','2023-12-19 02:38:09'),(108,'FinOps',3,'#012D9C','成本负者人','2023-08-28 03:31:20','2023-09-01 02:46:43'),(111,'Nodejs',0,'#FF4400','Nodejs项目','2023-09-27 03:19:27',NULL),(112,'SCM',3,'#3A263A','配置管理员','2023-11-14 05:27:21',NULL);

--
-- Table structure for table `template`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `template` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '名称',
  `env_type` int NOT NULL COMMENT '环境类型',
  `instance_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '实例类型',
  `template_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '模板Key',
  `template_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '模板类型',
  `vars` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板变量',
  `kind` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '分类',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '模板内容',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='模版';

--
-- Dumping data for table `template`
--


--
-- Table structure for table `terminal_session`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `terminal_session` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `session_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '会话UUID',
  `user_id` int DEFAULT NULL COMMENT '用户ID',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `remote_addr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `session_closed` tinyint(1) NOT NULL DEFAULT '0' COMMENT '会话是否关闭',
  `close_time` timestamp NULL DEFAULT NULL COMMENT '关闭时间',
  `server_hostname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务端主机名',
  `server_addr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务端地址',
  `session_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `session_id` (`session_id`) USING BTREE,
  KEY `session_closed` (`session_closed`),
  KEY `username` (`username`),
  KEY `user_id` (`user_id`),
  KEY `server_hostname` (`server_hostname`),
  KEY `create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `terminal_session`
--


--
-- Table structure for table `terminal_session_instance`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `terminal_session_instance` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `session_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '会话ID',
  `instance_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '实例ID',
  `duplicate_instance_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '会话复制实例ID',
  `instance_session_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '实例会话类型',
  `login_user` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '登录账户',
  `host_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '主机IP',
  `output_size` bigint NOT NULL DEFAULT '0' COMMENT '输出文件大小',
  `instance_closed` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关闭',
  `open_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '打开时间',
  `close_time` timestamp NULL DEFAULT NULL COMMENT '关闭时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `session_id` (`session_id`,`instance_id`) USING BTREE,
  KEY `instance_closed` (`instance_closed`),
  KEY `create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `terminal_session_instance`
--


--
-- Table structure for table `terminal_session_instance_command`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `terminal_session_instance_command` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `terminal_session_instance_id` int NOT NULL COMMENT '实例表ID',
  `prompt` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '提示符',
  `input` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '输入',
  `input_formatted` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '输入格式化',
  `output` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '输出',
  `is_formatted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否格式化',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `terminal_session_instance_id` (`terminal_session_instance_id`),
  KEY `create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `terminal_session_instance_command`
--


--
-- Table structure for table `user`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `user` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '前端框架用户UUID',
  `password` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '姓名',
  `display_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '显示名称',
  `email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '邮箱',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `last_login` timestamp NULL DEFAULT NULL,
  `wechat` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '',
  `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '手机',
  `mfa` tinyint(1) DEFAULT '0' COMMENT '启用MFA',
  `force_mfa` tinyint(1) DEFAULT '0' COMMENT '强制启用MFA',
  `created_by` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '',
  `source` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '数据源',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username` (`username`) USING BTREE,
  KEY `display_name` (`display_name`),
  KEY `is_active` (`is_active`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='oc用户本地用户';

--
-- Dumping data for table `user`
--

INSERT INTO `user` VALUES (1,'baiyi','cf1cbef6923b43a1806c833a25fa6ac5',NULL,'开发者','管理员','ixrjog@qq.com',1,NULL,'','13456789101',0,0,'','ldap',NULL,'2023-12-19 02:41:16','2023-12-19 02:41:57');

--
-- Table structure for table `user_credential`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_credential` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `valid` tinyint(1) DEFAULT NULL COMMENT '有效',
  `user_id` int DEFAULT NULL,
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `credential_type` int NOT NULL COMMENT '用户凭据分类',
  `credential` varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '凭据内容',
  `expired_time` timestamp NULL DEFAULT NULL COMMENT '有效期',
  `fingerprint` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='用户凭据';

--
-- Dumping data for table `user_credential`
--


--
-- Table structure for table `user_group`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_group` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '组名',
  `group_type` int DEFAULT NULL COMMENT '组类型',
  `source` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '数据源',
  `allow_order` tinyint(1) DEFAULT NULL COMMENT '允许工单申请',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '描述',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='用户组';

--
-- Dumping data for table `user_group`
--

INSERT INTO `user_group` VALUES (1,'default',0,'',1,NULL,'2021-06-16 15:08:03','2021-06-16 15:08:11'),(21,'nexus-admin',0,'',0,'Nexus管理员角色','2021-11-04 09:00:53','2022-01-13 10:04:43'),(23,'nexus-users',0,'',1,'Nexus普通角色(下载权限)','2021-11-04 09:01:12','2022-01-13 10:04:25'),(24,'nexus-developer',0,'',1,'Nexus开发角色(下载权限+部署权限)','2021-11-04 09:44:32','2022-03-29 03:38:19'),(25,'vpn-users',0,'',1,'开通VPN','2021-11-05 02:39:49','2022-01-13 09:49:25'),(26,'jenkins-users',0,'',1,'','2021-11-08 09:49:24','2021-11-08 09:49:24'),(27,'jenkins-administrators',0,'',0,'','2021-11-08 09:49:40','2021-11-08 09:49:40'),(28,'confluence-administrators',0,'',0,'confluence-administrators','2021-11-29 10:43:02','2021-11-29 10:43:02'),(29,'confluence-users',0,'',1,'confluence普通用户','2021-11-29 10:43:43','2022-01-13 09:48:57'),(30,'ldap-admin',0,'',0,'LDAP管理员用户(禁止真实用户加入)','2021-11-30 08:17:35','2022-03-22 05:21:05'),(31,'jira-administrators',0,'',0,'jira-administrators','2021-11-30 08:26:16','2021-11-30 08:26:16'),(32,'jira-software-users',0,'',1,'jira-software-users','2021-11-30 08:26:25','2021-11-30 08:26:25'),(33,'jira-project-manager',0,'',1,'jira项目管理员（可创建项目）','2021-12-09 10:21:26','2021-12-09 10:21:26'),(34,'sonar-administrators',0,'',0,'Sonar管理员组','2021-12-14 09:07:00','2022-03-22 05:20:40'),(35,'sonar-users',0,'',1,'sonar用户','2021-12-14 09:28:09','2021-12-14 09:28:09'),(37,'grafana-admin',0,'',0,'Grafana管理员','2022-03-22 01:41:15','2022-03-22 01:44:47'),(38,'grafana-editor-users',0,'',1,'Grafana可编辑用户','2022-03-22 01:42:27','2022-03-22 01:44:54'),(39,'grafana-users',0,'',1,'Grafana只读用户','2022-03-22 01:42:47','2022-03-22 01:44:59'),(40,'apollo-users',0,'',1,'Apollo配置中心用户','2022-03-25 05:56:03',NULL),(42,'rancher-admin',0,'',0,'rancher-admin','2022-05-13 04:40:31',NULL),(43,'rancher-user',0,'',1,'rancher-user','2022-05-13 04:42:06',NULL),(44,'jenkins-palmpay-users',0,'',1,'Jenkins普通用户','2023-01-03 03:04:39',NULL),(45,'rancher-middleware',0,'',0,'','2023-03-07 06:19:29',NULL);

--
-- Table structure for table `user_permission`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_permission` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL COMMENT '用户ID',
  `business_id` int NOT NULL COMMENT '业务ID',
  `business_type` int NOT NULL COMMENT '业务类型',
  `permission_role` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '角色',
  `rate` int DEFAULT '0' COMMENT '等级',
  `content` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `user_id` (`user_id`,`business_id`,`business_type`) USING BTREE,
  KEY `user_id_2` (`user_id`),
  KEY `business_type` (`business_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='用户-用户组 授权表';

--
-- Dumping data for table `user_permission`
--


--
-- Table structure for table `user_profile`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_profile` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `profile_key` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '配置Key',
  `value` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '值',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `user_id` (`username`,`profile_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='用户-配置';

--
-- Dumping data for table `user_profile`
--


--
-- Table structure for table `user_token`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_token` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户登录名',
  `token` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '登录唯一标识',
  `valid` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否无效。0：无效；1：有效',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `username` (`username`,`id`,`token`) USING BTREE,
  KEY `valid` (`valid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `user_token`
--


--
-- Table structure for table `work_event`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_event` (
  `id` int NOT NULL AUTO_INCREMENT,
  `work_role_id` int NOT NULL COMMENT '工作角色id',
  `work_item_id` int NOT NULL COMMENT '工作类目id',
  `username` varchar(128) NOT NULL COMMENT '用户名',
  `work_event_cnt` int DEFAULT NULL,
  `comment` text,
  `work_event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `work_event_index` (`work_role_id`,`work_item_id`,`username`,`work_event_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作类目';

--
-- Dumping data for table `work_event`
--


--
-- Table structure for table `work_event_property`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_event_property` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `work_event_id` int NOT NULL DEFAULT '0' COMMENT '工作事件ID',
  `name` varchar(128) NOT NULL DEFAULT '' COMMENT '属性名称',
  `value` varchar(1024) NOT NULL DEFAULT '' COMMENT '属性值',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `work_event_id` (`work_event_id`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作事件属性';

--
-- Dumping data for table `work_event_property`
--


--
-- Table structure for table `work_item`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_item` (
  `id` int NOT NULL AUTO_INCREMENT,
  `work_role_id` int NOT NULL COMMENT '工作角色id',
  `parent_id` int NOT NULL DEFAULT '0' COMMENT '类目父关系',
  `work_item_name` varchar(32) NOT NULL COMMENT '工作角色名',
  `work_item_key` varchar(32) NOT NULL DEFAULT '' COMMENT '工作类型',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `color` varchar(8) NOT NULL DEFAULT '#FFFFFF' COMMENT '类目颜色，前端专用',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `comment` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `work_item_index` (`work_role_id`,`parent_id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作类目';

--
-- Dumping data for table `work_item`
--

INSERT INTO `work_item` VALUES (1,2,0,'咨询类','','+ 【问题】\n+ 【原因及方案】\n+ 【进度】<b style=\"color:green\">`已解决`</b>','#388ed1','2022-10-02 09:09:30','2022-08-15 11:33:32','产品正常的功能咨询'),(2,2,0,'产品类','','+ 【问题】\n+ 【原因及方案】\n+ 【进度】<b style=\"color:green\">`已解决`</b>','#d74e26','2022-10-02 09:09:43','2022-08-15 11:33:33','由于产品需求场景缺失导致的问题或者需要产品优化的问题'),(3,2,0,'运营类','','+ 【问题】\n+ 【原因及方案】\n+ 【进度】<b style=\"color:green\">`已解决`</b>','#006837','2022-10-02 09:10:02','2022-08-15 11:33:33','运营人员配置错误导致的问题'),(4,2,0,'技术类','','+ 【问题】\n+ 【原因及方案】\n+ 【进度】<b style=\"color:green\">`已解决`</b>','#fa9f1e','2022-10-02 09:10:14','2022-08-15 11:33:34','由于技术导致的问题'),(5,2,0,'无效问题','','+ 【问题】\n+ 【原因及方案】\n+ 【进度】<b style=\"color:green\">`已解决`</b>','#f7931e','2022-10-02 09:10:41','2022-08-15 11:33:34','暂时无法复现且无法排查的问题'),(15,1,0,'桌面维护','','+ 【问题】\n+ 【支撑结果】','#0863b5','2022-09-21 10:27:44','2022-08-15 11:38:31',NULL),(16,1,0,'资产管理','','+ 【问题】\n+ 【支撑结果】','#fec600','2022-09-21 10:27:47','2022-08-15 11:38:31',NULL),(17,1,0,'网络管理','','+ 【问题】\n+ 【支撑结果】','#f39100','2022-09-21 10:27:51','2022-08-15 11:38:32',NULL),(18,1,0,'用户管理','','+ 【问题】\n+ 【支撑结果】','#e3001f','2022-09-21 10:27:54','2022-08-15 11:38:32',NULL),(19,1,0,'邮箱管理','','+ 【问题】\n+ 【支撑结果】','#e50064','2022-09-21 10:27:57','2022-08-15 11:38:33',NULL),(20,1,0,'IT知识库','','+ 【问题】\n+ 【支撑结果】','#954a97','2022-09-21 10:28:03','2022-08-15 11:38:33',NULL),(21,1,0,'监控管理','','+ 【问题】\n+ 【支撑结果】','#009ee3','2022-09-21 10:28:05','2022-08-15 11:38:34',NULL),(22,1,0,'行为管理','','+ 【问题】\n+ 【支撑结果】','#13a538','2022-09-21 10:28:08','2022-08-15 11:38:34',NULL),(26,2,0,'故障类','','+ 【问题定级】\n+ 【问题修复时长】\n+ 【问题引入时间】\n+ 【开发人员】\n+ 【文档链接】','#EE1607','2022-10-02 09:10:30','2022-09-21 09:11:19','达到故障等级的问题');

--
-- Table structure for table `work_order`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_order` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工单名称',
  `i18n_en` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工单名称',
  `seq` int DEFAULT '0' COMMENT '顺序',
  `work_order_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工单Key',
  `sys_document_id` int NOT NULL DEFAULT '0' COMMENT '帮助文档ID',
  `work_order_group_id` int DEFAULT NULL COMMENT '工单组ID',
  `status` int NOT NULL DEFAULT '0' COMMENT '状态 0 正常 1 开发 2 停用',
  `workflow` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '工作流配置',
  `icon` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '图标',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `color` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '报表颜色',
  `docs` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '文档地址',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `workorder_key` (`work_order_key`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `work_order`
--

INSERT INTO `work_order` VALUES (1,'服务器权限申请','Server permission application',2,'SERVER_GROUP',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-server',1,'#F7D794',NULL,NULL,'2021-10-21 09:45:29','2023-09-06 11:55:57'),(2,'应用权限申请','Application permission application',1,'APPLICATION_PERMISSION',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-deezer',1,'#F3A683','https://palmpay.yuque.com/mbsqt7/mgdbgk/gi5dqy/edit#wKVI',NULL,'2022-01-06 01:42:45','2023-09-07 01:41:20'),(3,'Confluence权限申请','Confluence permission application',3,'CONFLUENCE',0,1,0,'nodes:\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-confluence',0,'#0a9396',NULL,NULL,'2022-01-12 02:33:27','2023-09-06 11:56:34'),(4,'Nexus权限申请','Nexus permission application',4,'NEXUS',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-codepen',1,'#E77F67','#/docs/workorder/nexus',NULL,'2022-01-12 02:33:52','2023-09-06 11:56:48'),(5,'VPN权限申请','VPN permission application',5,'VPN',0,1,0,'nodes:\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-telegram',1,'#CF6A87',NULL,NULL,'2022-01-12 02:34:07','2023-09-06 11:57:54'),(6,'阿里云-RAM策略申请','Aliyun RAM policy application',6,'RAM_POLICY',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-cloudversify',1,'#F19066','#/docs/workorder/ram',NULL,'2022-01-12 02:35:54','2023-09-06 11:57:45'),(7,'Nacos权限申请','Nacos permission application',13,'NACOS',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-centercode',1,'#546DE5','#/docs/workorder/nacos',NULL,'2022-01-12 02:36:44','2023-09-06 11:58:12'),(8,'阿里云消息队列Topic申请','Aliyun ONS topic application',1,'ONS_ROCKETMQ_TOPIC',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fas fa-rocket',1,'#C44569',NULL,NULL,'2022-01-12 02:37:56','2023-09-06 11:58:38'),(9,'阿里云消息队列Group申请','Aliyun ONS group application',2,'ONS_ROCKETMQ_GROUP',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fas fa-rocket',1,'#C44569',NULL,'','2022-01-12 02:38:13','2023-09-06 11:58:52'),(10,'AWS-IAM策略申请','AWS IAM policy application',7,'IAM_POLICY',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-aws',1,'#F5CD79','#/docs/workorder/iam',NULL,'2022-01-24 01:29:49','2023-09-06 11:59:07'),(11,'系统处理组织架构变更审批','System processing organizational structure change approval',1,'SYS_EMPLOYEE_RESIGN',0,3,0,'nodes:\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - HR','fas fa-user-graduate',1,'#F8A5C2',NULL,NULL,'2022-03-01 06:51:02','2023-09-06 11:59:17'),(12,'Grafana权限申请','Grafana permission application',9,'GRAFANA',0,1,0,'nodes:\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-chart-bar',1,'#E15F41',NULL,NULL,'2022-03-22 01:56:53','2023-09-06 11:59:29'),(13,'AWS-SQS队列申请','AWS SQS application',5,'SQS',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fab fa-ubuntu',1,'#63cdda','#/docs/workorder/queue','','2022-03-30 02:53:08','2023-09-14 06:41:40'),(14,'AWS-SNS主题申请','AWS SNS application',6,'SNS_TOPIC',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fab fa-stack-exchange',1,'#596275','#/docs/workorder/queue','先申请队列','2022-03-30 03:10:19','2023-09-14 06:41:52'),(15,'AWS-SNS订阅申请','AWS SNS subscription application',7,'SNS_SUBSCRIPTION',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fas fa-rss',1,'#574b90','#/docs/workorder/queue','先申请队列和主题','2022-03-30 03:12:06','2023-09-14 06:42:09'),(16,'GitLab项目权限申请','GitLab project permission application',10,'GITLAB_PROJECT',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-gitlab',1,'#574b90','#/docs/workorder/gitlab',NULL,'2022-06-27 03:47:49','2023-09-06 09:53:35'),(17,'GitLab群组权限申请','GitLab group permission application',11,'GITLAB_GROUP',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-gitlab',1,'#574b90',NULL,NULL,'2022-06-27 11:50:55','2023-09-06 09:53:26'),(18,'应用副本扩容','Application replicas expansion',8,'APPLICATION_SCALE_REPLICAS',0,2,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-redo-alt',1,'#574b90','#/docs/workorder/application/scale',NULL,'2022-07-18 01:53:12','2023-09-14 06:42:20'),(19,'应用部署申请','Apply for application deploy',1,'APPLICATION_DEPLOY',0,8,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: TechnicalDirector\n    type: 1\n    comment: 总监审批\n    tags:\n      - TechnicalDirector','fas fa-project-diagram',1,'#574b90','#/docs/workorder/deploy',NULL,'2023-02-07 12:02:32','2023-09-06 09:52:28'),(20,'Apollo权限申请','Apollo permission application',12,'APOLLO',0,1,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-pen-square',1,'#0a9396','#/docs/workorder/apollo',NULL,'2023-03-11 12:50:16','2023-11-14 05:30:50'),(21,'应用副本缩容','Application replicas reduction',9,'APPLICATION_REDUCE_REPLICAS',0,2,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-undo-alt',1,'#574b90',NULL,NULL,'2023-04-10 10:12:41','2023-09-14 06:42:31'),(22,'AWS-IAM重置密码','AWS IAM reset password',8,'AWS_IAM_UPDATE_LOGIN_PROFILE',0,1,0,'nodes:\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-aws',1,'#F5CD79',NULL,NULL,'2023-04-18 06:13:00','2023-09-06 09:55:26'),(23,'新应用申请','Create a new application',0,'NEW_APPLICATION',0,8,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations\n  - name: ApplicationConfigurationManagement\n    type: 1\n    comment: 应用配置管理执行\n    tags:\n      - ApplicationConfigurationManagement ','fab fa-schlix',1,'#F3A683',NULL,NULL,'2023-06-05 01:23:26','2023-09-06 09:55:10'),(24,'Aliyun-RAM重置密码','Aliyun RAM reset password',9,'ALIYUN_RAM_UPDATE_LOGIN_PROFILE',0,1,0,'nodes:\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-cloudversify',1,'#F19066',NULL,NULL,'2023-06-08 10:23:55','2023-09-06 09:55:23'),(25,'Apollo配置发布申请','Apollo configuration release application',3,'APOLLO_RELEASE',0,8,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: TechnicalDirector | SCM\n    type: 1\n    comment: 配管审批\n    tags:\n      - TechnicalDirector\n      - SCM','fas fa-pen-square',1,'#574b90','#/docs/workorder/apollo',NULL,'2023-06-13 10:50:07','2023-11-14 05:31:45'),(26,'风控Ser包发布申请','Risk control Ser package release application',4,'SER_DEPLOY',0,8,0,'nodes:\n  - name: RiskControlAuditor\n    type: 1\n    comment: 风控Ser发布审核\n    tags:\n      - RiskControlAuditor','fab fa-d-and-d',1,'#574b90',NULL,NULL,'2023-06-14 10:01:05','2023-09-06 09:56:14'),(27,'应用FinOps(成本分摊)标签申请','Apply FinOps (Cost Sharing) tag application',1,'APPLICATION_FINOPS_TAG',0,9,0,'nodes:\n  - name: FinOps\n    type: 0\n    comment: 成本负责人(吞金兽)审核\n    tags:\n      - FinOps','fas fa-dragon',1,'#E66F01',NULL,NULL,'2023-08-28 03:34:14','2023-09-08 01:13:46'),(28,'阿里云消息队列 5.0 Topic申请','Aliyun ONS 5.0 topic application',3,'ONS5_TOPIC',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fas fa-rocket',1,'#C44569',NULL,NULL,'2023-09-13 09:31:35','2023-09-14 06:41:31'),(29,'阿里云消息队列 5.0 Group申请','Aliyun ONS 5.0 group application',4,'ONS5_GROUP',0,2,0,'nodes:\n  - name: MQOwner\n    type: 1\n    comment: 消息队列负责人审批\n    tags:\n      - MQOwner','fas fa-rocket',1,'#C44569',NULL,NULL,'2023-09-13 09:31:35',NULL),(30,'SFTP服务申请','AWS Transfer SFTP application',10,'AWS_TRANSFER_CREATE_USER',0,2,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-download',1,'#574B90',NULL,NULL,'2023-10-09 09:49:49','2023-10-10 09:32:59'),(31,'容器JVM规格变更工单','Kubernetes container JVM spec changes',13,'KUBERNETES_CONTAINER_JVM_SPEC_CHANGES',0,2,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fab fa-java',1,'#574B90',NULL,NULL,'2023-11-03 02:03:39','2023-11-03 02:07:15'),(32,'应用服务网格配置','Kubernetes istio configuration',15,'KUBERNETES_ISTIO_CONFIGURATION',0,2,0,'nodes:\n  - name: TeamLeader\n    type: 0\n    comment: 上级审批\n    tags:\n      - TeamLeader\n  - name: Operations\n    type: 1\n    comment: 运维审批\n    tags:\n      - Operations','fas fa-network-wired',1,'#574B90',NULL,NULL,'2023-12-07 05:14:15','2023-12-07 09:22:20');

--
-- Table structure for table `work_order_group`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_order_group` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工单组名称',
  `i18n_en` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工单组名称',
  `seq` int DEFAULT NULL COMMENT '顺序',
  `group_type` int DEFAULT NULL COMMENT '工单组类型',
  `icon` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '图标',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `work_order_group`
--

INSERT INTO `work_order_group` VALUES (1,'权限申请','Permission Application',1,0,'fab fa-unity',NULL,'2022-01-06 01:46:46','2023-09-07 01:38:22'),(2,'配置变更','Configuration Changes',3,0,'fab fa-whmcs',NULL,'2022-01-12 02:37:29','2023-09-06 12:01:44'),(3,'系统工单','System Work Order',5,1,'fab fa-slack',NULL,'2022-02-08 00:59:57','2023-09-06 12:01:36'),(8,'持续交付','Continuous Delivery',2,0,'fas fa-project-diagram','','2023-02-06 08:40:33','2023-09-06 12:01:31'),(9,'成本管理','FinOps',4,0,'fab fa-btc','','2023-08-28 03:25:20','2023-09-11 09:55:18');

--
-- Table structure for table `work_order_ticket`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_order_ticket` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `work_order_id` int NOT NULL COMMENT '工单ID',
  `user_id` int NOT NULL DEFAULT '0' COMMENT '用户ID',
  `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `node_id` int DEFAULT NULL COMMENT '工单节点ID',
  `ticket_phase` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工单阶段',
  `ticket_status` int DEFAULT NULL COMMENT '工单状态 0 正常  1 结束（成功） 2结束（失败）',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '申请开始时间',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '结束开始时间',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `ticket_phase` (`ticket_phase`),
  KEY `work_order_id` (`work_order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工单票据';

--
-- Dumping data for table `work_order_ticket`
--


--
-- Table structure for table `work_order_ticket_entry`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_order_ticket_entry` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `work_order_ticket_id` int NOT NULL COMMENT '工单票据ID',
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '名称',
  `instance_uuid` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '数据源实例UUID',
  `business_type` int DEFAULT NULL COMMENT '业务类型',
  `business_id` int DEFAULT NULL COMMENT '业务ID',
  `entry_status` int NOT NULL DEFAULT '0' COMMENT '状态',
  `entry_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '条目Key',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '内容',
  `role` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '角色',
  `result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '处理结果',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工单票据条目';

--
-- Dumping data for table `work_order_ticket_entry`
--


--
-- Table structure for table `work_order_ticket_node`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_order_ticket_node` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `work_order_ticket_id` int NOT NULL COMMENT '工单票据ID',
  `node_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '节点名称',
  `user_id` int DEFAULT NULL COMMENT '(责任人)用户ID',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '(责任人)用户名',
  `parent_id` int DEFAULT NULL COMMENT '父流程ID',
  `approval_status` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'ApprovalTypeConstants( AGREE,  //同意\\n    CANCEL, //取消\\n    REJECT  //拒绝)',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `ticket_id` (`work_order_ticket_id`,`node_name`) USING BTREE,
  UNIQUE KEY `work_order_ticket_id` (`work_order_ticket_id`,`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工单票据节点';

--
-- Dumping data for table `work_order_ticket_node`
--


--
-- Table structure for table `work_order_ticket_subscriber`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_order_ticket_subscriber` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `work_order_ticket_id` int NOT NULL COMMENT '工单票据ID',
  `user_id` int NOT NULL COMMENT '用户ID',
  `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `subscribe_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '订阅类型(Tag)',
  `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效',
  `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '-' COMMENT '移动端审批令牌',
  `comment` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '说明',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `work_order_ticket_id` (`work_order_ticket_id`,`username`,`subscribe_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `work_order_ticket_subscriber`
--


--
-- Table structure for table `work_role`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `work_role` (
  `id` int NOT NULL AUTO_INCREMENT,
  `work_role_name` varchar(32) NOT NULL COMMENT '工作角色名称',
  `work_role_key` varchar(32) NOT NULL DEFAULT '' COMMENT '工作角色',
  `tag` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '角色绑定标签',
  `comment` varchar(64) DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `tag` (`tag`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作角色';

--
-- Dumping data for table `work_role`
--

INSERT INTO `work_role` VALUES (1,'IT运维工程师','IT','IT',NULL,'2022-08-05 09:46:45','2022-08-23 03:04:04'),(2,'技术支持工程师','SUPPORT','NOC',NULL,'2022-08-05 09:46:46','2022-08-23 03:04:09');


