 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-CREATE DATABASE /*!32312 IF NOT EXISTS*/`automain` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
+CREATE DATABASE /*!32312 IF NOT EXISTS*/`automain` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
 
 USE `automain`;
+
+/*Table structure for table `db_slow_log` */
+
+DROP TABLE IF EXISTS `db_slow_log`;
+
+CREATE TABLE `db_slow_log` (
+  `slow_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
+  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
+  `pool_name` varchar(64) DEFAULT NULL COMMENT '连接池名称',
+  `slow_db` varchar(64) DEFAULT NULL COMMENT '慢查询库',
+  `slow_time` int(10) unsigned DEFAULT NULL COMMENT '慢查询用时',
+  `slow_state` varchar(64) DEFAULT NULL COMMENT '慢查询状态',
+  `slow_sql` text COMMENT '慢查询sql',
+  PRIMARY KEY (`slow_id`),
+  KEY `idx_create_time` (`create_time`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+/*Data for the table `db_slow_log` */
+
+/*Table structure for table `db_status` */
+
+DROP TABLE IF EXISTS `db_status`;
+
+CREATE TABLE `db_status` (
+  `status_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
+  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
+  `pool_name` varchar(64) DEFAULT NULL COMMENT '连接池名称',
+  `com_select` bigint(20) unsigned DEFAULT NULL COMMENT '查询数',
+  `com_insert` bigint(20) unsigned DEFAULT NULL COMMENT '添加数',
+  `com_delete` bigint(20) unsigned DEFAULT NULL COMMENT '删除数',
+  `com_update` bigint(20) unsigned DEFAULT NULL COMMENT '编辑数',
+  `com_commit` bigint(20) unsigned DEFAULT NULL COMMENT '提交数',
+  `com_rollback` bigint(20) unsigned DEFAULT NULL COMMENT '回滚数',
+  `threads_connected` bigint(20) unsigned DEFAULT NULL COMMENT '总线程数',
+  `threads_running` bigint(20) unsigned DEFAULT NULL COMMENT '运行中线程数',
+  `pages_total_size` bigint(20) unsigned DEFAULT NULL COMMENT '总内存大小',
+  `pages_data_size` bigint(20) unsigned DEFAULT NULL COMMENT '已用内存大小',
+  `pages_free_size` bigint(20) unsigned DEFAULT NULL COMMENT '空闲内存大小',
+  `pages_misc_size` bigint(20) unsigned DEFAULT NULL COMMENT '忙碌内存大小',
+  PRIMARY KEY (`status_id`),
+  KEY `idx_create_time` (`create_time`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+/*Data for the table `db_status` */
 
 /*Table structure for table `tb_config` */
 

  PRIMARY KEY (`menu_id`),
  KEY `idx_parent_id` (`parent_id`),
  KEY `idx_menu_name` (`menu_name`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;

/*Data for the table `tb_menu` */


  PRIMARY KEY (`role_menu_id`),
  KEY `idx_role_id` (`role_id`),
  KEY `idx_menu_id` (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `tb_role_menu` */

