/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 80031
Source Host           : 127.0.0.1:3306
Source Database       : yangjiang

Target Server Type    : MYSQL
Target Server Version : 80031
File Encoding         : 65001

Date: 2023-02-23 09:04:01
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for db_bindingdevice1
-- ----------------------------
DROP TABLE IF EXISTS `db_bindingdevice1`;
CREATE TABLE `db_bindingdevice1` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_bindingdevice2
-- ----------------------------
DROP TABLE IF EXISTS `db_bindingdevice2`;
CREATE TABLE `db_bindingdevice2` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_bindingdevice3
-- ----------------------------
DROP TABLE IF EXISTS `db_bindingdevice3`;
CREATE TABLE `db_bindingdevice3` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_bindingdevice4
-- ----------------------------
DROP TABLE IF EXISTS `db_bindingdevice4`;
CREATE TABLE `db_bindingdevice4` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_bindingdevice5
-- ----------------------------
DROP TABLE IF EXISTS `db_bindingdevice5`;
CREATE TABLE `db_bindingdevice5` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_bindingdevice6
-- ----------------------------
DROP TABLE IF EXISTS `db_bindingdevice6`;
CREATE TABLE `db_bindingdevice6` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_electromagnetic
-- ----------------------------
DROP TABLE IF EXISTS `db_electromagnetic`;
CREATE TABLE `db_electromagnetic` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `device_name` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备名称',
  `device_number` int DEFAULT NULL COMMENT '设备编号',
  `electromagnetic` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_internetport
-- ----------------------------
DROP TABLE IF EXISTS `db_internetport`;
CREATE TABLE `db_internetport` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `terminal_equipment_type` int DEFAULT NULL COMMENT '终端设备类型',
  `terminal_equipment_id` int DEFAULT NULL COMMENT '终端设备id',
  `version_number` int DEFAULT NULL COMMENT '版本号',
  `device_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '所属设备id/消息id',
  `device_idd` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `device_name` varchar(255) DEFAULT NULL,
  `terminalip` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `terminalport` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `terminalsubnetmask` varchar(64) DEFAULT NULL,
  `gatewayip` varchar(64) DEFAULT NULL,
  `platformip` varchar(64) DEFAULT NULL,
  `platformport` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `record_time` (`record_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_multiparameter
-- ----------------------------
DROP TABLE IF EXISTS `db_multiparameter`;
CREATE TABLE `db_multiparameter` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `device_name` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备名称',
  `device_number` int DEFAULT NULL COMMENT '设备编号',
  `conductivity` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `temperature` varchar(64) DEFAULT NULL,
  `dissolvedoxygen` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `turbidity` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `chlorophyll` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `ph` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `record_time` (`record_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_ol
-- ----------------------------
DROP TABLE IF EXISTS `db_ol`;
CREATE TABLE `db_ol` (
  `id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `rawdata` varchar(64) DEFAULT NULL,
  `fdata` float(8,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `record_time` (`record_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_serialport
-- ----------------------------
DROP TABLE IF EXISTS `db_serialport`;
CREATE TABLE `db_serialport` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `terminal_equipment_type` int DEFAULT NULL COMMENT '终端设备类型',
  `terminal_equipment_id` int DEFAULT NULL COMMENT '终端设备id',
  `version_number` int DEFAULT NULL COMMENT '版本号',
  `device_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '所属设备id/消息id',
  `device_idd` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `device_name` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备名称',
  `acquisitioninterface` varchar(64) DEFAULT NULL COMMENT '采集接口',
  `interfacenum` int DEFAULT NULL COMMENT '接口号',
  `baudrate` varchar(64) DEFAULT NULL COMMENT '波特率',
  `wordlength` int DEFAULT NULL COMMENT '字长',
  `stopbit` varchar(64) DEFAULT NULL COMMENT '停止位',
  `paritybit` varchar(64) DEFAULT NULL COMMENT '校验位',
  `state` varchar(64) DEFAULT NULL COMMENT '开关状态',
  PRIMARY KEY (`id`),
  KEY `record_time` (`record_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_statusdata
-- ----------------------------
DROP TABLE IF EXISTS `db_statusdata`;
CREATE TABLE `db_statusdata` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `serialnumber` int DEFAULT NULL,
  `terminal_equipment_type` int DEFAULT NULL COMMENT '终端设备类型',
  `terminal_equipment_id` int DEFAULT NULL COMMENT '终端设备id',
  `version_number` int DEFAULT NULL COMMENT '版本号',
  `device_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '所属设备id/消息id',
  `device_idd` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `device_name` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备名称',
  `device_number` int DEFAULT NULL COMMENT '设备编号',
  `leaksignal1` varchar(64) DEFAULT NULL,
  `leaksignal2` varchar(64) DEFAULT NULL,
  `temperature1` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `temperature2` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `humidity` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `totalinputvoltage` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `totalinputcurrent` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputvoltage48` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputvoltage24` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputvoltage12` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputcurrent1` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputcurrent2` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputcurrent3` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputcurrent4` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputcurrent5` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputcurrent6` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputfeedbacksignal1` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputfeedbacksignal2` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputfeedbacksignal3` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputfeedbacksignal4` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputfeedbacksignal5` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `outputfeedbacksignal6` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `totalcapacity` int DEFAULT NULL,
  `remainingcapacity` int DEFAULT NULL,
  `leakagesignal1` varchar(255) DEFAULT NULL,
  `leakagesignal2` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `record_time` (`record_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for db_transparenttransmissiondata
-- ----------------------------
DROP TABLE IF EXISTS `db_transparenttransmissiondata`;
CREATE TABLE `db_transparenttransmissiondata` (
  `id` varchar(64) NOT NULL,
  `record_time` datetime DEFAULT NULL,
  `terminal_equipment_type` int DEFAULT NULL COMMENT '终端设备类型',
  `terminal_equipment_id` int DEFAULT NULL COMMENT '终端设备id',
  `version_number` int DEFAULT NULL COMMENT '版本号',
  `device_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '所属设备id/消息id',
  `device_idd` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `device_name` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备名称',
  `device_number` int DEFAULT NULL COMMENT '设备编号',
  `acquisitioninterface` varchar(64) DEFAULT NULL,
  `interfacenum` int DEFAULT NULL,
  `transparentdata` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Table structure for ztms_observe_yangjiang_data
-- ----------------------------
DROP TABLE IF EXISTS `ztms_observe_yangjiang_data`;
CREATE TABLE `ztms_observe_yangjiang_data` (
  `id` varchar(64) NOT NULL,
  `project_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '所属站点id',
  `node_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '所属节点id',
  `terminal_equipment_type` int DEFAULT NULL COMMENT '终端设备类型',
  `terminal_equipment_id` int DEFAULT NULL COMMENT '终端设备id',
  `version_number` int DEFAULT NULL COMMENT '版本号',
  `serialnumber` int DEFAULT NULL,
  `device_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '所属设备id',
  `device_idd` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `record_time` datetime DEFAULT NULL COMMENT '记录时间',
  `device_name` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备名称',
  `device_number` int DEFAULT NULL,
  `device_status` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '设备状态',
  `cycle_time` int DEFAULT NULL COMMENT '心跳周期',
  `sync_time` bigint DEFAULT NULL COMMENT '服务器时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
