济菏高速数据中心代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1695 lines
216 KiB

/*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 80017
Source Host : localhost:3306
Source Schema : athena
Target Server Type : MySQL
Target Server Version : 80017
File Encoding : 65001
Date: 09/05/2023 10:12:08
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for athena_pay_order
-- ----------------------------
DROP TABLE IF EXISTS `athena_pay_order`;
CREATE TABLE `athena_pay_order` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键',
`order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '订单号(唯一)',
`body` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品名称',
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '支付方式',
`money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '金额',
`status` int(1) NOT NULL DEFAULT 0 COMMENT '0:未支付、1:已支付、2:已退款',
`pay_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付单号',
`pay_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付时间',
`refund_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款时间',
`add_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '插入时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 109 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付_订单表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of athena_pay_order
-- ----------------------------
INSERT INTO `athena_pay_order` VALUES (43, 'M16347284875557857', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx20191449395953baeb3f59747317890000', '2021-10-20 19:15:01', NULL, '2021-10-20 19:14:49');
INSERT INTO `athena_pay_order` VALUES (44, 'M16347760804708505', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx2108280220657372ef81d50bb2773d0000', NULL, NULL, '2021-10-21 08:28:02');
INSERT INTO `athena_pay_order` VALUES (45, 'M16347778427341472', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx21085726632613270e835350947c400000', NULL, NULL, '2021-10-21 08:57:26');
INSERT INTO `athena_pay_order` VALUES (46, 'M16347790433041970', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx210917356222228291dc171b21cacb0000', NULL, NULL, '2021-10-21 09:17:35');
INSERT INTO `athena_pay_order` VALUES (47, 'M16347807241084291', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx2109453560935844524f4de1b692f50000', NULL, NULL, '2021-10-21 09:45:35');
INSERT INTO `athena_pay_order` VALUES (48, 'M16347824893751951', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx21101451067448a04bfcc21d5b26150000', NULL, NULL, '2021-10-21 10:14:51');
INSERT INTO `athena_pay_order` VALUES (49, 'M16347826155445046', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx2110170012182217b586f40ff257650000', NULL, NULL, '2021-10-21 10:17:00');
INSERT INTO `athena_pay_order` VALUES (50, 'M16347843259289039', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21104534185777d00f3b785702fc490000', '2021-10-21 10:45:50', NULL, '2021-10-21 10:45:34');
INSERT INTO `athena_pay_order` VALUES (51, 'M16347843720436397', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2110463259393897ed83a3b7e3ffce0000', '2021-10-21 10:46:49', NULL, '2021-10-21 10:46:32');
INSERT INTO `athena_pay_order` VALUES (52, 'M16347844745764158', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21104755808033b172c2e66e5938fa0000', '2021-10-21 10:48:06', NULL, '2021-10-21 10:47:55');
INSERT INTO `athena_pay_order` VALUES (53, 'M16347845314661339', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2110485290108057caba3bc84c2ffb0000', '2021-10-21 10:49:04', NULL, '2021-10-21 10:48:53');
INSERT INTO `athena_pay_order` VALUES (54, 'M16347848824485430', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211054441839566b1ea6159da982040000', '2021-10-21 10:54:56', NULL, '2021-10-21 10:54:44');
INSERT INTO `athena_pay_order` VALUES (55, 'M16347853026237000', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2111014402585882d5845c2ce10fae0000', '2021-10-21 11:01:55', NULL, '2021-10-21 11:01:44');
INSERT INTO `athena_pay_order` VALUES (56, 'M16347854477625255', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211104091674303bd850bd52525f300000', '2021-10-21 11:04:19', NULL, '2021-10-21 11:04:09');
INSERT INTO `athena_pay_order` VALUES (57, 'M16347856192698467', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2111065969654739866de0ac0267fa0000', '2021-10-21 11:07:09', NULL, '2021-10-21 11:06:59');
INSERT INTO `athena_pay_order` VALUES (58, 'M16347857100118284', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211108306312292b96f14ede3636e70000', '2021-10-21 11:08:39', NULL, '2021-10-21 11:08:30');
INSERT INTO `athena_pay_order` VALUES (59, 'M16347867188423501', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21112526617008c8b31c8695839e2c0000', '2021-10-21 11:25:36', NULL, '2021-10-21 11:25:26');
INSERT INTO `athena_pay_order` VALUES (60, 'M16347868025618132', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211126505291238fc681f11fb7a5350000', '2021-10-21 11:26:58', NULL, '2021-10-21 11:26:50');
INSERT INTO `athena_pay_order` VALUES (61, 'M16347868315148177', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21112717123298e0e552fe88d5ccee0000', '2021-10-21 11:27:28', NULL, '2021-10-21 11:27:17');
INSERT INTO `athena_pay_order` VALUES (62, 'M16347869085677812', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21112829234140280f3f1a5b34dbfa0000', '2021-10-21 11:28:41', NULL, '2021-10-21 11:28:29');
INSERT INTO `athena_pay_order` VALUES (63, 'M16347869677962473', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21112935601433b8e195a1153aeb630000', '2021-10-21 11:29:45', NULL, '2021-10-21 11:29:35');
INSERT INTO `athena_pay_order` VALUES (64, 'M16347869767608677', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211130412270311f03a405ada6b4940000', '2021-10-21 11:30:51', NULL, '2021-10-21 11:30:41');
INSERT INTO `athena_pay_order` VALUES (65, 'M16347870813864183', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2111312767757480c0150bc4c30d450000', '2021-10-21 11:31:38', NULL, '2021-10-21 11:31:27');
INSERT INTO `athena_pay_order` VALUES (66, 'M16347870886314267', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2111315190204639d1df7595903e530000', '2021-10-21 11:32:03', NULL, '2021-10-21 11:31:52');
INSERT INTO `athena_pay_order` VALUES (67, 'M16347871128526601', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113233415760e4ded581d0ed80250000', '2021-10-21 11:32:43', NULL, '2021-10-21 11:32:33');
INSERT INTO `athena_pay_order` VALUES (68, 'M16347872452044748', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113408307572acb9191bd760802f0000', '2021-10-21 11:34:18', NULL, '2021-10-21 11:34:08');
INSERT INTO `athena_pay_order` VALUES (69, 'M16347872492387257', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113421875175b7b85c12c693ee9a0000', '2021-10-21 11:34:31', NULL, '2021-10-21 11:34:21');
INSERT INTO `athena_pay_order` VALUES (70, 'M16347874680711988', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113748595103bf9e772b8214d93f0000', '2021-10-21 11:37:58', NULL, '2021-10-21 11:37:48');
INSERT INTO `athena_pay_order` VALUES (71, 'M16347874696161143', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211138083033715143598096e04e660000', '2021-10-21 11:38:18', NULL, '2021-10-21 11:38:08');
INSERT INTO `athena_pay_order` VALUES (72, 'M16347874892843408', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113838484701301b13d64ab633680000', '2021-10-21 11:38:56', NULL, '2021-10-21 11:38:38');
INSERT INTO `athena_pay_order` VALUES (73, 'M16347875581047037', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113918643154e1e5739162ac9dc50000', '2021-10-21 11:39:31', NULL, '2021-10-21 11:39:18');
INSERT INTO `athena_pay_order` VALUES (74, 'M16347875596048064', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx21113946161152f5586e972b1e8ebb0000', '2021-10-21 11:39:56', NULL, '2021-10-21 11:39:46');
INSERT INTO `athena_pay_order` VALUES (75, 'M16347875871134867', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx211139597073549a9f2a5cfa8a79c90000', '2021-10-21 11:40:10', NULL, '2021-10-21 11:39:59');
INSERT INTO `athena_pay_order` VALUES (76, 'M16347876006737374', '接口调试', 'WX_NATIVE', '0.01', 1, 'wx2111401411089834bf80926fd3b8830000', '2021-10-21 11:40:24', NULL, '2021-10-21 11:40:14');
INSERT INTO `athena_pay_order` VALUES (77, 'M16347880629622747', '接口调试', 'WX_NATIVE', '0.15', 1, 'wx21114744623268cd38ace619ffdb550000', '2021-10-21 11:47:54', NULL, '2021-10-21 11:47:44');
INSERT INTO `athena_pay_order` VALUES (78, 'M16348674600896256', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx22095106496208aa43d1113aee3b600000', NULL, NULL, '2021-10-22 09:51:07');
INSERT INTO `athena_pay_order` VALUES (79, 'M16352335993983060', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx26153453198999a4ff1821baefc8620000', NULL, NULL, '2021-10-26 15:34:53');
INSERT INTO `athena_pay_order` VALUES (80, 'M16353180178728490', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx2715002153568788120bab24c391940000', NULL, NULL, '2021-10-27 15:00:21');
INSERT INTO `athena_pay_order` VALUES (81, 'M16359879457788065', '接口调试', 'ALI_WAP', '0.5', 0, NULL, NULL, NULL, '2021-11-04 09:20:13');
INSERT INTO `athena_pay_order` VALUES (82, 'M16359888126357777', '接口调试', 'WX_NATIVE', '0.5', 0, 'wx040920174934348afe13ce07432ce60000', NULL, NULL, '2021-11-04 09:20:17');
INSERT INTO `athena_pay_order` VALUES (83, 'M16360924662624958', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx051408160979674db552c2399ee6950000', NULL, NULL, '2021-11-05 14:08:16');
INSERT INTO `athena_pay_order` VALUES (84, 'M16360924980953679', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx05141446070044f5f72149cc927bf00000', NULL, NULL, '2021-11-05 14:14:46');
INSERT INTO `athena_pay_order` VALUES (85, 'M16360930837532402', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx05141834457117768951777f7e35fe0000', NULL, NULL, '2021-11-05 14:18:34');
INSERT INTO `athena_pay_order` VALUES (86, 'M16360931163608428', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx05141855693474009286e9817d5caa0000', NULL, NULL, '2021-11-05 14:18:55');
INSERT INTO `athena_pay_order` VALUES (87, 'M16360931893591538', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx05141955792546a4333b933cf1d5a60000', NULL, NULL, '2021-11-05 14:19:55');
INSERT INTO `athena_pay_order` VALUES (88, 'M16360931975753502', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx0514202177741190c6305328b467960000', NULL, NULL, '2021-11-05 14:20:21');
INSERT INTO `athena_pay_order` VALUES (89, 'M16360932235641943', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx0514215296942527da42feeedfea690000', NULL, NULL, '2021-11-05 14:21:53');
INSERT INTO `athena_pay_order` VALUES (90, 'M16360933147653343', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx05142240391367d6bf62dcecc416020000', NULL, NULL, '2021-11-05 14:22:40');
INSERT INTO `athena_pay_order` VALUES (91, 'M16360933621856949', '接口调试', 'ALI_QR', '0.01', 0, NULL, NULL, NULL, '2021-11-05 14:22:59');
INSERT INTO `athena_pay_order` VALUES (92, 'M16360933815551328', '接口调试', 'ALI_QR', '0.01', 0, NULL, NULL, NULL, '2021-11-05 14:23:04');
INSERT INTO `athena_pay_order` VALUES (93, 'M16360933929351058', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx051423140091611a442178c2260e7c0000', NULL, NULL, '2021-11-05 14:23:14');
INSERT INTO `athena_pay_order` VALUES (94, 'M16360933957947271', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx051427546514265a8d579743fd6acd0000', NULL, NULL, '2021-11-05 14:27:54');
INSERT INTO `athena_pay_order` VALUES (95, 'M16363580829592570', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx0815544623558725f74a2050153b6f0000', NULL, NULL, '2021-11-08 15:54:46');
INSERT INTO `athena_pay_order` VALUES (96, 'M16369611443256061', '接口调试', 'ALI_PC', '0.01', 0, NULL, NULL, NULL, '2021-11-15 15:25:46');
INSERT INTO `athena_pay_order` VALUES (97, 'M16369616432427987', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx151534174643693bc0496e1c302d5f0000', NULL, NULL, '2021-11-15 15:34:17');
INSERT INTO `athena_pay_order` VALUES (98, 'M16369616576857854', '接口调试', 'WX_BAR', '0.01', 0, NULL, NULL, NULL, '2021-11-15 15:34:28');
INSERT INTO `athena_pay_order` VALUES (99, 'M16369616682481923', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx151534321182857b18f049375194120000', NULL, NULL, '2021-11-15 15:34:32');
INSERT INTO `athena_pay_order` VALUES (100, 'M16369616721785092', '接口调试', 'WX_JSAPI', '0.01', 0, NULL, NULL, NULL, '2021-11-15 15:34:41');
INSERT INTO `athena_pay_order` VALUES (101, 'M16369670420388999', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx15170530508194f76f4e74e5eb11350000', NULL, NULL, '2021-11-15 17:05:30');
INSERT INTO `athena_pay_order` VALUES (102, 'M16369687322974175', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx151732141987172dabf436841a3e4c0000', NULL, NULL, '2021-11-15 17:32:14');
INSERT INTO `athena_pay_order` VALUES (103, 'M16369687411901399', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx15173222601573d15763507c04434e0000', NULL, NULL, '2021-11-15 17:32:22');
INSERT INTO `athena_pay_order` VALUES (104, 'M16396437413723883', '接口调试', 'WX_JSAPI', '0.01', 0, NULL, NULL, NULL, '2021-12-16 16:36:01');
INSERT INTO `athena_pay_order` VALUES (105, 'M16396437617528175', '接口调试', 'WX_H5', '0.01', 0, NULL, NULL, NULL, '2021-12-16 16:36:07');
INSERT INTO `athena_pay_order` VALUES (106, 'M16396437684618845', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx161636131985784ccf399d6dee531b0000', NULL, NULL, '2021-12-16 16:36:13');
INSERT INTO `athena_pay_order` VALUES (107, 'M16396437740586581', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx161636149366220facade608e3f52f0000', NULL, NULL, '2021-12-16 16:36:15');
INSERT INTO `athena_pay_order` VALUES (108, 'M16400727952759675', '接口调试', 'WX_NATIVE', '0.01', 0, 'wx21154642526857017788da540f11f70000', NULL, NULL, '2021-12-21 15:46:43');
-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table` (
`table_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '表名称',
`table_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '表描述',
`sub_table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联子表的表名',
`sub_table_fk_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '子表关联的外键名',
`class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '实体类名称',
`tpl_category` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'crud' COMMENT '使用的模板(crud单表操作 tree树表操作)',
`package_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成包路径',
`module_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成模块名',
`business_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成业务名',
`function_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成功能名',
`function_author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成功能作者',
`gen_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '生成代码方式(0zip压缩包 1自定义路径)',
`gen_path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '/' COMMENT '生成路径(不填默认项目路径)',
`options` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '其它生成选项',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`table_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of gen_table
-- ----------------------------
INSERT INTO `gen_table` VALUES (1, 'sys_dict_data', '字典数据表', NULL, NULL, 'SysDictData', 'crud', 'com.ruoyi.system', 'system', 'data', '字典数据', 'ruoyi', '0', '/', NULL, 'admin', '2021-09-22 10:38:20', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (2, 'pay_order', '支付_订单表', NULL, NULL, 'PayOrder', 'crud', 'com.ruoyi.payment', 'payment', 'order', '支付_订单', 'YangChao', '0', '/', '{}', 'admin', '2021-10-14 08:55:28', '', '2021-10-14 13:50:36', NULL);
INSERT INTO `gen_table` VALUES (5, 'athena_iot_category', '品类', '', '', 'IotCategory', 'tree', 'com.zc.iot', 'iot', 'category', '品类', 'xiepufeng', '0', '/', '{\"treeCode\":\"id\",\"treeName\":\"category_name\",\"treeParentCode\":\"parent_id\",\"parentMenuId\":\"1071\"}', 'admin', '2021-10-27 11:01:20', '', '2022-05-28 13:32:05', NULL);
INSERT INTO `gen_table` VALUES (15, 'athena_iot_product', '产品', NULL, NULL, 'IotProduct', 'crud', 'com.zc.iot', 'iot', 'product', '产品', 'xiepufeng', '0', '/', '{\"parentMenuId\":\"1071\"}', 'admin', '2021-10-27 14:54:09', '', '2022-08-05 11:37:03', NULL);
INSERT INTO `gen_table` VALUES (17, 'athena_iot_group', '分组', '', '', 'IotGroup', 'tree', 'com.zc.iot', 'iot', 'group', '分组', 'xiepufeng', '0', '/', '{\"treeCode\":\"id\",\"treeName\":\"name\",\"treeParentCode\":\"parent_id\",\"parentMenuId\":\"1108\"}', 'admin', '2021-11-16 09:32:48', '', '2021-11-16 17:19:42', NULL);
INSERT INTO `gen_table` VALUES (18, 'notify_config', '通知配置', NULL, NULL, 'NotifyConfig', 'crud', 'com.zc.manager.notify', 'notify', 'config', '通知配置', 'wangjiabao', '0', '/', '{\"parentMenuId\":1162}', 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46', NULL);
INSERT INTO `gen_table` VALUES (19, 'notify_history', '通知记录', NULL, NULL, 'NotifyHistory', 'crud', 'com.zc.manager.notify', 'history', 'history', '通知记录', 'ruoyi', '0', '/', '{}', 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48', NULL);
INSERT INTO `gen_table` VALUES (20, 'notify_template', '通知模版', NULL, NULL, 'NotifyTemplate', 'crud', 'com.zc.manager.notify', 'notify', 'template', '通知模版', 'wangjiabao', '0', '/', '{\"parentMenuId\":1162}', 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:04', NULL);
INSERT INTO `gen_table` VALUES (21, 'iot_job', '任务调度', NULL, NULL, 'IotJob', 'crud', 'com.zc.manager.rule.engine', 'edge-gateway', 'job', '任务调度', 'ruoyi', '0', '/', '{}', 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44', NULL);
-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column` (
`column_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`table_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '归属表编号',
`column_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列名称',
`column_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列描述',
`column_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列类型',
`java_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JAVA类型',
`java_field` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JAVA字段名',
`is_pk` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否主键(1是)',
`is_increment` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否自增(1是)',
`is_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填(1是)',
`is_insert` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否为插入字段(1是)',
`is_edit` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否编辑字段(1是)',
`is_list` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否列表字段(1是)',
`is_query` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否查询字段(1是)',
`query_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'EQ' COMMENT '查询方式(等于、不等于、大于、小于、范围)',
`html_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)',
`dict_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`column_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 207 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of gen_table_column
-- ----------------------------
INSERT INTO `gen_table_column` VALUES (1, '1', 'dict_code', '字典编码', 'bigint(20)', 'Long', 'dictCode', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (2, '1', 'dict_sort', '字典排序', 'int(4)', 'Integer', 'dictSort', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (3, '1', 'dict_label', '字典标签', 'varchar(100)', 'String', 'dictLabel', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (4, '1', 'dict_value', '字典键值', 'varchar(100)', 'String', 'dictValue', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (5, '1', 'dict_type', '字典类型', 'varchar(100)', 'String', 'dictType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 5, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (6, '1', 'css_class', '样式属性(其他样式扩展)', 'varchar(100)', 'String', 'cssClass', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (7, '1', 'list_class', '表格回显样式', 'varchar(100)', 'String', 'listClass', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (8, '1', 'is_default', '是否默认(Y是 N否)', 'char(1)', 'String', 'isDefault', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (9, '1', 'status', '状态(0正常 1停用)', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 9, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (10, '1', 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 10, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (11, '1', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 11, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (12, '1', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 12, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (13, '1', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 13, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (14, '1', 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'textarea', '', 14, 'admin', '2021-09-22 10:38:20', '', NULL);
INSERT INTO `gen_table_column` VALUES (15, '2', 'id', '主键', 'int(10)', 'Integer', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2021-10-14 08:55:28', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (16, '2', 'order_no', '订单号', 'varchar(255)', 'String', 'orderNo', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2021-10-14 08:55:28', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (17, '2', 'body', '商品名称', 'varchar(255)', 'String', 'body', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2021-10-14 08:55:29', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (18, '2', 'money', '金额', 'varchar(255)', 'String', 'money', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2021-10-14 08:55:29', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (19, '2', 'status', '0:未支付、1:已支付', 'int(1)', 'Integer', 'status', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 5, 'admin', '2021-10-14 08:55:29', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (20, '2', 'pay_no', '支付单号', 'varchar(255)', 'String', 'payNo', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2021-10-14 08:55:29', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (21, '2', 'pay_time', '支付时间', 'varchar(255)', 'String', 'payTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin', '2021-10-14 08:55:29', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (22, '2', 'add_time', '插入时间', 'datetime', 'Date', 'addTime', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 8, 'admin', '2021-10-14 08:55:29', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (23, '2', 'type', '支付方式', 'varchar(255)', 'String', 'type', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 4, '', '2021-10-14 13:49:20', '', '2021-10-14 13:50:36');
INSERT INTO `gen_table_column` VALUES (32, '5', 'id', '', 'bigint(20)', 'Long', 'id', '1', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', NULL, 1, 'admin', '2021-10-27 11:01:20', NULL, '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (33, '5', 'category_name', '品类名称', 'varchar(50)', 'String', 'categoryName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 4, 'admin', '2021-10-27 11:01:20', NULL, '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (34, '5', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', NULL, 6, 'admin', '2021-10-27 11:01:20', NULL, '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (35, '5', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', NULL, 7, 'admin', '2021-10-27 11:01:20', NULL, '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (103, '15', 'id', '主键', 'bigint(20)', 'Long', 'id', '1', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', NULL, 1, 'admin', '2021-10-27 14:54:09', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (104, '15', 'product_name', '产品名称', 'varchar(50)', 'String', 'productName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2021-10-27 14:54:10', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (106, '15', 'node_type', '节点类型', 'int(11)', 'Long', 'nodeType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', 'iot_product_node_type', 10, 'admin', '2021-10-27 14:54:10', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (108, '15', 'description', '产品描述', 'varchar(1024)', 'String', 'description', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 11, 'admin', '2021-10-27 14:54:10', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (109, '15', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', NULL, 12, 'admin', '2021-10-27 14:54:10', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (110, '15', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', NULL, 13, 'admin', '2021-10-27 14:54:10', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (127, '17', 'id', NULL, 'bigint(20)', 'Long', 'id', '1', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2021-11-16 09:32:48', '', '2021-11-16 17:19:42');
INSERT INTO `gen_table_column` VALUES (128, '17', 'parent_id', '父组', 'bigint(20)', 'Long', 'parentId', '0', '0', '1', '1', '1', NULL, '1', 'EQ', 'input', '', 2, 'admin', '2021-11-16 09:32:48', '', '2021-11-16 17:19:42');
INSERT INTO `gen_table_column` VALUES (129, '17', 'name', '分组名称', 'varchar(50)', 'String', 'name', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2021-11-16 09:32:49', '', '2021-11-16 17:19:42');
INSERT INTO `gen_table_column` VALUES (130, '17', 'description', '分组描述', 'varchar(1024)', 'String', 'description', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 4, 'admin', '2021-11-16 09:32:49', '', '2021-11-16 17:19:42');
INSERT INTO `gen_table_column` VALUES (131, '17', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 5, 'admin', '2021-11-16 09:32:49', '', '2021-11-16 17:19:42');
INSERT INTO `gen_table_column` VALUES (132, '17', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2021-11-16 09:32:49', '', '2021-11-16 17:19:42');
INSERT INTO `gen_table_column` VALUES (149, '15', 'product_code', '产品编号', 'varchar(50)', 'String', 'productCode', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, '', '2022-05-05 23:57:45', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (154, '5', 'parent_id', '父分类', 'bigint(20)', 'Long', 'parentId', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 3, '', '2022-05-28 11:50:40', NULL, '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (155, '5', 'description', '描述', 'varchar(1024)', 'String', 'description', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'textarea', '', 5, '', '2022-05-28 11:50:40', NULL, '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (156, '5', 'mark', '品类标识', 'varchar(50)', 'String', 'mark', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, '', '2022-05-28 13:29:34', '', '2022-05-28 13:32:05');
INSERT INTO `gen_table_column` VALUES (158, '15', 'transport_protocol', '传输协议', 'int(11)', 'Long', 'transportProtocol', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', 'iot_transport_protocol', 7, '', '2022-05-31 11:07:51', NULL, '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (159, '15', 'category_id', '所属品类', 'bigint(20)', 'Long', 'categoryId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, '', '2022-08-05 11:31:02', '', '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (160, '15', 'protocol_id', '消息协议', 'bigint(20)', 'Long', 'protocolId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 5, '', '2022-08-05 11:31:02', '', '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (161, '15', 'publish_state', '发布状态', 'tinyint(255)', 'Integer', 'publishState', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', 'iot_publish_state', 6, '', '2022-08-05 11:31:02', '', '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (162, '15', 'metadata', '物模型', 'text', 'String', 'metadata', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 8, '', '2022-08-05 11:31:02', '', '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (163, '15', 'configuration', '协议配置', 'text', 'String', 'configuration', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 9, '', '2022-08-05 11:31:02', '', '2022-08-05 11:37:03');
INSERT INTO `gen_table_column` VALUES (164, '18', 'id', '主键', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (165, '18', 'provider', '服务商', 'varchar(255)', 'String', 'provider', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 2, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (166, '18', 'configuration', '其他配置', 'text', 'String', 'configuration', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 3, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (167, '18', 'name', '配置名称', 'varchar(255)', 'String', 'name', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 4, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (168, '18', 'description', '描述', 'varchar(255)', 'String', 'description', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (169, '18', 'type', '通知类型\r\n 语音\r\n 邮件\r\n 钉钉\r\n 短信\r\n 微信\r\n ', 'varchar(255)', 'String', 'type', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 6, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (170, '18', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 7, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (171, '18', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 8, 'admin', '2022-11-10 11:11:24', '', '2022-11-10 11:19:46');
INSERT INTO `gen_table_column` VALUES (172, '19', 'id', '主键', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (173, '19', 'template', '模版内容', 'text', 'String', 'template', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 2, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (174, '19', 'notify_type', '通知类型', 'varchar(32)', 'String', 'notifyType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (175, '19', 'notify_time', '通知时间', 'datetime', 'Date', 'notifyTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'datetime', '', 4, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (176, '19', 'notifier_id', '通知ID(保留)', 'bigint(20)', 'Long', 'notifierId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (177, '19', 'retry_times', '重试次数', 'int(11)', 'Long', 'retryTimes', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (178, '19', 'provider', '服务商', 'varchar(32)', 'String', 'provider', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 7, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (179, '19', 'error_type', '错误类型', 'varchar(1024)', 'String', 'errorType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 8, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (180, '19', 'context', '上下文', 'text', 'String', 'context', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 9, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (181, '19', 'error_stack', '异常栈', 'text', 'String', 'errorStack', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 10, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (182, '19', 'template_id', '所属模版', 'bigint(20)', 'Long', 'templateId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (183, '19', 'state', '通知状态\r\n 成功\r\n 失败', 'varchar(255)', 'String', 'state', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 12, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (184, '19', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 13, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (185, '19', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 14, 'admin', '2022-11-14 11:23:51', '', '2022-11-14 11:28:48');
INSERT INTO `gen_table_column` VALUES (186, '20', 'id', '主键', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (187, '20', 'template', '模版内容(根据服务商不同而不同)', 'text', 'String', 'template', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 2, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (188, '20', 'provider', '通知服务商', 'varchar(255)', 'String', 'provider', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (189, '20', 'name', '模板名称', 'varchar(255)', 'String', 'name', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 4, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (190, '20', 'type', '通知类型', 'varchar(255)', 'String', 'type', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 5, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (191, '20', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (192, '20', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 7, 'admin', '2022-11-14 16:25:50', '', '2022-11-14 16:50:05');
INSERT INTO `gen_table_column` VALUES (193, '21', 'job_id', '任务ID', 'bigint(20)', 'Long', 'jobId', '1', '0', NULL, NULL, NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44');
INSERT INTO `gen_table_column` VALUES (194, '21', 'job_name', '任务名称', 'varchar(64)', 'String', 'jobName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44');
INSERT INTO `gen_table_column` VALUES (195, '21', 'invoke_target', '调用目标字符串', 'text', 'String', 'invokeTarget', '0', '0', '1', '1', '1', NULL, NULL, 'EQ', 'textarea', '', 3, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44');
INSERT INTO `gen_table_column` VALUES (196, '21', 'cron_expression', 'cron执行表达式', 'varchar(255)', 'String', 'cronExpression', '0', '0', '1', '1', '1', '1', NULL, 'EQ', 'input', '', 4, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44');
INSERT INTO `gen_table_column` VALUES (197, '21', 'misfire_policy', '计划执行错误策略', 'varchar(20)', 'String', 'misfirePolicy', '0', '0', '1', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44');
INSERT INTO `gen_table_column` VALUES (198, '21', 'concurrent', '是否并发执行', 'char(1)', 'String', 'concurrent', '0', '0', '1', '1', '1', NULL, NULL, 'EQ', 'input', '', 6, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:44');
INSERT INTO `gen_table_column` VALUES (199, '21', 'status', '状态', 'char(1)', 'String', 'status', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', 'sys_job_status', 7, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (200, '21', 'log_switch', '是否记录日志', 'char(1)', 'String', 'logSwitch', '0', '0', '1', '1', '1', NULL, NULL, 'EQ', 'radio', '', 8, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (201, '21', 'log_rule', '日志记录规则', 'char(1)', 'String', 'logRule', '0', '0', '1', '1', '1', '1', NULL, 'EQ', 'radio', '', 9, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (202, '21', 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', NULL, NULL, NULL, NULL, NULL, 'EQ', 'input', '', 10, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (203, '21', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 11, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (204, '21', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, NULL, NULL, NULL, NULL, 'EQ', 'input', '', 12, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (205, '21', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 13, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
INSERT INTO `gen_table_column` VALUES (206, '21', 'remark', '备注信息', 'varchar(500)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'textarea', '', 14, 'admin', '2023-02-22 10:46:15', '', '2023-02-22 11:11:45');
-- ----------------------------
-- Table structure for iot_category
-- ----------------------------
DROP TABLE IF EXISTS `iot_category`;
CREATE TABLE `iot_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`category_mark` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '品类标识',
`parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父分类',
`category_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '品类名称',
`description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品类' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_category
-- ----------------------------
INSERT INTO `iot_category` VALUES (28, 'customer_premises_equipment', 0, '用户端设备', NULL, '2023-04-11 14:36:10', NULL);
-- ----------------------------
-- Table structure for iot_certificate_info
-- ----------------------------
DROP TABLE IF EXISTS `iot_certificate_info`;
CREATE TABLE `iot_certificate_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证书内容(base64)\r\n 信任库内容(base64)\r\n 证书密码\r\n 信任库密码',
`certificate_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证书类型',
`certificate_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证书名称',
`description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '说明',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '证书信息' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_certificate_info
-- ----------------------------
INSERT INTO `iot_certificate_info` VALUES (1, '{\"keystoreBase64\":\"MIIGqgIBAzCCBmYGCSqGS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z89TfcwoB8KvXwnvLdt/8pVoitXNh5GCODyGO+4/GloBoFYpsBoAG+Jq6dQBR2tisO+/BDr0anYHXPenyTVsCq228IlMs/+wjFBzOKrT0iLS6UfWkftwzcnr3ShRncsrfJ0rhWsTBjE6+2fS/6NVRgmjl6rHXk/bSrL4G1HLjQydsSe2273Nf94LQYwOzAfMAcGBSsOAwIaBBQmDU57ahch51lJIkSphRY9+jo1bwQUc6MwjXnMquDbDa47tjVtA+kEeVYCAgfQ\",\"trustKeyStorePwd\":\"123456\"}', 'PFX', 'test1', '121', '2023-01-12 11:46:54', '2023-01-12 11:47:06');
INSERT INTO `iot_certificate_info` VALUES (2, '{\"keystoreBase64\":\"MIIGqgIBAzCCBmYGCSqGSIb3DQEHAaCCBlcEggZTMIIGTzCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAi3K5Vu2fvWhQICB9AEggKQho8/vM2UqJO6I4ITpJP7XqVjzNr3ex47ojsRXYwzRz1z6OTHFBty3MZF4NGPfjucgT0O3m+T9qeCIJMpaAL21WuoouoO1F9SfkNlbBz0Lv/v0GTw/VT6YXgFKG0xebf5bqY4Uv093J1l9j8sSZoXl7yYCP/bsboMxlSB6vFdr8cWWxjvOh/CxpStmEOVERUJ+wuadgT/NGl70jN/UnFB34TXsI+udkYo2j2tFHHLQA1P55fFaML/hol7nz9gb0iizaWK1y0Hl2UTl22lzJGcilEifGYXSTZqU+rMANHffH24KhHyNQKSMv+tPVlbZg5MZA4lN9D+IQEeMVBoKZd7Pr/F3cRER8sew4ZoWLEvveDVKAvCrjUfRe69B1ChYgYrqtZDcC4XwkkwUALVrcOmVZgbGHyh3ixtudXeRqG3rA7w6cVEgDJ23tSBt2FGKfcgIKxHZrszv33KFGPOtOLdIGrOZNpSrGP2pEMyzocm9FDKN6uCHWW5IlDj0glCTTodmdTCcn0dSgjXzBwmq3elRAsByiRE78eOQlU4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fblMguVDWwbgzKts2whHmAfXgb+Ho/p1E9GG0brXcu8FuvrXyW8dlAxn8ZkQvUQKy2iJk3aRmm4Ifb5GoSjdT/14p/b2fGxJERKWEhHzeGGT4Y/r+D0EVnPe0SwDJ4spxq5CDsNL0nBj9XiiYkXqPfAYPMz4v0vHvDR1zexXq3b+2kCWS7+fIVFWy7A6JSpXEmmpG8fnjE3U3BtQexeQEJgAzNHDdURNPQmZGgRqk2xZhYMrRx0EkxYwBtl+CGL9fUF/U2Y3taHJtzHvUsqNngJbEYLgUdp9Wgc/R1ihE3iauyLFJp6VdkNmLQvroqxI4bXQcdXhpbrCoSkMV0YuKER5Hju54+UMHSaivxaL6elOCZmcg2nrshxETcfc6r239Gc1bz5Z89TfcwoB8KvXwnvLdt/8pVoitXNh5GCODyGO+4/GloBoFYpsBoAG+Jq6dQBR2tisO+/BDr0anYHXPenyTVsCq228IlMs/+wjFBzOKrT0iLS6UfWkftwzcnr3ShRncsrfJ0rhWsTBjE6+2fS/6NVRgmjl6rHXk/bSrL4G1HLjQydsSe2273Nf94LQYwOzAfMAcGBSsOAwIaBBQmDU57ahch51lJIkSphRY9+jo1bwQUc6MwjXnMquDbDa47tjVtA+kEeVYCAgfQ\",\"trustKeyStorePwd\":\"123456\"}', 'PEM', 'test2', '111', '2023-01-12 11:48:06', '2023-01-12 11:48:23');
INSERT INTO `iot_certificate_info` VALUES (3, '{\"trustKeyStoreBase64\":\"MIIGqgIBAzCCBmYGCSqGSIb3DQEHAaCCBlcEggZTMIIGTzCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAi3K5Vu2fvWhQICB9AEggKQho8/vM2UqJO6I4ITpJP7XqVjzNr3ex47ojsRXYwzRz1z6OTHFBty3MZF4NGPfjucgT0O3m+T9qeCIJMpaAL21WuoouoO1F9SfkNlbBz0Lv/v0GTw/VT6YXgFKG0xebf5bqY4Uv093J1l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O+/BDr0anYHXPenyTVsCq228IlMs/+wjFBzOKrT0iLS6UfWkftwzcnr3ShRncsrfJ0rhWsTBjE6+2fS/6NVRgmjl6rHXk/bSrL4G1HLjQydsSe2273Nf94LQYwOzAfMAcGBSsOAwIaBBQmDU57ahch51lJIkSphRY9+jo1bwQUc6MwjXnMquDbDa47tjVtA+kEeVYCAgfQ\",\"trustKeyStorePwd\":\"123456\"}', 'PFX', 'test4', '12313', '2023-01-12 14:02:42', '2023-01-12 14:02:42');
INSERT INTO `iot_certificate_info` VALUES (5, '{}', 'PFX', 'test5', NULL, '2023-01-12 14:02:58', '2023-01-12 14:02:58');
INSERT INTO `iot_certificate_info` VALUES (6, '{}', 'PFX', 'test6', NULL, '2023-01-12 14:03:28', '2023-01-12 14:03:28');
-- ----------------------------
-- Table structure for iot_device
-- ----------------------------
DROP TABLE IF EXISTS `iot_device`;
CREATE TABLE `iot_device` (
`id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
`parent_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '网关设备(网关子设备需要)',
`product_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '所属产品',
`group_id` bigint(20) NULL DEFAULT NULL COMMENT '所属分组(保留)',
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '其他配置',
`device_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备名称',
`device_state` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备状态\r\n离线(offline)\r\n 在线(online)\r\n 未激活(noActive)',
`features` bigint(20) NULL DEFAULT NULL COMMENT '设备特性',
`registry_time` datetime(0) NULL DEFAULT NULL COMMENT '注册时间',
`derive_metadata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '派生物模型',
`address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备地址',
`protocol_standby` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '协议支持',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `parent_id`(`parent_id`) USING BTREE,
INDEX `address`(`address`) USING BTREE,
INDEX `device_state`(`device_state`) USING BTREE,
INDEX `product_id`(`product_id`) USING BTREE,
INDEX `device_name`(`device_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '设备' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_device
-- ----------------------------
INSERT INTO `iot_device` VALUES ('1000', NULL, 'plc', NULL, '{\"tcp_auth_key\":\"admin\"}', 'plc1000', 'online', NULL, '2023-04-28 11:02:15', '{\"properties\":[{\"id\":\"name\",\"name\":\"name\",\"valueType\":{\"expands\":{\"maxLength\":\"10\"},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"string\"},\"expands\":{\"readOnly\":\"true\",\"source\":\"device\"},\"description\":null},{\"id\":\"A1\",\"name\":\"A1\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"double\",\"unit\":\"percent\",\"scale\":2},\"expands\":{\"readOnly\":\"false\",\"source\":\"device\"},\"description\":null},{\"id\":\"temperature\",\"name\":\"temperature\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"double\",\"unit\":\"celsiusDegrees\",\"scale\":2},\"expands\":{\"readOnly\":\"false\",\"source\":\"device\"},\"description\":null}],\"functions\":[{\"id\":\"23452\",\"name\":\"2345\",\"inputs\":[],\"output\":{\"expands\":{\"maxLength\":\"\"},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"string\"},\"description\":null,\"async\":\"false\"}],\"events\":[{\"id\":\"fire_alarm\",\"name\":\"火警\",\"expands\":{\"level\":\"urgent\"},\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[{\"id\":\"lon\",\"name\":\"lon\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"double\",\"scale\":4},\"expands\":{},\"description\":null},{\"id\":\"lat\",\"name\":\"lat\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"double\",\"scale\":6},\"expands\":{},\"description\":null},{\"id\":\"point\",\"name\":\"point\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"int\"},\"expands\":{},\"description\":null},{\"id\":\"b_name\",\"name\":\"b_name\",\"valueType\":{\"expands\":{\"maxLength\":\"11\"},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"string\"},\"expands\":{},\"description\":null}],\"type\":\"object\"},\"description\":null}],\"tags\":[]}', '/0.0.0.0:9000', '{}', NULL, '2023-04-11 16:11:15', '2023-04-28 11:02:12');
INSERT INTO `iot_device` VALUES ('1001', NULL, 'plc', NULL, '{\"handshake_code\":\"46494E530000000C00000000000000000000000B\"}', 'plc1001', 'online', NULL, '2023-04-11 21:57:03', '{\"properties\":[],\"functions\":[],\"events\":[{\"id\":\"fire_alarm\",\"name\":\"fire_alarm\",\"expands\":{\"level\":\"urgent\"},\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[{\"id\":\"lat\",\"name\":\"lat\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"int\"},\"expands\":{},\"description\":null},{\"id\":\"lon\",\"name\":\"lon\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"int\",\"unit\":null},\"expands\":{},\"description\":null},{\"id\":\"point\",\"name\":\"point\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"double\",\"scale\":2},\"expands\":{},\"description\":null}],\"type\":\"object\"},\"description\":null}],\"tags\":[]}', '/0.0.0.0:9001', NULL, NULL, '2023-04-11 21:55:44', NULL);
INSERT INTO `iot_device` VALUES ('1002', NULL, 'plc', NULL, '{\"handshake_code\":\"46494E530000000C00000000000000000000000B\"}', 'plc1002', 'offline', NULL, '2023-04-11 22:10:48', NULL, '/0.0.0.0:9003', NULL, NULL, '2023-04-11 22:09:49', NULL);
INSERT INTO `iot_device` VALUES ('1003', NULL, 'plc', NULL, '{\"handshake_code\":\"46494E530000000C00000000000000000000000B\"}', 'plc1003', 'offline', NULL, '2023-04-19 17:38:21', NULL, '/0.0.0.0:9004', NULL, NULL, '2023-04-11 22:14:56', '2023-04-11 22:52:43');
INSERT INTO `iot_device` VALUES ('1004', NULL, 'plc', NULL, '{\"handshake_code\":\"46494E530000000C00000000000000000000000B\"}', 'plc1004', 'offline', NULL, '2023-04-11 22:54:58', NULL, '/0.0.0.0:9005', NULL, NULL, '2023-04-11 22:52:31', NULL);
INSERT INTO `iot_device` VALUES ('1005', NULL, 'plc', NULL, '{}', 'plc1005', 'offline', NULL, '2023-04-11 23:00:03', '{\"properties\":[{\"id\":\"23423\",\"name\":\"234\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"int\",\"unit\":\"percent\"},\"expands\":{\"readOnly\":\"false\",\"source\":\"device\"},\"description\":null}],\"functions\":[{\"id\":\"w34t\",\"name\":\"435t\",\"inputs\":[],\"output\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"int\",\"unit\":\"percent\"},\"description\":null,\"async\":\"false\"}],\"events\":[],\"tags\":[]}', '/0.0.0.0:9006', NULL, NULL, '2023-04-11 22:57:19', NULL);
INSERT INTO `iot_device` VALUES ('1006', NULL, 'plc2', NULL, '{}', '1006', 'offline', NULL, '2023-05-08 11:00:30', NULL, '', NULL, NULL, '2023-05-08 11:00:12', NULL);
INSERT INTO `iot_device` VALUES ('1007', NULL, 'plc2', NULL, '{}', '1007', 'offline', NULL, '2023-05-08 11:08:00', NULL, '', NULL, NULL, '2023-05-08 11:07:57', NULL);
-- ----------------------------
-- Table structure for iot_device_gateway
-- ----------------------------
DROP TABLE IF EXISTS `iot_device_gateway`;
CREATE TABLE `iot_device_gateway` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`network_id` bigint(20) NOT NULL COMMENT '网络组件id',
`provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '网关类型',
`gateway_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '网关名称',
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '其他配置\r\n 配置信息(根据类型不同而不同)',
`start_state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '启停状态',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `FK_Reference_13`(`network_id`) USING BTREE,
CONSTRAINT `iot_device_gateway_ibfk_1` FOREIGN KEY (`network_id`) REFERENCES `iot_network_config` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '设备网关' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_device_gateway
-- ----------------------------
INSERT INTO `iot_device_gateway` VALUES (13, 101, 'tcp-client-gateway', 'PLC', '{\"protocol\":\"plc\"}', 'disabled', NULL, '2023-04-11 16:22:23', NULL);
INSERT INTO `iot_device_gateway` VALUES (14, 102, 'tcp-client-gateway', 'teat', '{\"protocol\":\"plc\"}', 'enabled', NULL, '2023-04-12 10:27:10', '2023-04-12 10:28:31');
INSERT INTO `iot_device_gateway` VALUES (15, 103, 'tcp-server-gateway', 'tcp服务', '{\"protocol\":\"plc\"}', 'disabled', NULL, '2023-04-24 18:52:12', NULL);
-- ----------------------------
-- Table structure for iot_device_tags
-- ----------------------------
DROP TABLE IF EXISTS `iot_device_tags`;
CREATE TABLE `iot_device_tags` (
`id` bigint(20) NOT NULL COMMENT '主键',
`device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属设备',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签名称',
`type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '数据类型',
`value` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签值',
`key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签key',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '说明',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建 时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_device_tags
-- ----------------------------
-- ----------------------------
-- Table structure for iot_group
-- ----------------------------
DROP TABLE IF EXISTS `iot_group`;
CREATE TABLE `iot_group` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`parent_id` bigint(20) NOT NULL COMMENT '父组',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分组名称',
`description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组描述',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分组' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_group
-- ----------------------------
INSERT INTO `iot_group` VALUES (11, 0, '能耗采集器', NULL, '2021-11-16 17:54:40', NULL);
INSERT INTO `iot_group` VALUES (12, 11, '线路', NULL, '2021-11-16 17:54:49', NULL);
INSERT INTO `iot_group` VALUES (13, 12, '电表', NULL, '2021-11-16 17:54:58', NULL);
INSERT INTO `iot_group` VALUES (14, 0, '济南隧道', NULL, '2021-11-19 09:16:18', NULL);
-- ----------------------------
-- Table structure for iot_job
-- ----------------------------
DROP TABLE IF EXISTS `iot_job`;
CREATE TABLE `iot_job` (
`job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
`job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
`job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'IOT' COMMENT '任务组名',
`invoke_target` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '调用目标字符串',
`cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'cron执行表达式',
`misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
`concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否并发执行(0允许 1禁止)',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态(0正常 1暂停)',
`log_level` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '日志记录等级(1 不记录 2 失败 3 全部 )',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注信息',
PRIMARY KEY (`job_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务调度' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_job
-- ----------------------------
INSERT INTO `iot_job` VALUES (3, 'plc任务调度', 'IOT', '{\"properties\":{},\"functions\":{}}', '0/5 * * * * ?', '1', '1', '1', '3', 'admin', '2023-04-23 18:07:47', NULL, '2023-05-08 15:38:24', NULL);
-- ----------------------------
-- Table structure for iot_job_log
-- ----------------------------
DROP TABLE IF EXISTS `iot_job_log`;
CREATE TABLE `iot_job_log` (
`job_log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
`job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
`job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
`invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
`job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志信息',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '执行状态(0正常 1失败)',
`exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '异常信息',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 658 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_job_log
-- ----------------------------
-- ----------------------------
-- Table structure for iot_network_config
-- ----------------------------
DROP TABLE IF EXISTS `iot_network_config`;
CREATE TABLE `iot_network_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '根据类型不同而不同',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件名称',
`start_state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '启停状态\r\n enabled-启用\r\n disabled-禁用\r\n ',
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'MQTT_SERVER-MQTT服务\r\n MQTT_CLIENT-MQTT客户端\r\n TCP_SERVER-TCP服务\r\n TCP_CLIENT-TCP客户端\r\n \r\n ',
`share_cluster` tinyint(1) NULL DEFAULT 1 COMMENT '集群是否共享配置',
`cluster` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '集群独立配置',
`description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 104 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网络组件' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_network_config
-- ----------------------------
INSERT INTO `iot_network_config` VALUES (101, '{\"addresses\":[{\"clientName\":\"PLC01\",\"host\":\"0.0.0.0\",\"port\":\"9000\"},{\"clientName\":\"PLC02\",\"host\":\"0.0.0.0\",\"port\":\"9001\"},{\"clientName\":\"PLC03\",\"host\":\"0.0.0.0\",\"port\":\"9003\"},{\"clientName\":\"PLC04\",\"host\":\"0.0.0.0\",\"port\":\"9004\"},{\"clientName\":\"PLC05\",\"host\":\"0.0.0.0\",\"port\":\"9005\"},{\"clientName\":\"PLC06\",\"host\":\"0.0.0.0\",\"port\":\"9006\"}],\"host\":\"0.0.0.0\",\"parserConfiguration\":{},\"ssl\":false,\"parserType\":\"direct\"}', 'plc', 'disabled', 'TCP_CLIENT', 1, '[]', NULL, '2023-04-11 16:19:57', '2023-04-11 22:56:38');
INSERT INTO `iot_network_config` VALUES (102, '{\"addresses\":[{\"clientName\":\"test\",\"host\":\"0.0.0.0\",\"port\":\"9000\"},{\"clientName\":\"test2\",\"host\":\"0.0.0.0\",\"port\":\"9001\"}],\"host\":\"0.0.0.0\",\"parserConfiguration\":{},\"parserType\":\"direct\",\"ssl\":false}', 'test', 'enabled', 'TCP_CLIENT', 1, '[]', NULL, '2023-04-12 10:28:00', '2023-04-12 10:49:42');
INSERT INTO `iot_network_config` VALUES (103, '{\"addresses\":[],\"host\":\"0.0.0.0\",\"parserConfiguration\":{},\"port\":\"8989\",\"ssl\":false,\"parserType\":\"direct\"}', 'test1', 'disabled', 'TCP_SERVER', 1, '[]', NULL, '2023-04-24 18:26:42', '2023-04-25 17:52:43');
-- ----------------------------
-- Table structure for iot_product
-- ----------------------------
DROP TABLE IF EXISTS `iot_product`;
CREATE TABLE `iot_product` (
`id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
`product_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '产品名称',
`category_id` bigint(20) NOT NULL COMMENT '所属品类',
`protocol_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '消息协议ID',
`publish_state` tinyint(255) NOT NULL COMMENT '发布状态 1已发布,0未发布',
`transport_protocol` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '传输协议',
`store_policy` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '数据存储策略',
`metadata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '物模型',
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '协议配置',
`device_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备类型\r\ndevice-直连设备:直连物联网平台,但不能挂载子设备的设备。\r\n childrenDevice-网关子设备:作为网关的子设备,由网关代理连接物联网平台。\r\n gateway-网关设备:可以挂载子设备的直连设备。网关可以管理子设备,维持与子设备的拓扑关系,并将该拓扑关系同步到云端。',
`protocol_standby` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '协议支持',
`photo_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片地址',
`description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品描述',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '产品' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_product
-- ----------------------------
INSERT INTO `iot_product` VALUES ('plc', 'PLC', 28, 'plc', 1, 'TCP', 'default-row', '{\"properties\":[],\"functions\":[],\"events\":[{\"id\":\"fire_alarm\",\"name\":\"fire_alarm\",\"expands\":{\"level\":\"urgent\"},\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[{\"id\":\"lat\",\"name\":\"lat\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"float\",\"scale\":1},\"expands\":{},\"description\":null},{\"id\":\"lon\",\"name\":\"lon\",\"valueType\":{\"expands\":{},\"elements\":[{}],\"elementType\":{\"expands\":{},\"elements\":[{}],\"properties\":[]},\"properties\":[],\"type\":\"int\"},\"expands\":{},\"description\":null}],\"type\":\"object\"},\"description\":null}],\"tags\":[]}', '{\"handshake_code\":\"46494E530000000C00000000000000000000000B\"}', 'gateway', NULL, NULL, NULL, '2023-04-11 14:42:58', '2023-05-09 09:40:12');
INSERT INTO `iot_product` VALUES ('plc2', 'plc2', 28, 'plc', 1, 'TCP', 'none', '{\"properties\":[],\"functions\":[],\"events\":[],\"tags\":[]}', NULL, 'gateway', NULL, NULL, NULL, '2023-05-08 10:58:47', '2023-05-08 14:19:14');
-- ----------------------------
-- Table structure for iot_protocol
-- ----------------------------
DROP TABLE IF EXISTS `iot_protocol`;
CREATE TABLE `iot_protocol` (
`id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '协议ID',
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置项',
`protocol_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '协议名称',
`protocol_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '协议类型',
`publish_state` tinyint(4) NOT NULL COMMENT '发布状态\r\n0-未发布\r\n1-已发布',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '协议' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of iot_protocol
-- ----------------------------
INSERT INTO `iot_protocol` VALUES ('plc', '{\"provider\":\"com.zc.demo.protocol.DemoProtocolSupportProvider\",\"location\":\"/2023/04/28/demo-protocol-1.0_20230428110946A002.jar\"}', 'plc', 'jar', 1, NULL, '2023-04-11 16:12:56', '2023-04-28 11:09:47');
-- ----------------------------
-- Table structure for license_info
-- ----------------------------
DROP TABLE IF EXISTS `license_info`;
CREATE TABLE `license_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`auth_code` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '授权码',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'license授权码' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of license_info
-- ----------------------------
-- ----------------------------
-- Table structure for notify_config
-- ----------------------------
DROP TABLE IF EXISTS `notify_config`;
CREATE TABLE `notify_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务商',
`configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '其他配置',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置名称',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知类型\r\n 语音\r\n 邮件\r\n 钉钉\r\n 短信\r\n 微信\r\n ',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知配置' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of notify_config
-- ----------------------------
INSERT INTO `notify_config` VALUES (1, 'dingTalkMessage', '{\"appKey\":\"dingvkvgsiuxf4vxawhl\",\"appSecret\":\"ZySSkQ1DInvYVJIiPbSF-iUIYb4LxaqVWCsUh2GXThC8YUInyXSatczHxC5Wwhth\"}', 'wangjiabao', '', 'dingTalk', '2022-11-10 15:50:41', NULL);
INSERT INTO `notify_config` VALUES (6, 'dingTalkMessage', '{\"appKey\":\"dsadsa\",\"appSecret\":\"dasdasd\"}', 'asda', NULL, 'dingTalk', '2022-11-11 10:04:06', NULL);
INSERT INTO `notify_config` VALUES (7, 'dingTalkMessage', '{\"appKey\":\"dsadsa\",\"appSecret\":\"dasdasd\"}', 'asda', NULL, 'dingTalk', '2022-11-11 10:04:19', NULL);
INSERT INTO `notify_config` VALUES (8, 'dingTalkMessage', '{\"appKey\":\"weqwe\",\"appSecret\":\"weqwqwe\"}', 'qeqwe', NULL, 'dingTalk', '2022-11-11 10:29:17', NULL);
INSERT INTO `notify_config` VALUES (9, 'dingTalkMessage', '{\"appKey\":\"1232r23\",\"appSecret\":\"r32r32r32r\"}', 'eeqe', NULL, 'dingTalk', '2022-11-11 10:33:10', NULL);
INSERT INTO `notify_config` VALUES (10, 'dingTalkMessage', '{\"appKey\":\"sadasd\",\"appSecret\":\"dasdasda\"}', 'wqqw', NULL, 'dingTalk', '2022-11-11 10:40:32', NULL);
INSERT INTO `notify_config` VALUES (11, 'dingTalkMessage', '{\"appKey\":\"dffefefffffffffffffffffff\",\"appSecret\":\"dqwdqd\",\"host\":\"0.0.0.0\",\"port\":\"1883\"}', 'dwqqw', NULL, 'dingTalk', '2022-11-11 10:47:30', '2022-11-11 10:48:35');
INSERT INTO `notify_config` VALUES (12, 'embedded', '{\"properties\":[{}],\"host\":\"sdas\",\"port\":\"dasdsa\",\"sender\":\"asdasd\",\"username\":\"asdsad\",\"password\":\"dasda\"}', 'qwedqwdfqw', NULL, 'email', '2022-11-11 15:49:29', NULL);
INSERT INTO `notify_config` VALUES (13, 'embedded', '{\"properties\":[{\"name\":\"csdadasd\",\"value\":\"asd\",\"description\":\"wqdwqd\"}],\"host\":\"dwqdwq\",\"port\":\"dwqd\",\"sender\":\"qwdwqd\",\"username\":\"wqdwqd\",\"password\":\"dwqdwqd\"}', 'wdwqdwq', NULL, 'email', '2022-11-11 16:06:15', '2022-11-11 16:24:35');
-- ----------------------------
-- Table structure for notify_history
-- ----------------------------
DROP TABLE IF EXISTS `notify_history`;
CREATE TABLE `notify_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`template` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模版内容',
`notify_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知类型',
`notify_time` datetime(0) NULL DEFAULT NULL COMMENT '通知时间',
`notifier_id` bigint(20) NULL DEFAULT NULL COMMENT '通知ID(保留)',
`retry_times` int(11) NULL DEFAULT NULL COMMENT '重试次数',
`provider` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务商',
`error_type` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误类型',
`context` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '上下文',
`error_stack` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常栈',
`template_id` bigint(20) NULL DEFAULT NULL COMMENT '所属模版',
`state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知状态\r\n 成功\r\n 失败',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_nt_his_notifier_id`(`notifier_id`) USING BTREE,
INDEX `FK_Reference_6`(`template_id`) USING BTREE,
CONSTRAINT `notify_history_ibfk_1` FOREIGN KEY (`template_id`) REFERENCES `notify_template` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of notify_history
-- ----------------------------
INSERT INTO `notify_history` VALUES (1, '{\"attachments\":[],\"sendTo\":[\"1730219213@qq.com\"],\"subject\":\"nihao\",\"text\":\"<p>nihao </p>\"}', 'email', '2022-11-14 11:54:07', 13, 0, 'embedded', 'org.springframework.mail.MailSendException', '{}', '\"org.hswebframework.web.exception.BusinessException: 发送钉钉通知失败:agentId【5000000004127252】不合法 \\r\\n\\tat org.jetlinks.community.notify.dingtalk.DingTalkNotifier.lambda$checkResult$2(DingTalkNotifier.java:83)\\r\\n\\tat reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:196)\\r\\n\\tat reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)\\r\\n\\tat reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249)\\r\\n\\tat ', NULL, 'error', '2022-11-14 13:38:49', NULL);
INSERT INTO `notify_history` VALUES (2, '{\"attachments\":[],\"sendTo\":[\"1730219213@qq.com\"],\"subject\":\"nihao\",\"text\":\"<p>nihao </p>\"}', 'email', '2022-11-14 11:54:07', 13, 0, 'embedded', 'org.springframework.mail.MailSendException', '{}', '\"org.hswebframework.web.exception.BusinessException: 发送钉钉通知失败:agentId【5000000004127252】不合法 \\r\\n\\tat org.jetlinks.community.notify.dingtalk.DingTalkNotifier.lambda$checkResult$2(DingTalkNotifier.java:83)\\r\\n\\tat reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:196)\\r\\n\\tat reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)\\r\\n\\tat reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249)\\r\\n\\tat ', NULL, 'success', '2022-11-14 13:38:49', NULL);
-- ----------------------------
-- Table structure for notify_template
-- ----------------------------
DROP TABLE IF EXISTS `notify_template`;
CREATE TABLE `notify_template` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`template` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模版内容(根据服务商不同而不同)',
`provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知服务商',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板名称',
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知类型',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知模版' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of notify_template
-- ----------------------------
INSERT INTO `notify_template` VALUES (1, NULL, 'dingTalkMessage', 'wangjiabao', 'dingTalk', '2022-11-14 17:18:44', NULL);
-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
CREATE TABLE `qrtz_blob_triggers` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
`blob_data` blob NULL COMMENT '存放持久化Trigger对象',
PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Blob类型的触发器表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_blob_triggers
-- ----------------------------
-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_calendars`;
CREATE TABLE `qrtz_calendars` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '日历名称',
`calendar` blob NOT NULL COMMENT '存放持久化calendar对象',
PRIMARY KEY (`sched_name`, `calendar_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '日历信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_calendars
-- ----------------------------
-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
CREATE TABLE `qrtz_cron_triggers` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
`cron_expression` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'cron表达式',
`time_zone_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '时区',
PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Cron类型的触发器表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_cron_triggers
-- ----------------------------
INSERT INTO `qrtz_cron_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'DEFAULT', '0/5 * * * * ?', 'Asia/Shanghai');
-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
CREATE TABLE `qrtz_fired_triggers` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`entry_id` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例id',
`trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
`instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例名',
`fired_time` bigint(13) NOT NULL COMMENT '触发的时间',
`sched_time` bigint(13) NOT NULL COMMENT '定时器制定的时间',
`priority` int(11) NOT NULL COMMENT '优先级',
`state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态',
`job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务名称',
`job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务组名',
`is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否并发',
`requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否接受恢复执行',
PRIMARY KEY (`sched_name`, `entry_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '已触发的触发器表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_fired_triggers
-- ----------------------------
-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_job_details`;
CREATE TABLE `qrtz_job_details` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
`job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
`description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关介绍',
`job_class_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行任务类名称',
`is_durable` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否持久化',
`is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否并发',
`is_update_data` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否更新数据',
`requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否接受恢复执行',
`job_data` blob NULL COMMENT '存放持久化job对象',
PRIMARY KEY (`sched_name`, `job_name`, `job_group`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务详细信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_job_details
-- ----------------------------
INSERT INTO `qrtz_job_details` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'DEFAULT', NULL, 'com.ruoyi.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F504552544945537372001E636F6D2E72756F79692E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720027636F6D2E72756F79692E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B597419030000787077080000017D4A6E050078707400007070707400013174000D302F35202A202A202A202A203F7400144E657474795461736B2E636C69656E7453656E6474000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000474001E636C69656E74E5AE9AE697B6E4B88BE58F91E6B58BE8AF95E68C87E4BBA474000131740001317800);
-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_locks`;
CREATE TABLE `qrtz_locks` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`lock_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '悲观锁名称',
PRIMARY KEY (`sched_name`, `lock_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '存储的悲观锁信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------
INSERT INTO `qrtz_locks` VALUES ('RuoyiScheduler', 'STATE_ACCESS');
INSERT INTO `qrtz_locks` VALUES ('RuoyiScheduler', 'TRIGGER_ACCESS');
-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
CREATE TABLE `qrtz_paused_trigger_grps` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
PRIMARY KEY (`sched_name`, `trigger_group`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '暂停的触发器表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_paused_trigger_grps
-- ----------------------------
-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
CREATE TABLE `qrtz_scheduler_state` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实例名称',
`last_checkin_time` bigint(13) NOT NULL COMMENT '上次检查时间',
`checkin_interval` bigint(13) NOT NULL COMMENT '检查间隔时间',
PRIMARY KEY (`sched_name`, `instance_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '调度器状态表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------
INSERT INTO `qrtz_scheduler_state` VALUES ('RuoyiScheduler', 'LAPTOP-CPG9B8JV1681549291241', 1681552598289, 15000);
-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
CREATE TABLE `qrtz_simple_triggers` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
`repeat_count` bigint(7) NOT NULL COMMENT '重复的次数统计',
`repeat_interval` bigint(12) NOT NULL COMMENT '重复的间隔时间',
`times_triggered` bigint(10) NOT NULL COMMENT '已经触发的次数',
PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '简单触发器的信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_simple_triggers
-- ----------------------------
-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
CREATE TABLE `qrtz_simprop_triggers` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
`str_prop_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
`str_prop_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
`str_prop_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
`int_prop_1` int(11) NULL DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
`int_prop_2` int(11) NULL DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
`long_prop_1` bigint(20) NULL DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
`long_prop_2` bigint(20) NULL DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
`dec_prop_1` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
`dec_prop_2` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
`bool_prop_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
`bool_prop_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '同步机制的行锁表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_simprop_triggers
-- ----------------------------
-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_triggers`;
CREATE TABLE `qrtz_triggers` (
`sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
`trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的名字',
`trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器所属组的名字',
`job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_name的外键',
`job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_group的外键',
`description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关介绍',
`next_fire_time` bigint(13) NULL DEFAULT NULL COMMENT '上一次触发时间(毫秒)',
`prev_fire_time` bigint(13) NULL DEFAULT NULL COMMENT '下一次触发时间(默认为-1表示不触发)',
`priority` int(11) NULL DEFAULT NULL COMMENT '优先级',
`trigger_state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器状态',
`trigger_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的类型',
`start_time` bigint(13) NOT NULL COMMENT '开始时间',
`end_time` bigint(13) NULL DEFAULT NULL COMMENT '结束时间',
`calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日程表名称',
`misfire_instr` smallint(2) NULL DEFAULT NULL COMMENT '补偿执行的策略',
`job_data` blob NULL COMMENT '存放持久化job对象',
PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
INDEX `sched_name`(`sched_name`, `job_name`, `job_group`) USING BTREE,
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '触发器详细信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_triggers
-- ----------------------------
INSERT INTO `qrtz_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'DEFAULT', 'TASK_CLASS_NAME4', 'DEFAULT', NULL, 1681549295000, -1, 5, 'PAUSED', 'CRON', 1681549291000, 0, NULL, -1, '');
-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
`config_id` int(5) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
`config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
`config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
`config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
`config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2021-09-11 09:27:35', 'admin', '2021-11-22 15:48:28', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2021-09-11 09:27:35', '', NULL, '初始化密码 123456');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2021-09-11 09:27:35', '', NULL, '深色主题theme-dark,浅色主题theme-light');
INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaOnOff', 'false', 'Y', 'admin', '2021-09-11 09:27:35', '', NULL, '是否开启验证码功能(true开启,false关闭)');
INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2021-09-11 09:27:35', '', NULL, '是否开启注册用户功能(true开启,false关闭)');
-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
`ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
`dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
`order_num` int(4) NULL DEFAULT 0 COMMENT '显示顺序',
`leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
`phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 110 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES (100, 0, '0', '正晨科技', 0, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', 'admin', '2021-12-02 10:59:38');
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '山东总公司', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', 'admin', '2021-12-02 10:59:46');
INSERT INTO `sys_dept` VALUES (102, 100, '0,100', '北京分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', 'admin', '2021-12-02 10:59:55');
INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', 'admin', '2021-11-23 09:38:39');
INSERT INTO `sys_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', '', NULL);
INSERT INTO `sys_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', '', NULL);
INSERT INTO `sys_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', '', NULL);
INSERT INTO `sys_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', '', NULL);
INSERT INTO `sys_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', '', NULL);
INSERT INTO `sys_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-09-11 09:27:34', '', NULL);
-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data` (
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
`dict_sort` int(4) NULL DEFAULT 0 COMMENT '字典排序',
`dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
`dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
`css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
`list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
`is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 280 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_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', '2021-09-11 09:27:35', '', NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (19, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (20, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (21, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (22, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (23, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (24, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (25, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (26, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (27, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (28, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (50, 0, '直连设备', 'device', 'iot_product_device_type', NULL, 'default', 'N', '0', 'admin', '2021-10-28 10:52:10', 'admin', '2022-11-22 18:20:49', '直连物联网平台,但不能挂载子设备的设备。');
INSERT INTO `sys_dict_data` VALUES (51, 1, '网关子设备', 'childrenDevice', 'iot_product_device_type', NULL, 'default', 'N', '0', 'admin', '2021-10-28 10:52:33', 'admin', '2022-11-22 18:21:02', '作为网关的子设备,由网关代理连接物联网平台。\n');
INSERT INTO `sys_dict_data` VALUES (52, 2, '网关设备', 'gateway', 'iot_product_device_type', NULL, 'default', 'N', '0', 'admin', '2021-10-28 10:53:00', 'admin', '2022-11-22 18:21:15', '可以挂载子设备的直连设备。');
INSERT INTO `sys_dict_data` VALUES (75, 0, '未发布', '0', 'iot_publish_state', NULL, 'danger', 'N', '0', 'admin', '2022-08-05 11:24:26', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (76, 1, '已发布', '1', 'iot_publish_state', NULL, 'success', 'N', '0', 'admin', '2022-08-05 11:24:57', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (77, 0, 'jar', 'jar', 'iot_protocol_type', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:54:04', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (78, 1, 'script', 'script', 'iot_protocol_type', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:54:24', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (79, 0, 'MQTT', 'MQTT', 'iot_transport_protocol', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:56:35', 'admin', '2022-10-18 15:56:56', NULL);
INSERT INTO `sys_dict_data` VALUES (80, 1, 'UDP', 'UDP', 'iot_transport_protocol', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:57:11', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (81, 2, 'CoAP', 'CoAP', 'iot_transport_protocol', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:57:22', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (82, 3, 'TCP', 'TCP', 'iot_transport_protocol', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:57:36', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (83, 4, 'HTTPS', 'HTTPS', 'iot_transport_protocol', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:57:48', 'admin', '2022-10-18 15:57:52', NULL);
INSERT INTO `sys_dict_data` VALUES (84, 5, 'HTTP', 'HTTP', 'iot_transport_protocol', NULL, 'default', 'N', '0', 'admin', '2022-10-18 15:58:04', 'admin', '2022-10-18 15:58:10', NULL);
INSERT INTO `sys_dict_data` VALUES (89, 0, '设备', 'device', 'iot_properties_value_source', NULL, 'default', 'N', '0', 'admin', '2022-08-17 19:14:30', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (90, 1, '手动', 'manual', 'iot_properties_value_source', NULL, 'default', 'N', '0', 'admin', '2022-08-17 19:15:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (91, 2, '规则', 'rule', 'iot_properties_value_source', NULL, 'default', 'N', '0', 'admin', '2022-08-17 19:16:01', 'admin', '2022-08-17 19:16:09', NULL);
INSERT INTO `sys_dict_data` VALUES (92, 0, '', 'true', 'iot_read_only', NULL, 'default', 'N', '0', 'admin', '2022-08-18 10:46:03', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (93, 1, '', 'false', 'iot_read_only', NULL, 'default', 'N', '0', 'admin', '2022-08-18 10:46:38', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (190, 0, 'String类型的时间戳 (毫秒)', 'timestamp', 'iot_date_format', NULL, 'default', 'N', '0', 'admin', '2022-08-31 11:16:39', 'admin', '2023-04-26 18:25:49', NULL);
INSERT INTO `sys_dict_data` VALUES (191, 1, 'yyyy-MM-dd', 'yyyy-MM-dd', 'iot_date_format', NULL, 'default', 'N', '0', 'admin', '2022-08-31 11:17:25', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (192, 2, 'yyyy-MM-dd HH:mm:ss', 'yyyy-MM-dd HH:mm:ss', 'iot_date_format', NULL, 'default', 'N', '0', 'admin', '2022-08-31 11:17:46', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (195, 0, '', 'true', 'iot_is_async', NULL, 'default', 'N', '0', 'admin', '2022-09-08 14:25:33', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (196, 1, '', 'false', 'iot_is_async', NULL, 'default', 'N', '0', 'admin', '2022-09-08 14:25:51', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (197, 0, '普通', 'ordinary', 'iot_events_level', NULL, 'default', 'N', '0', 'admin', '2022-09-13 14:14:12', 'admin', '2023-01-10 18:01:32', NULL);
INSERT INTO `sys_dict_data` VALUES (198, 1, '告警', 'warn', 'iot_events_level', NULL, 'default', 'N', '0', 'admin', '2022-09-13 14:15:56', 'admin', '2023-01-10 18:00:01', NULL);
INSERT INTO `sys_dict_data` VALUES (199, 2, '紧急', 'urgent', 'iot_events_level', NULL, 'default', 'N', '0', 'admin', '2022-09-13 14:17:53', 'admin', '2023-01-10 18:01:15', NULL);
INSERT INTO `sys_dict_data` VALUES (200, 0, '整型', 'int', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:08:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (201, 1, '长整型', 'long', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:08:32', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (202, 2, '单精度浮点型', 'float', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:09:01', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (203, 3, '双精度浮点型', 'double', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:09:27', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (204, 4, '布尔型', 'boolean', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:11:00', 'admin', '2022-08-17 18:11:11', NULL);
INSERT INTO `sys_dict_data` VALUES (205, 5, '字符型', 'string', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:12:30', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (206, 6, '枚举型', 'enum', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:13:30', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (207, 7, '时间型', 'date', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:14:11', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (208, 8, ' 数组型', 'array', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:15:35', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (209, 9, '结构体', 'object', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:16:08', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (210, 10, '地理位置', 'geoPoint', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', '2022-08-17 18:16:44', 'admin', '2023-04-27 11:05:28', NULL);
INSERT INTO `sys_dict_data` VALUES (211, 1, '启动', 'enabled', 'iot_network_state', NULL, 'success', 'N', '0', 'admin', '2022-10-20 14:01:02', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (212, 2, '禁用', 'disabled', 'iot_network_state', NULL, 'warning', 'N', '0', 'admin', '2022-10-20 14:01:45', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (222, 0, '不处理', 'direct', 'iot_network_parser_type', NULL, 'default', 'N', '0', 'admin', '2022-10-21 14:15:37', 'admin', '2022-12-01 11:45:15', NULL);
INSERT INTO `sys_dict_data` VALUES (223, 1, '分隔符', 'delimited', 'iot_network_parser_type', NULL, 'default', 'N', '0', 'admin', '2022-10-21 14:15:48', 'admin', '2022-12-01 11:45:38', NULL);
INSERT INTO `sys_dict_data` VALUES (224, 2, '自定义脚本', 'script', 'iot_network_parser_type', NULL, 'default', 'N', '0', 'admin', '2022-10-21 14:16:00', 'admin', '2022-12-01 11:46:26', NULL);
INSERT INTO `sys_dict_data` VALUES (225, 3, '固定长度', 'fixed_length', 'iot_network_parser_type', NULL, 'default', 'N', '0', 'admin', '2022-10-21 14:16:14', 'admin', '2022-12-01 11:46:53', NULL);
INSERT INTO `sys_dict_data` VALUES (228, 0, '钉钉', 'dingTalk', 'notify_config_type', NULL, 'default', 'N', '0', 'admin', '2022-11-10 15:59:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (229, 1, '邮件', 'email', 'notify_config_type', NULL, 'default', 'N', '0', 'admin', '2022-11-10 15:59:24', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (230, 2, '短信', 'sms', 'notify_config_type', NULL, 'default', 'N', '0', 'admin', '2022-11-10 15:59:40', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (231, 3, '微信', 'weixin', 'notify_config_type', NULL, 'default', 'N', '0', 'admin', '2022-11-10 15:59:54', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (232, 4, '语音', 'voice', 'notify_config_type', NULL, 'default', 'N', '0', 'admin', '2022-11-10 16:00:14', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (233, 0, '钉钉消息通知', 'dingTalkMessage', 'notify_config_provider', NULL, 'default', 'N', '0', 'admin', '2022-11-10 16:45:50', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (234, 1, '默认', 'embedded', 'notify_config_provider', NULL, 'default', 'N', '0', 'admin', '2022-11-10 16:46:57', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (235, 2, '阿里云短信服务', 'aliyunSms', 'notify_config_provider', NULL, 'default', 'N', '0', 'admin', '2022-11-10 16:47:21', 'admin', '2022-11-10 16:47:29', NULL);
INSERT INTO `sys_dict_data` VALUES (236, 3, '微信企业消息通知', 'corpMessage', 'notify_config_provider', NULL, 'default', 'N', '0', 'admin', '2022-11-10 16:48:04', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (237, 4, '语音阿里云服务', 'aliyun', 'notify_config_provider', NULL, 'default', 'N', '0', 'admin', '2022-11-10 16:48:56', 'admin', '2022-11-10 16:49:04', NULL);
INSERT INTO `sys_dict_data` VALUES (244, 2, '未激活', 'notActive', 'iot_device_state', NULL, 'primary', 'N', '0', 'admin', '2022-11-14 09:01:16', 'admin', '2022-12-13 22:32:40', NULL);
INSERT INTO `sys_dict_data` VALUES (245, 1, '在线', 'online', 'iot_device_state', NULL, 'success', 'N', '0', 'admin', '2022-11-14 09:01:28', 'admin', '2022-12-13 14:50:30', NULL);
INSERT INTO `sys_dict_data` VALUES (246, 0, '离线', 'offline', 'iot_device_state', NULL, 'danger', 'N', '0', 'admin', '2022-11-14 09:01:40', 'admin', '2022-12-13 14:49:53', NULL);
INSERT INTO `sys_dict_data` VALUES (247, 0, '成功', 'success', 'notify_config_state', NULL, 'success', 'N', '0', 'admin', '2022-11-14 13:48:59', 'admin', '2022-11-14 13:52:43', NULL);
INSERT INTO `sys_dict_data` VALUES (248, 1, '失败', 'error', 'notify_config_state', NULL, 'danger', 'N', '0', 'admin', '2022-11-14 13:49:15', 'admin', '2022-11-14 13:53:01', NULL);
INSERT INTO `sys_dict_data` VALUES (249, 15, '上线', 'online', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:01:25', 'admin', '2023-01-06 17:47:47', NULL);
INSERT INTO `sys_dict_data` VALUES (250, 14, '离线', 'offline', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:01:35', 'admin', '2023-01-06 17:47:13', NULL);
INSERT INTO `sys_dict_data` VALUES (251, 16, '其他', 'other', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:02:23', 'admin', '2023-01-06 17:48:19', NULL);
INSERT INTO `sys_dict_data` VALUES (252, 0, '事件上报', 'event', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:02:36', 'admin', '2023-01-06 17:39:15', NULL);
INSERT INTO `sys_dict_data` VALUES (253, 1, '读取属性', 'readProperty', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:02:49', 'admin', '2023-01-06 17:39:54', NULL);
INSERT INTO `sys_dict_data` VALUES (254, 2, '修改属性', 'writeProperty', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:03:02', 'admin', '2023-01-06 17:40:26', NULL);
INSERT INTO `sys_dict_data` VALUES (255, 3, '修改属性回复', 'writePropertyReply', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:03:13', 'admin', '2023-01-06 17:41:07', NULL);
INSERT INTO `sys_dict_data` VALUES (256, 4, '属性上报', 'reportProperty', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:03:24', 'admin', '2023-01-06 17:41:50', NULL);
INSERT INTO `sys_dict_data` VALUES (257, 5, '读取属性回复', 'readPropertyReply', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:03:44', 'admin', '2023-01-06 17:42:32', NULL);
INSERT INTO `sys_dict_data` VALUES (258, 6, '子设备消息', 'child', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:04:01', 'admin', '2023-01-06 17:43:02', NULL);
INSERT INTO `sys_dict_data` VALUES (259, 7, '子设备消息回复', 'childReply', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:04:13', 'admin', '2023-01-06 17:43:34', NULL);
INSERT INTO `sys_dict_data` VALUES (260, 8, '调用功能', 'functionInvoke', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:04:24', 'admin', '2023-01-06 17:44:17', NULL);
INSERT INTO `sys_dict_data` VALUES (261, 9, '调用功能回复', 'functionReply', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:04:37', 'admin', '2023-01-06 17:44:57', NULL);
INSERT INTO `sys_dict_data` VALUES (262, 10, '设备注册', 'register', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:04:47', 'admin', '2023-01-06 17:45:23', NULL);
INSERT INTO `sys_dict_data` VALUES (263, 11, '设备注销', 'unregister', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:05:00', 'admin', '2023-01-06 17:45:51', NULL);
INSERT INTO `sys_dict_data` VALUES (264, 12, '日志', 'log', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:05:10', 'admin', '2023-01-06 17:46:15', NULL);
INSERT INTO `sys_dict_data` VALUES (265, 13, '标签更新', 'tag', 'iot_log_type', NULL, 'default', 'N', '0', 'admin', '2022-11-14 15:05:22', 'admin', '2023-01-06 17:46:43', NULL);
INSERT INTO `sys_dict_data` VALUES (266, 0, '不存储', 'none', 'iot_product_store_policy', NULL, 'default', 'N', '0', 'admin', '2022-11-22 22:13:38', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (267, 1, '默认-列式存储', 'default-column', 'iot_product_store_policy', NULL, 'default', 'N', '0', 'admin', '2022-11-22 22:14:51', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (268, 2, '默认-行式存储', 'default-row', 'iot_product_store_policy', NULL, 'default', 'N', '0', 'admin', '2022-11-22 22:15:24', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (269, 0, 'JSON', 'JSON', 'iot_network_data_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:47:55', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (270, 1, '字符串', 'STRING', 'iot_network_data_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:48:13', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (271, 2, '二进制', 'BINARY', 'iot_network_data_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:48:30', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (272, 3, '16进制字符', 'HEX', 'iot_network_data_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:48:47', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (273, 0, 'PFX', 'PFX', 'iot_certificate_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:57:31', 'admin', '2023-01-12 11:29:15', NULL);
INSERT INTO `sys_dict_data` VALUES (274, 1, 'JKS', 'JKS', 'iot_certificate_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:57:42', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (275, 2, 'PEM', 'PEM', 'iot_certificate_type', NULL, 'default', 'N', '0', 'admin', '2023-01-12 09:57:53', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (276, 3, 'HH:mm', 'HH:mm', 'iot_date_format', NULL, 'default', 'N', '0', 'admin', '2023-03-13 16:47:20', 'admin', '2023-04-26 22:47:41', NULL);
INSERT INTO `sys_dict_data` VALUES (277, 0, '不记录', '1', 'iot_log_level', NULL, 'default', 'N', '0', 'admin', '2023-03-16 11:48:51', 'admin', '2023-04-23 15:49:20', NULL);
INSERT INTO `sys_dict_data` VALUES (278, 1, '失败记录', '2', 'iot_log_level', NULL, 'default', 'N', '0', 'admin', '2023-03-16 11:51:24', 'admin', '2023-04-23 15:49:36', NULL);
INSERT INTO `sys_dict_data` VALUES (279, 2, '全部记录', '3', 'iot_log_level', NULL, 'default', 'N', '0', 'admin', '2023-03-16 11:51:43', 'admin', '2023-04-23 15:50:02', NULL);
-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type` (
`dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
`dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_id`) USING BTREE,
UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 50 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2021-09-11 09:27:35', 'admin', '2021-12-03 14:43:35', '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2021-09-11 09:27:35', 'admin', '2021-12-03 14:42:13', '登录状态列表');
INSERT INTO `sys_dict_type` VALUES (16, '设备类型', 'iot_product_device_type', '0', 'admin', '2021-10-28 10:48:30', 'admin', '2022-11-22 18:19:01', '节点类型');
INSERT INTO `sys_dict_type` VALUES (22, '传输协议', 'iot_transport_protocol', '0', 'admin', '2022-05-31 10:52:23', 'admin', '2022-10-18 15:53:11', '传输协议');
INSERT INTO `sys_dict_type` VALUES (23, '发布状态', 'iot_publish_state', '0', 'admin', '2022-08-05 11:23:17', 'admin', '2022-10-18 15:53:05', NULL);
INSERT INTO `sys_dict_type` VALUES (24, '协议类型', 'iot_protocol_type', '0', 'admin', '2022-10-18 15:52:54', '', NULL, '协议类型');
INSERT INTO `sys_dict_type` VALUES (25, '属性值来源', 'iot_properties_value_source', '0', 'admin', '2022-08-17 19:13:22', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (26, '是否只读', 'iot_read_only', '0', 'admin', '2022-08-18 10:45:29', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (29, '日期格式', 'iot_date_format', '0', 'admin', '2022-08-31 11:07:01', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (30, '是否异步', 'iot_is_async', '0', 'admin', '2022-09-08 14:23:06', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (31, '事件等级', 'iot_events_level', '0', 'admin', '2022-09-13 14:13:24', 'admin', '2023-01-11 09:01:45', NULL);
INSERT INTO `sys_dict_type` VALUES (32, '数据类型', 'iot_data_type', '0', 'admin', '2022-08-17 18:05:16', '', NULL, '数据类型');
INSERT INTO `sys_dict_type` VALUES (33, '组件状态', 'iot_network_state', '0', 'admin', '2022-10-20 13:59:42', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (37, '解析方式类型', 'iot_network_parser_type', '0', 'admin', '2022-10-21 14:14:49', 'admin', '2022-12-01 11:53:07', NULL);
INSERT INTO `sys_dict_type` VALUES (40, '通知类型', 'notify_config_type', '0', 'admin', '2022-11-10 15:56:59', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (41, '服务商', 'notify_config_provider', '0', 'admin', '2022-11-10 16:44:48', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (43, '设备状态', 'iot_device_state', '0', 'admin', '2022-11-14 08:59:49', 'admin', '2022-12-13 14:48:16', NULL);
INSERT INTO `sys_dict_type` VALUES (44, '通知状态', 'notify_config_state', '0', 'admin', '2022-11-14 13:48:22', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (45, '日志类型', 'iot_log_type', '0', 'admin', '2022-11-14 15:00:23', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (46, '存储策略', 'iot_product_store_policy', '0', 'admin', '2022-11-22 22:13:02', '', NULL, '数据存储策略');
INSERT INTO `sys_dict_type` VALUES (47, '数据类型', 'iot_network_data_type', '0', 'admin', '2023-01-12 09:47:21', 'admin', '2023-04-26 13:40:43', NULL);
INSERT INTO `sys_dict_type` VALUES (48, '证书类型', 'iot_certificate_type', '0', 'admin', '2023-01-12 09:57:13', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (49, '记录日志等级', 'iot_log_level', '0', 'admin', '2023-03-16 11:47:42', '', NULL, NULL);
-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job` (
`job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
`job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
`job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
`invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
`cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'cron执行表达式',
`misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '3' COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
`concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否并发执行(0允许 1禁止)',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1暂停)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注信息',
PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_job
-- ----------------------------
INSERT INTO `sys_job` VALUES (4, 'client定时下发测试指令', 'DEFAULT', 'NettyTask.clientSend', '0/5 * * * * ?', '1', '1', '1', 'admin', '2021-11-23 09:34:24', 'admin', '2023-04-23 14:42:18', '');
-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log` (
`job_log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
`job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
`job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
`invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
`job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志信息',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '执行状态(0正常 1失败)',
`exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '异常信息',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 499 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_job_log
-- ----------------------------
-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor` (
`info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
`user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
`ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
`login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录地点',
`browser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '浏览器类型',
`os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作系统',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
`msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示消息',
`login_time` datetime(0) NULL DEFAULT NULL COMMENT '访问时间',
PRIMARY KEY (`info_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1423 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_logininfor
-- ----------------------------
INSERT INTO `sys_logininfor` VALUES (1417, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '登录成功', '2023-05-05 15:52:11');
INSERT INTO `sys_logininfor` VALUES (1418, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '登录成功', '2023-05-05 16:54:27');
INSERT INTO `sys_logininfor` VALUES (1419, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '登录成功', '2023-05-06 10:42:46');
INSERT INTO `sys_logininfor` VALUES (1420, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '退出成功', '2023-05-06 11:58:46');
INSERT INTO `sys_logininfor` VALUES (1421, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '登录成功', '2023-05-06 11:59:16');
INSERT INTO `sys_logininfor` VALUES (1422, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '登录成功', '2023-05-08 08:39:48');
INSERT INTO `sys_logininfor` VALUES (1423, 'admin', '127.0.0.1', '内网IP', 'Chrome 11', 'Windows 10', '0', '登录成功', '2023-05-09 08:47:17');
-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父菜单ID',
`order_num` int(4) NULL DEFAULT 0 COMMENT '显示顺序',
`path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
`query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
`is_frame` int(1) NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)',
`is_cache` int(1) NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)',
`menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)',
`visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
`perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
`icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1177 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_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', '2021-09-11 09:27:35', 'admin', '2021-11-24 09:39:04', '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 2, 'monitor', NULL, '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', '2021-09-11 09:27:35', 'admin', '2021-11-22 16:18:42', '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 3, 'tool', NULL, '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2021-09-11 09:27:35', 'admin', '2021-11-22 16:17:51', '系统工具目录');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2021-09-11 09:27:35', '', NULL, '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2021-09-11 09:27:35', '', NULL, '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2021-09-11 09:27:35', '', NULL, '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2021-09-11 09:27:35', '', NULL, '部门管理菜单');
INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2021-09-11 09:27:35', '', NULL, '岗位管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2021-09-11 09:27:35', '', NULL, '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2021-09-11 09:27:35', '', NULL, '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2021-09-11 09:27:35', '', NULL, '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2021-09-11 09:27:35', '', NULL, '日志管理菜单');
INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2021-09-11 09:27:35', '', NULL, '在线用户菜单');
INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2021-09-11 09:27:35', '', NULL, '定时任务菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2021-09-11 09:27:35', '', NULL, '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2021-09-11 09:27:35', '', NULL, '服务监控菜单');
INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', '2021-09-11 09:27:35', '', NULL, '缓存监控菜单');
INSERT INTO `sys_menu` VALUES (114, '表单构建', 3, 1, 'build', 'tool/build/index', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2021-09-11 09:27:35', '', NULL, '表单构建菜单');
INSERT INTO `sys_menu` VALUES (115, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2021-09-11 09:27:35', '', NULL, '代码生成菜单');
INSERT INTO `sys_menu` VALUES (116, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2021-09-11 09:27:35', 'admin', '2021-10-29 09:58:24', '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2021-09-11 09:27:35', '', NULL, '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2021-09-11 09:27:35', '', NULL, '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1001, '用户查询', 100, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1002, '用户新增', 100, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1003, '用户修改', 100, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1004, '用户删除', 100, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1005, '用户导出', 100, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1006, '用户导入', 100, 6, '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1007, '重置密码', 100, 7, '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1008, '角色查询', 101, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1009, '角色新增', 101, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1010, '角色修改', 101, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1011, '角色删除', 101, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1012, '角色导出', 101, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1013, '菜单查询', 102, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1014, '菜单新增', 102, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1015, '菜单修改', 102, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1016, '菜单删除', 102, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1017, '部门查询', 103, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1018, '部门新增', 103, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1019, '部门修改', 103, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1020, '部门删除', 103, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1021, '岗位查询', 104, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1022, '岗位新增', 104, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1023, '岗位修改', 104, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1024, '岗位删除', 104, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1025, '岗位导出', 104, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1026, '字典查询', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1027, '字典新增', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1028, '字典修改', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1029, '字典删除', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1030, '字典导出', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1031, '参数查询', 106, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1032, '参数新增', 106, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1033, '参数修改', 106, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1034, '参数删除', 106, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1035, '参数导出', 106, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1036, '公告查询', 107, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1037, '公告新增', 107, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1038, '公告修改', 107, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1039, '公告删除', 107, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1040, '操作查询', 500, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1041, '操作删除', 500, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1042, '日志导出', 500, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1043, '登录查询', 501, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1044, '登录删除', 501, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1045, '日志导出', 501, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 7, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1055, '生成查询', 115, 1, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1056, '生成修改', 115, 2, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1057, '生成删除', 115, 3, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1058, '导入代码', 115, 2, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1059, '预览代码', 115, 4, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1060, '生成代码', 115, 5, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1061, '系统监测', 2, 6, 'http://localhost:8080/monitoring', NULL, NULL, 0, 0, 'M', '0', '0', '', 'monitor', 'admin', '2021-10-08 14:10:10', 'admin', '2021-10-08 14:36:45', '');
INSERT INTO `sys_menu` VALUES (1062, '统一支付', 0, 4, 'payment', NULL, NULL, 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2021-10-13 10:43:22', 'admin', '2022-08-10 18:31:05', '');
INSERT INTO `sys_menu` VALUES (1063, '支付Demo', 1062, 1, 'example', 'payment/example/index', NULL, 1, 0, 'C', '0', '0', '', 'money', 'admin', '2021-10-13 10:48:28', 'admin', '2022-08-10 18:30:50', '');
INSERT INTO `sys_menu` VALUES (1065, '品类', 1071, 1, 'category', 'iot/category/index', NULL, 1, 0, 'C', '0', '0', 'iot:category:list', 'category', 'admin', '2021-10-27 10:36:05', 'admin', '2022-11-28 08:56:52', '品类菜单');
INSERT INTO `sys_menu` VALUES (1066, '品类查询', 1065, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:category:query', '#', 'admin', '2021-10-27 10:36:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1067, '品类新增', 1065, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:category:add', '#', 'admin', '2021-10-27 10:36:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1068, '品类修改', 1065, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:category:edit', '#', 'admin', '2021-10-27 10:36:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1069, '品类删除', 1065, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:category:remove', '#', 'admin', '2021-10-27 10:36:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1070, '品类导出', 1065, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:category:export', '#', 'admin', '2021-10-27 10:36:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1071, '设备管理', 0, 5, 'iot', NULL, NULL, 1, 0, 'M', '0', '0', '', 'device-management', 'admin', '2021-10-27 10:54:38', 'admin', '2022-05-31 09:00:53', '');
INSERT INTO `sys_menu` VALUES (1109, '产品', 1071, 2, 'product', 'iot/product/index', NULL, 1, 0, 'C', '0', '0', 'iot:product:list', 'product', 'admin', '2021-10-27 15:35:32', 'admin', '2022-11-28 08:57:02', '');
INSERT INTO `sys_menu` VALUES (1111, '设备分组', 1071, 5, 'group', 'iot/group/index', NULL, 1, 0, 'C', '1', '0', 'iot:group:list', 'group', 'admin', '2021-10-27 15:37:12', 'admin', '2022-05-31 09:19:29', '');
INSERT INTO `sys_menu` VALUES (1112, '产品查询', 1109, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:product:query', '#', 'admin', '2021-10-27 18:54:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1113, '产品新增', 1109, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:product:add', '#', 'admin', '2021-10-27 18:56:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1114, '产品修改', 1109, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:product:edit', '#', 'admin', '2021-10-27 18:57:45', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1123, '产品删除', 1109, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:product:remove', '#', 'admin', '2021-11-25 09:36:04', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1124, '产品导出', 1109, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:product:export', '#', 'admin', '2021-11-25 09:36:31', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1132, '分组查询', 1111, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:group:query', '#', 'admin', '2021-11-25 09:43:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1133, '分组新增', 1111, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:group:add', '#', 'admin', '2021-11-25 09:43:48', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1134, '分组修改', 1111, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:group:edit', '#', 'admin', '2021-11-25 09:44:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1135, '分组删除', 1111, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:group:remove', '#', 'admin', '2021-11-25 09:44:47', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1136, '分组导出', 1111, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:group:export', '#', 'admin', '2021-11-25 09:45:15', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1140, '协议管理', 1146, 2, 'protocol', 'iot/protocol/index', NULL, 1, 0, 'C', '0', '0', 'iot:protocol:list', 'protocol', 'admin', '2022-10-18 14:48:55', 'admin', '2022-11-04 10:06:10', '协议管理菜单');
INSERT INTO `sys_menu` VALUES (1141, '协议管理查询', 1140, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:protocol:query', '#', 'admin', '2022-10-18 14:48:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1142, '协议管理新增', 1140, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:protocol:add', '#', 'admin', '2022-10-18 14:48:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1143, '协议管理修改', 1140, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:protocol:edit', '#', 'admin', '2022-10-18 14:48:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1144, '协议管理删除', 1140, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:protocol:remove', '#', 'admin', '2022-10-18 14:48:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1145, '协议管理导出', 1140, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'iot:protocol:export', '#', 'admin', '2022-10-18 14:48:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1146, '设备接入', 0, 6, 'access', NULL, NULL, 1, 0, 'M', '0', '0', '', 'device-access', 'admin', '2022-08-28 19:45:38', 'admin', '2022-10-18 15:03:36', '');
INSERT INTO `sys_menu` VALUES (1147, '证书管理', 1146, 1, 'certificate', 'iot/certificate/index', NULL, 1, 0, 'C', '0', '0', 'iot:certificate:list', 'certificate', 'admin', '2022-10-19 09:59:50', 'admin', '2022-11-04 10:05:55', '');
INSERT INTO `sys_menu` VALUES (1148, '网络组件', 1146, 3, 'network', 'iot/network/index', NULL, 1, 0, 'C', '0', '0', 'iot:network:list', 'network', 'admin', '2022-10-19 10:05:08', 'admin', '2022-11-04 11:45:53', '');
INSERT INTO `sys_menu` VALUES (1149, '证书管理新增', 1147, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:certificate:add', '#', 'admin', '2022-10-19 10:20:45', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1150, '证书管理修改', 1147, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:certificate:esit', '#', 'admin', '2022-10-19 10:21:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1152, '证书管理删除', 1147, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:certificate:remove', '#', 'admin', '2022-10-19 10:24:20', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1153, '证书管理查询', 1147, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:certificate:query', '#', 'admin', '2022-10-19 10:25:36', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1154, '证书管理导出', 1147, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:certificate:export', '#', 'admin', '2022-10-19 10:26:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1155, '设备网关', 1146, 4, 'device', 'iot/deviceGateway/index', NULL, 1, 0, 'C', '0', '0', 'iot:device:list', 'device-gateway', 'admin', '2022-10-25 15:17:47', 'admin', '2022-11-07 12:23:01', '');
INSERT INTO `sys_menu` VALUES (1156, '设备网关新增', 1155, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:device:add', '#', 'admin', '2022-10-26 08:21:43', 'admin', '2022-11-04 09:39:56', '');
INSERT INTO `sys_menu` VALUES (1157, '设备网关修改', 1155, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:device:edit', '#', 'admin', '2022-10-26 08:22:19', 'admin', '2022-12-08 17:21:25', '');
INSERT INTO `sys_menu` VALUES (1158, '设备网关删除', 1155, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:device:remove', '#', 'admin', '2022-10-26 08:22:52', 'admin', '2022-11-04 09:40:22', '');
INSERT INTO `sys_menu` VALUES (1159, '设备网关查询', 1155, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:device:query', '#', 'admin', '2022-10-26 08:23:20', 'admin', '2022-11-04 09:40:31', '');
INSERT INTO `sys_menu` VALUES (1160, '设备网关导出', 1155, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:device:export', '#', 'admin', '2022-10-26 08:23:45', 'admin', '2022-11-04 09:40:37', '');
INSERT INTO `sys_menu` VALUES (1161, '设备', 1071, 3, 'device', 'iot/device/index', NULL, 1, 0, 'C', '0', '0', 'iot:device:list', 'device-management', 'admin', '2022-11-08 09:29:28', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1162, '通知管理', 0, 7, 'notify', NULL, NULL, 1, 0, 'M', '0', '0', '', 'message', 'admin', '2022-11-10 09:34:29', 'admin', '2023-03-29 17:29:20', '');
INSERT INTO `sys_menu` VALUES (1163, '通知配置', 1162, 1, 'config', 'notify/config/index', NULL, 1, 0, 'C', '0', '0', '', 'swagger', 'admin', '2022-11-10 09:41:23', 'admin', '2023-03-30 17:48:14', '');
INSERT INTO `sys_menu` VALUES (1164, '通知模板', 1162, 2, 'template', 'notify/template/index', NULL, 1, 0, 'C', '0', '0', '', 'documentation', 'admin', '2022-11-14 16:23:52', 'admin', '2022-11-14 16:25:00', '');
INSERT INTO `sys_menu` VALUES (1165, '网络组件查询', 1148, 1, 'iot:network:list', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:network:list', '#', 'admin', '2022-12-08 17:16:32', 'admin', '2022-12-08 17:17:09', '');
INSERT INTO `sys_menu` VALUES (1166, '网络组件添加', 1148, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:network:add', '#', 'admin', '2022-12-08 17:17:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1167, '网络组件修改', 1148, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:network:edit', '#', 'admin', '2022-12-08 17:21:07', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1168, '网络组件删除', 1148, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:network:remove', '#', 'admin', '2022-12-08 17:22:20', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1169, '网络组件导出', 1148, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:network:export', '#', 'admin', '2022-12-08 17:23:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1170, '网络组件调试', 1148, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'iot:network:debug', '#', 'admin', '2022-12-08 17:27:22', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1171, '规则引擎', 0, 8, 'rule-engine', NULL, NULL, 1, 0, 'M', '0', '0', '', 'rule-engine', 'admin', '2023-03-29 17:27:06', 'admin', '2023-03-29 17:31:11', '');
INSERT INTO `sys_menu` VALUES (1172, '定时任务', 1171, 1, 'job', 'rule-engine/job/index', NULL, 1, 0, 'C', '0', '0', 'iot:rule-engine:list', 'job', 'admin', '2023-03-29 17:30:26', 'admin', '2023-03-29 17:35:00', '');
-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice` (
`notice_id` int(4) NOT NULL AUTO_INCREMENT COMMENT '公告ID',
`notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告标题',
`notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告类型(1通知 2公告)',
`notice_content` longblob NULL COMMENT '公告内容',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '公告状态(0正常 1关闭)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知公告表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_notice
-- ----------------------------
INSERT INTO `sys_notice` VALUES (1, '温馨提醒:2018-07-01 若依新版本发布啦', '2', 0xE696B0E78988E69CACE58685E5AEB9, '0', 'admin', '2021-09-11 09:27:35', '', NULL, '管理员');
INSERT INTO `sys_notice` VALUES (2, '维护通知:2018-07-01 若依系统凌晨维护', '1', 0xE7BBB4E68AA4E58685E5AEB9, '0', 'admin', '2021-09-11 09:27:35', '', NULL, '管理员');
-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log` (
`oper_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
`title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
`business_type` int(2) NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)',
`method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
`request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
`operator_type` int(1) NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
`oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
`dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
`oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
`oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
`oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
`oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
`json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
`status` int(1) NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)',
`error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
`oper_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`oper_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5060 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
INSERT INTO `sys_oper_log` VALUES (5047, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683355442579,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"default-row\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-06 14:44:02');
INSERT INTO `sys_oper_log` VALUES (5048, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-06 14:44:04');
INSERT INTO `sys_oper_log` VALUES (5049, '产品新增', 1, 'com.zc.device.controller.IotProductController.add()', 'POST', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[],\\\"tags\\\":[]}\",\"params\":{},\"productName\":\"plc2\",\"storePolicy\":\"none\",\"protocolId\":\"plc\",\"createTime\":1683514726849,\"transportProtocol\":\"TCP\",\"id\":\"plc2\",\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 10:58:46');
INSERT INTO `sys_oper_log` VALUES (5050, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc2', '127.0.0.1', '内网IP', 'plc2', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 10:58:50');
INSERT INTO `sys_oper_log` VALUES (5051, '新增设备', 1, 'com.zc.device.controller.IotDeviceController.addDevice()', 'POST', 1, 'admin', NULL, '/iot/device', '127.0.0.1', '内网IP', '{\"address\":\"\",\"productId\":\"plc2\",\"configuration\":\"{}\",\"deviceName\":\"1006\",\"createTime\":1683514812443,\"deviceState\":\"notActive\",\"id\":\"1006\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 11:00:12');
INSERT INTO `sys_oper_log` VALUES (5052, '定时任务', 2, 'com.zc.manager.rule.engine.controller.IotJobController.bind()', 'PUT', 1, 'admin', NULL, '/rule-engine/job/bind/3', '127.0.0.1', '内网IP', '3 {\"properties\":{\"plc\":{\"1000\":{\"4576\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"},\"23456\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"},\"属性标识\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"}}}},\"functions\":{\"plc\":{\"1000\":{\"23452\":{\"sendAndForget\":true,\"ignoreLog\":true,\"inputs\":{}},\"2345234\":{\"sendAndForget\":true,\"ignoreLog\":true,\"inputs\":{}}}}}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 11:01:05');
INSERT INTO `sys_oper_log` VALUES (5053, '定时任务', 2, 'com.zc.manager.rule.engine.controller.IotJobController.bind()', 'PUT', 1, 'admin', NULL, '/rule-engine/job/bind/3', '127.0.0.1', '内网IP', '3 {\"properties\":{},\"functions\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 11:01:45');
INSERT INTO `sys_oper_log` VALUES (5054, '新增设备', 1, 'com.zc.device.controller.IotDeviceController.addDevice()', 'POST', 1, 'admin', NULL, '/iot/device', '127.0.0.1', '内网IP', '{\"address\":\"\",\"productId\":\"plc2\",\"configuration\":\"{}\",\"deviceName\":\"1007\",\"createTime\":1683515276905,\"deviceState\":\"notActive\",\"id\":\"1007\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 11:07:56');
INSERT INTO `sys_oper_log` VALUES (5055, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[{\\\"id\\\":\\\"345\\\",\\\"name\\\":\\\"2345\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\",\\\"unit\\\":\\\"percent\\\"},\\\"expands\\\":{\\\"readOnly\\\":\\\"false\\\",\\\"source\\\":\\\"device\\\"},\\\"description\\\":\\\"45\\\"}],\\\"functions\\\":[],\\\"events\\\":[],\\\"tags\\\":[]}\",\"updateTime\":1683526234437,\"params\":{},\"productName\":\"plc2\",\"storePolicy\":\"none\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1683514727000,\"transportProtocol\":\"TCP\",\"id\":\"plc2\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 14:10:34');
INSERT INTO `sys_oper_log` VALUES (5056, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc2', '127.0.0.1', '内网IP', 'plc2', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 14:10:34');
INSERT INTO `sys_oper_log` VALUES (5057, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[],\\\"tags\\\":[]}\",\"updateTime\":1683526754056,\"params\":{},\"productName\":\"plc2\",\"storePolicy\":\"none\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1683514727000,\"transportProtocol\":\"TCP\",\"id\":\"plc2\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 14:19:14');
INSERT INTO `sys_oper_log` VALUES (5058, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc2', '127.0.0.1', '内网IP', 'plc2', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 14:19:16');
INSERT INTO `sys_oper_log` VALUES (5059, '定时任务', 2, 'com.zc.manager.rule.engine.controller.IotJobController.bind()', 'PUT', 1, 'admin', NULL, '/rule-engine/job/bind/3', '127.0.0.1', '内网IP', '3 {\"properties\":{\"plc\":{\"1000\":{\"name\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"},\"A1\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"},\"temperature\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"}},\"1005\":{\"23423\":{\"sendAndForget\":true,\"ignoreLog\":true,\"type\":\"get\"}}}},\"functions\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 15:17:46');
INSERT INTO `sys_oper_log` VALUES (5060, '定时任务', 2, 'com.zc.manager.rule.engine.controller.IotJobController.bind()', 'PUT', 1, 'admin', NULL, '/rule-engine/job/bind/3', '127.0.0.1', '内网IP', '3 {\"properties\":{},\"functions\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-08 15:38:24');
INSERT INTO `sys_oper_log` VALUES (5061, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[{\\\"id\\\":\\\"fire_alarm\\\",\\\"name\\\":\\\"fire_alarm\\\",\\\"expands\\\":{\\\"level\\\":\\\"urgent\\\"},\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[{\\\"id\\\":\\\"lat\\\",\\\"name\\\":\\\"lat\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null},{\\\"id\\\":\\\"lon\\\",\\\"name\\\":\\\"lon\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"float\\\",\\\"scale\\\":2},\\\"expands\\\":{},\\\"description\\\":null}],\\\"type\\\":\\\"object\\\"},\\\"description\\\":null}],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683594916613,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"default-row\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:15:16');
INSERT INTO `sys_oper_log` VALUES (5062, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:15:17');
INSERT INTO `sys_oper_log` VALUES (5063, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[{\\\"id\\\":\\\"fire_alarm\\\",\\\"name\\\":\\\"fire_alarm\\\",\\\"expands\\\":{\\\"level\\\":\\\"urgent\\\"},\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[{\\\"id\\\":\\\"lat\\\",\\\"name\\\":\\\"lat\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null},{\\\"id\\\":\\\"lon\\\",\\\"name\\\":\\\"lon\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"float\\\",\\\"scale\\\":0},\\\"expands\\\":{},\\\"description\\\":null}],\\\"type\\\":\\\"object\\\"},\\\"description\\\":null}],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683595036279,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"default-row\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:17:16');
INSERT INTO `sys_oper_log` VALUES (5064, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:17:16');
INSERT INTO `sys_oper_log` VALUES (5065, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[{\\\"id\\\":\\\"fire_alarm\\\",\\\"name\\\":\\\"fire_alarm\\\",\\\"expands\\\":{\\\"level\\\":\\\"urgent\\\"},\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[{\\\"id\\\":\\\"lat\\\",\\\"name\\\":\\\"lat\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null},{\\\"id\\\":\\\"lon\\\",\\\"name\\\":\\\"lon\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null}],\\\"type\\\":\\\"object\\\"},\\\"description\\\":null}],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683595071210,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"default-row\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:17:51');
INSERT INTO `sys_oper_log` VALUES (5066, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:17:51');
INSERT INTO `sys_oper_log` VALUES (5067, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[{\\\"id\\\":\\\"fire_alarm\\\",\\\"name\\\":\\\"fire_alarm\\\",\\\"expands\\\":{\\\"level\\\":\\\"urgent\\\"},\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[{\\\"id\\\":\\\"lat\\\",\\\"name\\\":\\\"lat\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"float\\\",\\\"scale\\\":1},\\\"expands\\\":{},\\\"description\\\":null},{\\\"id\\\":\\\"lon\\\",\\\"name\\\":\\\"lon\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null}],\\\"type\\\":\\\"object\\\"},\\\"description\\\":null}],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683595645625,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"default-row\",\"protocol\":{\"publishState\":1,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:27:25');
INSERT INTO `sys_oper_log` VALUES (5068, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:27:26');
INSERT INTO `sys_oper_log` VALUES (5069, '取消发布', 3, 'com.zc.device.controller.IotProductController.undeploy()', 'DELETE', 1, 'admin', NULL, '/iot/product/undeploy/plc', '127.0.0.1', '内网IP', '{id=plc}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:39:30');
INSERT INTO `sys_oper_log` VALUES (5070, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[{\\\"id\\\":\\\"fire_alarm\\\",\\\"name\\\":\\\"fire_alarm\\\",\\\"expands\\\":{\\\"level\\\":\\\"urgent\\\"},\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[{\\\"id\\\":\\\"lat\\\",\\\"name\\\":\\\"lat\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"float\\\",\\\"scale\\\":1},\\\"expands\\\":{},\\\"description\\\":null},{\\\"id\\\":\\\"lon\\\",\\\"name\\\":\\\"lon\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null}],\\\"type\\\":\\\"object\\\"},\\\"description\\\":null}],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683596374546,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"none\",\"protocol\":{\"publishState\":0,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:39:34');
INSERT INTO `sys_oper_log` VALUES (5071, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:39:39');
INSERT INTO `sys_oper_log` VALUES (5072, '取消发布', 3, 'com.zc.device.controller.IotProductController.undeploy()', 'DELETE', 1, 'admin', NULL, '/iot/product/undeploy/plc', '127.0.0.1', '内网IP', '{id=plc}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:40:04');
INSERT INTO `sys_oper_log` VALUES (5073, '产品修改', 2, 'com.zc.device.controller.IotProductController.edit()', 'PUT', 1, 'admin', NULL, '/iot/product', '127.0.0.1', '内网IP', '{\"deviceType\":\"gateway\",\"publishState\":0,\"metadata\":\"{\\\"properties\\\":[],\\\"functions\\\":[],\\\"events\\\":[{\\\"id\\\":\\\"fire_alarm\\\",\\\"name\\\":\\\"fire_alarm\\\",\\\"expands\\\":{\\\"level\\\":\\\"urgent\\\"},\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[{\\\"id\\\":\\\"lat\\\",\\\"name\\\":\\\"lat\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"float\\\",\\\"scale\\\":1},\\\"expands\\\":{},\\\"description\\\":null},{\\\"id\\\":\\\"lon\\\",\\\"name\\\":\\\"lon\\\",\\\"valueType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"elementType\\\":{\\\"expands\\\":{},\\\"elements\\\":[{}],\\\"properties\\\":[]},\\\"properties\\\":[],\\\"type\\\":\\\"int\\\"},\\\"expands\\\":{},\\\"description\\\":null}],\\\"type\\\":\\\"object\\\"},\\\"description\\\":null}],\\\"tags\\\":[]}\",\"configuration\":\"{\\\"handshake_code\\\":\\\"46494E530000000C00000000000000000000000B\\\"}\",\"updateTime\":1683596411876,\"params\":{},\"productName\":\"PLC\",\"storePolicy\":\"default-row\",\"protocol\":{\"publishState\":0,\"protocolType\":\"jar\",\"params\":{},\"protocolName\":\"plc\"},\"protocolId\":\"plc\",\"createTime\":1681195378000,\"transportProtocol\":\"TCP\",\"id\":\"plc\",\"category\":{\"params\":{},\"categoryName\":\"用户端设备\",\"categoryMark\":\"customer_premises_equipment\",\"children\":[]},\"categoryId\":28}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:40:11');
INSERT INTO `sys_oper_log` VALUES (5074, '产品发布', 2, 'com.zc.device.controller.IotProductController.deploy()', 'POST', 1, 'admin', NULL, '/iot/product/deploy/plc', '127.0.0.1', '内网IP', 'plc', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2023-05-09 09:40:14');
-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post` (
`post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
`post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
`post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
`post_sort` int(4) NOT NULL COMMENT '显示顺序',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`post_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_post
-- ----------------------------
INSERT INTO `sys_post` VALUES (1, 'ceo', '董事长', 1, '0', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '0', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '0', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '0', 'admin', '2021-09-11 09:27:35', '', NULL, '');
INSERT INTO `sys_post` VALUES (5, 'sdfgsdfg', 'dfdf', 5, '0', 'admin', '2022-02-26 16:32:24', '', NULL, NULL);
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
`role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
`role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
`role_sort` int(4) NOT NULL COMMENT '显示顺序',
`data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
`menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
`dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2021-09-11 09:27:35', '', NULL, '超级管理员');
INSERT INTO `sys_role` VALUES (2, '普通角色', 'common', 2, '2', 0, 0, '0', '0', 'admin', '2021-09-11 09:27:35', 'admin', '2023-04-16 18:52:15', '普通角色');
INSERT INTO `sys_role` VALUES (3, 'test', 'e', 0, '1', 0, 0, '1', '2', 'admin', '2022-05-11 17:55:52', 'admin', '2023-04-16 18:40:02', NULL);
-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
`dept_id` bigint(20) NOT NULL COMMENT '部门ID',
PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept` VALUES (2, 100);
INSERT INTO `sys_role_dept` VALUES (2, 101);
INSERT INTO `sys_role_dept` VALUES (2, 105);
-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
`menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_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, 100);
INSERT INTO `sys_role_menu` VALUES (2, 101);
INSERT INTO `sys_role_menu` VALUES (2, 102);
INSERT INTO `sys_role_menu` VALUES (2, 103);
INSERT INTO `sys_role_menu` VALUES (2, 104);
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, 500);
INSERT INTO `sys_role_menu` VALUES (2, 501);
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, 1016);
INSERT INTO `sys_role_menu` VALUES (2, 1017);
INSERT INTO `sys_role_menu` VALUES (2, 1018);
INSERT INTO `sys_role_menu` VALUES (2, 1019);
INSERT INTO `sys_role_menu` VALUES (2, 1020);
INSERT INTO `sys_role_menu` VALUES (2, 1021);
INSERT INTO `sys_role_menu` VALUES (2, 1022);
INSERT INTO `sys_role_menu` VALUES (2, 1023);
INSERT INTO `sys_role_menu` VALUES (2, 1024);
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, 1140);
INSERT INTO `sys_role_menu` VALUES (2, 1146);
INSERT INTO `sys_role_menu` VALUES (2, 1147);
INSERT INTO `sys_role_menu` VALUES (2, 1148);
INSERT INTO `sys_role_menu` VALUES (2, 1155);
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
`user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
`nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
`user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型(00系统用户)',
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
`phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
`avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址',
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
`login_date` datetime(0) NULL DEFAULT NULL COMMENT '最后登录时间',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 103, 'admin', '管理员', '00', 'ry@163.com', '15888888888', '1', '/profile/avatar/2022/10/26/blob_20221026153912A004.jpeg', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2021-11-09 16:34:04', 'admin', '2021-09-11 09:27:34', '', '2022-05-06 17:42:47', '管理员');
INSERT INTO `sys_user` VALUES (2, 105, 'ry', '如意', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '2', '127.0.0.1', '2021-09-11 09:27:34', 'admin', '2021-09-11 09:27:34', 'admin', '2021-12-13 11:13:21', '测试员');
INSERT INTO `sys_user` VALUES (3, 105, '公凡飞', 'gongfanfei', '00', '', '17606181518', '0', '', '$2a$10$Ki6ivtKcRWqOe1gs9d7mtOU8Q1zo6aGYApAlSn.niXxIUNGLbLgAG', '0', '2', '', NULL, 'admin', '2021-12-14 13:58:13', 'admin', '2022-08-05 15:08:37', NULL);
INSERT INTO `sys_user` VALUES (4, 100, 'xiepufeng', '谢朴峰', '00', '1072271977@qq.com', '15098202428', '0', '', '$2a$10$0o1WoszTWUIPIuZFDkVbkuatGZJT.TYM/R2cWnev95IBrPNqi5q9m', '0', '0', '', NULL, 'admin', '2022-05-06 17:44:06', 'admin', '2022-12-08 17:02:15', NULL);
INSERT INTO `sys_user` VALUES (5, NULL, 'xiepufeng1', 'xiepufeng1', '00', '', '', '0', '', '$2a$10$RQIDn/2Xv/wY.HGDHJlGxOKA4jgQFqG6bnSe.CKKRDSHSQ0Sv9QjK', '0', '2', '', NULL, '', '2022-08-10 15:41:42', '', NULL, NULL);
INSERT INTO `sys_user` VALUES (6, NULL, 'xiepufeng2', 'xiepufeng2', '00', '', '', '0', '', '$2a$10$ONvp7L7H7mirzKy3p6OYaOW9opd36s4YdPtPBDS6cZezPk5ExUOvO', '0', '2', '', NULL, '', '2022-08-10 16:15:00', '', NULL, NULL);
INSERT INTO `sys_user` VALUES (7, NULL, 'xiepufeng3', 'xiepufeng3', '00', '', '', '0', '', '$2a$10$wlpMzbROd1YpFZ3wV8stgOcq8WP/O9wRDaGiNy8sroC8bR4vGaxRm', '0', '2', '', NULL, '', '2022-08-10 17:12:33', '', NULL, NULL);
INSERT INTO `sys_user` VALUES (8, NULL, 'xiepufeng4', 'xiepufeng4', '00', '', '', '0', '', '$2a$10$fjXJFBrb6mF.Wa/N/dxT8eecFtxKNBqf60v0UEzztTLSvzRKTRfI2', '0', '2', '', NULL, '', '2022-08-10 17:14:16', '', NULL, NULL);
INSERT INTO `sys_user` VALUES (9, NULL, 'xiepufeng5', 'xiepufeng5', '00', '', '', '0', '', '$2a$10$K8EhwwOHvaufufDMtmO6iOYFflnZVDddc9Pd8nAU1hZpr2pQGSJAO', '0', '2', '', NULL, '', '2022-08-10 17:21:19', '', NULL, NULL);
-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post` (
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
`post_id` bigint(20) NOT NULL COMMENT '岗位ID',
PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_post
-- ----------------------------
INSERT INTO `sys_user_post` VALUES (1, 1);
INSERT INTO `sys_user_post` VALUES (4, 1);
-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (1, 1);
INSERT INTO `sys_user_role` VALUES (4, 2);
SET FOREIGN_KEY_CHECKS = 1;