2024-06-04 13:36:17 +08:00
|
|
|
/*
|
|
|
|
Navicat Premium Data Transfer
|
|
|
|
|
2024-12-03 22:06:29 +08:00
|
|
|
Source Server : 127.0.0.1_mysql
|
2024-06-04 13:36:17 +08:00
|
|
|
Source Server Type : MySQL
|
2024-12-03 22:06:29 +08:00
|
|
|
Source Server Version : 50741 (5.7.41-log)
|
|
|
|
Source Host : localhost:3306
|
2024-06-04 13:36:17 +08:00
|
|
|
Source Schema : hjems
|
|
|
|
|
|
|
|
Target Server Type : MySQL
|
2024-12-03 22:06:29 +08:00
|
|
|
Target Server Version : 50741 (5.7.41-log)
|
2024-06-04 13:36:17 +08:00
|
|
|
File Encoding : 65001
|
|
|
|
|
2024-12-03 22:06:29 +08:00
|
|
|
Date: 03/12/2024 22:04:04
|
2024-06-04 13:36:17 +08:00
|
|
|
*/
|
|
|
|
|
2024-12-03 22:06:29 +08:00
|
|
|
SET NAMES utf8mb4;
|
2024-06-04 13:36:17 +08:00
|
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Table structure for tbl_inner_deivce
|
|
|
|
-- ----------------------------
|
|
|
|
DROP TABLE IF EXISTS `tbl_inner_deivce`;
|
|
|
|
CREATE TABLE `tbl_inner_deivce` (
|
|
|
|
`devid` int(11) NOT NULL COMMENT '设备id',
|
|
|
|
`device_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称',
|
|
|
|
`device_name_en` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备英文名',
|
|
|
|
`device_model` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '型号',
|
2024-06-05 20:50:40 +08:00
|
|
|
`device_port_type` tinyint(4) NULL DEFAULT 0 COMMENT '0:RS485 1:CAN 2:RS323 3:RJ45 4:AI 5:DI 6:Other',
|
2024-06-04 13:36:17 +08:00
|
|
|
`device_port` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '端口号或者IPAddr:Port',
|
|
|
|
`device_addr` tinyint(4) NULL DEFAULT 1 COMMENT '485端口地址',
|
|
|
|
`deivce_protocol` tinyint(4) NULL DEFAULT NULL COMMENT '0:Modbus_RTU 1:Modbus_TCP 2:CAN 3:7E 4:Other',
|
|
|
|
`device_manufacturer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '制造商',
|
|
|
|
`device_memo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他信息',
|
|
|
|
`device_display_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '在列表中的显示名称',
|
|
|
|
`device_display_name_en` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '在列表中的显示英文名称',
|
|
|
|
PRIMARY KEY (`devid`) USING BTREE
|
2024-12-03 22:06:29 +08:00
|
|
|
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
2024-06-04 13:36:17 +08:00
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Records of tbl_inner_deivce
|
|
|
|
-- ----------------------------
|
|
|
|
INSERT INTO `tbl_inner_deivce` VALUES (0, '英维克EC系列机柜空调器', NULL, 'DC3000', 0, '/dev/ttys0', 1, 0, '英维克', 'AirConditioner', 'Invek', '空调');
|
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|