/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 50710
Source Host           : 127.0.0.1:3306
Source Database       : sysxhxswsys_zrs

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

Date: 2023-03-14 14:22:25
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for control
-- ----------------------------
DROP TABLE IF EXISTS `control`;
CREATE TABLE `control` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `class` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for control_copy
-- ----------------------------
DROP TABLE IF EXISTS `control_copy`;
CREATE TABLE `control_copy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `class` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for control_copy_copy
-- ----------------------------
DROP TABLE IF EXISTS `control_copy_copy`;
CREATE TABLE `control_copy_copy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `class` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for environment
-- ----------------------------
DROP TABLE IF EXISTS `environment`;
CREATE TABLE `environment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `Cur_48_in` float(11,2) DEFAULT NULL,
  `Cur_Switch24_1_1` float(11,2) DEFAULT NULL,
  `Cur_Switch24_1_2` float(11,2) DEFAULT NULL,
  `Cur_Switch24_1_3` float(11,2) DEFAULT NULL,
  `Cur_Switch24_1_4` float(11,2) DEFAULT NULL,
  `Cur_Switch24_1_5` float(11,2) DEFAULT NULL,
  `Cur_Switch24_2_1` float(11,2) DEFAULT NULL,
  `Cur_Switch24_2_2` float(11,2) DEFAULT NULL,
  `Cur_Switch24_2_3` float(11,2) DEFAULT NULL,
  `Cur_Switch24_2_4` float(11,2) DEFAULT NULL,
  `Cur_Switch24_2_5` float(11,2) DEFAULT NULL,
  `Cur_Switch24_3_1` float(11,2) DEFAULT NULL,
  `Cur_Switch24_3_2` float(11,2) DEFAULT NULL,
  `Cur_Switch24_3_3` float(11,2) DEFAULT NULL,
  `Cur_Switch24_3_4` float(11,2) DEFAULT NULL,
  `Cur_Switch24_3_5` float(11,2) DEFAULT NULL,
  `Cur_Switch12_1_1` float(11,2) DEFAULT NULL,
  `Cur_Switch12_1_2` float(11,2) DEFAULT NULL,
  `Cur_Switch12_1_3` float(11,2) DEFAULT NULL,
  `Cur_Switch12_1_4` float(11,2) DEFAULT NULL,
  `Cur_Switch12_1_5` float(11,2) DEFAULT NULL,
  `Tem1_1_1` float(11,2) DEFAULT NULL,
  `Tem1_1_2` float(11,2) DEFAULT NULL,
  `Tem1_1_3` float(11,2) DEFAULT NULL,
  `Tem1_1_4` float(11,2) DEFAULT NULL,
  `Hum1_1_1` float(11,2) DEFAULT NULL,
  `LK1_1_1` float(11,2) DEFAULT NULL,
  `LK1_1_2` float(11,2) DEFAULT NULL,
  `Ground_48` float(11,2) DEFAULT NULL,
  `Ground_24` float(11,2) DEFAULT NULL,
  `Ground_12` float(11,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=178251 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for log
-- ----------------------------
DROP TABLE IF EXISTS `log`;
CREATE TABLE `log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `single_Cur` float(11,2) DEFAULT NULL,
  `Allin_Cur` float(11,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5380 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_czt_data
-- ----------------------------
DROP TABLE IF EXISTS `sensor_czt_data`;
CREATE TABLE `sensor_czt_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `time` varchar(255) DEFAULT NULL,
  `channel_count` varchar(255) DEFAULT NULL,
  `fragment_count` varchar(255) DEFAULT NULL,
  `data` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35723 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_czt_state
-- ----------------------------
DROP TABLE IF EXISTS `sensor_czt_state`;
CREATE TABLE `sensor_czt_state` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `count` int(255) DEFAULT NULL,
  `front_temp` float(8,2) DEFAULT NULL,
  `voltage` float(8,2) DEFAULT NULL,
  `time` varchar(255) DEFAULT NULL,
  `angle` varchar(255) DEFAULT NULL,
  `temp` float(8,2) DEFAULT NULL,
  `hum` float(8,2) DEFAULT NULL,
  `Count_rate` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `data_flash` float(8,2) DEFAULT NULL,
  `state_flash` float(8,2) DEFAULT NULL,
  `channel_count` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=210 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_dhfjyg
-- ----------------------------
DROP TABLE IF EXISTS `sensor_dhfjyg`;
CREATE TABLE `sensor_dhfjyg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `v_in` varchar(255) DEFAULT NULL,
  `v_yg` varchar(255) DEFAULT NULL,
  `nd_yg` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1441 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_ldmyg
-- ----------------------------
DROP TABLE IF EXISTS `sensor_ldmyg`;
CREATE TABLE `sensor_ldmyg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `v_in` varchar(255) DEFAULT NULL,
  `v_yg` varchar(255) DEFAULT NULL,
  `nd_yg` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_mems
-- ----------------------------
DROP TABLE IF EXISTS `sensor_mems`;
CREATE TABLE `sensor_mems` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `pre` float(10,4) DEFAULT NULL,
  `hum` float(8,4) DEFAULT NULL,
  `tem` float(8,4) DEFAULT NULL,
  `data1` float(8,4) DEFAULT NULL,
  `data2` float(8,4) DEFAULT NULL,
  `data3` float(8,4) DEFAULT NULL,
  `data4` float(8,4) DEFAULT NULL,
  `data5` float(8,4) DEFAULT NULL,
  `data6` float(8,4) DEFAULT NULL,
  `data7` float(8,4) DEFAULT NULL,
  `data8` float(8,4) DEFAULT NULL,
  `data9` float(8,4) DEFAULT NULL,
  `data10` float(8,4) DEFAULT NULL,
  `data11` float(8,4) DEFAULT NULL,
  `data12` float(8,4) DEFAULT NULL,
  `data13` float(8,4) DEFAULT NULL,
  `data14` float(8,4) DEFAULT NULL,
  `data15` float(8,4) DEFAULT NULL,
  `data16` float(8,4) DEFAULT NULL,
  `data17` float(8,4) DEFAULT NULL,
  `data18` float(8,4) DEFAULT NULL,
  `data19` float(8,4) DEFAULT NULL,
  `data20` float(8,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4100 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_qxsp_data
-- ----------------------------
DROP TABLE IF EXISTS `sensor_qxsp_data`;
CREATE TABLE `sensor_qxsp_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `date_np` float(8,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=84440 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_qxsp_state
-- ----------------------------
DROP TABLE IF EXISTS `sensor_qxsp_state`;
CREATE TABLE `sensor_qxsp_state` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `temp_spz` float(8,2) DEFAULT NULL,
  `temp_jcq` float(8,2) DEFAULT NULL,
  `temp_ltf` float(8,2) DEFAULT NULL,
  `temp_brg` float(8,2) DEFAULT NULL,
  `temp_fjz` float(8,2) DEFAULT NULL,
  `pre_cyg` float(8,2) DEFAULT NULL,
  `pre_zq` float(8,2) DEFAULT NULL,
  `pre_gd` float(8,2) DEFAULT NULL,
  `pre` float(8,2) DEFAULT NULL,
  `temp` float(8,2) DEFAULT NULL,
  `hum` float(8,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12537 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_rjqgp
-- ----------------------------
DROP TABLE IF EXISTS `sensor_rjqgp`;
CREATE TABLE `sensor_rjqgp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `nd1` float(8,2) DEFAULT NULL,
  `nd2` float(8,2) DEFAULT NULL,
  `nd3` float(8,2) DEFAULT NULL,
  `nd4` float(8,2) DEFAULT NULL,
  `temp` float(8,2) DEFAULT NULL,
  `hum` float(8,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_rjqgp_copy
-- ----------------------------
DROP TABLE IF EXISTS `sensor_rjqgp_copy`;
CREATE TABLE `sensor_rjqgp_copy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `nd1` float(8,2) DEFAULT NULL,
  `nd2` float(8,2) DEFAULT NULL,
  `nd3` float(8,2) DEFAULT NULL,
  `nd4` float(8,2) DEFAULT NULL,
  `temp` float(8,2) DEFAULT NULL,
  `hum` float(8,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_ssjt_data
-- ----------------------------
DROP TABLE IF EXISTS `sensor_ssjt_data`;
CREATE TABLE `sensor_ssjt_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `time` varchar(255) DEFAULT NULL,
  `channel_count` varchar(255) DEFAULT NULL,
  `fragment_count` varchar(255) DEFAULT NULL,
  `data` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28339 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_ssjt_state
-- ----------------------------
DROP TABLE IF EXISTS `sensor_ssjt_state`;
CREATE TABLE `sensor_ssjt_state` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `count` int(255) DEFAULT NULL,
  `front_temp` float(8,2) DEFAULT NULL,
  `voltage` float(8,2) DEFAULT NULL,
  `time` varchar(255) DEFAULT NULL,
  `angle` varchar(255) DEFAULT NULL,
  `temp` float(8,2) DEFAULT NULL,
  `hum` float(8,2) DEFAULT NULL,
  `Count_rate` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `data_flash` float(8,2) DEFAULT NULL,
  `state_flash` float(8,2) DEFAULT NULL,
  `channel_count` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=158 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_wswyg
-- ----------------------------
DROP TABLE IF EXISTS `sensor_wswyg`;
CREATE TABLE `sensor_wswyg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `v_in` varchar(255) DEFAULT NULL,
  `v_yg` varchar(255) DEFAULT NULL,
  `nd_yg` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_ylsyg
-- ----------------------------
DROP TABLE IF EXISTS `sensor_ylsyg`;
CREATE TABLE `sensor_ylsyg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `v_in` varchar(255) DEFAULT NULL,
  `v_yg` varchar(255) DEFAULT NULL,
  `nd_yg` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=328 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_zpy
-- ----------------------------
DROP TABLE IF EXISTS `sensor_zpy`;
CREATE TABLE `sensor_zpy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `data1` float(20,2) DEFAULT NULL,
  `data2` float(20,2) DEFAULT NULL,
  `data3` float(20,2) DEFAULT NULL,
  `data4` float(20,2) DEFAULT NULL,
  `data5` float(20,2) DEFAULT NULL,
  `data6` float(20,2) DEFAULT NULL,
  `data7` float(20,2) DEFAULT NULL,
  `data8` float(20,2) DEFAULT NULL,
  `data9` float(20,2) DEFAULT NULL,
  `data10` float(20,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=302 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for sensor_zpy_state
-- ----------------------------
DROP TABLE IF EXISTS `sensor_zpy_state`;
CREATE TABLE `sensor_zpy_state` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `temp` float(8,2) DEFAULT NULL,
  `hum` float(8,2) DEFAULT NULL,
  `pre` float(8,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=410 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for serialport_set
-- ----------------------------
DROP TABLE IF EXISTS `serialport_set`;
CREATE TABLE `serialport_set` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `para_name` varchar(255) DEFAULT NULL,
  `port_name` varchar(255) DEFAULT NULL,
  `baudrate` varchar(255) DEFAULT NULL,
  `parity` varchar(255) DEFAULT NULL,
  `databits` varchar(255) DEFAULT NULL,
  `stopbits` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
