/*
 Navicat Premium Data Transfer

 Source Server         : aa
 Source Server Type    : MySQL
 Source Server Version : 80036 (8.0.36)
 Source Host           : localhost:3306
 Source Schema         : aiops_sys

 Target Server Type    : MySQL
 Target Server Version : 80036 (8.0.36)
 File Encoding         : 65001

 Date: 08/09/2025 20:09:20
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for alert_message
-- ----------------------------
DROP TABLE IF EXISTS `alert_message`;
CREATE TABLE `alert_message`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `equ_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备ID',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '预警现象简述',
  `equ_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备类型',
  `cause` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '可能原因',
  `solution` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '解决方案',
  `level` tinyint NULL DEFAULT NULL COMMENT '预警级别(1-5级)',
  `occur_time` datetime NOT NULL COMMENT '发生时间',
  `reporter` bigint NULL DEFAULT NULL COMMENT '报告AID',
  `handler` bigint NULL DEFAULT NULL COMMENT '处理AID',
  `handle_time` datetime NULL DEFAULT NULL COMMENT '解决时间',
  `status` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '处理状态 (open, in_progress_closed)',
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of alert_message
-- ----------------------------
INSERT INTO `alert_message` VALUES (1, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:37:21', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (2, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:37:21', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (3, '11', '设备 11 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:37:21', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (4, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:41:19', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (5, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:41:19', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (6, '11', '设备 11 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:41:19', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (7, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:42:13', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (8, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:42:13', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (9, '11', '设备 11 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:42:13', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (10, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:48:12', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (11, '12', '设备 12 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:48:12', NULL, NULL, NULL, 'open', '2');
INSERT INTO `alert_message` VALUES (12, '11', '设备 11 的温度45', '交换机', NULL, NULL, 3, '2025-09-05 18:48:12', NULL, NULL, NULL, 'open', '2');

-- ----------------------------
-- Table structure for alert_rule
-- ----------------------------
DROP TABLE IF EXISTS `alert_rule`;
CREATE TABLE `alert_rule`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警规则名称',
  `severity` int NULL DEFAULT NULL COMMENT '预警级别',
  `alert_way` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警方式(email/message)',
  `alert_station` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警到站方',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警规则内容描述',
  `enable` int(10) UNSIGNED ZEROFILL NOT NULL COMMENT '启用状态（0为启用）',
  `create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创新时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_by` bigint NULL DEFAULT NULL COMMENT '创建人',
  `update_by` bigint NULL DEFAULT NULL COMMENT '更新人',
  `table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '表格名称',
  `alert_sql` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '预警sql语句查询',
  `alert_template` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警模版（参数用数据库命名法）',
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预警类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of alert_rule
-- ----------------------------
INSERT INTO `alert_rule` VALUES (5, '25<正常温度<45', 3, 'email', '2028008386@qq.com', '25<正常温度<45', 0000000000, '2025-09-05 18:47:47', '2025-09-05 16:11:34', 1, 1, 'equ_gather', 'SELECT g.*, b.equ_type FROM equ_gather g JOIN equ_base b ON g.equ_id = b.id WHERE temperature < 20 or temperature > 45', '设备 {equ_id} 的温度不再20-45', '1');
INSERT INTO `alert_rule` VALUES (9, 'cpu使用率&gt;=80', 3, 'message', '1', 'cpu使用率&gt;=80', 0000000000, '2025-09-05 18:10:23', '2025-09-05 16:56:12', 1, 1, 'equ_gather', 'SELECT g.*, b.equ_type FROM equ_gather g JOIN equ_base b ON g.equ_id = b.id WHERE cpu_utilization >= 80', '设备 {equ_id} 的cpu使用率&gt;=80', '1');
INSERT INTO `alert_rule` VALUES (10, '内从使用率&gt;=80', 3, 'message', '1', '内从使用率&gt;=80', 0000000000, '2025-09-05 18:10:24', '2025-09-05 16:57:31', 1, 1, 'equ_gather', 'SELECT g.*, b.equ_type FROM equ_gather g JOIN equ_base b ON g.equ_id = b.id WHERE memory_utilization >= 80', '设备 {equ_id} 的内从使用率&gt;=80', '1');
INSERT INTO `alert_rule` VALUES (11, '风扇转速状态为0', 3, 'message', '1', '风扇转速状态为0', 0000000000, '2025-09-05 18:10:24', '2025-09-05 16:58:50', 1, 1, 'equ_gather', 'SELECT g.*, b.equ_type FROM equ_gather g JOIN equ_base b ON g.equ_id = b.id WHERE fan_speed_status = \'0\'', '设备 {equ_id} 的风扇转速状态为0', '1');
INSERT INTO `alert_rule` VALUES (12, '健康度改变', 3, 'message', '1', '健康度改变', 0000000000, '2025-09-05 18:10:25', '2025-09-05 17:00:57', 1, 1, 'equ_gather', 'CHANGED', '设备 {equ_id} 的健康度改变', '1');
INSERT INTO `alert_rule` VALUES (14, '设备接口状态为2', 3, 'message', '1', '设备接口状态为2', 0000000000, '2025-09-05 17:08:32', '2025-09-05 17:08:32', 1, 1, 'equ_interface', 'SELECT t.*, g.equ_id, b.equ_type FROM equ_interface t JOIN equ_gather g ON t.equ_gather_id = g.id JOIN equ_base b ON g.equ_id = b.id WHERE running = \'2\'', '设备id为 {equ_id} 的id为{interface_id}的端口状态为2', NULL);
INSERT INTO `alert_rule` VALUES (15, '正常温度45', 3, 'message', '1', '正常温度45', 0000000000, '2025-09-05 18:30:58', '2025-09-05 18:30:58', 1, 1, 'equ_gather', 'SELECT g.*, b.equ_type FROM equ_gather g JOIN equ_base b ON g.equ_id = b.id WHERE temperature > 20 or temperature < 45', '设备 {equ_id} 的温度45', '2');
INSERT INTO `alert_rule` VALUES (16, '正常温度45', 3, 'email', '2028008386@qq.com', '正常温度45', 0000000000, '2025-09-05 18:35:08', '2025-09-05 18:35:08', 1, 1, 'equ_gather', 'SELECT g.*, b.equ_type FROM equ_gather g JOIN equ_base b ON g.equ_id = b.id WHERE temperature > 20 or temperature < 45', '设备 {equ_id} 的温度45', '2');

-- ----------------------------
-- Table structure for alert_rule_condition
-- ----------------------------
DROP TABLE IF EXISTS `alert_rule_condition`;
CREATE TABLE `alert_rule_condition`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
  `alert_rule_id` bigint NULL DEFAULT NULL COMMENT '预警规则id',
  `param_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '参数名称',
  `operator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '比较符号',
  `compare_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '比较值',
  `logic_operator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '与下一个条件的逻辑符号',
  `order_no` int NULL DEFAULT NULL COMMENT '条件顺序',
  `value_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '比较值的类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of alert_rule_condition
-- ----------------------------
INSERT INTO `alert_rule_condition` VALUES (7, 5, 'temperature', '&lt;', '20', 'or', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (8, 5, 'temperature', '&gt;', '45', '', 2, 'number');
INSERT INTO `alert_rule_condition` VALUES (9, 6, 'temperature', '&lt;', '20', 'or', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (10, 6, 'temperature', '&lt;', '45', '', 2, 'number');
INSERT INTO `alert_rule_condition` VALUES (11, 7, 'temperature', '&lt;', '20', 'or', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (12, 7, 'temperature', '&lt;', '45', '', 2, 'number');
INSERT INTO `alert_rule_condition` VALUES (13, 8, 'temperature', '&gt;', '20', 'or', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (14, 8, 'temperature', '&lt;', '45', '', 2, 'number');
INSERT INTO `alert_rule_condition` VALUES (15, 9, 'cpu_utilization', '&gt;=', '80', '', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (16, 10, 'memory_utilization', '&gt;=', '80', '', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (17, 11, 'fan_speed_status', '=', '0', '', 1, 'string');
INSERT INTO `alert_rule_condition` VALUES (18, 12, 'health', 'CHANGED', '0', '', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (19, 13, 'temperature', 'between', '20,45', '', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (20, 14, 'running', '=', '2', '', 1, 'string');
INSERT INTO `alert_rule_condition` VALUES (21, 15, 'temperature', '&gt;', '20', 'or', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (22, 15, 'temperature', '&lt;', '45', '', 2, 'number');
INSERT INTO `alert_rule_condition` VALUES (23, 16, 'temperature', '&gt;', '20', 'or', 1, 'number');
INSERT INTO `alert_rule_condition` VALUES (24, 16, 'temperature', '&lt;', '45', '', 2, 'number');

-- ----------------------------
-- Table structure for dict_alarm_param
-- ----------------------------
DROP TABLE IF EXISTS `dict_alarm_param`;
CREATE TABLE `dict_alarm_param`  (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `param_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '参数名称',
  `table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '表名',
  `column_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '参数名',
  `param_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '参数类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 114 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of dict_alarm_param
-- ----------------------------
INSERT INTO `dict_alarm_param` VALUES (65, '协议采集的结构化告警信息，6 级最高，1 级最低', 'equ_gather', 'alarm_info', 'json');
INSERT INTO `dict_alarm_param` VALUES (66, '设备持续运行时长(如365天12小时)', 'equ_gather', 'cont_work_period', 'string');
INSERT INTO `dict_alarm_param` VALUES (67, 'CPU 使用率(%)', 'equ_gather', 'cpu_utilization', 'number');
INSERT INTO `dict_alarm_param` VALUES (68, '设备 ID', 'equ_gather', 'equ_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (69, '风扇转速(rpm)', 'equ_gather', 'fan_speed', 'number');
INSERT INTO `dict_alarm_param` VALUES (70, '风扇转速状态(Normal/Abnormal)', 'equ_gather', 'fan_speed_status', 'string');
INSERT INTO `dict_alarm_param` VALUES (71, '采集时间', 'equ_gather', 'gather_time', 'timestamp');
INSERT INTO `dict_alarm_param` VALUES (72, '综合计算的健康度指标(%)', 'equ_gather', 'health', 'number');
INSERT INTO `dict_alarm_param` VALUES (73, '设备湿度(%)', 'equ_gather', 'humidity', 'number');
INSERT INTO `dict_alarm_param` VALUES (74, '', 'equ_gather', 'id', 'string');
INSERT INTO `dict_alarm_param` VALUES (75, '上下线日志事件', 'equ_gather', 'log_online', 'string');
INSERT INTO `dict_alarm_param` VALUES (76, '包含事件类型、级别的结构化日志', 'equ_gather', 'log_sys', 'json');
INSERT INTO `dict_alarm_param` VALUES (77, '内存使用率(%)', 'equ_gather', 'memory_utilization', 'number');
INSERT INTO `dict_alarm_param` VALUES (78, '设备温度', 'equ_gather', 'temperature', 'number');
INSERT INTO `dict_alarm_param` VALUES (79, '输入电压(V)', 'equ_gather', 'vol_in', 'number');
INSERT INTO `dict_alarm_param` VALUES (80, '输入电压状态(Normal/UnderVoltage)', 'equ_gather', 'vol_in_status', 'string');
INSERT INTO `dict_alarm_param` VALUES (81, '输出电压(V)', 'equ_gather', 'vol_out', 'number');
INSERT INTO `dict_alarm_param` VALUES (82, '输出电压状态(Normal/UnderVoltage)', 'equ_gather', 'vol_out_status', 'string');
INSERT INTO `dict_alarm_param` VALUES (83, '通信模式字典值(null/half/auto)', 'equ_interface', 'commuicate_mode', 'string');
INSERT INTO `dict_alarm_param` VALUES (84, '采集关联外键', 'equ_interface', 'equ_gather_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (85, '设备 ID', 'equ_interface', 'equ_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (86, '错包率(%)', 'equ_interface', 'error_rate', 'number');
INSERT INTO `dict_alarm_param` VALUES (87, '采集时间', 'equ_interface', 'gather_time', 'timestamp');
INSERT INTO `dict_alarm_param` VALUES (88, '主键', 'equ_interface', 'id', 'string');
INSERT INTO `dict_alarm_param` VALUES (89, '入方向带宽占有率(%)', 'equ_interface', 'in_bandwidth', 'number');
INSERT INTO `dict_alarm_param` VALUES (90, '入方向流量(bps)', 'equ_interface', 'in_flow', 'number');
INSERT INTO `dict_alarm_param` VALUES (91, '接口id', 'equ_interface', 'interface_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (92, '丢包率(%)', 'equ_interface', 'loss_rate', 'number');
INSERT INTO `dict_alarm_param` VALUES (93, '出方向带宽占有率(%)', 'equ_interface', 'out_bandwidth', 'number');
INSERT INTO `dict_alarm_param` VALUES (94, '出方向流量(bps)', 'equ_interface', 'out_flow', 'number');
INSERT INTO `dict_alarm_param` VALUES (95, '传输速率(Mbps)', 'equ_interface', 'rate', 'number');
INSERT INTO `dict_alarm_param` VALUES (96, '端口运行与否(UP/DOWN(true/false))', 'equ_interface', 'running', 'string');
INSERT INTO `dict_alarm_param` VALUES (97, '目的地址 (ipv4/ipv6网段)', 'equ_routing', 'des_address', 'string');
INSERT INTO `dict_alarm_param` VALUES (98, '设备采集id', 'equ_routing', 'equ_gather_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (99, '主键', 'equ_routing', 'id', 'string');
INSERT INTO `dict_alarm_param` VALUES (100, '下一跳地址 (ipv4/ipv6网段)', 'equ_routing', 'next_hop', 'string');
INSERT INTO `dict_alarm_param` VALUES (101, '子网掩码', 'equ_routing', 'subnet_mask', 'string');
INSERT INTO `dict_alarm_param` VALUES (102, '采集id', 'equ_veneer', 'equ_gather_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (103, '主键', 'equ_veneer', 'id', 'string');
INSERT INTO `dict_alarm_param` VALUES (104, '设备的一个单板的运行id', 'equ_veneer', 'veneer_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (105, '单板运行状态校准值（Online/Offline/Fault）', 'equ_veneer', 'veneer_status', 'string');
INSERT INTO `dict_alarm_param` VALUES (106, '创新时间', 'equ_vlan', 'create_time', 'datetime');
INSERT INTO `dict_alarm_param` VALUES (107, '采集ID', 'equ_vlan', 'equ_gather_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (108, '主键', 'equ_vlan', 'id', 'string');
INSERT INTO `dict_alarm_param` VALUES (109, 'IPv4地址', 'equ_vlan', 'ip_address', 'string');
INSERT INTO `dict_alarm_param` VALUES (110, 'vlan的ip地址', 'equ_vlan', 'main_id', 'string');
INSERT INTO `dict_alarm_param` VALUES (111, '掩码格式', 'equ_vlan', 'subnet_mask', 'string');
INSERT INTO `dict_alarm_param` VALUES (112, '更新人', 'equ_vlan', 'update_by', 'number');
INSERT INTO `dict_alarm_param` VALUES (113, '', 'equ_vlan', 'vlan_id', 'string');

-- ----------------------------
-- Table structure for equ_base
-- ----------------------------
DROP TABLE IF EXISTS `equ_base`;
CREATE TABLE `equ_base`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备唯一标识',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备名称',
  `version` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备版本',
  `ip` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '带外管理 IP',
  `manufacture` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备厂商 id',
  `location` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '安装位置 id',
  `equ_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备类型 id',
  `in_charge` bigint NULL DEFAULT NULL COMMENT '设备管理员 id',
  `release_date` date NULL DEFAULT NULL COMMENT '出厂日期',
  `install_date` date NULL DEFAULT NULL COMMENT '安装日期',
  `life_cycle` int NULL DEFAULT NULL COMMENT '预计年限(年)',
  `service_time` int NULL DEFAULT NULL COMMENT '服役年限(年)',
  `warranty` int NULL DEFAULT NULL COMMENT '质保时间(年)',
  `create_by` bigint NULL DEFAULT NULL COMMENT '设备添加人 id',
  `create_date` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '添加日期',
  `update_by` bigint NULL DEFAULT NULL COMMENT '最后修改人',
  `update_date` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改日期',
  `status` tinyint NOT NULL DEFAULT 0 COMMENT '启用状态（0启用1禁用）',
  `failure_frequency` int NULL DEFAULT NULL COMMENT '累计故障次数',
  `repair_frequency` int NULL DEFAULT NULL COMMENT '累计维修次数',
  `repair_cost` decimal(10, 2) NULL DEFAULT NULL COMMENT '累计维修金额',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备基本信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_base
-- ----------------------------
INSERT INTO `equ_base` VALUES ('11', 'test1', '3', '192.168.3.1', '3', '华华', '交换机', 55, '2025-08-05', '2025-08-06', 5, 3, 1, 5, '2025-08-08 10:17:54', 5, '2025-08-08 10:18:01', 0, NULL, NULL, NULL);
INSERT INTO `equ_base` VALUES ('12', 'test1', '3', '192.168.3.8', '3', '华华', '交换机', 55, '2025-08-05', '2025-08-06', 5, 3, 1, 5, '2025-08-08 10:17:54', 5, '2025-08-08 10:18:01', 0, NULL, NULL, NULL);
INSERT INTO `equ_base` VALUES ('13', 'test1', '3', '192.168.3.9', '3', '华华', '交换机', 55, '2025-08-05', '2025-08-06', 5, 3, 1, 5, '2025-08-08 10:17:54', 5, '2025-08-08 10:18:01', 0, NULL, NULL, NULL);
INSERT INTO `equ_base` VALUES ('14', 'test1', '3', '192.168.3.10', '3', '华华', '交换机', 55, '2025-08-05', '2025-08-06', 5, 3, 1, 5, '2025-08-08 10:17:54', 5, '2025-08-08 10:18:01', 0, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for equ_gather
-- ----------------------------
DROP TABLE IF EXISTS `equ_gather`;
CREATE TABLE `equ_gather`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `equ_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备 ID',
  `health` decimal(10, 2) NULL DEFAULT NULL COMMENT '综合计算的健康度指标(%)',
  `temperature` decimal(10, 2) NULL DEFAULT NULL COMMENT '设备温度',
  `humidity` decimal(10, 2) NULL DEFAULT NULL COMMENT '设备湿度(%)',
  `cpu_utilization` decimal(10, 2) NULL DEFAULT NULL COMMENT 'CPU 使用率(%)',
  `memory_utilization` decimal(10, 2) NULL DEFAULT NULL COMMENT '内存使用率(%)',
  `fan_speed` int NULL DEFAULT NULL COMMENT '风扇转速(rpm)',
  `vol_in` decimal(10, 2) NULL DEFAULT NULL COMMENT '输入电压(V)',
  `vol_out` decimal(10, 2) NULL DEFAULT NULL COMMENT '输出电压(V)',
  `alarm_info` json NULL COMMENT '协议采集的结构化告警信息，6 级最高，1 级最低',
  `log_online` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上下线日志事件',
  `log_sys` json NULL COMMENT '包含事件类型、级别的结构化日志',
  `gather_time` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '采集时间',
  `vol_in_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '输入电压状态(Normal/UnderVoltage)',
  `vol_out_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '输出电压状态(Normal/UnderVoltage)',
  `fan_speed_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '风扇转速状态(Normal/Abnormal)',
  `cont_work_period` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备持续运行时长(如365天12小时)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_equ_gather_equ_id`(`equ_id` ASC) USING BTREE,
  INDEX `idx_equ_gather_gather_time`(`gather_time` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备采集信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_gather
-- ----------------------------
INSERT INTO `equ_gather` VALUES ('1', '12', 3.00, 55.00, NULL, 4.00, 4.00, 4, 1001.00, 1001.00, NULL, NULL, NULL, '2025-09-05 17:32:21', '1', '1', '1', NULL);
INSERT INTO `equ_gather` VALUES ('2', '11', 2.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-09-05 17:33:07', NULL, NULL, NULL, NULL);
INSERT INTO `equ_gather` VALUES ('4554223d-890d-4622-ac83-c328b9100271', '12', 3.00, 55.00, NULL, 6.00, 4.00, 30, 3371.00, 3371.00, NULL, NULL, NULL, '2025-09-05 11:57:15', '1', '1', '0', '326 days, 15:46:15.59');
INSERT INTO `equ_gather` VALUES ('79de8058-c747-40bc-9873-ec60458d113b', '11', 1.00, 31.00, NULL, 4.00, 10.00, 30, 1009.00, 1009.00, NULL, NULL, NULL, '2025-09-05 11:58:43', '1', '1', '1', '40 days, 21:43:15.07');

-- ----------------------------
-- Table structure for equ_interface
-- ----------------------------
DROP TABLE IF EXISTS `equ_interface`;
CREATE TABLE `equ_interface`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '主键',
  `equ_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备 ID',
  `gather_time` timestamp NULL DEFAULT NULL COMMENT '采集时间',
  `running` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '端口运行与否(UP/DOWN(true/false))',
  `rate` int NULL DEFAULT NULL COMMENT '传输速率(Mbps)',
  `commuicate_mode` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '通信模式字典值(null/half/auto)',
  `out_flow` bigint NULL DEFAULT NULL COMMENT '出方向流量(bps)',
  `in_flow` bigint NULL DEFAULT NULL COMMENT '入方向流量(bps)',
  `in_bandwidth` decimal(10, 2) NULL DEFAULT NULL COMMENT '入方向带宽占有率(%)',
  `loss_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '丢包率(%)',
  `error_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '错包率(%)',
  `equ_gather_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '采集关联外键',
  `interface_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '接口id',
  `out_bandwidth` decimal(10, 2) NULL DEFAULT NULL COMMENT '出方向带宽占有率(%)'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '端口运行状态表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_interface
-- ----------------------------

-- ----------------------------
-- Table structure for equ_manu
-- ----------------------------
DROP TABLE IF EXISTS `equ_manu`;
CREATE TABLE `equ_manu`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '厂商ID',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '厂商名称',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '厂商简介',
  `contact_by` bigint NULL DEFAULT NULL COMMENT '联系人ID',
  `contact_way` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式',
  `create_by` bigint NULL DEFAULT NULL COMMENT '添加人ID',
  `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加日期',
  `status` tinyint NULL DEFAULT 1 COMMENT '状态(0-禁用,1-启用)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备厂商管理表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_manu
-- ----------------------------
INSERT INTO `equ_manu` VALUES ('3', '华为公司', '华为公司', 5, '55588898863', 5, '2025-08-08 10:19:20', 1);
INSERT INTO `equ_manu` VALUES ('5C5frChBed', '华为', '华为', NULL, NULL, NULL, '2025-08-03 21:01:02', 1);

-- ----------------------------
-- Table structure for equ_oid
-- ----------------------------
DROP TABLE IF EXISTS `equ_oid`;
CREATE TABLE `equ_oid`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `oid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '实际的OID值',
  `param` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'OID参数名称（唯一业务标识）',
  `store_table` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '存储表名',
  `convert_rule` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单个计算规则表达式',
  `combine_group` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '合成组名，多个OID合成字段时相同',
  `is_high_part` tinyint(1) NULL DEFAULT 0 COMMENT '是否是高位字段，合成64位时用，高为1',
  `manufacturer_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '厂商ID',
  `cut_rule` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '截取方式规则（1最后一个非 0 值2 方式 2：每行索引 + 最后词 方式 3：单值  4 路由专用）',
  `multi_param` tinyint(1) NULL DEFAULT 0 COMMENT '是否一个OID对应多个参数',
  `sub_param_group` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '子参数组合组标识',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述说明',
  `unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单位',
  `enabled` tinyint(1) NULL DEFAULT 1 COMMENT '是否启用及启用方式',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'OID配置信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_oid
-- ----------------------------
INSERT INTO `equ_oid` VALUES (1, '1.3.6.1.2.1.1.1', 'version', 'equ_gather', NULL, NULL, 0, '3', '3', 0, NULL, 'version', NULL, 1, '2025-08-09 21:13:14', '2025-08-15 16:32:08');
INSERT INTO `equ_oid` VALUES (2, '1.3.6.1.2.1.1.3', 'cont_work_period', 'equ_gather', NULL, NULL, 0, '3', '3', 0, NULL, 'cont_work_period', NULL, 2, '2025-08-09 19:23:12', '2025-08-16 08:30:56');
INSERT INTO `equ_oid` VALUES (3, '1.3.6.1.4.1.2011.6.157.2.1.1.3', 'equ_veneer', 'equ_veneer', '', NULL, 0, '3', '2', 1, 'veneer_id,veneer_status', 'veneer', NULL, 2, '2025-08-09 19:23:28', '2025-09-01 21:22:44');
INSERT INTO `equ_oid` VALUES (4, '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11', 'temperature', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'temperature', '℃', 2, '2025-08-09 18:38:25', '2025-08-20 17:00:22');
INSERT INTO `equ_oid` VALUES (5, NULL, 'humidity', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'humidity', NULL, 0, '2025-08-09 18:38:32', '2025-08-16 08:31:48');
INSERT INTO `equ_oid` VALUES (6, '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5', 'cpu_utilization', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'cpu_utilization', NULL, 2, '2025-08-09 19:23:52', '2025-08-16 08:31:08');
INSERT INTO `equ_oid` VALUES (7, '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7', 'memory_utilization', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'memory_utilization', NULL, 2, '2025-08-09 19:24:09', '2025-08-16 08:31:11');
INSERT INTO `equ_oid` VALUES (8, '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.5', 'fan_speed', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'fan_speed', 'rpm', 2, '2025-08-09 19:24:25', '2025-08-20 17:00:54');
INSERT INTO `equ_oid` VALUES (9, '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7', 'fan_speed_status', 'equ_gather', '', NULL, 0, '3', '5', 0, NULL, 'fan_speed_status', NULL, 2, '2025-08-09 19:24:37', '2025-09-01 21:22:42');
INSERT INTO `equ_oid` VALUES (10, '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.13', 'vol_in', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'vol_in', 'mV', 2, '2025-08-09 19:24:39', '2025-09-02 17:12:58');
INSERT INTO `equ_oid` VALUES (11, '1.3.6.1.4.1.2011.5.25.31.1.1.18.1.6', 'vol_in_status', 'equ_gather', '', NULL, 0, '3', '6', 0, NULL, 'vol_in_status', NULL, 2, '2025-08-09 19:24:56', '2025-09-01 21:22:45');
INSERT INTO `equ_oid` VALUES (12, '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.13', 'vol_out', 'equ_gather', NULL, NULL, 0, '3', '1', 0, NULL, 'vol_out', 'mV', 2, '2025-08-09 19:24:54', '2025-09-02 19:20:18');
INSERT INTO `equ_oid` VALUES (13, '1.3.6.1.4.1.2011.5.25.31.1.1.18.1.6', 'vol_out_status', 'equ_gather', '', NULL, 0, '3', '6', 0, NULL, 'vol_out_status', NULL, 2, '2025-08-09 19:25:19', '2025-09-01 21:22:47');
INSERT INTO `equ_oid` VALUES (14, '1.3.6.1.2.1.2.2.1.8', 'equ_interface', 'equ_interface', '', NULL, 0, '3', '2', 1, 'interface_id,running', 'running', NULL, 2, '2025-08-09 19:25:28', '2025-09-01 21:22:48');
INSERT INTO `equ_oid` VALUES (15, '1.3.6.1.2.1.2.2.1', 'equ_interface', 'equ_interface', NULL, NULL, 0, '3', '2', 1, 'interface_id,rate', 'rate', NULL, 0, '2025-08-09 19:25:36', '2025-08-16 11:37:14');
INSERT INTO `equ_oid` VALUES (16, '1.3.6.1.4.1.2011.5.25.157.1.1.1.1.14', 'equ_interface', 'equ_interface', '', NULL, 0, '3', '2', 1, 'interface_id,commuicate_mode', 'commuicate_mode', NULL, 2, '2025-08-09 19:25:56', '2025-09-01 21:23:26');
INSERT INTO `equ_oid` VALUES (17, '1.3.6.1.4.1.2011.5.25.41.1.1.1.1.18', 'equ_interface', 'equ_interface', NULL, 'out_flow', 1, '3', '2', 1, 'interface_id,out_flow_h', 'out_flow_h', 'bps', 2, '2025-08-09 20:12:21', '2025-08-20 17:01:32');
INSERT INTO `equ_oid` VALUES (18, '1.3.6.1.4.1.2011.5.25.41.1.1.1.1.16', 'equ_interface', 'equ_interface', NULL, 'in_flow', 1, '3', '2', 1, 'interface_id,in_flow_h', 'in_flow_h', 'bps', 2, '2025-08-09 20:12:09', '2025-08-20 17:01:34');
INSERT INTO `equ_oid` VALUES (19, '1.3.6.1.4.1.2011.5.25.41.1.7.1.1.8', 'equ_interface', 'equ_interface', NULL, NULL, 0, '3', '2', 1, 'interface_id,in_bandwidth', 'in_bandwidth', NULL, 2, '2025-08-09 19:26:10', '2025-08-20 16:06:47');
INSERT INTO `equ_oid` VALUES (20, NULL, 'equ_interface', 'equ_interface', NULL, NULL, 0, '3', '2', 1, 'interface_id,loss_rate', 'loss_rate', NULL, 0, '2025-08-09 18:50:36', '2025-08-16 00:51:03');
INSERT INTO `equ_oid` VALUES (21, NULL, 'equ_interface', 'equ_interface', NULL, NULL, 0, '3', '2', 1, 'interface_id,error_rate', 'error_rate', NULL, 0, '2025-08-09 18:51:09', '2025-08-16 00:51:45');
INSERT INTO `equ_oid` VALUES (22, '1.3.6.1.4.1.2011.5.25.42.3.1.1.1.1.2', 'equ_vlan', 'equ_vlan', NULL, NULL, 0, '3', '2', 1, 'vlan_id,main_id', 'main_id', NULL, 2, '2025-09-03 11:31:30', '2025-09-03 11:32:22');
INSERT INTO `equ_oid` VALUES (23, '1.3.6.1.2.1.4.24.7.1.9	', 'equ_routing', 'equ_routing', NULL, NULL, 0, '3', '4', 1, 'des_address,subnet_mask,next_hop', 'route', NULL, 2, '2025-09-03 11:35:43', '2025-09-03 11:35:45');
INSERT INTO `equ_oid` VALUES (24, '1.3.6.1.4.1.2011.5.25.41.1.1.1.1.17', 'equ_interface', 'equ_interface', NULL, 'out_flow', 0, '3', '2', 1, 'interface_id,out_flow_l', 'out_flow_l', 'bps', 2, '2025-08-09 20:12:13', '2025-08-20 17:01:37');
INSERT INTO `equ_oid` VALUES (25, '1.3.6.1.4.1.2011.5.25.41.1.1.1.1.15', 'equ_interface', 'equ_interface', NULL, 'in_flow', 0, '3', '2', 1, 'interface_id,in_flow_l', 'in_flow_l', 'bps', 2, '2025-08-09 20:11:54', '2025-08-20 17:01:46');
INSERT INTO `equ_oid` VALUES (26, '1.3.6.1.4.1.2011.5.25.41.1.7.1.1.10', 'equ_interface', 'equ_interface', NULL, NULL, 0, '3', '2', 1, 'interface_id,out_bandwidth', 'out_bandwidth', NULL, 2, '2025-08-20 16:06:38', '2025-08-20 16:14:35');

-- ----------------------------
-- Table structure for equ_routing
-- ----------------------------
DROP TABLE IF EXISTS `equ_routing`;
CREATE TABLE `equ_routing`  (
  `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `equ_gather_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备采集id',
  `des_address` varchar(49) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '目的地址 (ipv4/ipv6网段)',
  `subnet_mask` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '子网掩码',
  `next_hop` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '下一跳地址 (ipv4/ipv6网段)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '路由信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_routing
-- ----------------------------

-- ----------------------------
-- Table structure for equ_type
-- ----------------------------
DROP TABLE IF EXISTS `equ_type`;
CREATE TABLE `equ_type`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '类型ID',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备类型名称',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '设备类型简介',
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备图片存储地址',
  `create_by` bigint NULL DEFAULT NULL COMMENT '添加人ID',
  `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加日期',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备类型管理表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_type
-- ----------------------------

-- ----------------------------
-- Table structure for equ_veneer
-- ----------------------------
DROP TABLE IF EXISTS `equ_veneer`;
CREATE TABLE `equ_veneer`  (
  `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `veneer_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备的一个单板的运行id',
  `veneer_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '单板运行状态校准值（Online/Offline/Fault）',
  `equ_gather_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '采集id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_veneer
-- ----------------------------

-- ----------------------------
-- Table structure for equ_vlan
-- ----------------------------
DROP TABLE IF EXISTS `equ_vlan`;
CREATE TABLE `equ_vlan`  (
  `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `equ_gather_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '采集ID',
  `main_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'vlan的ip地址',
  `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'IPv4地址',
  `subnet_mask` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '掩码格式',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创新时间',
  `update_by` bigint NULL DEFAULT NULL COMMENT '更新人',
  `vlan_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of equ_vlan
-- ----------------------------

-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table`  (
  `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '表名称',
  `table_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '表描述',
  `sub_table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '关联子表的表名',
  `sub_table_fk_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '子表关联的外键名',
  `class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '实体类名称',
  `tpl_category` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'crud' COMMENT '使用的模板（crud单表操作 tree树表操作）',
  `tpl_web_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '前端模板类型（element-ui模版 element-plus模版）',
  `package_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成包路径',
  `module_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成模块名',
  `business_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成业务名',
  `function_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成功能名',
  `function_author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成功能作者',
  `gen_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '生成代码方式（0zip压缩包 1自定义路径）',
  `gen_path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '/' COMMENT '生成路径（不填默认项目路径）',
  `options` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '其它生成选项',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`table_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '代码生成业务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of gen_table
-- ----------------------------
INSERT INTO `gen_table` VALUES (36, 'dict_alarm_param', '', NULL, NULL, 'DictAlarmParam', 'crud', '', 'com.ruoyi.system', 'system', 'param', NULL, 'ruoyi', '0', '/', NULL, 'admin', '2025-09-05 18:54:18', '', NULL, NULL);

-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column`  (
  `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_id` bigint NULL DEFAULT NULL COMMENT '归属表编号',
  `column_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '列名称',
  `column_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '列描述',
  `column_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '列类型',
  `java_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'JAVA类型',
  `java_field` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'JAVA字段名',
  `is_pk` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否主键（1是）',
  `is_increment` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否自增（1是）',
  `is_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否必填（1是）',
  `is_insert` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否为插入字段（1是）',
  `is_edit` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否编辑字段（1是）',
  `is_list` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否列表字段（1是）',
  `is_query` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否查询字段（1是）',
  `query_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'EQ' COMMENT '查询方式（等于、不等于、大于、小于、范围）',
  `html_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  `dict_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典类型',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`column_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 391 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of gen_table_column
-- ----------------------------
INSERT INTO `gen_table_column` VALUES (386, 36, 'id', NULL, 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-09-05 18:54:18', '', NULL);
INSERT INTO `gen_table_column` VALUES (387, 36, 'param_name', '参数名称', 'varchar(255)', 'String', 'paramName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2025-09-05 18:54:18', '', NULL);
INSERT INTO `gen_table_column` VALUES (388, 36, 'table_name', '表名', 'varchar(255)', 'String', 'tableName', '0', '0', '0', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2025-09-05 18:54:18', '', NULL);
INSERT INTO `gen_table_column` VALUES (389, 36, 'column_name', '参数名', 'varchar(255)', 'String', 'columnName', '0', '0', '0', '1', '1', '1', '1', 'LIKE', 'input', '', 4, 'admin', '2025-09-05 18:54:18', '', NULL);
INSERT INTO `gen_table_column` VALUES (390, 36, 'param_type', '参数类型', 'varchar(255)', 'String', 'paramType', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 5, 'admin', '2025-09-05 18:54:18', '', NULL);

-- ----------------------------
-- Table structure for internal_message
-- ----------------------------
DROP TABLE IF EXISTS `internal_message`;
CREATE TABLE `internal_message`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` bigint NOT NULL COMMENT '接收用户ID',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '消息内容',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'unread' COMMENT '消息状态(unread/read)',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '站内信表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of internal_message
-- ----------------------------
INSERT INTO `internal_message` VALUES (1, 1, '设备 {equId} 的温度低于阈值', 'unread', '2025-09-05 14:25:10');
INSERT INTO `internal_message` VALUES (2, 1, '设备 11 的温度低于阈值', 'unread', '2025-09-05 14:34:38');
INSERT INTO `internal_message` VALUES (3, 1, '设备 11 的温度低于阈值', 'unread', '2025-09-05 14:43:50');
INSERT INTO `internal_message` VALUES (4, 1, '设备 11 的温度低于阈值', 'unread', '2025-09-05 14:50:28');
INSERT INTO `internal_message` VALUES (5, 1, '设备 12 的风扇转速状态为0\n设备 13 的风扇转速状态为0\n设备 14 的风扇转速状态为0', 'unread', '2025-09-05 17:10:40');
INSERT INTO `internal_message` VALUES (6, 1, '设备 12 的温度45', 'unread', '2025-09-05 17:10:40');
INSERT INTO `internal_message` VALUES (7, 1, '设备 12 的温度不再20-45', 'unread', '2025-09-05 17:16:27');
INSERT INTO `internal_message` VALUES (8, 1, '设备 12 的风扇转速状态为0', 'unread', '2025-09-05 17:16:27');
INSERT INTO `internal_message` VALUES (9, 1, '设备 12 的风扇转速状态为0', 'unread', '2025-09-05 17:17:29');
INSERT INTO `internal_message` VALUES (10, 1, '设备 12 的温度不再20-45', 'unread', '2025-09-05 17:17:29');
INSERT INTO `internal_message` VALUES (11, 1, '设备id为 11 的id为4的端口状态为2\n设备id为 11 的id为6的端口状态为2\n设备id为 11 的id为10的端口状态为2\n设备id为 11 的id为21的端口状态为2\n设备id为 11 的id为22的端口状态为2\n设备id为 11 的id为23的端口状态为2\n设备id为 11 的id为25的端口状态为2\n设备id为 11 的id为26的端口状态为2\n设备id为 11 的id为27的端口状态为2\n设备id为 11 的id为28的端口状态为2\n设备id为 11 的id为29的端口状态为2\n设备id为 11 的id为30的端口状态为2\n设备id为 11 的id为31的端口状态为2\n设备id为 11 的id为32的端口状态为2\n设备id为 11 的id为33的端口状态为2\n设备id为 11 的id为34的端口状态为2\n设备id为 11 的id为35的端口状态为2\n设备id为 11 的id为36的端口状态为2\n设备id为 11 的id为37的端口状态为2\n设备id为 11 的id为38的端口状态为2\n设备id为 11 的id为39的端口状态为2\n设备id为 11 的id为40的端口状态为2\n设备id为 11 的id为41的端口状态为2\n设备id为 11 的id为42的端口状态为2\n设备id为 11 的id为43的端口状态为2\n设备id为 11 的id为44的端口状态为2\n设备id为 11 的id为45的端口状态为2\n设备id为 11 的id为46的端口状态为2\n设备id为 11 的id为47的端口状态为2\n设备id为 11 的id为48的端口状态为2\n设备id为 11 的id为49的端口状态为2\n设备id为 11 的id为50的端口状态为2\n设备id为 11 的id为52的端口状态为2\n设备id为 11 的id为53的端口状态为2\n设备id为 11 的id为56的端口状态为2\n设备id为 11 的id为57的端口状态为2\n设备id为 11 的id为58的端口状态为2\n设备id为 11 的id为60的端口状态为2\n设备id为 11 的id为63的端口状态为2\n设备id为 11 的id为64的端口状态为2\n设备id为 11 的id为65的端口状态为2\n设备id为 11 的id为66的端口状态为2\n设备id为 11 的id为68的端口状态为2\n设备id为 11 的id为69的端口状态为2\n设备id为 11 的id为70的端口状态为2\n设备id为 11 的id为71的端口状态为2\n设备id为 11 的id为72的端口状态为2\n设备id为 11 的id为73的端口状态为2\n设备id为 11 的id为74的端口状态为2\n设备id为 11 的id为75的端口状态为2\n设备id为 11 的id为76的端口状态为2\n设备id为 11 的id为77的端口状态为2\n设备id为 11 的id为78的端口状态为2\n设备id为 11 的id为79的端口状态为2\n设备id为 11 的id为80的端口状态为2\n设备id为 11 的id为81的端口状态为2\n设备id为 11 的id为83的端口状态为2\n设备id为 11 的id为85的端口状态为2\n设备id为 11 的id为88的端口状态为2\n设备id为 11 的id为89的端口状态为2\n设备id为 11 的id为93的端口状态为2\n设备id为 11 的id为94的端口状态为2\n设备id为 11 的id为95的端口状态为2\n设备id为 11 的id为96的端口状态为2\n设备id为 11 的id为98的端口状态为2\n设备id为 11 的id为99的端口状态为2\n设备id为 11 的id为105的端口状态为2\n设备id为 11 的id为106的端口状态为2\n设备id为 11 的id为107的端口状态为2\n设备id为 11 的id为108的端口状态为2\n设备id为 11 的id为109的端口状态为2\n设备id为 11 的id为110的端口状态为2\n设备id为 11 的id为111的端口状态为2\n设备id为 11 的id为112的端口状态为2\n设备id为 11 的id为113的端口状态为2\n设备id为 11 的id为114的端口状态为2\n设备id为 11 的id为115的端口状态为2\n设备id为 11 的id为116的端口状态为2\n设备id为 11 的id为117的端口状态为2\n设备id为 11 的id为118的端口状态为2\n设备id为 11 的id为119的端口状态为2\n设备id为 11 的id为120的端口状态为2\n设备id为 11 的id为121的端口状态为2\n设备id为 11 的id为122的端口状态为2\n设备id为 11 的id为123的端口状态为2\n设备id为 11 的id为124的端口状态为2\n设备id为 11 的id为125的端口状态为2\n设备id为 11 的id为127的端口状态为2\n设备id为 11 的id为128的端口状态为2\n设备id为 11 的id为129的端口状态为2\n设备id为 11 的id为130的端口状态为2\n设备id为 11 的id为132的端口状态为2\n设备id为 11 的id为133的端口状态为2\n设备id为 11 的id为134的端口状态为2\n设备id为 11 的id为135的端口状态为2\n设备id为 11 的id为137的端口状态为2\n设备id为 11 的id为138的端口状态为2\n设备id为 11 的id为141的端口状态为2\n设备id为 11 的id为143的端口状态为2\n设备id为 11 的id为144的端口状态为2\n设备id为 11 的id为145的端口状态为2\n设备id为 11 的id为146的端口状态为2\n设备id为 11 的id为147的端口状态为2\n设备id为 11 的id为148的端口状态为2\n设备id为 11 的id为153的端口状态为2\n设备id为 11 的id为157的端口状态为2\n设备id为 11 的id为164的端口状态为2\n设备id为 11 的id为165的端口状态为2\n设备id为 11 的id为166的端口状态为2\n设备id为 11 的id为169的端口状态为2\n设备id为 11 的id为170的端口状态为2\n设备id为 11 的id为171的端口状态为2\n设备id为 11 的id为172的端口状态为2\n设备id为 11 的id为173的端口状态为2\n设备id为 11 的id为174的端口状态为2\n设备id为 11 的id为175的端口状态为2\n设备id为 11 的id为176的端口状态为2\n设备id为 11 的id为177的端口状态为2\n设备id为 11 的id为178的端口状态为2\n设备id为 11 的id为179的端口状态为2\n设备id为 11 的id为180的端口状态为2\n设备id为 11 的id为181的端口状态为2\n设备id为 11 的id为182的端口状态为2\n设备id为 11 的id为183的端口状态为2\n设备id为 11 的id为184的端口状态为2\n设备id为 11 的id为185的端口状态为2\n设备id为 11 的id为186的端口状态为2\n设备id为 11 的id为187的端口状态为2\n设备id为 11 的id为188的端口状态为2\n设备id为 11 的id为189的端口状态为2\n设备id为 11 的id为190的端口状态为2\n设备id为 11 的id为191的端口状态为2\n设备id为 11 的id为192的端口状态为2\n设备id为 11 的id为193的端口状态为2\n设备id为 11 的id为194的端口状态为2\n设备id为 11 的id为195的端口状态为2\n设备id为 11 的id为196的端口状态为2\n设备id为 11 的id为197的端口状态为2\n设备id为 11 的id为198的端口状态为2\n设备id为 11 的id为199的端口状态为2\n设备id为 11 的id为200的端口状态为2\n设备id为 11 的id为211的端口状态为2\n设备id为 11 的id为212的端口状态为2\n设备id为 11 的id为216的端口状态为2\n设备id为 11 的id为228的端口状态为2\n设备id为 11 的id为230的端口状态为2\n设备id为 11 的id为231的端口状态为2\n设备id为 11 的id为236的端口状态为2\n设备id为 11 的id为239的端口状态为2\n设备id为 11 的id为256的端口状态为2\n设备id为 11 的id为259的端口状态为2\n设备id为 11 的id为260的端口状态为2\n设备id为 11 的id为261的端口状态为2\n设备id为 11 的id为263的端口状态为2\n设备id为 11 的id为264的端口状态为2\n设备id为 11 的id为266的端口状态为2\n设备id为 11 的id为267的端口状态为2\n设备id为 11 的id为268的端口状态为2\n设备id为 11 的id为269的端口状态为2\n设备id为 12 的id为4的端口状态为2\n设备id为 12 的id为7的端口状态为2\n设备id为 12 的id为8的端口状态为2\n设备id为 12 的id为10的端口状态为2\n设备id为 12 的id为12的端口状态为2\n设备id为 12 的id为14的端口状态为2\n设备id为 12 的id为15的端口状态为2\n设备id为 12 的id为16的端口状态为2\n设备id为 12 的id为17的端口状态为2\n设备id为 12 的id为20的端口状态为2\n设备id为 12 的id为22的端口状态为2\n设备id为 12 的id为24的端口状态为2\n设备id为 12 的id为25的端口状态为2\n设备id为 12 的id为26的端口状态为2\n设备id为 12 的id为27的端口状态为2\n设备id为 12 的id为28的端口状态为2\n设备id为 12 的id为29的端口状态为2\n设备id为 12 的id为30的端口状态为2\n设备id为 12 的id为31的端口状态为2\n设备id为 12 的id为32的端口状态为2\n设备id为 12 的id为33的端口状态为2\n设备id为 12 的id为34的端口状态为2\n设备id为 12 的id为35的端口状态为2\n设备id为 12 的id为36的端口状态为2\n设备id为 12 的id为37的端口状态为2\n设备id为 12 的id为38的端口状态为2\n设备id为 12 的id为39的端口状态为2\n设备id为 12 的id为40的端口状态为2\n设备id为 12 的id为41的端口状态为2\n设备id为 12 的id为42的端口状态为2\n设备id为 12 的id为43的端口状态为2\n设备id为 12 的id为44的端口状态为2\n设备id为 12 的id为45的端口状态为2\n设备id为 12 的id为46的端口状态为2\n设备id为 12 的id为47的端口状态为2\n设备id为 12 的id为48的端口状态为2\n设备id为 12 的id为49的端口状态为2\n设备id为 12 的id为50的端口状态为2\n设备id为 12 的id为51的端口状态为2\n设备id为 12 的id为52的端口状态为2\n设备id为 12 的id为53的端口状态为2\n设备id为 12 的id为54的端口状态为2\n设备id为 12 的id为55的端口状态为2\n设备id为 12 的id为56的端口状态为2\n设备id为 12 的id为57的端口状态为2\n设备id为 12 的id为58的端口状态为2\n设备id为 12 的id为59的端口状态为2\n设备id为 12 的id为60的端口状态为2\n设备id为 12 的id为61的端口状态为2\n设备id为 12 的id为62的端口状态为2\n设备id为 12 的id为67的端口状态为2\n设备id为 12 的id为68的端口状态为2\n设备id为 12 的id为69的端口状态为2\n设备id为 12 的id为71的端口状态为2\n设备id为 12 的id为72的端口状态为2\n设备id为 12 的id为73的端口状态为2\n设备id为 12 的id为74的端口状态为2\n设备id为 12 的id为75的端口状态为2\n设备id为 12 的id为76的端口状态为2\n设备id为 12 的id为77的端口状态为2\n设备id为 12 的id为78的端口状态为2\n设备id为 12 的id为80的端口状态为2\n设备id为 12 的id为81的端口状态为2\n设备id为 12 的id为82的端口状态为2\n设备id为 12 的id为83的端口状态为2\n设备id为 12 的id为84的端口状态为2\n设备id为 12 的id为85的端口状态为2\n设备id为 12 的id为86的端口状态为2\n设备id为 12 的id为87的端口状态为2\n设备id为 12 的id为88的端口状态为2\n设备id为 12 的id为89的端口状态为2\n设备id为 12 的id为90的端口状态为2\n设备id为 12 的id为91的端口状态为2\n设备id为 12 的id为92的端口状态为2\n设备id为 12 的id为93的端口状态为2\n设备id为 12 的id为94的端口状态为2\n设备id为 12 的id为95的端口状态为2\n设备id为 12 的id为96的端口状态为2\n设备id为 12 的id为97的端口状态为2\n设备id为 12 的id为98的端口状态为2\n设备id为 12 的id为99的端口状态为2\n设备id为 12 的id为100的端口状态为2\n设备id为 12 的id为101的端口状态为2\n设备id为 12 的id为102的端口状态为2\n设备id为 12 的id为103的端口状态为2\n设备id为 12 的id为104的端口状态为2\n设备id为 12 的id为111的端口状态为2', 'unread', '2025-09-05 17:17:29');
INSERT INTO `internal_message` VALUES (12, 1, '设备 11 的健康度改变', 'unread', '2025-09-05 17:33:53');
INSERT INTO `internal_message` VALUES (13, 1, '设备 12 的温度45\n设备 12 的温度45\n设备 11 的温度45', 'unread', '2025-09-05 18:35:24');
INSERT INTO `internal_message` VALUES (14, 1, '设备 12 的温度45\n设备 12 的温度45\n设备 11 的温度45', 'unread', '2025-09-05 18:37:21');
INSERT INTO `internal_message` VALUES (15, 1, '设备 12 的温度45\n设备 12 的温度45\n设备 11 的温度45', 'unread', '2025-09-05 18:41:59');

-- ----------------------------
-- Table structure for local_knowledge
-- ----------------------------
DROP TABLE IF EXISTS `local_knowledge`;
CREATE TABLE `local_knowledge`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '知识ID',
  `doc_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '文档标题',
  `doc_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '文档简介',
  `file_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件存储路径',
  `created_by` bigint NULL DEFAULT NULL COMMENT '创建人ID',
  `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_by` bigint NULL DEFAULT NULL COMMENT '最后修改人',
  `update_date` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  `doc_status` tinyint NULL DEFAULT 1 COMMENT '状态(0-下架,1-发布)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_knowledge_title`(`doc_title` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '专家知识库' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of local_knowledge
-- ----------------------------

-- ----------------------------
-- Table structure for qa_history
-- ----------------------------
DROP TABLE IF EXISTS `qa_history`;
CREATE TABLE `qa_history`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `user_question` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户问题',
  `system_answer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '系统回答',
  `source_origin` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '来源(web/app等)',
  `created_by` bigint NULL DEFAULT NULL COMMENT '用户ID',
  `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `record_status` tinyint NULL DEFAULT 1 COMMENT '状态(0-删除,1-正常)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_qa_history_create_by`(`created_by` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '问答历史记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qa_history
-- ----------------------------

-- ----------------------------
-- Table structure for schedule_rules
-- ----------------------------
DROP TABLE IF EXISTS `schedule_rules`;
CREATE TABLE `schedule_rules`  (
  `id` int NOT NULL AUTO_INCREMENT,
  `rule_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则名称',
  `rule_type` tinyint NOT NULL COMMENT '规则类型: 0-间隔采集, 1-固定时间采集',
  `frequency` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '采集频率(当rule_type=0时有效)，如\"5分钟\"',
  `fixed_time` time NULL DEFAULT NULL COMMENT '固定采集时间(当rule_type=1时有效)',
  `time_limit_enabled` tinyint(1) NULL DEFAULT 0 COMMENT '是否启用时间限制',
  `start_time` time NULL DEFAULT NULL COMMENT '采集开始时间(当time_limit_enabled=TRUE时有效)',
  `end_time` time NULL DEFAULT NULL COMMENT '采集结束时间(当time_limit_enabled=TRUE时有效)',
  `is_active` tinyint(1) NULL DEFAULT 1 COMMENT '是否启用该规则',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `created_by` bigint NULL DEFAULT NULL COMMENT '创建人',
  `updated_by` bigint NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE,
  CONSTRAINT `chk_rule_type` CHECK (`rule_type` in (0,1))
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '定时采集规则表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of schedule_rules
-- ----------------------------

-- ----------------------------
-- Table structure for sys_alarm_rule
-- ----------------------------
DROP TABLE IF EXISTS `sys_alarm_rule`;
CREATE TABLE `sys_alarm_rule`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则唯一标识',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则名称',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '规则详细描述',
  `equ_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '适用的设备类型ID（逻辑关联equ_base.Equ_type）',
  `param` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '监控参数',
  `max` decimal(10, 2) NULL DEFAULT NULL COMMENT '参数上限阈值',
  `min` decimal(10, 2) NULL DEFAULT NULL COMMENT '参数下限阈值',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人ID',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人ID',
  `status` int(10) UNSIGNED ZEROFILL NULL DEFAULT NULL COMMENT '规则状态(0/1)',
  `priority` tinyint NULL DEFAULT 1 COMMENT '规则优先级(1-5)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_equ_type`(`equ_type` ASC) USING BTREE COMMENT '设备类型索引',
  CONSTRAINT `chk_threshold` CHECK (`max` > `min`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备预警规则系统' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_alarm_rule
-- ----------------------------

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config`  (
  `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '参数配置表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '初始化密码 123456');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '深色主题theme-dark，浅色主题theme-light');
INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '是否开启验证码功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）');
INSERT INTO `sys_config` VALUES (7, '用户管理-初始密码修改策略', 'sys.account.initPasswordModify', '1', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '0：初始密码修改策略关闭，没有任何提示，1：提醒用户，如果未修改初始密码，则在登录时就会提醒修改密码对话框');
INSERT INTO `sys_config` VALUES (8, '用户管理-账号密码更新周期', 'sys.account.passwordValidateDays', '0', 'Y', 'admin', '2025-07-17 15:27:47', '', NULL, '密码更新周期（填写数字，数据初始化值为0不限制，若修改必须为大于0小于365的正整数），如果超过这个周期登录系统时，则在登录时就会提醒修改密码对话框');

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data`  (
  `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int NULL DEFAULT 0 COMMENT '字典排序',
  `dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '字典数据表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '其他操作');
INSERT INTO `sys_dict_data` VALUES (19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '停用状态');

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type`  (
  `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典类型',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`) USING BTREE,
  UNIQUE INDEX `dict_type`(`dict_type` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 101 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2025-07-17 15:27:47', '', NULL, '登录状态列表');

-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job`  (
  `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调用目标字符串',
  `cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT 'cron执行表达式',
  `misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '3' COMMENT '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  `concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '1' COMMENT '是否并发执行（0允许 1禁止）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '状态（0正常 1暂停）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '定时任务调度表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_job
-- ----------------------------
INSERT INTO `sys_job` VALUES (1, '系统默认（无参）', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2025-07-17 15:27:47', '', NULL, '');
INSERT INTO `sys_job` VALUES (2, '系统默认（有参）', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2025-07-17 15:27:47', '', NULL, '');
INSERT INTO `sys_job` VALUES (3, '系统默认（多参）', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2025-07-17 15:27:47', '', NULL, '');

-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log`  (
  `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '日志信息',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '执行状态（0正常 1失败）',
  `exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '异常信息',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_job_log
-- ----------------------------

-- ----------------------------
-- Table structure for sys_location
-- ----------------------------
DROP TABLE IF EXISTS `sys_location`;
CREATE TABLE `sys_location`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '位置唯一标识',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '位置名称',
  `status` int(20) UNSIGNED ZEROFILL NOT NULL DEFAULT 00000000000000000000 COMMENT '状态(0/1)',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人ID',
  `in_charge` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '负责人ID（逻辑关联用户/管理员表）',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_location_in_charge`(`in_charge` ASC) USING BTREE COMMENT '负责人查询索引'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '安装位置管理系统' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_location
-- ----------------------------

-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor`  (
  `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '操作系统',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '提示消息',
  `login_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`) USING BTREE,
  INDEX `idx_sys_logininfor_s`(`status` ASC) USING BTREE,
  INDEX `idx_sys_logininfor_lt`(`login_time` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 204 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '系统访问记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_logininfor
-- ----------------------------
INSERT INTO `sys_logininfor` VALUES (100, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-17 15:43:10');
INSERT INTO `sys_logininfor` VALUES (101, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 15:43:14');
INSERT INTO `sys_logininfor` VALUES (102, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 18:32:51');
INSERT INTO `sys_logininfor` VALUES (103, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 22:00:46');
INSERT INTO `sys_logininfor` VALUES (104, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-17 23:55:34');
INSERT INTO `sys_logininfor` VALUES (105, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 23:55:41');
INSERT INTO `sys_logininfor` VALUES (106, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 23:55:54');
INSERT INTO `sys_logininfor` VALUES (107, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 23:57:25');
INSERT INTO `sys_logininfor` VALUES (108, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-17 23:58:42');
INSERT INTO `sys_logininfor` VALUES (109, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-18 00:02:07');
INSERT INTO `sys_logininfor` VALUES (110, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 00:02:11');
INSERT INTO `sys_logininfor` VALUES (111, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 00:09:53');
INSERT INTO `sys_logininfor` VALUES (112, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 08:27:02');
INSERT INTO `sys_logininfor` VALUES (113, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '用户不存在/密码错误', '2025-07-18 20:05:15');
INSERT INTO `sys_logininfor` VALUES (114, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-18 20:05:22');
INSERT INTO `sys_logininfor` VALUES (115, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 20:05:26');
INSERT INTO `sys_logininfor` VALUES (116, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-18 20:13:08');
INSERT INTO `sys_logininfor` VALUES (117, 'ruoyi', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '用户不存在/密码错误', '2025-07-18 20:13:17');
INSERT INTO `sys_logininfor` VALUES (118, 'ry', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 20:13:52');
INSERT INTO `sys_logininfor` VALUES (119, 'ry', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-18 20:21:39');
INSERT INTO `sys_logininfor` VALUES (120, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 20:21:53');
INSERT INTO `sys_logininfor` VALUES (121, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-18 20:24:48');
INSERT INTO `sys_logininfor` VALUES (122, 'ry', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 20:24:59');
INSERT INTO `sys_logininfor` VALUES (123, 'ry', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-18 20:25:07');
INSERT INTO `sys_logininfor` VALUES (124, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-18 20:25:11');
INSERT INTO `sys_logininfor` VALUES (125, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-18 20:25:17');
INSERT INTO `sys_logininfor` VALUES (126, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 20:25:21');
INSERT INTO `sys_logininfor` VALUES (127, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-18 20:33:04');
INSERT INTO `sys_logininfor` VALUES (128, 'ry', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 20:33:13');
INSERT INTO `sys_logininfor` VALUES (129, 'ry', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '退出成功', '2025-07-18 21:11:39');
INSERT INTO `sys_logininfor` VALUES (130, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-18 21:11:47');
INSERT INTO `sys_logininfor` VALUES (131, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码已失效', '2025-07-19 07:58:29');
INSERT INTO `sys_logininfor` VALUES (132, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-19 07:58:33');
INSERT INTO `sys_logininfor` VALUES (133, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-19 09:46:47');
INSERT INTO `sys_logininfor` VALUES (134, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-19 10:30:36');
INSERT INTO `sys_logininfor` VALUES (135, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-19 10:30:43');
INSERT INTO `sys_logininfor` VALUES (136, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-19 11:47:45');
INSERT INTO `sys_logininfor` VALUES (137, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-19 11:47:50');
INSERT INTO `sys_logininfor` VALUES (138, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-19 12:42:26');
INSERT INTO `sys_logininfor` VALUES (139, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-19 14:10:05');
INSERT INTO `sys_logininfor` VALUES (140, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-20 14:54:55');
INSERT INTO `sys_logininfor` VALUES (141, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-07-20 14:55:03');
INSERT INTO `sys_logininfor` VALUES (142, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-20 14:55:07');
INSERT INTO `sys_logininfor` VALUES (143, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-21 19:32:17');
INSERT INTO `sys_logininfor` VALUES (144, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-21 22:20:51');
INSERT INTO `sys_logininfor` VALUES (145, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-21 23:18:06');
INSERT INTO `sys_logininfor` VALUES (146, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-23 09:56:05');
INSERT INTO `sys_logininfor` VALUES (147, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-07-24 16:47:43');
INSERT INTO `sys_logininfor` VALUES (148, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-01 16:43:14');
INSERT INTO `sys_logininfor` VALUES (149, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-01 21:04:23');
INSERT INTO `sys_logininfor` VALUES (150, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-01 22:43:00');
INSERT INTO `sys_logininfor` VALUES (151, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-01 23:40:43');
INSERT INTO `sys_logininfor` VALUES (152, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-02 14:20:26');
INSERT INTO `sys_logininfor` VALUES (153, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-02 15:44:34');
INSERT INTO `sys_logininfor` VALUES (154, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-02 16:39:04');
INSERT INTO `sys_logininfor` VALUES (155, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-03 17:17:52');
INSERT INTO `sys_logininfor` VALUES (156, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码已失效', '2025-08-03 20:12:20');
INSERT INTO `sys_logininfor` VALUES (157, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-03 20:25:46');
INSERT INTO `sys_logininfor` VALUES (158, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-03 20:59:35');
INSERT INTO `sys_logininfor` VALUES (159, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-03 21:39:09');
INSERT INTO `sys_logininfor` VALUES (160, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-05 15:47:10');
INSERT INTO `sys_logininfor` VALUES (161, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-06 09:34:09');
INSERT INTO `sys_logininfor` VALUES (162, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-06 12:10:25');
INSERT INTO `sys_logininfor` VALUES (163, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-06 15:49:46');
INSERT INTO `sys_logininfor` VALUES (164, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-06 16:49:55');
INSERT INTO `sys_logininfor` VALUES (165, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 08:50:47');
INSERT INTO `sys_logininfor` VALUES (166, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 10:27:53');
INSERT INTO `sys_logininfor` VALUES (167, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 16:08:11');
INSERT INTO `sys_logininfor` VALUES (168, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 17:46:38');
INSERT INTO `sys_logininfor` VALUES (169, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-08-07 18:52:55');
INSERT INTO `sys_logininfor` VALUES (170, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 18:53:01');
INSERT INTO `sys_logininfor` VALUES (171, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 19:39:36');
INSERT INTO `sys_logininfor` VALUES (172, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-07 21:51:45');
INSERT INTO `sys_logininfor` VALUES (173, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-08 10:14:12');
INSERT INTO `sys_logininfor` VALUES (174, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-09 15:44:36');
INSERT INTO `sys_logininfor` VALUES (175, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-09 16:28:11');
INSERT INTO `sys_logininfor` VALUES (176, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-09 20:15:01');
INSERT INTO `sys_logininfor` VALUES (177, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-15 17:32:38');
INSERT INTO `sys_logininfor` VALUES (178, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码已失效', '2025-08-16 08:24:42');
INSERT INTO `sys_logininfor` VALUES (179, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-08-16 08:24:46');
INSERT INTO `sys_logininfor` VALUES (180, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-16 08:24:51');
INSERT INTO `sys_logininfor` VALUES (181, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-16 10:25:03');
INSERT INTO `sys_logininfor` VALUES (182, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-16 12:34:04');
INSERT INTO `sys_logininfor` VALUES (183, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-17 16:24:32');
INSERT INTO `sys_logininfor` VALUES (184, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-17 17:46:14');
INSERT INTO `sys_logininfor` VALUES (185, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-17 18:56:42');
INSERT INTO `sys_logininfor` VALUES (186, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-08-20 16:29:24');
INSERT INTO `sys_logininfor` VALUES (187, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-01 13:58:58');
INSERT INTO `sys_logininfor` VALUES (188, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-01 19:47:16');
INSERT INTO `sys_logininfor` VALUES (189, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-09-02 15:17:47');
INSERT INTO `sys_logininfor` VALUES (190, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-02 15:17:51');
INSERT INTO `sys_logininfor` VALUES (191, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-09-02 19:45:05');
INSERT INTO `sys_logininfor` VALUES (192, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-02 19:45:12');
INSERT INTO `sys_logininfor` VALUES (193, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-03 11:25:04');
INSERT INTO `sys_logininfor` VALUES (194, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码已失效', '2025-09-04 15:39:50');
INSERT INTO `sys_logininfor` VALUES (195, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-04 15:39:54');
INSERT INTO `sys_logininfor` VALUES (196, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-04 19:45:49');
INSERT INTO `sys_logininfor` VALUES (197, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-04 23:08:17');
INSERT INTO `sys_logininfor` VALUES (198, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-05 11:48:03');
INSERT INTO `sys_logininfor` VALUES (199, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-05 14:08:23');
INSERT INTO `sys_logininfor` VALUES (200, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-09-05 16:09:29');
INSERT INTO `sys_logininfor` VALUES (201, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-05 16:09:32');
INSERT INTO `sys_logininfor` VALUES (202, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-05 16:55:17');
INSERT INTO `sys_logininfor` VALUES (203, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-09-08 18:54:24');

-- ----------------------------
-- Table structure for sys_manufacture
-- ----------------------------
DROP TABLE IF EXISTS `sys_manufacture`;
CREATE TABLE `sys_manufacture`  (
  `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '厂商唯一标识',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '厂商名称',
  `status` int(10) UNSIGNED ZEROFILL NOT NULL DEFAULT 0000000000 COMMENT '状态(0/1)',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人ID',
  `contact` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备厂商管理系统' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_manufacture
-- ----------------------------

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '菜单名称',
  `parent_id` bigint NULL DEFAULT 0 COMMENT '父菜单ID',
  `order_num` int NULL DEFAULT 0 COMMENT '显示顺序',
  `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '路由地址',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '组件路径',
  `query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '路由参数',
  `route_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '路由名称',
  `is_frame` int NULL DEFAULT 1 COMMENT '是否为外链（0是 1否）',
  `is_cache` int NULL DEFAULT 0 COMMENT '是否缓存（0缓存 1不缓存）',
  `menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
  `perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 21113 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '菜单权限表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 1, 'system', NULL, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', '2025-07-19 11:42:04', '', NULL, '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 2, 'monitor', NULL, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', '2025-07-19 11:42:04', '', NULL, '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 3, 'tool', NULL, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2025-07-19 11:42:04', '', NULL, '系统工具目录');
INSERT INTO `sys_menu` VALUES (4, '设备管理', 0, 4, 'equipment', NULL, NULL, '', 1, 0, 'M', '0', '0', NULL, 'equipment', 'admin', '2025-08-01 23:28:53', '', NULL, '设备管理目录');
INSERT INTO `sys_menu` VALUES (5, '设备智能检测', 0, 5, 'monitor1', NULL, NULL, '', 1, 0, 'M', '0', '0', NULL, 'monitor1', 'admin', '2025-08-02 16:15:29', '', NULL, '设备智能检测目录');
INSERT INTO `sys_menu` VALUES (6, '异常预警管理', 0, 6, 'exception', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'exception', 'admin', '2025-08-02 16:18:45', '', NULL, '异常预警管理目录');
INSERT INTO `sys_menu` VALUES (7, '智能问答系统', 0, 7, 'intelligent', NULL, NULL, '', 1, 0, 'M', '0', '0', NULL, 'intelligent', 'admin', '2025-08-02 16:20:15', '', NULL, '智能问答系统');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2025-07-19 11:42:04', '', NULL, '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2025-07-19 11:42:04', '', NULL, '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2025-07-19 11:42:04', '', NULL, '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2025-07-19 11:42:04', '', NULL, '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2025-07-19 11:42:04', '', NULL, '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2025-07-19 11:42:04', '', NULL, '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2025-07-19 11:42:04', '', NULL, '日志管理菜单');
INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2025-07-19 11:42:04', '', NULL, '在线用户菜单');
INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2025-07-19 11:42:04', '', NULL, '定时任务菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2025-07-19 11:42:04', '', NULL, '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2025-07-19 11:42:04', '', NULL, '服务监控菜单');
INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', '2025-07-19 11:42:04', '', NULL, '缓存监控菜单');
INSERT INTO `sys_menu` VALUES (114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', '2025-07-19 11:42:04', '', NULL, '缓存列表菜单');
INSERT INTO `sys_menu` VALUES (115, '表单构建', 3, 1, 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2025-07-19 11:42:04', '', NULL, '表单构建菜单');
INSERT INTO `sys_menu` VALUES (116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2025-07-19 11:42:04', '', NULL, '代码生成菜单');
INSERT INTO `sys_menu` VALUES (117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2025-07-19 11:42:04', '', NULL, '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2025-07-19 11:42:04', '', NULL, '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2025-07-19 11:42:04', '', NULL, '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2025-07-19 11:42:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1030, '参数查询', 106, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1031, '参数新增', 106, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1032, '参数修改', 106, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1033, '参数删除', 106, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1034, '参数导出', 106, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1035, '公告查询', 107, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1036, '公告新增', 107, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1037, '公告修改', 107, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1038, '公告删除', 107, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1039, '操作查询', 500, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1040, '操作删除', 500, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1041, '日志导出', 500, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1042, '登录查询', 501, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1043, '登录删除', 501, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1044, '日志导出', 501, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1045, '账户解锁', 501, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1055, '生成查询', 116, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1056, '生成修改', 116, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1057, '生成删除', 116, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1058, '导入代码', 116, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1059, '预览代码', 116, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1060, '生成代码', 116, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2025-07-19 11:42:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2025, '设备档案', 4, 1, 'base', 'equipment/base/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:base:queryByVO', '#', 'admin', '2025-08-01 23:17:55', '', NULL, '设备档案菜单');
INSERT INTO `sys_menu` VALUES (2026, '设备基本信息查询', 2025, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:base:query', '#', 'admin', '2025-08-01 23:17:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2027, '设备基本信息新增', 2025, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:base:add', '#', 'admin', '2025-08-01 23:17:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2028, '设备基本信息修改', 2025, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:base:edit', '#', 'admin', '2025-08-01 23:17:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2029, '设备基本信息删除', 2025, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:base:remove', '#', 'admin', '2025-08-01 23:17:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2030, '设备基本信息导出', 2025, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:base:export', '#', 'admin', '2025-08-01 23:17:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2036, '设备类型管理', 4, 2, 'type', 'equipment/type/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:type:list', '#', 'admin', '2025-08-02 16:02:06', '', NULL, '设备类型管理菜单');
INSERT INTO `sys_menu` VALUES (2037, '设备类型管理查询', 2036, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:type:query', '#', 'admin', '2025-08-02 16:02:06', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2038, '设备类型管理新增', 2036, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:type:add', '#', 'admin', '2025-08-02 16:02:06', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2039, '设备类型管理修改', 2036, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:type:edit', '#', 'admin', '2025-08-02 16:02:06', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2040, '设备类型管理删除', 2036, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:type:remove', '#', 'admin', '2025-08-02 16:02:06', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2041, '设备类型管理导出', 2036, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:type:export', '#', 'admin', '2025-08-02 16:02:06', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2042, '设备厂商管理', 4, 3, 'manu', 'equipment/manu/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:manu:list', '#', 'admin', '2025-08-02 16:05:46', '', NULL, '设备厂商管理菜单');
INSERT INTO `sys_menu` VALUES (2043, '设备厂商管理查询', 2042, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:manu:query', '#', 'admin', '2025-08-02 16:05:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2044, '设备厂商管理新增', 2042, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:manu:add', '#', 'admin', '2025-08-02 16:05:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2045, '设备厂商管理修改', 2042, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:manu:edit', '#', 'admin', '2025-08-02 16:05:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2046, '设备厂商管理删除', 2042, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:manu:remove', '#', 'admin', '2025-08-02 16:05:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2047, '设备厂商管理导出', 2042, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:manu:export', '#', 'admin', '2025-08-02 16:05:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2049, '（多台）设备运行状态', 5, 1, 'multiple', 'equipment/multiple/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:multiple:list', '#', 'admin', '2025-08-02 16:24:09', '', NULL, '设备运行状态菜单');
INSERT INTO `sys_menu` VALUES (2050, '（单台）设备运行信息详情', 5, 2, 'single', 'equipment/single/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:single:list', '#', 'admin', '2025-08-02 16:25:33', '', NULL, '设备运行详情菜单');
INSERT INTO `sys_menu` VALUES (2051, 'AI问答助手', 7, 2, 'ai', 'intelligent/ai/index', NULL, '', 1, 0, 'C', '0', '0', 'intelligent:ai:list', '#', 'admin', '2025-08-02 16:28:50', '', NULL, 'AI问答助手菜单');
INSERT INTO `sys_menu` VALUES (2058, '专家知识库', 7, 1, 'knowledge', 'intelligent/knowledge/index', NULL, '', 1, 0, 'C', '0', '0', 'intelligent:knowledge:list', '#', 'admin', '2025-08-02 16:31:02', '', NULL, '专家知识库菜单');
INSERT INTO `sys_menu` VALUES (2059, '专家知识库查询', 2058, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'intelligent:knowledge:query', '#', 'admin', '2025-08-02 16:31:02', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2060, '专家知识库新增', 2058, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'intelligent:knowledge:add', '#', 'admin', '2025-08-02 16:31:02', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2061, '专家知识库修改', 2058, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'intelligent:knowledge:edit', '#', 'admin', '2025-08-02 16:31:02', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2062, '专家知识库删除', 2058, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'intelligent:knowledge:remove', '#', 'admin', '2025-08-02 16:31:02', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2063, '专家知识库导出', 2058, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'intelligent:knowledge:export', '#', 'admin', '2025-08-02 16:31:02', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2064, '设备信息采集', 4, 4, 'rules', 'equipment/rules/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:rules:list', '#', 'admin', '2025-08-03 21:41:17', '', NULL, '设备信息采集菜单');
INSERT INTO `sys_menu` VALUES (2065, '定时采集规则查询', 2064, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:query', '#', 'admin', '2025-08-03 21:41:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2066, '定时采集规则新增', 2064, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:add', '#', 'admin', '2025-08-03 21:41:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2067, '定时采集规则修改', 2064, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:edit', '#', 'admin', '2025-08-03 21:41:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2068, '定时采集规则删除', 2064, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:remove', '#', 'admin', '2025-08-03 21:41:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2069, '定时采集规则导出', 2064, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:export', '#', 'admin', '2025-08-03 21:41:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2076, 'oid', 4, 5, 'oid', 'equipment/oid/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:oid:list', '#', 'admin', '2025-08-07 16:18:15', '', NULL, '【请填写功能名称】菜单');
INSERT INTO `sys_menu` VALUES (2077, 'oid查询', 2076, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:oid:query', '#', 'admin', '2025-08-07 16:18:15', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2078, 'oid新增', 2076, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:oid:add', '#', 'admin', '2025-08-07 16:18:15', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2079, 'oid修改', 2076, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:oid:edit', '#', 'admin', '2025-08-07 16:18:15', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2080, 'oid删除', 2076, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:oid:remove', '#', 'admin', '2025-08-07 16:18:15', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2081, 'oid导出', 2076, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:oid:export', '#', 'admin', '2025-08-07 16:18:15', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2082, 'vlan管理', 4, 6, 'vlan', 'equipment/vlan/index', NULL, '', 1, 0, 'C', '0', '0', 'equipment:vlan:list', '#', 'admin', '2025-08-15 17:41:26', '', NULL, 'vlan菜单');
INSERT INTO `sys_menu` VALUES (2083, 'vlan查询', 2082, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:vlan:query', '#', 'admin', '2025-08-15 17:41:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2084, 'vlan新增', 2082, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:vlan:add', '#', 'admin', '2025-08-15 17:41:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2085, 'vlan修改', 2082, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:vlan:edit', '#', 'admin', '2025-08-15 17:41:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2086, 'vlan删除', 2082, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:vlan:remove', '#', 'admin', '2025-08-15 17:41:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2087, 'vlan导出', 2082, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:vlan:export', '#', 'admin', '2025-08-15 17:41:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2088, '【预警规则条件】', 6, 1, 'condition', 'system/condition/index', NULL, '', 1, 0, 'C', '0', '0', 'system:condition:list', '#', 'admin', '2025-09-04 15:55:51', '', NULL, '【预警规则条件】菜单');
INSERT INTO `sys_menu` VALUES (2089, '【预警规则条件】查询', 2088, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:condition:query', '#', 'admin', '2025-09-04 15:55:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2090, '【预警规则条件】新增', 2088, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:condition:add', '#', 'admin', '2025-09-04 15:55:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2091, '【预警规则条件】修改', 2088, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:condition:edit', '#', 'admin', '2025-09-04 15:55:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2092, '【预警规则条件】删除', 2088, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:condition:remove', '#', 'admin', '2025-09-04 15:55:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2093, '【预警规则条件】导出', 2088, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:condition:export', '#', 'admin', '2025-09-04 15:55:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2094, '预警信息', 6, 3, 'message', 'system/message/index', NULL, '', 1, 0, 'C', '0', '0', 'system:message:list', '#', 'admin', '2025-09-04 15:56:52', '', NULL, '预警信息菜单');
INSERT INTO `sys_menu` VALUES (2095, '预警信息查询', 2094, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:message:query', '#', 'admin', '2025-09-04 15:56:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2096, '预警信息新增', 2094, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:message:add', '#', 'admin', '2025-09-04 15:56:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2097, '预警信息修改', 2094, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:message:edit', '#', 'admin', '2025-09-04 15:56:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2098, '预警信息删除', 2094, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:message:remove', '#', 'admin', '2025-09-04 15:56:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2099, '预警信息导出', 2094, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:message:export', '#', 'admin', '2025-09-04 15:56:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2100, '【预警规则】', 6, 2, 'rule', 'system/rule/index', NULL, '', 1, 0, 'C', '0', '0', 'system:rule:list', '#', 'admin', '2025-09-04 15:57:54', '', NULL, '【预警规则】菜单');
INSERT INTO `sys_menu` VALUES (2101, '【预警规则】查询', 2100, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:rule:query', '#', 'admin', '2025-09-04 15:57:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2102, '【预警规则】新增', 2100, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:rule:add', '#', 'admin', '2025-09-04 15:57:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2103, '【预警规则】修改', 2100, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:rule:edit', '#', 'admin', '2025-09-04 15:57:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2104, '【预警规则】删除', 2100, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:rule:remove', '#', 'admin', '2025-09-04 15:57:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2105, '【预警规则】导出', 2100, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:rule:export', '#', 'admin', '2025-09-04 15:57:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2106, '【预警参数】', 6, 4, 'param', 'system/param/index', NULL, '', 1, 0, 'C', '0', '0', 'system:param:list', '#', 'admin', '2025-09-04 15:58:49', '', NULL, '【预警参数】菜单');
INSERT INTO `sys_menu` VALUES (2107, '【预警参数】查询', 2106, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:param:query', '#', 'admin', '2025-09-04 15:58:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2108, '【预警参数】新增', 2106, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:param:add', '#', 'admin', '2025-09-04 15:58:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2109, '【预警参数】修改', 2106, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:param:edit', '#', 'admin', '2025-09-04 15:58:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2110, '【预警参数】删除', 2106, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:param:remove', '#', 'admin', '2025-09-04 15:58:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2111, '【预警参数】导出', 2106, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:param:export', '#', 'admin', '2025-09-04 15:58:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2112, '预警规则自编写增加', 2100, 6, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:add', '#', 'admin', '2025-09-04 19:44:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2113, '立即执行预警', 2100, 7, '#', NULL, NULL, '', 1, 0, 'F', '0', '0', 'equipment:rules:execute', '#', 'admin', '2025-09-05 11:40:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2114, '查询预警参数通过表名', 2106, 6, '#', NULL, NULL, '', 1, 0, 'F', '0', '0', 'system:param:byTable', '#', 'admin', '2025-09-05 19:05:11', '', NULL, '');

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice`  (
  `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '公告标题',
  `notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '公告内容',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '通知公告表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_notice
-- ----------------------------
INSERT INTO `sys_notice` VALUES (1, '温馨提醒：2018-07-01 若依新版本发布啦', '2', '新版本内容', '0', 'admin', '2025-07-19 12:56:29', '', NULL, '管理员');
INSERT INTO `sys_notice` VALUES (2, '维护通知：2018-07-01 若依系统凌晨维护', '1', '维护内容', '0', 'admin', '2025-07-19 12:56:29', '', NULL, '管理员');

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log`  (
  `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '模块标题',
  `business_type` int NULL DEFAULT 0 COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '请求方式',
  `operator_type` int NULL DEFAULT 0 COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '操作人员',
  `oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '返回参数',
  `status` int NULL DEFAULT 0 COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
  `cost_time` bigint NULL DEFAULT 0 COMMENT '消耗时间',
  PRIMARY KEY (`oper_id`) USING BTREE,
  INDEX `idx_sys_oper_log_bt`(`business_type` ASC) USING BTREE,
  INDEX `idx_sys_oper_log_s`(`status` ASC) USING BTREE,
  INDEX `idx_sys_oper_log_ot`(`oper_time` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 199 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '操作日志记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
INSERT INTO `sys_oper_log` VALUES (100, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '/system/menu/3', '127.0.0.1', '内网IP', '3', '{\"msg\":\"存在子菜单,不允许删除\",\"code\":601}', 0, NULL, '2025-07-17 15:30:06', 12);
INSERT INTO `sys_oper_log` VALUES (101, '角色管理', 5, 'com.ruoyi.web.controller.system.SysRoleController.export()', 'POST', 1, 'admin', '/system/role/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-07-17 16:41:24', 681);
INSERT INTO `sys_oper_log` VALUES (102, '用户管理', 5, 'com.ruoyi.web.controller.system.SysUserController.export()', 'POST', 1, 'admin', '/system/user/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-07-17 16:41:44', 63);
INSERT INTO `sys_oper_log` VALUES (103, '用户管理', 5, 'com.ruoyi.web.controller.system.SysUserController.export()', 'POST', 1, 'admin', '/system/user/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-07-17 16:58:08', 38);
INSERT INTO `sys_oper_log` VALUES (104, '用户管理', 6, 'com.ruoyi.web.controller.system.SysUserController.importData()', 'POST', 1, 'admin', '/system/user/importData', '127.0.0.1', '内网IP', '{\"updateSupport\":\"0\"}', '{\"msg\":\"恭喜您，数据已全部导入成功！共 1 条，数据如下：<br/>1、账号 xiaohou 导入成功\",\"code\":200}', 0, NULL, '2025-07-17 17:04:17', 246);
INSERT INTO `sys_oper_log` VALUES (105, '用户管理', 3, 'com.ruoyi.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/100', '127.0.0.1', '内网IP', '[100]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 17:04:28', 25);
INSERT INTO `sys_oper_log` VALUES (106, '用户管理', 2, 'com.ruoyi.web.controller.system.SysUserController.edit()', 'PUT', 1, 'admin', '/system/user', '127.0.0.1', '内网IP', '{\"admin\":false,\"avatar\":\"\",\"createBy\":\"admin\",\"createTime\":\"2025-07-17 18:49:17\",\"delFlag\":\"0\",\"email\":\"213456789@qq.com\",\"loginIp\":\"\",\"nickName\":\"hh\",\"params\":{},\"phonenumber\":\"18845678956\",\"roleIds\":[2],\"roles\":[{\"admin\":false,\"dataScope\":\"2\",\"flag\":false,\"menuCheckStrictly\":false,\"params\":{},\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\"}],\"sex\":\"1\",\"status\":\"0\",\"updateBy\":\"admin\",\"userId\":101,\"userName\":\"hh\"}', NULL, 1, '\r\n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_user_post\' doesn\'t exist\r\n### The error may exist in file [D:\\II\\RuoYi-Vue\\ruoyi-system\\target\\classes\\mapper\\system\\SysUserPostMapper.xml]\r\n### The error may involve com.ruoyi.system.mapper.SysUserPostMapper.deleteUserPostByUserId-Inline\r\n### The error occurred while setting parameters\r\n### SQL: delete from sys_user_post where user_id=?\r\n### Cause: java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_user_post\' doesn\'t exist\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_user_post\' doesn\'t exist', '2025-07-17 18:51:15', 91);
INSERT INTO `sys_oper_log` VALUES (107, '用户管理', 2, 'com.ruoyi.web.controller.system.SysUserController.edit()', 'PUT', 1, 'admin', '/system/user', '127.0.0.1', '内网IP', '{\"admin\":false,\"avatar\":\"\",\"createBy\":\"admin\",\"createTime\":\"2025-07-17 18:49:17\",\"delFlag\":\"0\",\"email\":\"213456789@qq.com\",\"loginIp\":\"\",\"nickName\":\"hh\",\"params\":{},\"phonenumber\":\"18845678956\",\"roleIds\":[2],\"roles\":[{\"admin\":false,\"dataScope\":\"2\",\"flag\":false,\"menuCheckStrictly\":false,\"params\":{},\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\"}],\"sex\":\"1\",\"status\":\"0\",\"updateBy\":\"admin\",\"userId\":101,\"userName\":\"hh\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 18:53:37', 64);
INSERT INTO `sys_oper_log` VALUES (108, '用户管理', 2, 'com.ruoyi.web.controller.system.SysUserController.resetPwd()', 'PUT', 1, 'admin', '/system/user/resetPwd', '127.0.0.1', '内网IP', '{\"admin\":false,\"params\":{},\"updateBy\":\"admin\",\"userId\":101}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 18:53:49', 118);
INSERT INTO `sys_oper_log` VALUES (109, '用户管理', 5, 'com.ruoyi.web.controller.system.SysUserController.export()', 'POST', 1, 'admin', '/system/user/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-07-17 18:54:19', 1151);
INSERT INTO `sys_oper_log` VALUES (110, '角色管理', 1, 'com.ruoyi.web.controller.system.SysRoleController.add()', 'POST', 1, 'admin', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[],\"params\":{},\"roleKey\":\"admin\",\"roleName\":\"管理员\",\"roleSort\":2,\"status\":\"0\"}', '{\"msg\":\"新增角色\'管理员\'失败，角色权限已存在\",\"code\":500}', 0, NULL, '2025-07-17 18:57:27', 22);
INSERT INTO `sys_oper_log` VALUES (111, '角色管理', 1, 'com.ruoyi.web.controller.system.SysRoleController.add()', 'POST', 1, 'admin', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createBy\":\"admin\",\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[],\"params\":{},\"roleId\":101,\"roleKey\":\"ii\",\"roleName\":\"管理员\",\"roleSort\":2,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 18:57:51', 40);
INSERT INTO `sys_oper_log` VALUES (112, '角色管理', 2, 'com.ruoyi.web.controller.system.SysRoleController.edit()', 'PUT', 1, 'admin', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createTime\":\"2025-07-17 18:57:51\",\"dataScope\":\"1\",\"delFlag\":\"0\",\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[],\"params\":{},\"roleId\":101,\"roleKey\":\"ii\",\"roleName\":\"管理员\",\"roleSort\":2,\"status\":\"1\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 18:58:10', 44);
INSERT INTO `sys_oper_log` VALUES (113, '角色管理', 2, 'com.ruoyi.web.controller.system.SysRoleController.changeStatus()', 'PUT', 1, 'admin', '/system/role/changeStatus', '127.0.0.1', '内网IP', '{\"admin\":false,\"flag\":false,\"menuCheckStrictly\":false,\"params\":{},\"roleId\":101,\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 18:58:14', 12);
INSERT INTO `sys_oper_log` VALUES (114, '角色管理', 3, 'com.ruoyi.web.controller.system.SysRoleController.remove()', 'DELETE', 1, 'admin', '/system/role/101', '127.0.0.1', '内网IP', '[101]', NULL, 1, '\r\n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_role_dept\' doesn\'t exist\r\n### The error may exist in file [D:\\II\\RuoYi-Vue\\ruoyi-system\\target\\classes\\mapper\\system\\SysRoleDeptMapper.xml]\r\n### The error may involve com.ruoyi.system.mapper.SysRoleDeptMapper.deleteRoleDept-Inline\r\n### The error occurred while setting parameters\r\n### SQL: delete from sys_role_dept where role_id in     (       ?          )\r\n### Cause: java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_role_dept\' doesn\'t exist\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_role_dept\' doesn\'t exist', '2025-07-17 18:58:20', 89);
INSERT INTO `sys_oper_log` VALUES (115, '角色管理', 3, 'com.ruoyi.web.controller.system.SysRoleController.remove()', 'DELETE', 1, 'admin', '/system/role/101', '127.0.0.1', '内网IP', '[101]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 18:59:18', 67);
INSERT INTO `sys_oper_log` VALUES (116, '用户管理', 6, 'com.ruoyi.web.controller.system.SysUserController.importData()', 'POST', 1, 'admin', '/system/user/importData', '127.0.0.1', '内网IP', '{\"updateSupport\":\"0\"}', '{\"msg\":\"恭喜您，数据已全部导入成功！共 1 条，数据如下：<br/>1、账号 55 导入成功\",\"code\":200}', 0, NULL, '2025-07-17 20:25:56', 430);
INSERT INTO `sys_oper_log` VALUES (117, '用户管理', 3, 'com.ruoyi.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/101', '127.0.0.1', '内网IP', '[101]', NULL, 1, '\r\n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_user_post\' doesn\'t exist\r\n### The error may exist in file [D:\\II\\RuoYi-Vue\\ruoyi-system\\target\\classes\\mapper\\system\\SysUserPostMapper.xml]\r\n### The error may involve com.ruoyi.system.mapper.SysUserPostMapper.deleteUserPost-Inline\r\n### The error occurred while setting parameters\r\n### SQL: delete from sys_user_post where user_id in     (       ?          )\r\n### Cause: java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_user_post\' doesn\'t exist\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table \'aiops_sys.sys_user_post\' doesn\'t exist', '2025-07-17 20:26:02', 109);
INSERT INTO `sys_oper_log` VALUES (118, '用户管理', 3, 'com.ruoyi.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/101', '127.0.0.1', '内网IP', '[101]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 20:27:29', 33);
INSERT INTO `sys_oper_log` VALUES (119, '用户管理', 3, 'com.ruoyi.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/102', '127.0.0.1', '内网IP', '[102]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-17 20:27:32', 18);
INSERT INTO `sys_oper_log` VALUES (120, '用户管理', 6, 'com.alops.web.controller.system.SysUserController.importData()', 'POST', 1, 'admin', '/system/user/importData', '127.0.0.1', '内网IP', '{\"updateSupport\":\"0\"}', '{\"msg\":\"恭喜您，数据已全部导入成功！共 1 条，数据如下：<br/>1、账号 55 导入成功\",\"code\":200}', 0, NULL, '2025-07-18 08:27:31', 1055);
INSERT INTO `sys_oper_log` VALUES (121, '用户管理', 3, 'com.alops.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/103', '127.0.0.1', '内网IP', '[103]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 08:27:36', 64);
INSERT INTO `sys_oper_log` VALUES (122, '个人信息', 2, 'com.alops.web.controller.system.SysProfileController.updatePwd()', 'PUT', 1, 'admin', '/system/user/profile/updatePwd', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"修改密码失败，旧密码错误\",\"code\":500}', 0, NULL, '2025-07-18 08:37:27', 128);
INSERT INTO `sys_oper_log` VALUES (123, '个人信息', 2, 'com.alops.web.controller.system.SysProfileController.updatePwd()', 'PUT', 1, 'admin', '/system/user/profile/updatePwd', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 08:38:33', 248);
INSERT INTO `sys_oper_log` VALUES (124, '角色管理', 1, 'com.alops.web.controller.system.SysRoleController.add()', 'POST', 1, 'admin', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createBy\":\"admin\",\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[],\"params\":{},\"roleId\":102,\"roleKey\":\"test\",\"roleName\":\"管理员1\",\"roleSort\":2,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 20:24:09', 27);
INSERT INTO `sys_oper_log` VALUES (125, '角色管理', 2, 'com.alops.web.controller.system.SysRoleController.edit()', 'PUT', 1, 'admin', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createTime\":\"2025-07-17 15:27:46\",\"dataScope\":\"2\",\"delFlag\":\"0\",\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[],\"params\":{},\"remark\":\"普通角色\",\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 20:24:40', 18);
INSERT INTO `sys_oper_log` VALUES (126, '用户管理', 1, 'com.alops.web.controller.system.SysUserController.add()', 'POST', 1, 'admin', '/system/user', '127.0.0.1', '内网IP', '{\"admin\":false,\"createBy\":\"admin\",\"email\":\"123456789@qq.com\",\"nickName\":\"hh\",\"params\":{},\"phonenumber\":\"18832145678\",\"remark\":\"测试人员\",\"roleIds\":[2],\"sex\":\"1\",\"status\":\"0\",\"userId\":104,\"userName\":\"hh\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 20:30:14', 124);
INSERT INTO `sys_oper_log` VALUES (127, '用户管理', 3, 'com.alops.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/104', '127.0.0.1', '内网IP', '[104]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 20:31:06', 20);
INSERT INTO `sys_oper_log` VALUES (128, '角色管理', 3, 'com.alops.web.controller.system.SysRoleController.remove()', 'DELETE', 1, 'admin', '/system/role/102', '127.0.0.1', '内网IP', '[102]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 20:31:13', 29);
INSERT INTO `sys_oper_log` VALUES (129, '角色管理', 2, 'com.alops.web.controller.system.SysRoleController.edit()', 'PUT', 1, 'admin', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createTime\":\"2025-07-17 15:27:46\",\"dataScope\":\"2\",\"delFlag\":\"0\",\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[1,100,1000,1001,1002,1003,1004,1005,1006,101,1007,1008,1009,1010,1011,2,109,1046,1047,1048,110,1049,1050,1051,1052,1053,1054,111,112,113,114,500,501,1042,1043,1044,1045],\"params\":{},\"remark\":\"普通角色\",\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 20:32:57', 26);
INSERT INTO `sys_oper_log` VALUES (130, '角色管理', 2, 'com.alops.web.controller.system.SysRoleController.edit()', 'PUT', 1, 'ry', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createTime\":\"2025-07-17 15:27:46\",\"dataScope\":\"2\",\"delFlag\":\"0\",\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[2,109,1046,1047,1048,110,1049,1050,1051,1052,1053,1054,111,112,113,114,500,501,1042,1043,1044,1045],\"params\":{},\"remark\":\"普通角色\",\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\",\"updateBy\":\"ry\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-18 21:11:33', 179);
INSERT INTO `sys_oper_log` VALUES (131, '个人信息', 2, 'com.alops.web.controller.system.SysProfileController.updatePwd()', 'PUT', 1, 'admin', '/system/user/profile/updatePwd', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 07:58:54', 362);
INSERT INTO `sys_oper_log` VALUES (132, '用户管理', 6, 'com.alops.web.controller.system.SysUserController.importData()', 'POST', 1, 'admin', '/system/user/importData', '127.0.0.1', '内网IP', '{\"updateSupport\":\"0\"}', '{\"msg\":\"恭喜您，数据已全部导入成功！共 1 条，数据如下：<br/>1、账号 55 导入成功\",\"code\":200}', 0, NULL, '2025-07-19 08:04:32', 598);
INSERT INTO `sys_oper_log` VALUES (133, '用户管理', 3, 'com.alops.web.controller.system.SysUserController.remove()', 'DELETE', 1, 'admin', '/system/user/105', '127.0.0.1', '内网IP', '[105]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 08:04:39', 47);
INSERT INTO `sys_oper_log` VALUES (134, '用户管理', 5, 'com.alops.web.controller.system.SysUserController.export()', 'POST', 1, 'admin', '/system/user/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-07-19 08:53:11', 901);
INSERT INTO `sys_oper_log` VALUES (135, '菜单管理', 1, 'com.alops.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"system/user/index\",\"createBy\":\"admin\",\"icon\":\"edit\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"检测\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":1,\"path\":\"test\",\"perms\":\"system:user:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 13:51:01', 59);
INSERT INTO `sys_oper_log` VALUES (136, '菜单管理', 3, 'com.alops.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '/system/menu/2000', '127.0.0.1', '内网IP', '2000', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 13:51:32', 36);
INSERT INTO `sys_oper_log` VALUES (137, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"sys_menu\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 14:13:41', 134);
INSERT INTO `sys_oper_log` VALUES (138, '字典类型', 1, 'com.alops.web.controller.system.SysDictTypeController.add()', 'POST', 1, 'admin', '/system/dict/type', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"dictName\":\"a\",\"dictType\":\"a\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 14:17:11', 25);
INSERT INTO `sys_oper_log` VALUES (139, '字典类型', 3, 'com.alops.web.controller.system.SysDictTypeController.remove()', 'DELETE', 1, 'admin', '/system/dict/type/100', '127.0.0.1', '内网IP', '[100]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-19 14:17:21', 29);
INSERT INTO `sys_oper_log` VALUES (140, '通知公告', 1, 'com.alops.web.controller.system.SysNoticeController.add()', 'POST', 1, 'admin', '/system/notice', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"noticeContent\":\"<p>dajiahao</p>\",\"noticeTitle\":\"hh\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-20 14:56:23', 20);
INSERT INTO `sys_oper_log` VALUES (141, '通知公告', 3, 'com.alops.web.controller.system.SysNoticeController.remove()', 'DELETE', 1, 'admin', '/system/notice/10', '127.0.0.1', '内网IP', '[10]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-20 14:56:31', 17);
INSERT INTO `sys_oper_log` VALUES (142, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"sys_menu\"}', NULL, 0, NULL, '2025-07-20 14:57:43', 680);
INSERT INTO `sys_oper_log` VALUES (143, '字典类型', 5, 'com.alops.web.controller.system.SysDictTypeController.export()', 'POST', 1, 'admin', '/system/dict/type/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-07-20 15:01:34', 640);
INSERT INTO `sys_oper_log` VALUES (144, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"sys_menu\"}', NULL, 0, NULL, '2025-07-21 20:07:53', 743);
INSERT INTO `sys_oper_log` VALUES (145, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_base\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-07-23 09:56:45', 130);
INSERT INTO `sys_oper_log` VALUES (146, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_base\"}', NULL, 0, NULL, '2025-07-23 09:56:58', 145);
INSERT INTO `sys_oper_log` VALUES (147, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"alarm_rule,local_knowledge,qa_history,fau_sta,equ_manu\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-01 21:07:42', 420);
INSERT INTO `sys_oper_log` VALUES (148, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/2', '127.0.0.1', '内网IP', '[2]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-01 21:12:01', 37);
INSERT INTO `sys_oper_log` VALUES (149, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/1', '127.0.0.1', '内网IP', '[1]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-01 21:12:04', 25);
INSERT INTO `sys_oper_log` VALUES (150, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_type,equ_gather,equ_interface,equ_base\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-01 21:12:54', 283);
INSERT INTO `sys_oper_log` VALUES (151, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_base,equ_gather,equ_interface,equ_type,equ_manu,alarm_rule,fau_sta,local_knowledge,qa_history\"}', NULL, 0, NULL, '2025-08-01 21:23:48', 1028);
INSERT INTO `sys_oper_log` VALUES (152, '设备档案', 1, 'com.alops.web.controller.equManagement.EquBaseController.add()', 'POST', 1, 'admin', '/equipment/add', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"equType\":\"NETWORK_SWITCH\",\"failureFrequency\":0,\"id\":\"DEV-2025-001\",\"inCharge\":1001,\"installDate\":\"2024-03-20\",\"ip\":\"192.168.1.100\",\"lifeCycle\":5,\"location\":\"LOC-ROOM-101\",\"manufacture\":\"MANU-001\",\"name\":\"核心交换机\",\"params\":{},\"releaseDate\":\"2024-01-15\",\"repairCost\":0,\"repairFrequency\":0,\"serviceTime\":1,\"status\":1,\"updateBy\":\"admin\",\"version\":\"v3.2.1\",\"warranty\":3}', NULL, 1, '\r\n### Error updating database.  Cause: java.sql.SQLException: Incorrect integer value: \'admin\' for column \'create_by\' at row 1\r\n### The error may exist in file [D:\\III\\AIOps_sys\\ALOps_sys_backend\\alops-system\\target\\classes\\mapper\\system\\EquBaseMapper.xml]\r\n### The error may involve com.alops.system.mapper.EquBaseMapper.insertEquBase-Inline\r\n### The error occurred while setting parameters\r\n### SQL: insert into equ_base          ( id,             name,             version,             ip,             manufacture,             location,             equ_type,             in_charge,             release_date,             install_date,             life_cycle,             service_time,             warranty,             failure_frequency,             repair_frequency,             repair_cost,             create_by,                          update_by,                          status )           values ( ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,                          ?,                          ? )\r\n### Cause: java.sql.SQLException: Incorrect integer value: \'admin\' for column \'create_by\' at row 1\n; uncategorized SQLException; SQL state [HY000]; error code [1366]; Incorrect integer value: \'admin\' for column \'create_by\' at row 1; nested exception is java.sql.SQLException: Incorrect integer value: \'admin\' for column \'create_by\' at row 1', '2025-08-01 23:56:02', 145);
INSERT INTO `sys_oper_log` VALUES (153, '设备档案', 1, 'com.alops.web.controller.equManagement.EquBaseController.add()', 'POST', 1, 'admin', '/equipment/add', '127.0.0.1', '内网IP', '{\"createBy\":\"1\",\"equType\":\"NETWORK_SWITCH\",\"failureFrequency\":0,\"id\":\"DEV-2025-001\",\"inCharge\":1001,\"installDate\":\"2024-03-20\",\"ip\":\"192.168.1.100\",\"lifeCycle\":5,\"location\":\"LOC-ROOM-101\",\"manufacture\":\"MANU-001\",\"name\":\"核心交换机\",\"params\":{},\"releaseDate\":\"2024-01-15\",\"repairCost\":0,\"repairFrequency\":0,\"serviceTime\":1,\"status\":1,\"updateBy\":\"1\",\"version\":\"v3.2.1\",\"warranty\":3}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-02 00:00:22', 17);
INSERT INTO `sys_oper_log` VALUES (154, '设备档案', 1, 'com.alops.web.controller.equManagement.EquBaseController.add()', 'POST', 1, 'admin', '/equipment/add', '127.0.0.1', '内网IP', '{\"createBy\":\"1\",\"equType\":\"NETWORK_SWITCH\",\"failureFrequency\":0,\"id\":\"DEV-2025-001\",\"inCharge\":1001,\"installDate\":\"2024-03-20\",\"ip\":\"192.168.1.100\",\"lifeCycle\":5,\"location\":\"LOC-ROOM-101\",\"manufacture\":\"MANU-001\",\"name\":\"核心交换机\",\"params\":{},\"releaseDate\":\"2024-01-15\",\"repairCost\":0,\"repairFrequency\":0,\"serviceTime\":1,\"status\":1,\"updateBy\":\"1\",\"version\":\"v3.2.1\",\"warranty\":3}', NULL, 1, '\r\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'DEV-2025-001\' for key \'equ_base.PRIMARY\'\r\n### The error may exist in file [D:\\III\\AIOps_sys\\ALOps_sys_backend\\alops-system\\target\\classes\\mapper\\system\\EquBaseMapper.xml]\r\n### The error may involve com.alops.system.mapper.EquBaseMapper.insertEquBase-Inline\r\n### The error occurred while setting parameters\r\n### SQL: insert into equ_base          ( id,             name,             version,             ip,             manufacture,             location,             equ_type,             in_charge,             release_date,             install_date,             life_cycle,             service_time,             warranty,             failure_frequency,             repair_frequency,             repair_cost,             create_by,                          update_by,                          status )           values ( ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,             ?,                          ?,                          ? )\r\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'DEV-2025-001\' for key \'equ_base.PRIMARY\'\n; Duplicate entry \'DEV-2025-001\' for key \'equ_base.PRIMARY\'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'DEV-2025-001\' for key \'equ_base.PRIMARY\'', '2025-08-02 00:00:24', 16);
INSERT INTO `sys_oper_log` VALUES (155, '设备档案', 1, 'com.alops.web.controller.equManagement.EquBaseController.add()', 'POST', 1, 'admin', '/equipment/add', '127.0.0.1', '内网IP', '{\"createBy\":\"1\",\"equType\":\"NETWORK_SWITCH\",\"failureFrequency\":0,\"id\":\"DEV-2025-001\",\"inCharge\":1001,\"installDate\":\"2024-03-20\",\"ip\":\"192.168.1.100\",\"lifeCycle\":5,\"location\":\"LOC-ROOM-101\",\"manufacture\":\"MANU-001\",\"name\":\"核心交换机\",\"params\":{},\"releaseDate\":\"2024-01-15\",\"repairCost\":0,\"repairFrequency\":0,\"serviceTime\":1,\"status\":1,\"updateBy\":\"1\",\"version\":\"v3.2.1\",\"warranty\":3}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-02 00:01:53', 21);
INSERT INTO `sys_oper_log` VALUES (156, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"schedule_rules\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-03 21:39:42', 174);
INSERT INTO `sys_oper_log` VALUES (157, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"schedule_rules\"}', NULL, 0, NULL, '2025-08-03 21:39:45', 299);
INSERT INTO `sys_oper_log` VALUES (158, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_oid\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-07 16:14:57', 90);
INSERT INTO `sys_oper_log` VALUES (159, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_oid\"}', NULL, 0, NULL, '2025-08-07 16:15:00', 267);
INSERT INTO `sys_oper_log` VALUES (160, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/13', '127.0.0.1', '内网IP', '[13]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-07 18:53:09', 51);
INSERT INTO `sys_oper_log` VALUES (161, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_oid\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-07 18:54:36', 63);
INSERT INTO `sys_oper_log` VALUES (162, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_oid\"}', NULL, 0, NULL, '2025-08-07 18:54:39', 159);
INSERT INTO `sys_oper_log` VALUES (163, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/8', '127.0.0.1', '内网IP', '[8]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-09 15:45:03', 74);
INSERT INTO `sys_oper_log` VALUES (164, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_routing_table,equ_valn,equ_base\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-09 15:45:11', 293);
INSERT INTO `sys_oper_log` VALUES (165, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_base,equ_routing_table,equ_valn\"}', NULL, 0, NULL, '2025-08-09 15:45:18', 843);
INSERT INTO `sys_oper_log` VALUES (166, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_veneer\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-09 20:15:37', 145);
INSERT INTO `sys_oper_log` VALUES (167, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_veneer\"}', NULL, 0, NULL, '2025-08-09 20:15:40', 619);
INSERT INTO `sys_oper_log` VALUES (168, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/14', '127.0.0.1', '内网IP', '[14]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-09 20:21:58', 27);
INSERT INTO `sys_oper_log` VALUES (169, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_oid\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-09 20:22:03', 64);
INSERT INTO `sys_oper_log` VALUES (170, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_oid\"}', NULL, 0, NULL, '2025-08-09 20:22:07', 94);
INSERT INTO `sys_oper_log` VALUES (171, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/19,18,15,16,17,12,11,9,10,3', '127.0.0.1', '内网IP', '[19,18,15,16,17,12,11,9,10,3]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-15 17:32:58', 63);
INSERT INTO `sys_oper_log` VALUES (172, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/4,5,6,7', '127.0.0.1', '内网IP', '[4,5,6,7]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-15 17:36:16', 14);
INSERT INTO `sys_oper_log` VALUES (173, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_routing,equ_interface,equ_vlan,equ_veneer,equ_oid,equ_gather\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-15 17:36:51', 180);
INSERT INTO `sys_oper_log` VALUES (174, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_gather,equ_interface,equ_oid,equ_routing,equ_veneer,equ_vlan\"}', NULL, 0, NULL, '2025-08-15 17:36:54', 716);
INSERT INTO `sys_oper_log` VALUES (175, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/20,21,22,23,24,25', '127.0.0.1', '内网IP', '[20,21,22,23,24,25]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-20 16:29:33', 96);
INSERT INTO `sys_oper_log` VALUES (176, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"equ_interface\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-08-20 16:29:38', 132);
INSERT INTO `sys_oper_log` VALUES (177, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"equ_interface\"}', NULL, 0, NULL, '2025-08-20 16:29:41', 411);
INSERT INTO `sys_oper_log` VALUES (178, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/26', '127.0.0.1', '内网IP', '[26]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 15:40:21', 38);
INSERT INTO `sys_oper_log` VALUES (179, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule,alert_rule_condition,dict_alarm_param,alert_message\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 15:40:55', 164);
INSERT INTO `sys_oper_log` VALUES (180, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"alert_message,alert_rule,alert_rule_condition,dict_alarm_param\"}', NULL, 0, NULL, '2025-09-04 15:40:58', 234);
INSERT INTO `sys_oper_log` VALUES (181, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/27,28,29,30', '127.0.0.1', '内网IP', '[27,28,29,30]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 21:07:18', 48);
INSERT INTO `sys_oper_log` VALUES (182, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule_condition\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 21:07:28', 133);
INSERT INTO `sys_oper_log` VALUES (183, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule_condition\"}', NULL, 0, NULL, '2025-09-04 21:07:32', 418);
INSERT INTO `sys_oper_log` VALUES (184, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/31', '127.0.0.1', '内网IP', '[31]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 21:08:38', 18);
INSERT INTO `sys_oper_log` VALUES (185, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule_condition\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 21:08:43', 80);
INSERT INTO `sys_oper_log` VALUES (186, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule_condition\"}', NULL, 0, NULL, '2025-09-04 21:08:45', 80);
INSERT INTO `sys_oper_log` VALUES (187, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/32', '127.0.0.1', '内网IP', '[32]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 23:08:25', 25);
INSERT INTO `sys_oper_log` VALUES (188, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"internal_message\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 23:10:39', 41);
INSERT INTO `sys_oper_log` VALUES (189, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"internal_message\"}', NULL, 0, NULL, '2025-09-04 23:10:41', 111);
INSERT INTO `sys_oper_log` VALUES (190, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/33', '127.0.0.1', '内网IP', '[33]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 23:17:10', 12);
INSERT INTO `sys_oper_log` VALUES (191, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"sys_user\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-04 23:17:26', 64);
INSERT INTO `sys_oper_log` VALUES (192, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"sys_user\"}', NULL, 0, NULL, '2025-09-04 23:17:27', 50);
INSERT INTO `sys_oper_log` VALUES (193, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/34', '127.0.0.1', '内网IP', '[34]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-05 17:51:57', 39);
INSERT INTO `sys_oper_log` VALUES (194, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-05 17:52:06', 85);
INSERT INTO `sys_oper_log` VALUES (195, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"alert_rule\"}', NULL, 0, NULL, '2025-09-05 17:52:13', 213);
INSERT INTO `sys_oper_log` VALUES (196, '代码生成', 3, 'com.alops.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '/tool/gen/35', '127.0.0.1', '内网IP', '[35]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-05 18:54:08', 30);
INSERT INTO `sys_oper_log` VALUES (197, '代码生成', 6, 'com.alops.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"dict_alarm_param\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-09-05 18:54:18', 76);
INSERT INTO `sys_oper_log` VALUES (198, '代码生成', 8, 'com.alops.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"dict_alarm_param\"}', NULL, 0, NULL, '2025-09-05 18:54:20', 148);

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色权限字符串',
  `role_sort` int NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 103 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, '0', '0', 'admin', '2025-07-17 15:27:46', '', NULL, '超级管理员');
INSERT INTO `sys_role` VALUES (2, '普通角色', 'common', 2, '2', 1, '0', '0', 'admin', '2025-07-17 15:27:46', 'ry', '2025-07-18 21:11:32', '普通角色');
INSERT INTO `sys_role` VALUES (101, '管理员', 'ii', 2, '1', 0, '0', '2', 'admin', '2025-07-17 18:57:51', 'admin', '2025-07-17 18:58:14', NULL);
INSERT INTO `sys_role` VALUES (102, '管理员1', 'test', 2, '1', 1, '0', '2', 'admin', '2025-07-18 20:24:09', '', NULL, NULL);

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `menu_id` bigint NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES (2, 1);
INSERT INTO `sys_role_menu` VALUES (2, 2);
INSERT INTO `sys_role_menu` VALUES (2, 3);
INSERT INTO `sys_role_menu` VALUES (2, 4);
INSERT INTO `sys_role_menu` VALUES (2, 5);
INSERT INTO `sys_role_menu` VALUES (2, 6);
INSERT INTO `sys_role_menu` VALUES (2, 7);
INSERT INTO `sys_role_menu` VALUES (2, 100);
INSERT INTO `sys_role_menu` VALUES (2, 101);
INSERT INTO `sys_role_menu` VALUES (2, 102);
INSERT INTO `sys_role_menu` VALUES (2, 105);
INSERT INTO `sys_role_menu` VALUES (2, 106);
INSERT INTO `sys_role_menu` VALUES (2, 107);
INSERT INTO `sys_role_menu` VALUES (2, 108);
INSERT INTO `sys_role_menu` VALUES (2, 109);
INSERT INTO `sys_role_menu` VALUES (2, 110);
INSERT INTO `sys_role_menu` VALUES (2, 111);
INSERT INTO `sys_role_menu` VALUES (2, 112);
INSERT INTO `sys_role_menu` VALUES (2, 113);
INSERT INTO `sys_role_menu` VALUES (2, 114);
INSERT INTO `sys_role_menu` VALUES (2, 115);
INSERT INTO `sys_role_menu` VALUES (2, 116);
INSERT INTO `sys_role_menu` VALUES (2, 117);
INSERT INTO `sys_role_menu` VALUES (2, 500);
INSERT INTO `sys_role_menu` VALUES (2, 501);
INSERT INTO `sys_role_menu` VALUES (2, 1000);
INSERT INTO `sys_role_menu` VALUES (2, 1001);
INSERT INTO `sys_role_menu` VALUES (2, 1002);
INSERT INTO `sys_role_menu` VALUES (2, 1003);
INSERT INTO `sys_role_menu` VALUES (2, 1004);
INSERT INTO `sys_role_menu` VALUES (2, 1005);
INSERT INTO `sys_role_menu` VALUES (2, 1006);
INSERT INTO `sys_role_menu` VALUES (2, 1007);
INSERT INTO `sys_role_menu` VALUES (2, 1008);
INSERT INTO `sys_role_menu` VALUES (2, 1009);
INSERT INTO `sys_role_menu` VALUES (2, 1010);
INSERT INTO `sys_role_menu` VALUES (2, 1011);
INSERT INTO `sys_role_menu` VALUES (2, 1012);
INSERT INTO `sys_role_menu` VALUES (2, 1013);
INSERT INTO `sys_role_menu` VALUES (2, 1014);
INSERT INTO `sys_role_menu` VALUES (2, 1015);
INSERT INTO `sys_role_menu` VALUES (2, 1025);
INSERT INTO `sys_role_menu` VALUES (2, 1026);
INSERT INTO `sys_role_menu` VALUES (2, 1027);
INSERT INTO `sys_role_menu` VALUES (2, 1028);
INSERT INTO `sys_role_menu` VALUES (2, 1029);
INSERT INTO `sys_role_menu` VALUES (2, 1030);
INSERT INTO `sys_role_menu` VALUES (2, 1031);
INSERT INTO `sys_role_menu` VALUES (2, 1032);
INSERT INTO `sys_role_menu` VALUES (2, 1033);
INSERT INTO `sys_role_menu` VALUES (2, 1034);
INSERT INTO `sys_role_menu` VALUES (2, 1035);
INSERT INTO `sys_role_menu` VALUES (2, 1036);
INSERT INTO `sys_role_menu` VALUES (2, 1037);
INSERT INTO `sys_role_menu` VALUES (2, 1038);
INSERT INTO `sys_role_menu` VALUES (2, 1039);
INSERT INTO `sys_role_menu` VALUES (2, 1040);
INSERT INTO `sys_role_menu` VALUES (2, 1041);
INSERT INTO `sys_role_menu` VALUES (2, 1042);
INSERT INTO `sys_role_menu` VALUES (2, 1043);
INSERT INTO `sys_role_menu` VALUES (2, 1044);
INSERT INTO `sys_role_menu` VALUES (2, 1045);
INSERT INTO `sys_role_menu` VALUES (2, 1046);
INSERT INTO `sys_role_menu` VALUES (2, 1047);
INSERT INTO `sys_role_menu` VALUES (2, 1048);
INSERT INTO `sys_role_menu` VALUES (2, 1049);
INSERT INTO `sys_role_menu` VALUES (2, 1050);
INSERT INTO `sys_role_menu` VALUES (2, 1051);
INSERT INTO `sys_role_menu` VALUES (2, 1052);
INSERT INTO `sys_role_menu` VALUES (2, 1053);
INSERT INTO `sys_role_menu` VALUES (2, 1054);
INSERT INTO `sys_role_menu` VALUES (2, 1055);
INSERT INTO `sys_role_menu` VALUES (2, 1056);
INSERT INTO `sys_role_menu` VALUES (2, 1057);
INSERT INTO `sys_role_menu` VALUES (2, 1058);
INSERT INTO `sys_role_menu` VALUES (2, 1059);
INSERT INTO `sys_role_menu` VALUES (2, 1060);
INSERT INTO `sys_role_menu` VALUES (2, 2025);
INSERT INTO `sys_role_menu` VALUES (2, 2026);
INSERT INTO `sys_role_menu` VALUES (2, 2027);
INSERT INTO `sys_role_menu` VALUES (2, 2028);
INSERT INTO `sys_role_menu` VALUES (2, 2029);
INSERT INTO `sys_role_menu` VALUES (2, 2030);
INSERT INTO `sys_role_menu` VALUES (2, 2036);
INSERT INTO `sys_role_menu` VALUES (2, 2037);
INSERT INTO `sys_role_menu` VALUES (2, 2038);
INSERT INTO `sys_role_menu` VALUES (2, 2039);
INSERT INTO `sys_role_menu` VALUES (2, 2040);
INSERT INTO `sys_role_menu` VALUES (2, 2041);
INSERT INTO `sys_role_menu` VALUES (2, 2042);
INSERT INTO `sys_role_menu` VALUES (2, 2043);
INSERT INTO `sys_role_menu` VALUES (2, 2044);
INSERT INTO `sys_role_menu` VALUES (2, 2045);
INSERT INTO `sys_role_menu` VALUES (2, 2046);
INSERT INTO `sys_role_menu` VALUES (2, 2047);
INSERT INTO `sys_role_menu` VALUES (2, 2049);
INSERT INTO `sys_role_menu` VALUES (2, 2050);
INSERT INTO `sys_role_menu` VALUES (2, 2051);
INSERT INTO `sys_role_menu` VALUES (2, 2058);
INSERT INTO `sys_role_menu` VALUES (2, 2059);
INSERT INTO `sys_role_menu` VALUES (2, 2060);
INSERT INTO `sys_role_menu` VALUES (2, 2061);
INSERT INTO `sys_role_menu` VALUES (2, 2062);
INSERT INTO `sys_role_menu` VALUES (2, 2063);
INSERT INTO `sys_role_menu` VALUES (2, 2064);
INSERT INTO `sys_role_menu` VALUES (2, 2065);
INSERT INTO `sys_role_menu` VALUES (2, 2066);
INSERT INTO `sys_role_menu` VALUES (2, 2067);
INSERT INTO `sys_role_menu` VALUES (2, 2068);
INSERT INTO `sys_role_menu` VALUES (2, 2069);
INSERT INTO `sys_role_menu` VALUES (2, 2076);
INSERT INTO `sys_role_menu` VALUES (2, 2077);
INSERT INTO `sys_role_menu` VALUES (2, 2078);
INSERT INTO `sys_role_menu` VALUES (2, 2079);
INSERT INTO `sys_role_menu` VALUES (2, 2080);
INSERT INTO `sys_role_menu` VALUES (2, 2081);
INSERT INTO `sys_role_menu` VALUES (2, 2082);
INSERT INTO `sys_role_menu` VALUES (2, 2083);
INSERT INTO `sys_role_menu` VALUES (2, 2084);
INSERT INTO `sys_role_menu` VALUES (2, 2085);
INSERT INTO `sys_role_menu` VALUES (2, 2086);
INSERT INTO `sys_role_menu` VALUES (2, 2087);
INSERT INTO `sys_role_menu` VALUES (2, 2088);
INSERT INTO `sys_role_menu` VALUES (2, 2089);
INSERT INTO `sys_role_menu` VALUES (2, 2090);
INSERT INTO `sys_role_menu` VALUES (2, 2091);
INSERT INTO `sys_role_menu` VALUES (2, 2092);
INSERT INTO `sys_role_menu` VALUES (2, 2093);
INSERT INTO `sys_role_menu` VALUES (2, 2094);
INSERT INTO `sys_role_menu` VALUES (2, 2095);
INSERT INTO `sys_role_menu` VALUES (2, 2096);
INSERT INTO `sys_role_menu` VALUES (2, 2097);
INSERT INTO `sys_role_menu` VALUES (2, 2098);
INSERT INTO `sys_role_menu` VALUES (2, 2099);
INSERT INTO `sys_role_menu` VALUES (2, 2100);
INSERT INTO `sys_role_menu` VALUES (2, 2101);
INSERT INTO `sys_role_menu` VALUES (2, 2102);
INSERT INTO `sys_role_menu` VALUES (2, 2103);
INSERT INTO `sys_role_menu` VALUES (2, 2104);
INSERT INTO `sys_role_menu` VALUES (2, 2105);
INSERT INTO `sys_role_menu` VALUES (2, 2106);
INSERT INTO `sys_role_menu` VALUES (2, 2107);
INSERT INTO `sys_role_menu` VALUES (2, 2108);
INSERT INTO `sys_role_menu` VALUES (2, 2109);
INSERT INTO `sys_role_menu` VALUES (2, 2110);
INSERT INTO `sys_role_menu` VALUES (2, 2111);
INSERT INTO `sys_role_menu` VALUES (2, 2112);
INSERT INTO `sys_role_menu` VALUES (2, 2113);
INSERT INTO `sys_role_menu` VALUES (2, 2114);

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户昵称',
  `user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '手机号码',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '头像地址',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '密码',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '账号状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
  `pwd_update_date` datetime NULL DEFAULT NULL COMMENT '密码最后更新时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 106 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$ydWgO9lepuwwJp3hUkiTnO1sVvK45F8lY6Qjx2hL97g4vqcnRAGn.', '0', '0', '127.0.0.1', '2025-09-08 18:54:25', '2025-07-19 07:58:54', 'admin', '2025-07-17 15:27:46', '', '2025-09-08 18:54:24', '管理员');
INSERT INTO `sys_user` VALUES (2, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-07-18 20:33:14', '2025-07-17 15:27:46', 'admin', '2025-07-17 15:27:46', '', '2025-07-18 20:33:13', '测试员');
INSERT INTO `sys_user` VALUES (104, 'hh', 'hh', '00', '123456789@qq.com', '18832145678', '1', '', '$2a$10$No.dbOGRoZtkFsb92VcagObKzSK7VyAyuOlYAn7fUwisv8ZhYS0aK', '0', '2', '', NULL, NULL, 'admin', '2025-07-18 20:30:14', '', NULL, '测试人员');
INSERT INTO `sys_user` VALUES (105, '55', '55', '00', '123456789@qq.com', '18865478932', '1', '', '$2a$10$qu82o3mMs/BGeH5Nq.b5xuJq1.Y7qI.UZMch1RW6PEATm/uLj2b96', '0', '2', '', NULL, NULL, 'admin', '2025-07-19 08:04:32', '', NULL, NULL);

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `role_id` bigint NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户和角色关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (1, 1);
INSERT INTO `sys_user_role` VALUES (2, 2);

SET FOREIGN_KEY_CHECKS = 1;
