/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1_mysql
 Source Server Type    : MySQL
 Source Server Version : 50741 (5.7.41-log)
 Source Host           : localhost:3306
 Source Schema         : hjems

 Target Server Type    : MySQL
 Target Server Version : 50741 (5.7.41-log)
 File Encoding         : 65001

 Date: 03/12/2024 22:04:04
*/

SET NAMES utf8mb4;
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;
