46 lines
2.3 KiB
SQL
46 lines
2.3 KiB
SQL
/*
|
|
Navicat Premium Data Transfer
|
|
|
|
Source Server : 172.16.40.64-4#ems_mysql
|
|
Source Server Type : MySQL
|
|
Source Server Version : 50151 (5.1.51-log)
|
|
Source Host : 172.16.40.64:3306
|
|
Source Schema : hjems
|
|
|
|
Target Server Type : MySQL
|
|
Target Server Version : 50151 (5.1.51-log)
|
|
File Encoding : 65001
|
|
|
|
Date: 04/06/2024 13:40:51
|
|
*/
|
|
|
|
SET NAMES utf8;
|
|
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 '型号',
|
|
`device_port_type` tinyint(4) NULL DEFAULT 0 COMMENT '0:RS485 1:CAN 2:RS323 3:RJ45 4:AI 5:DI 6:Other',
|
|
`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
|
|
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- 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;
|