-- MySQL dump 10.13  Distrib 8.0.34, for Win64 (x86_64)
--
-- Host: 192.168.50.81    Database: cacdb
-- ------------------------------------------------------
-- Server version	5.7.44

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `admin`
--
CREATE DATABASE  IF NOT EXISTS `cacdb`;
USE `cacdb`;
ALTER SCHEMA `cacdb`  DEFAULT CHARACTER SET utf8;

DROP TABLE IF EXISTS `admin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `admin` (
  `id` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '管理员id',
  `name` varchar(45) NOT NULL COMMENT '管理员名称',
  `password` varchar(45) NOT NULL COMMENT '管理员密码',
  `menus` varchar(45) DEFAULT NULL COMMENT '菜单配置1:显示 0:隐藏',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin`
--

LOCK TABLES `admin` WRITE;
/*!40000 ALTER TABLE `admin` DISABLE KEYS */;
INSERT INTO `admin` VALUES (1,'admin','e10adc3949ba59abbe56e057f20f883e','1,1,1,1,1,1,1');
INSERT INTO `admin` VALUES (2,'user','e10adc3949ba59abbe56e057f20f883e','1,1,1,1,0,0,0');
/*!40000 ALTER TABLE `admin` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bdz`
--

DROP TABLE IF EXISTS `bdz`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bdz` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '电站ID',
  `mc` varchar(50) NOT NULL COMMENT '电站名称',
  `lx` varchar(20) DEFAULT NULL COMMENT '变电站/集控站',
  `pid` char(32) DEFAULT NULL COMMENT '集控站id',
  `gkjip` varchar(20) DEFAULT NULL COMMENT '工控机iP',
  `xfport` decimal(5,0) DEFAULT NULL COMMENT '消防通讯端口',
  `znxj` decimal(1,0) DEFAULT NULL COMMENT '1是0否，请在完全布置好后置1',
  `ztjcid` char(32) DEFAULT NULL COMMENT '该变电站在状态检测库中的ID,初始化为0',
  `enable` decimal(65,30) DEFAULT NULL COMMENT '该站是否在运行：1是，0或空不是',
  `xh` decimal(65,30) DEFAULT NULL COMMENT '序号',
  `bz` varchar(100) DEFAULT NULL,
  `hascac` tinyint(1) DEFAULT NULL COMMENT '1有0无',
  `coordinate` varchar(20) DEFAULT NULL COMMENT '坐标',
  `voltagegrade` int(11) DEFAULT NULL COMMENT '电压等级,单位kV',
  `scale` float DEFAULT NULL COMMENT '规模,单位MW',
  `note` varchar(255) DEFAULT NULL COMMENT '说明',
  `icon1` varchar(50) DEFAULT NULL COMMENT '图标1',
  `icon2` varchar(50) DEFAULT NULL COMMENT '图标2',
  `icon3` varchar(50) DEFAULT NULL COMMENT '图标3',
  `icon4` varchar(50) DEFAULT NULL COMMENT '图标4',
  `svgurl` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bdz`
--

LOCK TABLES `bdz` WRITE;
/*!40000 ALTER TABLE `bdz` DISABLE KEYS */;
INSERT INTO `bdz` VALUES (1,'上海抽水蓄能电站','变电站','9fd28489830b4cad8e598a8555e912eb',NULL,NULL,NULL,'',NULL,NULL,NULL,1,'',500,0,' ',NULL,NULL,NULL,NULL,'');
/*!40000 ALTER TABLE `bdz` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_aq_h`
--

DROP TABLE IF EXISTS `data_aq_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_aq_h` (
  `eqmid` int(11) NOT NULL COMMENT '监测设备ID',
  `d_time` datetime NOT NULL COMMENT '采样时间',
  `envtmp` float(7,0) DEFAULT NULL COMMENT '温度',
  `envhum` float(7,0) DEFAULT NULL COMMENT '湿度',
  `airquality` float(7,0) DEFAULT NULL COMMENT '空气质量',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_aq_h`
--

LOCK TABLES `data_aq_h` WRITE;
/*!40000 ALTER TABLE `data_aq_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_aq_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_arcflash`
--

DROP TABLE IF EXISTS `data_arcflash`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_arcflash` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `arcflash` varchar(45) DEFAULT NULL COMMENT '弧闪',
  PRIMARY KEY (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='弧闪数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_arcflash`
--

LOCK TABLES `data_arcflash` WRITE;
/*!40000 ALTER TABLE `data_arcflash` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_arcflash` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_byq_jbfd`
--

DROP TABLE IF EXISTS `data_byq_jbfd`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_byq_jbfd` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `dischargeCapacity` float DEFAULT NULL COMMENT '放电量',
  `dischargePosition` float DEFAULT NULL COMMENT '放电位置',
  `pulseCount` float DEFAULT NULL COMMENT '脉冲个数',
  `dischargeWaveform` blob COMMENT '放电波形',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='变压器局部放电';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_byq_jbfd`
--

LOCK TABLES `data_byq_jbfd` WRITE;
/*!40000 ALTER TABLE `data_byq_jbfd` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_byq_jbfd` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_cnj`
--

DROP TABLE IF EXISTS `data_cnj`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_cnj` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `chargeTime` float DEFAULT NULL COMMENT '储能时间',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='储能电机工作状态';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_cnj`
--

LOCK TABLES `data_cnj` WRITE;
/*!40000 ALTER TABLE `data_cnj` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_cnj` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_config`
--

DROP TABLE IF EXISTS `data_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `regcode` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_config`
--

LOCK TABLES `data_config` WRITE;
/*!40000 ALTER TABLE `data_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_dalieqm`
--

DROP TABLE IF EXISTS `data_dalieqm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_dalieqm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` char(15) DEFAULT NULL COMMENT '类型1=>点2=>线3=>框',
  `username` varchar(255) DEFAULT NULL COMMENT '温度',
  `pwd` int(11) DEFAULT NULL,
  `port` char(6) DEFAULT '8000' COMMENT '端口',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_dalieqm`
--

LOCK TABLES `data_dalieqm` WRITE;
/*!40000 ALTER TABLE `data_dalieqm` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_dalieqm` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_dcyw`
--

DROP TABLE IF EXISTS `data_dcyw`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_dcyw` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `oilTemperature` float DEFAULT NULL COMMENT '顶层油温',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='顶层油温';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_dcyw`
--

LOCK TABLES `data_dcyw` WRITE;
/*!40000 ALTER TABLE `data_dcyw` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_dcyw` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_dlg_h`
--

DROP TABLE IF EXISTS `data_dlg_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_dlg_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `tmp1` float(12,3) DEFAULT NULL COMMENT '1段温度',
  `tmp2` float(12,3) DEFAULT NULL COMMENT '2段温度',
  `tmp3` float(12,3) DEFAULT NULL COMMENT '母线洞温度',
  `hum1` float(12,3) DEFAULT NULL COMMENT '湿度',
  `hum2` float(12,3) DEFAULT NULL,
  `hum3` float(12,3) DEFAULT NULL,
  `awater` float(12,3) DEFAULT NULL COMMENT '水浸',
  `modevcomf1` int(5) DEFAULT NULL COMMENT '烟雾告警',
  `modevcomf2` int(5) DEFAULT NULL,
  `modevcomf3` int(5) DEFAULT NULL,
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_dlg_h`
--

LOCK TABLES `data_dlg_h` WRITE;
/*!40000 ALTER TABLE `data_dlg_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_dlg_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_dlg_statistics`
--

DROP TABLE IF EXISTS `data_dlg_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_dlg_statistics` (
  `id` varchar(32) NOT NULL,
  `eqmid` int(11) DEFAULT NULL,
  `d_time` datetime DEFAULT NULL,
  `tmp1` float(12,3) DEFAULT NULL,
  `tmp2` float(12,3) DEFAULT NULL,
  `tmp3` float(12,3) DEFAULT NULL,
  `hum1` float(12,3) DEFAULT NULL,
  `hum2` float(12,3) DEFAULT NULL,
  `hum3` float(12,3) DEFAULT NULL,
  `awater` float(12,3) DEFAULT NULL,
  `ind1` int(5) DEFAULT NULL,
  `ind2` int(5) DEFAULT NULL,
  `ind3` int(5) DEFAULT NULL,
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_dlg_statistics`
--

LOCK TABLES `data_dlg_statistics` WRITE;
/*!40000 ALTER TABLE `data_dlg_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_dlg_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_dlq_jbfd`
--

DROP TABLE IF EXISTS `data_dlq_jbfd`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_dlq_jbfd` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `phase` varchar(45) DEFAULT NULL COMMENT '相位',
  `dischargeCapacity` float DEFAULT NULL COMMENT '放电量',
  `dischargePosition` float DEFAULT NULL COMMENT '放电位置',
  `pulseCount` float DEFAULT NULL COMMENT '脉冲个数',
  `dischargeWaveform` blob COMMENT '放电波形',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx2` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='断路器局部放电';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_dlq_jbfd`
--

LOCK TABLES `data_dlq_jbfd` WRITE;
/*!40000 ALTER TABLE `data_dlq_jbfd` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_dlq_jbfd` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_dr_jyjc`
--

DROP TABLE IF EXISTS `data_dr_jyjc`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_dr_jyjc` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `capacitance` float DEFAULT NULL COMMENT '电容量',
  `lossFactor` float DEFAULT NULL COMMENT '介质损耗因数',
  `unbalanceCurrent` float DEFAULT NULL COMMENT '三相不平衡电流',
  `unbalanceVoltage` float DEFAULT NULL COMMENT '三相不平衡电压',
  `totalCurrent` float DEFAULT NULL COMMENT '全电流',
  `systemVoltage` float DEFAULT NULL COMMENT '系统电压',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='电容绝缘监测';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_dr_jyjc`
--

LOCK TABLES `data_dr_jyjc` WRITE;
/*!40000 ALTER TABLE `data_dr_jyjc` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_dr_jyjc` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_eaif_h`
--

DROP TABLE IF EXISTS `data_eaif_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_eaif_h` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自动编号',
  `eqmid` int(11) NOT NULL COMMENT '设备ID',
  `areaid` int(11) DEFAULT NULL COMMENT '点、线、区域ID',
  `capturetime` datetime NOT NULL COMMENT '采集时间',
  `maxtemp` float(18,4) DEFAULT NULL COMMENT '最大温度',
  `mintemp` float(18,4) DEFAULT NULL COMMENT '最小温度',
  `avgtemp` float(18,4) DEFAULT NULL COMMENT '平均温度',
  `unit` tinyint(2) DEFAULT NULL COMMENT '1=>摄氏度2=>华氏度',
  `type` tinyint(2) DEFAULT NULL COMMENT '1->点2->线3->框',
  `mid` float(10,4) DEFAULT NULL COMMENT '中间差',
  `std` float(10,4) DEFAULT NULL COMMENT '标准方差值',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`capturetime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='红外区域测温数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_eaif_h`
--

LOCK TABLES `data_eaif_h` WRITE;
/*!40000 ALTER TABLE `data_eaif_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_eaif_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_eia_h`
--

DROP TABLE IF EXISTS `data_eia_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_eia_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `d_pt` float DEFAULT '0' COMMENT '母线电压',
  `d_ct` float DEFAULT NULL COMMENT '泄露电流',
  `d_hz` float DEFAULT '0' COMMENT '频率',
  `d_pf` float DEFAULT '0' COMMENT '电容量',
  `d_jx` float DEFAULT '0' COMMENT '介质损耗因数',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='绝缘监测历史数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_eia_h`
--

LOCK TABLES `data_eia_h` WRITE;
/*!40000 ALTER TABLE `data_eia_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_eia_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_eia_statistics`
--

DROP TABLE IF EXISTS `data_eia_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_eia_statistics` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `d_pt_1` float DEFAULT '0' COMMENT 'A相母线电压',
  `d_pt_2` float DEFAULT '0' COMMENT 'B相母线电压',
  `d_pt_3` float DEFAULT '0' COMMENT 'C相母线电压',
  `d_pt_4` float DEFAULT '0',
  `d_ct_1` float DEFAULT NULL COMMENT 'A相泄露电流',
  `d_ct_2` float DEFAULT '0' COMMENT 'B相泄露电流',
  `d_ct_3` float DEFAULT '0' COMMENT 'C相泄露电流',
  `d_ct_4` float DEFAULT '0',
  `d_hz` float DEFAULT '0' COMMENT '频率',
  `d_pf_1` float DEFAULT '0' COMMENT 'A相电容量',
  `d_pf_2` float DEFAULT '0' COMMENT 'B相电容量',
  `d_pf_3` float DEFAULT '0' COMMENT 'C相电容量',
  `d_pf_4` float DEFAULT '0',
  `d_jx_1` float DEFAULT '0' COMMENT 'A相介质损耗因数',
  `d_jx_2` float DEFAULT '0' COMMENT 'B相介质损耗因数',
  `d_jx_3` float DEFAULT '0' COMMENT 'C相介质损耗因数',
  `d_jx_4` float DEFAULT '0',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_eia_statistics`
--

LOCK TABLES `data_eia_statistics` WRITE;
/*!40000 ALTER TABLE `data_eia_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_eia_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_eif_h`
--

DROP TABLE IF EXISTS `data_eif_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_eif_h` (
  `data_id` bigint(20) NOT NULL COMMENT '自动编号',
  `eqmid` int(11) NOT NULL COMMENT '设备ID',
  `preposid` int(11) NOT NULL COMMENT '预置位ID',
  `capturetime` datetime NOT NULL COMMENT '采集时间',
  `areatemp1` float(18,4) DEFAULT NULL COMMENT '区域1温度',
  `areatemp2` float(18,4) DEFAULT NULL COMMENT '区域2温度',
  `areatemp3` float(18,4) DEFAULT NULL COMMENT '区域3温度',
  `areatemp4` float(18,4) DEFAULT NULL COMMENT '区域4温度',
  `note` float(50,0) DEFAULT NULL COMMENT '说明',
  `type` int(11) DEFAULT NULL COMMENT '类型',
  `infraredfilepath` varchar(255) DEFAULT NULL COMMENT '红外数据路径',
  `iphotofilepath` varchar(255) DEFAULT NULL COMMENT '红外图片路径',
  `photofilepath` varchar(255) DEFAULT NULL COMMENT '可见光图片路径',
  `imageir` blob,
  `imageccd` blob,
  `irdata` blob,
  PRIMARY KEY (`data_id`) USING BTREE,
  KEY `idx` (`eqmid`,`capturetime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_eif_h`
--

LOCK TABLES `data_eif_h` WRITE;
/*!40000 ALTER TABLE `data_eif_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_eif_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_epa`
--

DROP TABLE IF EXISTS `data_epa`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_epa` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `q1` float(18,4) DEFAULT NULL,
  `q2` float(18,4) DEFAULT NULL,
  `q3` float(18,3) DEFAULT NULL,
  `q4` float(18,3) DEFAULT NULL,
  `q5` float(18,4) DEFAULT NULL,
  `q6` float(18,4) DEFAULT NULL,
  `q7` float(18,3) DEFAULT NULL,
  `q8` float(18,4) DEFAULT NULL,
  `q9` decimal(18,3) DEFAULT NULL,
  `q10` decimal(18,3) DEFAULT NULL,
  `q11` decimal(18,3) DEFAULT NULL,
  `q12` decimal(18,3) DEFAULT NULL,
  `note` text,
  `conclusion` text,
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_epa`
--

LOCK TABLES `data_epa` WRITE;
/*!40000 ALTER TABLE `data_epa` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_epa` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_epa_h`
--

DROP TABLE IF EXISTS `data_epa_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_epa_h` (
  `eqmid` int(11) unsigned NOT NULL,
  `d_time` datetime NOT NULL,
  `ch4ppm` float(18,8) DEFAULT NULL COMMENT '甲烷含量',
  `c2h4ppm` float(18,8) DEFAULT NULL COMMENT '乙烯含量',
  `c2h6ppm` float(18,8) DEFAULT NULL COMMENT '乙烷含量',
  `c2h2ppm` float(18,8) DEFAULT NULL COMMENT '乙炔含量',
  `h2ppm` float DEFAULT NULL COMMENT '氢气含量',
  `coppm` float DEFAULT NULL COMMENT '一氧化碳含量',
  `co2ppm` float DEFAULT NULL COMMENT '二氧化碳含量',
  `o2ppm` float DEFAULT NULL COMMENT '氧气含量',
  `n2ppm` float DEFAULT NULL COMMENT '氮气含量',
  `h2oppm` float DEFAULT NULL COMMENT '水含量',
  `gaspress` float DEFAULT NULL COMMENT '载气压力',
  `tmp` float DEFAULT NULL COMMENT '温度',
  `dew` float DEFAULT NULL COMMENT '湿度',
  `mstppm` float DEFAULT NULL COMMENT '微水含量',
  `flatgas` float DEFAULT NULL COMMENT '瓦斯继电器中故障气',
  `totalhydrocarbon` float(18,3) DEFAULT NULL COMMENT '总烃',
  `cmbugas` float DEFAULT NULL COMMENT '总可燃气体',
  `note` text,
  `conclusion` text,
  `isupload` int(1) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_epa_h`
--

LOCK TABLES `data_epa_h` WRITE;
/*!40000 ALTER TABLE `data_epa_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_epa_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_epa_statistics`
--

DROP TABLE IF EXISTS `data_epa_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_epa_statistics` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `ch4ppm` varchar(100) DEFAULT NULL COMMENT '甲烷含量',
  `c2h4ppm` varchar(100) DEFAULT NULL COMMENT '乙烯含量',
  `c2h6ppm` varchar(100) DEFAULT NULL COMMENT '乙烷含量',
  `c2h2ppm` varchar(100) DEFAULT NULL COMMENT '乙炔含量',
  `h2ppm` varchar(100) DEFAULT NULL COMMENT '氢气含量',
  `coppm` varchar(100) DEFAULT NULL COMMENT '一氧化碳含量',
  `co2ppm` varchar(100) DEFAULT NULL COMMENT '二氧化碳含量',
  `o2ppm` varchar(100) DEFAULT NULL COMMENT '氧气含量',
  `n2ppm` varchar(100) DEFAULT NULL COMMENT '氮气含量',
  `h2oppm` varchar(100) DEFAULT NULL COMMENT '水含量',
  `gaspress` varchar(100) DEFAULT NULL COMMENT '载气压力',
  `flatgas` varchar(100) DEFAULT NULL COMMENT '瓦斯继电器中故障气',
  `totalhydrocarbon` varchar(100) DEFAULT NULL COMMENT '总烃',
  `cmbugas` varchar(100) DEFAULT NULL COMMENT '总可燃气体',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_epa_statistics`
--

LOCK TABLES `data_epa_statistics` WRITE;
/*!40000 ALTER TABLE `data_epa_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_epa_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_etp_h6`
--

DROP TABLE IF EXISTS `data_etp_h6`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_etp_h6` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `t1` decimal(18,4) DEFAULT NULL,
  `t2` decimal(18,4) DEFAULT NULL,
  `t3` decimal(18,4) DEFAULT NULL,
  `t4` decimal(18,4) DEFAULT NULL,
  `t5` decimal(18,4) DEFAULT NULL,
  `t6` decimal(18,4) DEFAULT NULL,
  `s1` int(11) DEFAULT NULL,
  `s2` int(11) DEFAULT NULL,
  `s3` int(11) DEFAULT NULL,
  `s4` int(11) DEFAULT NULL,
  `s5` int(11) DEFAULT NULL,
  `s6` int(11) DEFAULT NULL,
  `state1` tinyint(4) DEFAULT NULL,
  `state2` tinyint(4) DEFAULT NULL,
  `state3` tinyint(4) DEFAULT NULL,
  `state4` tinyint(4) DEFAULT NULL,
  `state5` tinyint(4) DEFAULT NULL,
  `state6` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_etp_h6`
--

LOCK TABLES `data_etp_h6` WRITE;
/*!40000 ALTER TABLE `data_etp_h6` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_etp_h6` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_etpdl_h`
--

DROP TABLE IF EXISTS `data_etpdl_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_etpdl_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `t1` float(18,3) DEFAULT NULL COMMENT '1通道温度',
  `t2` float(18,3) DEFAULT NULL COMMENT '2通道温度',
  `t3` float(18,3) DEFAULT NULL COMMENT '3通道温度',
  `t4` float(18,3) DEFAULT NULL COMMENT '4通道温度',
  `t5` float(18,3) DEFAULT NULL COMMENT '5通道温度',
  `t6` float(18,3) DEFAULT NULL COMMENT '6通道温度',
  `t7` float(18,3) DEFAULT NULL COMMENT '7通道温度',
  `t8` float(18,3) DEFAULT NULL COMMENT '8通道温度',
  `t9` float(18,3) DEFAULT NULL COMMENT '9通道温度',
  `t10` float(18,3) DEFAULT NULL COMMENT '10通道温度',
  `t11` float(18,3) DEFAULT NULL COMMENT '11通道温度',
  `t12` float(18,3) DEFAULT NULL COMMENT '12通道温度',
  `t13` float(18,3) DEFAULT NULL COMMENT '13通道温度',
  `t14` float(18,3) DEFAULT NULL COMMENT '14通道温度',
  `t15` float(18,3) DEFAULT NULL COMMENT '15通道温度',
  `t16` float(18,3) DEFAULT NULL COMMENT '16通道温度',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='电缆测温';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_etpdl_h`
--

LOCK TABLES `data_etpdl_h` WRITE;
/*!40000 ALTER TABLE `data_etpdl_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_etpdl_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_etprz_h`
--

DROP TABLE IF EXISTS `data_etprz_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_etprz_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `t1` float(18,3) DEFAULT NULL COMMENT '1通道温度',
  `t2` float(18,3) DEFAULT NULL COMMENT '2通道温度',
  `t3` float(18,3) DEFAULT NULL COMMENT '3通道温度',
  `t4` float(18,3) DEFAULT NULL COMMENT '4通道温度',
  `t5` float(18,3) DEFAULT NULL COMMENT '5通道温度',
  `t6` float(18,3) DEFAULT NULL COMMENT '6通道温度',
  `t7` float(18,3) DEFAULT NULL COMMENT '7通道温度',
  `t8` float(18,3) DEFAULT NULL COMMENT '8通道温度',
  `t9` float(18,3) DEFAULT NULL COMMENT '9通道温度',
  `t10` float(18,3) DEFAULT NULL COMMENT '10通道温度',
  `t11` float(18,3) DEFAULT NULL COMMENT '11通道温度',
  `t12` float(18,3) DEFAULT NULL COMMENT '12通道温度',
  `t13` float(18,3) DEFAULT NULL COMMENT '13通道温度',
  `t14` float(18,3) DEFAULT NULL COMMENT '14通道温度',
  `t15` float(18,3) DEFAULT NULL COMMENT '15通道温度',
  `t16` float(18,3) DEFAULT NULL COMMENT '16通道温度',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='绕组测温';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_etprz_h`
--

LOCK TABLES `data_etprz_h` WRITE;
/*!40000 ALTER TABLE `data_etprz_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_etprz_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_etpwx_h`
--

DROP TABLE IF EXISTS `data_etpwx_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_etpwx_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `t1` float(18,3) DEFAULT NULL COMMENT '1通道温度',
  `t2` float(18,3) DEFAULT NULL COMMENT '2通道温度',
  `t3` float(18,3) DEFAULT NULL COMMENT '3通道温度',
  `t4` float(18,3) DEFAULT NULL COMMENT '4通道温度',
  `t5` float(18,3) DEFAULT NULL COMMENT '5通道温度',
  `t6` float(18,3) DEFAULT NULL COMMENT '6通道温度',
  `t7` float(18,3) DEFAULT NULL COMMENT '7通道温度',
  `t8` float(18,3) DEFAULT NULL COMMENT '8通道温度',
  `t9` float(18,3) DEFAULT NULL COMMENT '9通道温度',
  `t10` float(18,3) DEFAULT NULL COMMENT '10通道温度',
  `t11` float(18,3) DEFAULT NULL COMMENT '11通道温度',
  `t12` float(18,3) DEFAULT NULL COMMENT '12通道温度',
  `t13` float(18,3) DEFAULT NULL COMMENT '13通道温度',
  `t14` float(18,3) DEFAULT NULL COMMENT '14通道温度',
  `t15` float(18,3) DEFAULT NULL COMMENT '15通道温度',
  `t16` float(18,3) DEFAULT NULL COMMENT '16通道温度',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='无线测温';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_etpwx_h`
--

LOCK TABLES `data_etpwx_h` WRITE;
/*!40000 ALTER TABLE `data_etpwx_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_etpwx_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_fhdlbx`
--

DROP TABLE IF EXISTS `data_fhdlbx`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_fhdlbx` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `action` int(11) DEFAULT NULL COMMENT '0”表示分闸；“1”表示合闸',
  `loadWaveform` blob COMMENT '线圈电流波形',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='负荷电流波形';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_fhdlbx`
--

LOCK TABLES `data_fhdlbx` WRITE;
/*!40000 ALTER TABLE `data_fhdlbx` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_fhdlbx` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_fhzxq`
--

DROP TABLE IF EXISTS `data_fhzxq`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_fhzxq` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `action` int(11) DEFAULT NULL COMMENT '0”表示分闸；\n“1”表示合闸',
  `coilWaveform` blob COMMENT '线圈电流波形',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分合闸线圈';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_fhzxq`
--

LOCK TABLES `data_fhzxq` WRITE;
/*!40000 ALTER TABLE `data_fhzxq` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_fhzxq` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_haikangeqm`
--

DROP TABLE IF EXISTS `data_haikangeqm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_haikangeqm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` char(15) DEFAULT NULL COMMENT '类型1=>点2=>线3=>框',
  `username` varchar(255) DEFAULT NULL COMMENT '温度',
  `pwd` varchar(50) DEFAULT NULL,
  `port` char(4) DEFAULT '8000' COMMENT '端口',
  `iuserid` tinyint(5) DEFAULT NULL COMMENT '登录编号',
  `online` varchar(255) DEFAULT NULL COMMENT '0=>不在线1=>在线',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_haikangeqm`
--

LOCK TABLES `data_haikangeqm` WRITE;
/*!40000 ALTER TABLE `data_haikangeqm` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_haikangeqm` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_jdw_h`
--

DROP TABLE IF EXISTS `data_jdw_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_jdw_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `resistance` float(12,3) DEFAULT NULL COMMENT '电阻值',
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_jdw_h`
--

LOCK TABLES `data_jdw_h` WRITE;
/*!40000 ALTER TABLE `data_jdw_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_jdw_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_leakagecurrent_h`
--

DROP TABLE IF EXISTS `data_leakagecurrent_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_leakagecurrent_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `averageleakagecurrent` decimal(18,4) DEFAULT NULL,
  `maxleakagecurrent` decimal(18,4) DEFAULT NULL,
  `morethan3ma` int(11) DEFAULT NULL,
  `morethan10ma` int(11) DEFAULT NULL,
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_leakagecurrent_h`
--

LOCK TABLES `data_leakagecurrent_h` WRITE;
/*!40000 ALTER TABLE `data_leakagecurrent_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_leakagecurrent_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_microclimate`
--

DROP TABLE IF EXISTS `data_microclimate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_microclimate` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) NOT NULL,
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `airTemperature` float DEFAULT NULL COMMENT '温度',
  `airPressure` float DEFAULT NULL COMMENT '气压',
  `humidity` float DEFAULT NULL COMMENT '湿度',
  `precipitation` float DEFAULT NULL COMMENT '降雨量',
  `wddir` float DEFAULT NULL COMMENT '风向',
  `precipitationIntensity` float DEFAULT NULL COMMENT '降水强度',
  `radiationIntensity` float DEFAULT NULL COMMENT '光辐射强度',
  `isupload` int(1) DEFAULT '0' COMMENT '0',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微气象数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_microclimate`
--

LOCK TABLES `data_microclimate` WRITE;
/*!40000 ALTER TABLE `data_microclimate` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_microclimate` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_microclimate_h`
--

DROP TABLE IF EXISTS `data_microclimate_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_microclimate_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `envtmp` float(22,3) DEFAULT NULL COMMENT '温度',
  `envhum` float(22,3) DEFAULT NULL COMMENT '湿度',
  `wdgustspd` float(22,3) DEFAULT NULL COMMENT '风速',
  `envpres` float(22,3) DEFAULT NULL COMMENT '气压',
  `wddir` float(22,3) DEFAULT NULL COMMENT '风向',
  `rnfll` float(22,3) DEFAULT NULL COMMENT '雨量',
  `isupload` int(1) DEFAULT '0' COMMENT '0',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='微气象数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_microclimate_h`
--

LOCK TABLES `data_microclimate_h` WRITE;
/*!40000 ALTER TABLE `data_microclimate_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_microclimate_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_microclimate_statistics`
--

DROP TABLE IF EXISTS `data_microclimate_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_microclimate_statistics` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  `envtmp` float(22,3) DEFAULT NULL COMMENT '温度',
  `envhum` float(22,3) DEFAULT NULL COMMENT '湿度',
  `wdgustspd` float(22,3) DEFAULT NULL COMMENT '风速',
  `envpres` float(22,3) DEFAULT NULL COMMENT '气压',
  `wddir` float(22,3) DEFAULT NULL COMMENT '风向',
  `rnfll` float(22,3) DEFAULT NULL COMMENT '雨量',
  `isupload` int(1) DEFAULT '0' COMMENT '0',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_microclimate_statistics`
--

LOCK TABLES `data_microclimate_statistics` WRITE;
/*!40000 ALTER TABLE `data_microclimate_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_microclimate_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_moa_h`
--

DROP TABLE IF EXISTS `data_moa_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_moa_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `pt` float DEFAULT NULL COMMENT '系统电压',
  `lc` float DEFAULT NULL COMMENT '全电流',
  `rc` float DEFAULT NULL COMMENT '阻性电流',
  `lastligtm` datetime DEFAULT NULL COMMENT '最近落雷时间',
  `ligcnt` int(11) DEFAULT '0' COMMENT '累计落雷次数',
  `cacur` float DEFAULT NULL COMMENT '容性电流',
  `riscarte` float DEFAULT NULL COMMENT '阻容比',
  `modevconf` int(1) DEFAULT NULL COMMENT 'IED与监测设备通讯异常',
  `supdevrun` int(1) DEFAULT NULL COMMENT '设备运行异常',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_moa_h`
--

LOCK TABLES `data_moa_h` WRITE;
/*!40000 ALTER TABLE `data_moa_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_moa_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_moa_statistics`
--

DROP TABLE IF EXISTS `data_moa_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_moa_statistics` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  `pt1` float DEFAULT NULL COMMENT 'A相系统电压',
  `lc1` float DEFAULT NULL COMMENT 'A相全电流',
  `rc1` float DEFAULT NULL COMMENT 'A相阻性电流',
  `pt2` float DEFAULT NULL COMMENT 'B相系统电压',
  `lc2` float DEFAULT NULL COMMENT 'B相全电流',
  `rc2` float DEFAULT NULL COMMENT 'B相阻性电流',
  `pt3` float DEFAULT NULL COMMENT 'C相系统电压',
  `lc3` float DEFAULT NULL COMMENT 'C相全电流',
  `rc3` float DEFAULT NULL COMMENT 'C相阻性电流',
  `lastligtm1` datetime DEFAULT NULL COMMENT 'A相最近落雷时间',
  `ligcnt1` int(11) DEFAULT '0' COMMENT 'A相累计落雷次数',
  `cacur1` float DEFAULT NULL COMMENT 'A相容性电流',
  `riscarte1` float DEFAULT NULL COMMENT 'A相阻容比',
  `modevconf1` int(1) DEFAULT NULL COMMENT 'A相IED与监测设备通讯异常',
  `supdevrun1` int(1) DEFAULT NULL COMMENT 'A相设备运行异常',
  `lastligtm2` datetime DEFAULT NULL COMMENT 'B相最近落雷时间',
  `ligcnt2` int(11) DEFAULT '0' COMMENT 'B相累计落雷次数',
  `cacur2` float DEFAULT NULL COMMENT 'B相容性电流',
  `riscarte2` float DEFAULT NULL COMMENT 'B相阻容比',
  `modevconf2` int(1) DEFAULT NULL COMMENT 'B相IED与监测设备通讯异常',
  `supdevrun2` int(1) DEFAULT NULL COMMENT 'B相设备运行异常',
  `lastligtm3` datetime DEFAULT NULL COMMENT 'C相最近落雷时间',
  `ligcnt3` int(11) DEFAULT '0' COMMENT 'C相累计落雷次数',
  `cacur3` float DEFAULT NULL COMMENT 'C相容性电流',
  `riscarte3` float DEFAULT NULL COMMENT 'C相阻容比',
  `modevconf3` int(1) DEFAULT NULL COMMENT 'C相IED与监测设备通讯异常',
  `supdevrun3` int(1) DEFAULT NULL COMMENT 'C相设备运行异常',
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_moa_statistics`
--

LOCK TABLES `data_moa_statistics` WRITE;
/*!40000 ALTER TABLE `data_moa_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_moa_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_oiltemperature_h`
--

DROP TABLE IF EXISTS `data_oiltemperature_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_oiltemperature_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `oiltemperature1` decimal(18,4) DEFAULT NULL,
  `oiltemperature2` decimal(18,4) DEFAULT NULL,
  `oiltemperature3` decimal(18,4) DEFAULT NULL,
  `releasevalvestatus` int(11) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_oiltemperature_h`
--

LOCK TABLES `data_oiltemperature_h` WRITE;
/*!40000 ALTER TABLE `data_oiltemperature_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_oiltemperature_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_otp_h`
--

DROP TABLE IF EXISTS `data_otp_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_otp_h` (
  `eqmid` varchar(50) NOT NULL,
  `d_time` datetime NOT NULL,
  `oiltemperature` float DEFAULT NULL COMMENT '油温',
  `oilpress` float DEFAULT NULL COMMENT '油压',
  `releasevalvestatus` int(11) DEFAULT NULL COMMENT '压力释放阀状态',
  `isupload` int(11) DEFAULT NULL,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_otp_h`
--

LOCK TABLES `data_otp_h` WRITE;
/*!40000 ALTER TABLE `data_otp_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_otp_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_pd_h`
--

DROP TABLE IF EXISTS `data_pd_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_pd_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `padschalm` int(11) DEFAULT NULL COMMENT '局放告警',
  `opcnt` int(11) DEFAULT NULL COMMENT '动作计数器',
  `plsnum` int(11) DEFAULT NULL COMMENT '脉冲个数',
  `padschtype` varchar(50) DEFAULT NULL COMMENT '局放类型',
  `acupadsch` float DEFAULT NULL COMMENT '局放声学水平',
  `apppadsch` float DEFAULT NULL COMMENT '局放峰值',
  `nqs` float DEFAULT NULL COMMENT '平均放电电流',
  `uhfpadsch` float DEFAULT NULL COMMENT '局放UHF水平',
  `phase` float DEFAULT NULL COMMENT '放电相位',
  `waveform` longtext,
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='局部放电数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_pd_h`
--

LOCK TABLES `data_pd_h` WRITE;
/*!40000 ALTER TABLE `data_pd_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_pd_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_pd_statistics`
--

DROP TABLE IF EXISTS `data_pd_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_pd_statistics` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  `padschalm` int(11) DEFAULT NULL COMMENT '局放告警',
  `opcnt` int(11) DEFAULT NULL COMMENT '动作计数器',
  `plsnum` int(11) DEFAULT NULL COMMENT '脉冲个数',
  `padschtype` varchar(50) DEFAULT NULL COMMENT '局放类型',
  `acupadsch` float DEFAULT NULL COMMENT '局放声学水平',
  `apppadsch` float DEFAULT NULL COMMENT '视在局放放电量，峰值',
  `nqs` float DEFAULT NULL COMMENT '平均放电电流',
  `uhfpadsch` float DEFAULT NULL COMMENT '局放UHF水平',
  `phase` float DEFAULT NULL COMMENT '放电相位',
  `waveform` longtext,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_pd_statistics`
--

LOCK TABLES `data_pd_statistics` WRITE;
/*!40000 ALTER TABLE `data_pd_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_pd_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_scur_h`
--

DROP TABLE IF EXISTS `data_scur_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_scur_h` (
  `eqmid` int(11) NOT NULL COMMENT '主键id',
  `d_time` datetime NOT NULL COMMENT '创建时间',
  `alarm_level` int(10) DEFAULT NULL COMMENT '报警等级',
  `current_val` float DEFAULT NULL COMMENT '电流值（mA）',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='电缆环流数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_scur_h`
--

LOCK TABLES `data_scur_h` WRITE;
/*!40000 ALTER TABLE `data_scur_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_scur_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_scur_statistics`
--

DROP TABLE IF EXISTS `data_scur_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_scur_statistics` (
  `id` int(11) NOT NULL COMMENT '主键id',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  `current_val` varchar(20) DEFAULT NULL COMMENT '电流值（mA）',
  `isupload` int(5) DEFAULT NULL COMMENT '状态（1：已经发送，0：未发送）',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_scur_statistics`
--

LOCK TABLES `data_scur_statistics` WRITE;
/*!40000 ALTER TABLE `data_scur_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_scur_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_sf6_h`
--

DROP TABLE IF EXISTS `data_sf6_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_sf6_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `temp` float(12,3) DEFAULT NULL COMMENT '温度',
  `pressure` float(12,3) DEFAULT NULL COMMENT '压力',
  `md` float(12,3) DEFAULT NULL COMMENT '密度',
  `pm` float(12,3) DEFAULT NULL COMMENT '微水',
  `ddt` float(12,3) DEFAULT NULL COMMENT '露点',
  `pressure20` float(12,3) DEFAULT NULL COMMENT '压力',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_sf6_h`
--

LOCK TABLES `data_sf6_h` WRITE;
/*!40000 ALTER TABLE `data_sf6_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_sf6_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_sf6_statistics`
--

DROP TABLE IF EXISTS `data_sf6_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_sf6_statistics` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `d_time` datetime DEFAULT NULL COMMENT '创建时间',
  `temp1` float(12,3) DEFAULT NULL COMMENT 'A相温度',
  `pressure1` float(12,3) DEFAULT NULL COMMENT 'A相压力',
  `md1` float(12,3) DEFAULT NULL COMMENT 'A相密度',
  `pm1` float(12,3) DEFAULT NULL COMMENT 'A相微水',
  `ddt1` float(12,3) DEFAULT NULL COMMENT 'A相露点',
  `temp2` float(12,3) DEFAULT NULL COMMENT 'B相温度',
  `pressure2` float(12,3) DEFAULT NULL COMMENT 'B相压力',
  `md2` float(12,3) DEFAULT NULL COMMENT 'B相密度',
  `pm2` float(12,3) DEFAULT NULL COMMENT 'B相微水',
  `ddt2` float(12,3) DEFAULT NULL COMMENT 'B相露点',
  `temp3` float(12,3) DEFAULT NULL COMMENT 'C相温度',
  `pressure3` float(12,3) DEFAULT NULL COMMENT 'C相压力',
  `md3` float(12,3) DEFAULT NULL COMMENT 'C相密度',
  `pm3` float(12,3) DEFAULT NULL COMMENT 'C相微水',
  `ddt3` float(12,3) DEFAULT NULL COMMENT 'C相露点',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_sf6_statistics`
--

LOCK TABLES `data_sf6_statistics` WRITE;
/*!40000 ALTER TABLE `data_sf6_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_sf6_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_sf6env_h`
--

DROP TABLE IF EXISTS `data_sf6env_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_sf6env_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `gas` float(12,3) DEFAULT NULL COMMENT 'SF6浓度',
  `yq` float(12,3) DEFAULT NULL COMMENT 'O2含量',
  `tmp` float(12,3) DEFAULT NULL COMMENT '温度',
  `pm` float(12,3) DEFAULT NULL COMMENT '湿度',
  `sf6warn` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值',
  `o2warn` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值',
  `gascnt` int(12) DEFAULT NULL COMMENT '双气传感器数量',
  `hmcnt` int(12) DEFAULT NULL COMMENT '温湿度传感器数量',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_sf6env_h`
--

LOCK TABLES `data_sf6env_h` WRITE;
/*!40000 ALTER TABLE `data_sf6env_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_sf6env_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_sf6env_statistics`
--

DROP TABLE IF EXISTS `data_sf6env_statistics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_sf6env_statistics` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `gas1` float(12,3) DEFAULT NULL COMMENT 'SF6浓度A相',
  `yq1` float(12,3) DEFAULT NULL COMMENT 'O2含量A相',
  `md1` float(12,3) DEFAULT NULL COMMENT '温度A相',
  `pm1` float(12,3) DEFAULT NULL COMMENT '湿度A相',
  `sf6warn1` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值A相',
  `o2warn1` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值A相',
  `gascnt1` int(12) DEFAULT NULL COMMENT '双气传感器数量A相',
  `hmcnt1` int(12) DEFAULT NULL COMMENT '温湿度传感器数量A相',
  `gas2` float(12,3) DEFAULT NULL COMMENT 'SF6浓度B相',
  `yq2` float(12,3) DEFAULT NULL COMMENT 'O2含量B相',
  `md2` float(12,3) DEFAULT NULL COMMENT '温度B相',
  `pm2` float(12,3) DEFAULT NULL COMMENT '湿度B相',
  `sf6warn2` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值B相',
  `o2warn2` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值B相',
  `gascnt2` int(12) DEFAULT NULL COMMENT '双气传感器数量B相',
  `hmcnt2` int(12) DEFAULT NULL COMMENT '温湿度传感器数量B相',
  `gas3` float(12,3) DEFAULT NULL COMMENT 'SF6浓度C相',
  `yq3` float(12,3) DEFAULT NULL COMMENT 'O2含量C相',
  `md3` float(12,3) DEFAULT NULL COMMENT '温度C相',
  `pm3` float(12,3) DEFAULT NULL COMMENT '湿度C相',
  `sf6warn3` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值C相',
  `o2warn3` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值C相',
  `gascnt3` int(12) DEFAULT NULL COMMENT '双气传感器数量C相',
  `hmcnt3` int(12) DEFAULT NULL COMMENT '温湿度传感器数量C相',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx` (`eqmid`,`d_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_sf6env_statistics`
--

LOCK TABLES `data_sf6env_statistics` WRITE;
/*!40000 ALTER TABLE `data_sf6env_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_sf6env_statistics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_th_h`
--

DROP TABLE IF EXISTS `data_th_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_th_h` (
  `eqmid` int(11) NOT NULL,
  `d_time` datetime NOT NULL,
  `envtmp` float DEFAULT NULL COMMENT '温度',
  `envhum` float DEFAULT NULL COMMENT '湿度',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_th_h`
--

LOCK TABLES `data_th_h` WRITE;
/*!40000 ALTER TABLE `data_th_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_th_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_video_h`
--

DROP TABLE IF EXISTS `data_video_h`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_video_h` (
  `eqmid` int(11) NOT NULL AUTO_INCREMENT,
  `d_time` datetime NOT NULL,
  `photopath` varchar(100) DEFAULT NULL COMMENT '图像存放路径',
  PRIMARY KEY (`eqmid`,`d_time`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_video_h`
--

LOCK TABLES `data_video_h` WRITE;
/*!40000 ALTER TABLE `data_video_h` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_video_h` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `data_ws`
--

DROP TABLE IF EXISTS `data_ws`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_ws` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL COMMENT '设备id',
  `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间',
  `moisture` float DEFAULT NULL COMMENT '水分',
  `isupload` int(11) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`,`acquisitionTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `data_ws`
--

LOCK TABLES `data_ws` WRITE;
/*!40000 ALTER TABLE `data_ws` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_ws` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `i2relation`
--

DROP TABLE IF EXISTS `i2relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2relation` (
  `eqmid` int(11) DEFAULT NULL,
  `cacid` varchar(17) DEFAULT '',
  `sensorid` varchar(17) NOT NULL,
  `equipmentid` varchar(17) DEFAULT '',
  `monitortype` varchar(10) DEFAULT '',
  `phase` varchar(10) DEFAULT '',
  `sensorindex` int(11) DEFAULT NULL,
  PRIMARY KEY (`sensorid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `i2relation`
--

LOCK TABLES `i2relation` WRITE;
/*!40000 ALTER TABLE `i2relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `i2relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `i2sync_config`
--

DROP TABLE IF EXISTS `i2sync_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2sync_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modevtype_id` int(11) DEFAULT NULL COMMENT '类型id',
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='i2导出类型配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `i2sync_config`
--

LOCK TABLES `i2sync_config` WRITE;
/*!40000 ALTER TABLE `i2sync_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `i2sync_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `i2sync_field`
--

DROP TABLE IF EXISTS `i2sync_field`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2sync_field` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `table_name` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
  `field_name` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
  `dest_field_name` varchar(128) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
  `attach` varchar(45) DEFAULT NULL COMMENT 'sensorid尾部附加',
  PRIMARY KEY (`id`),
  KEY `idxTb` (`table_name`)
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8 COMMENT='i2导出字段映射配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `i2sync_field`
--

LOCK TABLES `i2sync_field` WRITE;
/*!40000 ALTER TABLE `i2sync_field` DISABLE KEYS */;
INSERT INTO `i2sync_field` VALUES (1,'data_byq_jbfd','dischargeCapacity','dischargeCapacity',NULL);
INSERT INTO `i2sync_field` VALUES (2,'data_byq_jbfd','dischargePosition','dischargePosition',NULL);
INSERT INTO `i2sync_field` VALUES (4,'data_byq_jbfd','pulseCount','pulseCount',NULL);
INSERT INTO `i2sync_field` VALUES (15,'data_epa_h','c2h2ppm','c2h2',NULL);
INSERT INTO `i2sync_field` VALUES (16,'data_epa_h','c2h4ppm','c2h4',NULL);
INSERT INTO `i2sync_field` VALUES (17,'data_epa_h','c2h6ppm','c2h6',NULL);
INSERT INTO `i2sync_field` VALUES (18,'data_epa_h','ch4ppm','ch4',NULL);
INSERT INTO `i2sync_field` VALUES (19,'data_epa_h','cmbugas','cmbuGas',NULL);
INSERT INTO `i2sync_field` VALUES (20,'data_epa_h','co2ppm','co2',NULL);
INSERT INTO `i2sync_field` VALUES (21,'data_epa_h','coppm','co',NULL);
INSERT INTO `i2sync_field` VALUES (22,'data_epa_h','dew','humidity',NULL);
INSERT INTO `i2sync_field` VALUES (23,'data_epa_h','flatgas','flatGas',NULL);
INSERT INTO `i2sync_field` VALUES (24,'data_epa_h','gaspress','gasPress',NULL);
INSERT INTO `i2sync_field` VALUES (26,'data_epa_h','h2ppm','h2',NULL);
INSERT INTO `i2sync_field` VALUES (27,'data_epa_h','mstppm','microMoisture',NULL);
INSERT INTO `i2sync_field` VALUES (28,'data_epa_h','n2ppm','n2',NULL);
INSERT INTO `i2sync_field` VALUES (29,'data_epa_h','o2ppm','o2',NULL);
INSERT INTO `i2sync_field` VALUES (30,'data_epa_h','tmp','temperature',NULL);
INSERT INTO `i2sync_field` VALUES (31,'data_epa_h','totalhydrocarbon','totalHydrocarbon',NULL);
INSERT INTO `i2sync_field` VALUES (32,'data_ws','moisture','moisture',NULL);
INSERT INTO `i2sync_field` VALUES (34,'data_dcyw','oilTemperature','oilTemperature',NULL);
INSERT INTO `i2sync_field` VALUES (35,'data_dr_jyjc','capacitance','capacitance',NULL);
INSERT INTO `i2sync_field` VALUES (36,'data_dr_jyjc','lossFactor','lossFactor',NULL);
INSERT INTO `i2sync_field` VALUES (37,'data_dr_jyjc','systemVoltage','systemVoltage',NULL);
INSERT INTO `i2sync_field` VALUES (38,'data_dr_jyjc','totalCurrent','totalCurrent',NULL);
INSERT INTO `i2sync_field` VALUES (39,'data_dr_jyjc','unbalanceCurrent','unbalanceCurrent',NULL);
INSERT INTO `i2sync_field` VALUES (40,'data_dr_jyjc','unbalanceVoltage','unbalanceVoltage',NULL);
INSERT INTO `i2sync_field` VALUES (46,'data_microclimate','airPressure','airPressure',NULL);
INSERT INTO `i2sync_field` VALUES (47,'data_microclimate','airTemperature','airTemperature',NULL);
INSERT INTO `i2sync_field` VALUES (48,'data_microclimate','humidity','humidity',NULL);
INSERT INTO `i2sync_field` VALUES (49,'data_microclimate','precipitation','precipitation',NULL);
INSERT INTO `i2sync_field` VALUES (50,'data_microclimate','precipitationIntensity','precipitationIntensity',NULL);
INSERT INTO `i2sync_field` VALUES (51,'data_microclimate','radiationIntensity','radiationIntensity',NULL);
INSERT INTO `i2sync_field` VALUES (52,'data_dlq_jbfd','dischargeCapacity','dischargeCapacity',NULL);
INSERT INTO `i2sync_field` VALUES (53,'data_dlq_jbfd','dischargePosition','dischargePosition',NULL);
INSERT INTO `i2sync_field` VALUES (54,'data_dlq_jbfd','dischargeWaveform','dischargeWaveform',NULL);
INSERT INTO `i2sync_field` VALUES (55,'data_dlq_jbfd','pulseCount','pulseCount',NULL);
INSERT INTO `i2sync_field` VALUES (56,'data_fhzxq','action','action',NULL);
INSERT INTO `i2sync_field` VALUES (57,'data_fhzxq','coilWaveform','coilWaveform',NULL);
INSERT INTO `i2sync_field` VALUES (58,'data_fhdlbx','action','action',NULL);
INSERT INTO `i2sync_field` VALUES (59,'data_fhdlbx','loadWaveform','loadWaveform',NULL);
INSERT INTO `i2sync_field` VALUES (66,'data_cnj','chargeTime','chargeTime',NULL);
INSERT INTO `i2sync_field` VALUES (70,'data_sf6_h','md','density',NULL);
INSERT INTO `i2sync_field` VALUES (71,'data_sf6_h','pm','moisture',NULL);
INSERT INTO `i2sync_field` VALUES (72,'data_sf6_h','pressure','absolutePressure',NULL);
INSERT INTO `i2sync_field` VALUES (73,'data_sf6_h','pressure20','pressure20c',NULL);
INSERT INTO `i2sync_field` VALUES (74,'data_sf6_h','temp','temperature',NULL);
/*!40000 ALTER TABLE `i2sync_field` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `i2sync_record`
--

DROP TABLE IF EXISTS `i2sync_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2sync_record` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modevtype_id` int(11) DEFAULT NULL,
  `eqmid` int(11) DEFAULT NULL,
  `last_d_time` datetime DEFAULT NULL COMMENT '最后数据同步时间',
  PRIMARY KEY (`id`),
  KEY `idx` (`eqmid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='i2导出记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `i2sync_record`
--

LOCK TABLES `i2sync_record` WRITE;
/*!40000 ALTER TABLE `i2sync_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `i2sync_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `icd_config_type`
--

DROP TABLE IF EXISTS `icd_config_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_config_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `icd_ied_id` int(11) DEFAULT NULL,
  `ied_name` varchar(45) NOT NULL COMMENT 'IED名称',
  `ldevice_inst` varchar(45) NOT NULL COMMENT '设备类型',
  `ln_class` varchar(45) NOT NULL COMMENT 'LN类型',
  `ln_desc` varchar(200) DEFAULT NULL,
  `table_name` varchar(45) DEFAULT NULL COMMENT '表名',
  PRIMARY KEY (`id`),
  KEY `idxKey` (`ied_name`,`ldevice_inst`,`ln_class`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `icd_config_type`
--

LOCK TABLES `icd_config_type` WRITE;
/*!40000 ALTER TABLE `icd_config_type` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_config_type` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `icd_config_type_att`
--

DROP TABLE IF EXISTS `icd_config_type_att`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_config_type_att` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `icd_config_type_id` int(11) NOT NULL COMMENT '配置类型表id',
  `do_name` varchar(45) NOT NULL COMMENT '属性',
  `fc` varchar(45) DEFAULT NULL,
  `last_name` varchar(45) DEFAULT NULL,
  `description` varchar(200) DEFAULT NULL COMMENT '备注',
  `col_name` varchar(45) DEFAULT NULL COMMENT '字段名',
  `insts` varchar(2000) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型属性表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `icd_config_type_att`
--

LOCK TABLES `icd_config_type_att` WRITE;
/*!40000 ALTER TABLE `icd_config_type_att` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_config_type_att` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `icd_config_type_inst`
--

DROP TABLE IF EXISTS `icd_config_type_inst`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_config_type_inst` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `icd_config_type_id` int(11) NOT NULL COMMENT '配置类型表id',
  `inst` varchar(45) NOT NULL COMMENT '实例',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型实例表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `icd_config_type_inst`
--

LOCK TABLES `icd_config_type_inst` WRITE;
/*!40000 ALTER TABLE `icd_config_type_inst` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_config_type_inst` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `icd_file`
--

DROP TABLE IF EXISTS `icd_file`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_file` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `md5` varchar(45) DEFAULT NULL,
  `filename` varchar(45) DEFAULT NULL,
  `xml` longtext,
  `srv` int(11) DEFAULT NULL,
  `start` int(11) DEFAULT NULL,
  `port` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ICD文件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `icd_file`
--

LOCK TABLES `icd_file` WRITE;
/*!40000 ALTER TABLE `icd_file` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_file` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `icd_ied`
--

DROP TABLE IF EXISTS `icd_ied`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_ied` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(45) DEFAULT NULL,
  `icd_file_id` int(11) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `ap_title` varchar(45) DEFAULT NULL,
  `start` int(11) DEFAULT NULL,
  `port` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ied信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `icd_ied`
--

LOCK TABLES `icd_ied` WRITE;
/*!40000 ALTER TABLE `icd_ied` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_ied` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `icd_transform`
--

DROP TABLE IF EXISTS `icd_transform`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_transform` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rpt_from` varchar(200) DEFAULT NULL,
  `rpt_to` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `icd_transform`
--

LOCK TABLES `icd_transform` WRITE;
/*!40000 ALTER TABLE `icd_transform` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_transform` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ied_dl_config`
--

DROP TABLE IF EXISTS `ied_dl_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ied_dl_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ied_id` int(11) DEFAULT NULL,
  `dev_id` int(11) DEFAULT NULL COMMENT '装置ID',
  `path` varchar(2000) DEFAULT NULL COMMENT '目录',
  `contain` varchar(45) DEFAULT NULL COMMENT '包含文字',
  `suffix` varchar(45) DEFAULT NULL COMMENT '后缀名',
  `todel` int(11) DEFAULT NULL COMMENT '下载后删除',
  `active` int(11) DEFAULT NULL COMMENT '0:停用; 1:启用;',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ied_dl_config`
--

LOCK TABLES `ied_dl_config` WRITE;
/*!40000 ALTER TABLE `ied_dl_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `ied_dl_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ied_dl_record`
--

DROP TABLE IF EXISTS `ied_dl_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ied_dl_record` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `config_id` int(11) DEFAULT NULL,
  `remote_path` varchar(200) DEFAULT NULL COMMENT '源路径',
  `filename` varchar(200) DEFAULT NULL COMMENT '文件名',
  `path` varchar(200) DEFAULT NULL COMMENT '本地路径',
  `create_time` datetime DEFAULT NULL,
  `d_time` datetime DEFAULT NULL,
  `dev_id` int(11) DEFAULT NULL COMMENT '装置ID',
  `type_id` int(11) DEFAULT NULL COMMENT '类型id',
  `data` mediumtext,
  PRIMARY KEY (`id`),
  KEY `idxDev` (`dev_id`,`d_time`),
  KEY `idxConfig` (`config_id`,`d_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ied_dl_record`
--

LOCK TABLES `ied_dl_record` WRITE;
/*!40000 ALTER TABLE `ied_dl_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `ied_dl_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `jg`
--

DROP TABLE IF EXISTS `jg`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `jg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mc` varchar(50) NOT NULL,
  `bdzid` int(11) NOT NULL,
  `ls` decimal(65,30) DEFAULT NULL,
  `areaid` char(32) DEFAULT NULL,
  `xh` decimal(65,30) DEFAULT NULL COMMENT '序号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `jg`
--

LOCK TABLES `jg` WRITE;
/*!40000 ALTER TABLE `jg` DISABLE KEYS */;
/*!40000 ALTER TABLE `jg` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lx`
--

DROP TABLE IF EXISTS `lx`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `lx` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mc` varchar(50) NOT NULL,
  `ls` decimal(65,30) DEFAULT NULL COMMENT '1:在线监测、一次设备；2:网络监听类型(具体设备需要处于可用状态)',
  `zxjc` decimal(65,30) DEFAULT NULL COMMENT '1:在线监测',
  `zxjcurl` varchar(50) DEFAULT NULL COMMENT '在线监测URL',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lx`
--

LOCK TABLES `lx` WRITE;
/*!40000 ALTER TABLE `lx` DISABLE KEYS */;
/*!40000 ALTER TABLE `lx` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `modev`
--

DROP TABLE IF EXISTS `modev`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `modev` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '监测设备ID',
  `name` varchar(50) DEFAULT NULL COMMENT '监测设备名称',
  `modevtid` int(11) NOT NULL COMMENT '监测设备类型ID',
  `address` int(11) DEFAULT NULL COMMENT '监测设备地址',
  `frequency` int(11) DEFAULT NULL COMMENT '监测设备采集频率',
  `portname` varchar(10) DEFAULT NULL COMMENT '监测设备端口',
  `careLevel` int(10) DEFAULT NULL COMMENT '关心度',
  `zsbid` int(11) NOT NULL COMMENT '被监测设备ID',
  `iedid` int(11) NOT NULL COMMENT '监测设备所属IED设备ID',
  `equipmentmodel` varchar(50) DEFAULT NULL COMMENT '监测设备型号',
  `manufacture` varchar(50) DEFAULT NULL COMMENT '生产厂家',
  `factoryint` varchar(50) DEFAULT NULL COMMENT '出厂编号',
  `manufacturedate` date DEFAULT NULL COMMENT '出厂日期',
  `rundate` date DEFAULT NULL COMMENT '投运日期',
  `location` varchar(100) DEFAULT NULL COMMENT '安装位置描述',
  `note` varchar(200) DEFAULT NULL COMMENT '备注',
  `znxjdevid` varchar(32) DEFAULT NULL COMMENT '智能巡检设备ID',
  `ip` char(15) DEFAULT NULL,
  `username` varchar(255) DEFAULT NULL,
  `pwd` varchar(50) DEFAULT NULL COMMENT '密码',
  `port` char(6) DEFAULT NULL,
  `nPresetId` int(11) DEFAULT NULL COMMENT '预置点id',
  `nRuleId` int(11) DEFAULT NULL COMMENT '规则编号',
  `nMeterType` int(11) DEFAULT NULL COMMENT '规则类型',
  `main_eid` int(11) DEFAULT NULL,
  `second_eid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `modev`
--

LOCK TABLES `modev` WRITE;
/*!40000 ALTER TABLE `modev` DISABLE KEYS */;
/*!40000 ALTER TABLE `modev` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `modevtype`
--

DROP TABLE IF EXISTS `modevtype`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `modevtype` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '监测设备类型ID',
  `mc` varchar(50) NOT NULL COMMENT '监测设备类型名称',
  `tablename` varchar(50) DEFAULT NULL,
  `type_code` varchar(45) DEFAULT NULL COMMENT '类型编码',
  `intervals` int(11) DEFAULT NULL COMMENT '采集间隔/分钟',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=78 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='监测设备类型表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `modevtype`
--

LOCK TABLES `modevtype` WRITE;
/*!40000 ALTER TABLE `modevtype` DISABLE KEYS */;
INSERT INTO `modevtype` VALUES (1,'油色谱','data_epa_h','021002',30);
INSERT INTO `modevtype` VALUES (2,'铁芯','data_eia_h','021004',30);
INSERT INTO `modevtype` VALUES (3,'夹件','data_eia_h',NULL,30);
INSERT INTO `modevtype` VALUES (4,'避雷器','data_moa_h','023001',30);
INSERT INTO `modevtype` VALUES (6,'温湿度','data_th_h',NULL,30);
INSERT INTO `modevtype` VALUES (7,'空气质量','data_aq_h',NULL,30);
INSERT INTO `modevtype` VALUES (8,'SF6','data_sf6_h','024004',30);
INSERT INTO `modevtype` VALUES (9,'红外温度','data_eaif_h',NULL,30);
INSERT INTO `modevtype` VALUES (10,'GIS局部放电','data_pd_h','024001',30);
INSERT INTO `modevtype` VALUES (11,'油温油压','data_otp_h',NULL,30);
INSERT INTO `modevtype` VALUES (12,'视频','data_video_h',NULL,30);
INSERT INTO `modevtype` VALUES (13,'流变','data_eia_h',NULL,30);
INSERT INTO `modevtype` VALUES (14,'压变','data_eia_h',NULL,30);
INSERT INTO `modevtype` VALUES (15,'套管','data_eia_h',NULL,30);
INSERT INTO `modevtype` VALUES (16,'微气象','data_microclimate_h',NULL,30);
INSERT INTO `modevtype` VALUES (17,'无线测温','data_etpwx_h','026002',30);
INSERT INTO `modevtype` VALUES (18,'电缆测温','data_etpdl_h','028006',30);
INSERT INTO `modevtype` VALUES (19,'绕组测温','data_etprz_h','021013',30);
INSERT INTO `modevtype` VALUES (20,'电缆环流','data_scur_h',NULL,30);
INSERT INTO `modevtype` VALUES (21,'电缆沟','data_dlg_h',NULL,30);
INSERT INTO `modevtype` VALUES (40,'接地网','data_jdw_h',NULL,30);
INSERT INTO `modevtype` VALUES (61,'SF6环境','data_sf6env_h','024009',30);
INSERT INTO `modevtype` VALUES (65,'断路器局部放电','data_dlq_jbfd','024001',30);
INSERT INTO `modevtype` VALUES (68,'变压器局部放电','data_byq_jbfd','021001',30);
INSERT INTO `modevtype` VALUES (70,'变压器顶层油温','data_dcyw','021005',30);
INSERT INTO `modevtype` VALUES (71,'负荷电流波形','data_fhdlbx','024003',30);
INSERT INTO `modevtype` VALUES (72,'分合闸线圈','data_fhzxq','024002',30);
INSERT INTO `modevtype` VALUES (73,'变压器微水','data_ws','021003',30);
INSERT INTO `modevtype` VALUES (74,'电容型设备绝缘监测','data_dr_jyjc','022001',30);
INSERT INTO `modevtype` VALUES (75,'变电站微气象','data_microclimate','025001',30);
INSERT INTO `modevtype` VALUES (76,'储能电机','data_cnj','024006',30);
/*!40000 ALTER TABLE `modevtype` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `modevtype_point`
--

DROP TABLE IF EXISTS `modevtype_point`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `modevtype_point` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modevtype_id` int(11) DEFAULT NULL COMMENT '监测设备类型表id',
  `field` varchar(45) DEFAULT NULL COMMENT '对应tablename表的字段名',
  `field_desc` varchar(200) DEFAULT NULL COMMENT '对应tablename表的字段名称描述',
  `type` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8mb4 COMMENT='监测设备类型属性点表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `modevtype_point`
--

LOCK TABLES `modevtype_point` WRITE;
/*!40000 ALTER TABLE `modevtype_point` DISABLE KEYS */;
INSERT INTO `modevtype_point` VALUES (9,3,'d_ct_1','泄露电流','float');
INSERT INTO `modevtype_point` VALUES (10,1,'ch4ppm','甲烷含量','float');
INSERT INTO `modevtype_point` VALUES (11,1,'c2h4ppm','乙烯含量','float');
INSERT INTO `modevtype_point` VALUES (12,1,'c2h6ppm','乙烷含量','float');
INSERT INTO `modevtype_point` VALUES (13,1,'c2h2ppm','乙炔含量','float');
INSERT INTO `modevtype_point` VALUES (14,1,'h2ppm','氢气含量','float');
INSERT INTO `modevtype_point` VALUES (15,1,'coppm','一氧化碳含量','float');
INSERT INTO `modevtype_point` VALUES (16,1,'co2ppm','二氧化碳含量','float');
INSERT INTO `modevtype_point` VALUES (18,1,'totalhydrocarbon','总烃','float');
INSERT INTO `modevtype_point` VALUES (25,20,'current_val','环流数据','float');
INSERT INTO `modevtype_point` VALUES (49,65,'dischargeCapacity','放电量','float');
INSERT INTO `modevtype_point` VALUES (50,65,'dischargeWaveform','放电波形','float');
INSERT INTO `modevtype_point` VALUES (51,65,'pulseCount','脉冲个数','float');
INSERT INTO `modevtype_point` VALUES (52,65,'phase','相位','float');
INSERT INTO `modevtype_point` VALUES (64,74,'capacitance','电容量','float');
INSERT INTO `modevtype_point` VALUES (65,74,'lossFactor','介质损耗因数','float');
INSERT INTO `modevtype_point` VALUES (66,74,'systemVoltage','系统电压','float');
INSERT INTO `modevtype_point` VALUES (67,74,'totalCurrent','全电流','float');
INSERT INTO `modevtype_point` VALUES (68,74,'unbalanceCurrent','三相不平衡电流','float');
INSERT INTO `modevtype_point` VALUES (69,74,'unbalanceVoltage','三相不平衡电压','float');
INSERT INTO `modevtype_point` VALUES (70,76,'chargeTime','储能时间','float');
INSERT INTO `modevtype_point` VALUES (83,68,'dischargeCapacity','放电量','float');
INSERT INTO `modevtype_point` VALUES (84,68,'dischargePosition','放电位置','float');
INSERT INTO `modevtype_point` VALUES (85,68,'pulseCount','脉冲个数','float');
INSERT INTO `modevtype_point` VALUES (86,1,'mstppm','微水含量','float');
INSERT INTO `modevtype_point` VALUES (87,2,'d_ct','泄露电流','float');
INSERT INTO `modevtype_point` VALUES (88,4,'lc','全电流','float');
INSERT INTO `modevtype_point` VALUES (89,4,'rc','阻性电流','float');
INSERT INTO `modevtype_point` VALUES (90,4,'ligcnt','累计落雷次数','int');
INSERT INTO `modevtype_point` VALUES (91,17,'t1','1通道温度','float');
INSERT INTO `modevtype_point` VALUES (92,17,'t2','2通道温度','float');
INSERT INTO `modevtype_point` VALUES (93,17,'t3','3通道温度','float');
INSERT INTO `modevtype_point` VALUES (94,17,'t4','4通道温度','float');
INSERT INTO `modevtype_point` VALUES (95,17,'t5','5通道温度','float');
INSERT INTO `modevtype_point` VALUES (96,17,'t6','6通道温度','float');
INSERT INTO `modevtype_point` VALUES (97,17,'t7','7通道温度','float');
INSERT INTO `modevtype_point` VALUES (98,17,'t8','8通道温度','float');
INSERT INTO `modevtype_point` VALUES (99,17,'t9','9通道温度','float');
INSERT INTO `modevtype_point` VALUES (100,18,'t1','1通道温度','float');
INSERT INTO `modevtype_point` VALUES (101,18,'t2','2通道温度','float');
INSERT INTO `modevtype_point` VALUES (102,18,'t3','3通道温度','float');
INSERT INTO `modevtype_point` VALUES (103,18,'t4','4通道温度','float');
INSERT INTO `modevtype_point` VALUES (104,18,'t5','5通道温度','float');
INSERT INTO `modevtype_point` VALUES (105,18,'t6','6通道温度','float');
INSERT INTO `modevtype_point` VALUES (106,18,'t7','7通道温度','float');
INSERT INTO `modevtype_point` VALUES (107,18,'t8','8通道温度','float');
INSERT INTO `modevtype_point` VALUES (108,18,'t9','9通道温度','float');
INSERT INTO `modevtype_point` VALUES (109,19,'t1','1通道温度','float');
INSERT INTO `modevtype_point` VALUES (110,19,'t2','2通道温度','float');
INSERT INTO `modevtype_point` VALUES (111,19,'t3','3通道温度','float');
INSERT INTO `modevtype_point` VALUES (112,19,'t4','4通道温度','float');
INSERT INTO `modevtype_point` VALUES (113,19,'t5','5通道温度','float');
INSERT INTO `modevtype_point` VALUES (114,19,'t6','6通道温度','float');
INSERT INTO `modevtype_point` VALUES (115,19,'t7','7通道温度','float');
INSERT INTO `modevtype_point` VALUES (116,19,'t8','8通道温度','float');
INSERT INTO `modevtype_point` VALUES (117,19,'t9','9通道温度','float');
INSERT INTO `modevtype_point` VALUES (118,6,'envhum','湿度','float');
INSERT INTO `modevtype_point` VALUES (119,6,'envtmp','温度','float');
INSERT INTO `modevtype_point` VALUES (120,7,'envhum','湿度','float');
INSERT INTO `modevtype_point` VALUES (121,7,'envtmp','温度','float');
INSERT INTO `modevtype_point` VALUES (122,7,'airquality','空气质量','float');
INSERT INTO `modevtype_point` VALUES (123,8,'temp','温度','float');
INSERT INTO `modevtype_point` VALUES (124,8,'pressure','压力','float');
INSERT INTO `modevtype_point` VALUES (125,8,'md','密度','float');
INSERT INTO `modevtype_point` VALUES (126,8,'pressure20','相对压力','float');
INSERT INTO `modevtype_point` VALUES (127,10,'apppadsch','局放峰值','float');
INSERT INTO `modevtype_point` VALUES (128,10,'phase','放电相位','float');
INSERT INTO `modevtype_point` VALUES (129,10,'nqs','平均放电电流','float');
INSERT INTO `modevtype_point` VALUES (130,10,'opcnt','动作计数器','int');
INSERT INTO `modevtype_point` VALUES (131,20,'alarm_level','报警等级','int');
INSERT INTO `modevtype_point` VALUES (132,61,'gas','SF6浓度','float');
INSERT INTO `modevtype_point` VALUES (133,61,'yq','O2含量','float');
INSERT INTO `modevtype_point` VALUES (135,61,'pm','湿度','float');
INSERT INTO `modevtype_point` VALUES (136,61,'tmp','温度','float');
/*!40000 ALTER TABLE `modevtype_point` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `n_103_point`
--

DROP TABLE IF EXISTS `n_103_point`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `n_103_point` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `npoint_id` int(11) DEFAULT NULL COMMENT '监测装置属性点ID',
  `sensor_103_id` int(11) DEFAULT NULL COMMENT '103和sensor表的关联ID',
  `sadr` varchar(45) DEFAULT NULL COMMENT '信息体地址',
  `item_no` varchar(45) DEFAULT NULL COMMENT '条目号',
  `paramindex` varchar(200) DEFAULT NULL COMMENT '61850对象参引',
  `part_name` varchar(200) DEFAULT NULL COMMENT '名称后半部分',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='103和point表的关联';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `n_103_point`
--

LOCK TABLES `n_103_point` WRITE;
/*!40000 ALTER TABLE `n_103_point` DISABLE KEYS */;
/*!40000 ALTER TABLE `n_103_point` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `n_103_sensor`
--

DROP TABLE IF EXISTS `n_103_sensor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `n_103_sensor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nsensor_id` int(11) DEFAULT NULL COMMENT '监测装置ID',
  `grp_no` int(11) DEFAULT NULL COMMENT '组号',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='103和sensor表的关联';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `n_103_sensor`
--

LOCK TABLES `n_103_sensor` WRITE;
/*!40000 ALTER TABLE `n_103_sensor` DISABLE KEYS */;
/*!40000 ALTER TABLE `n_103_sensor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `n_point`
--

DROP TABLE IF EXISTS `n_point`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `n_point` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sensor_id` int(11) DEFAULT NULL COMMENT '监测装置ID',
  `field` varchar(45) DEFAULT NULL COMMENT '对应tablename表的字段名',
  `field_desc` varchar(200) DEFAULT NULL COMMENT '对应tablename表的字段名称描述',
  `point_id` int(11) DEFAULT NULL COMMENT '对应的点位编号',
  `type` int(11) DEFAULT NULL COMMENT '点位类型  1:遥信 2:遥测',
  PRIMARY KEY (`id`),
  KEY `idxField` (`sensor_id`,`field`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='监测装置属性点表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `n_point`
--

LOCK TABLES `n_point` WRITE;
/*!40000 ALTER TABLE `n_point` DISABLE KEYS */;
/*!40000 ALTER TABLE `n_point` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `n_sensor`
--

DROP TABLE IF EXISTS `n_sensor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `n_sensor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) DEFAULT NULL COMMENT '名称',
  `phase` varchar(45) DEFAULT NULL COMMENT '相别',
  `type_id` int(11) DEFAULT NULL COMMENT '类型id',
  `sensor_code` varchar(45) DEFAULT NULL COMMENT '传感器的唯一标识',
  `equipment_code` varchar(45) DEFAULT NULL COMMENT '被监测设备的唯一标识',
  `dev_id` int(11) DEFAULT NULL COMMENT '装置ID',
  `status` int(11) DEFAULT '1' COMMENT '状态 1-正常  0-删除',
  `zsb_id` int(11) DEFAULT NULL,
  `icd_id` int(11) DEFAULT NULL COMMENT '关联icd表中的id',
  `order_num` int(11) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `port` int(11) DEFAULT NULL,
  `username` varchar(45) DEFAULT NULL,
  `passwd` varchar(45) DEFAULT NULL,
  `tm_id` int(11) DEFAULT NULL,
  `tm_type` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idxSensor` (`sensor_code`),
  KEY `idxOrd` (`order_num`),
  KEY `idxZsb` (`zsb_id`,`order_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='监测装置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `n_sensor`
--

LOCK TABLES `n_sensor` WRITE;
/*!40000 ALTER TABLE `n_sensor` DISABLE KEYS */;
/*!40000 ALTER TABLE `n_sensor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `remote_config`
--

DROP TABLE IF EXISTS `remote_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `remote_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(45) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `port` int(11) DEFAULT NULL,
  `user` varchar(45) DEFAULT NULL,
  `passwd` varchar(45) DEFAULT NULL,
  `path` varchar(2000) DEFAULT NULL COMMENT '目录',
  `suffix` varchar(45) DEFAULT NULL COMMENT '后缀名',
  `todel` int(11) DEFAULT NULL COMMENT '下载后删除',
  `active` int(11) DEFAULT NULL COMMENT '0:停用; 1:启用;',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='远端服务器信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `remote_config`
--

LOCK TABLES `remote_config` WRITE;
/*!40000 ALTER TABLE `remote_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `remote_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `remote_download`
--

DROP TABLE IF EXISTS `remote_download`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `remote_download` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `config_id` int(11) DEFAULT NULL,
  `remote_path` varchar(200) DEFAULT NULL COMMENT '源路径',
  `filename` varchar(200) DEFAULT NULL COMMENT '文件名',
  `path` varchar(200) DEFAULT NULL COMMENT '本地路径',
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx` (`config_id`,`remote_path`,`filename`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='远端文件下载记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `remote_download`
--

LOCK TABLES `remote_download` WRITE;
/*!40000 ALTER TABLE `remote_download` DISABLE KEYS */;
/*!40000 ALTER TABLE `remote_download` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `rptparamindex`
--

DROP TABLE IF EXISTS `rptparamindex`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `rptparamindex` (
  `objid` int(11) DEFAULT NULL COMMENT '61850对象id',
  `paramindex` varchar(200) NOT NULL COMMENT '61850对象参引',
  `eqmid` int(11) DEFAULT NULL COMMENT '监测设备id',
  `tablename` varchar(50) DEFAULT NULL COMMENT '数据存放表名称',
  `colname` varchar(50) DEFAULT NULL COMMENT '数据存放对应列名称',
  `phase` varchar(2) DEFAULT NULL COMMENT '相位',
  PRIMARY KEY (`paramindex`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `rptparamindex`
--

LOCK TABLES `rptparamindex` WRITE;
/*!40000 ALTER TABLE `rptparamindex` DISABLE KEYS */;
/*!40000 ALTER TABLE `rptparamindex` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `thermal_config`
--

DROP TABLE IF EXISTS `thermal_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `thermal_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type_id` int(11) DEFAULT NULL COMMENT '类型id',
  `maxtemp` varchar(45) DEFAULT NULL,
  `mintemp` varchar(45) DEFAULT NULL,
  `avertemp` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `thermal_config`
--

LOCK TABLES `thermal_config` WRITE;
/*!40000 ALTER TABLE `thermal_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `thermal_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `unit`
--

DROP TABLE IF EXISTS `unit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `unit` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `field` varchar(45) DEFAULT NULL COMMENT '字段名',
  `unit` varchar(45) DEFAULT NULL COMMENT '单位',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COMMENT='计量单位';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `unit`
--

LOCK TABLES `unit` WRITE;
/*!40000 ALTER TABLE `unit` DISABLE KEYS */;
INSERT INTO `unit` VALUES (5,'Density','Kg/m3');
INSERT INTO `unit` VALUES (6,'Temperature','°C');
INSERT INTO `unit` VALUES (7,'Pressure20','MPa');
INSERT INTO `unit` VALUES (17,'totalhydrocarbon','UL/L');
INSERT INTO `unit` VALUES (18,'MaxTmp','°C');
INSERT INTO `unit` VALUES (19,'MinTmp','°C');
INSERT INTO `unit` VALUES (20,'AvgTmp','°C');
INSERT INTO `unit` VALUES (21,'pressure','MPa');
INSERT INTO `unit` VALUES (22,'Moisture','u L/L');
INSERT INTO `unit` VALUES (23,'FullCurrent','mA');
INSERT INTO `unit` VALUES (24,'CableCurrent','A');
INSERT INTO `unit` VALUES (25,'ResistiveCurrent','mA');
INSERT INTO `unit` VALUES (26,'CapacitiveCurrent','mA');
INSERT INTO `unit` VALUES (27,'Capacitance','pf');
INSERT INTO `unit` VALUES (28,'DielectricLoss','%');
INSERT INTO `unit` VALUES (29,'Concentration','ppm');
INSERT INTO `unit` VALUES (30,'O2Content','%');
INSERT INTO `unit` VALUES (31,'Humidity','%');
INSERT INTO `unit` VALUES (32,'ch4ppm','UL/L');
INSERT INTO `unit` VALUES (33,'c2h4ppm','UL/L');
INSERT INTO `unit` VALUES (34,'c2h6ppm','UL/L');
INSERT INTO `unit` VALUES (35,'c2h2ppm','UL/L');
INSERT INTO `unit` VALUES (36,'h2ppm','UL/L');
INSERT INTO `unit` VALUES (37,'coppm','UL/L');
INSERT INTO `unit` VALUES (38,'co2ppm','UL/L');
INSERT INTO `unit` VALUES (40,'totalCoreCurrent','mA');
INSERT INTO `unit` VALUES (41,'chargeTime','s');
INSERT INTO `unit` VALUES (42,'mstppm','UL/L');
INSERT INTO `unit` VALUES (43,'lc','mA');
INSERT INTO `unit` VALUES (44,'rc','mA');
INSERT INTO `unit` VALUES (45,'t1','°C');
INSERT INTO `unit` VALUES (46,'t2','°C');
INSERT INTO `unit` VALUES (47,'t3','°C');
INSERT INTO `unit` VALUES (48,'t4','°C');
INSERT INTO `unit` VALUES (49,'t5','°C');
INSERT INTO `unit` VALUES (50,'t6','°C');
INSERT INTO `unit` VALUES (51,'t7','°C');
INSERT INTO `unit` VALUES (52,'t8','°C');
INSERT INTO `unit` VALUES (53,'t9','°C');
INSERT INTO `unit` VALUES (54,'t10','°C');
INSERT INTO `unit` VALUES (55,'t11','°C');
INSERT INTO `unit` VALUES (56,'t12','°C');
INSERT INTO `unit` VALUES (57,'envtmp','°C');
INSERT INTO `unit` VALUES (58,'envhum','%RH‌');
INSERT INTO `unit` VALUES (59,'temp','°C');
INSERT INTO `unit` VALUES (60,'md','Kg/m3');
INSERT INTO `unit` VALUES (61,'current_val','mA');
/*!40000 ALTER TABLE `unit` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warn_cfg`
--

DROP TABLE IF EXISTS `warn_cfg`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `warn_cfg` (
  `eqmid` int(11) NOT NULL,
  `warnmin1` float DEFAULT NULL,
  `warnmax1` float DEFAULT NULL,
  `warnmin2` float DEFAULT NULL,
  `warnmax2` float DEFAULT NULL,
  `warnmin3` float DEFAULT NULL,
  `warnmax3` float DEFAULT NULL,
  `warnmin4` float DEFAULT NULL,
  `warnmax4` float DEFAULT NULL,
  `warnmin5` float DEFAULT NULL,
  `warnmax5` float DEFAULT NULL,
  `warnmin6` float DEFAULT NULL,
  `warnmax6` float DEFAULT NULL,
  `warnmin7` float DEFAULT NULL,
  `warnmax7` float DEFAULT NULL,
  `warnmin8` float DEFAULT NULL,
  `warnmax8` float DEFAULT NULL,
  `warnmin9` float DEFAULT NULL,
  `warnmax9` float DEFAULT NULL,
  `warnmin10` float DEFAULT NULL,
  `warnmax10` float DEFAULT NULL,
  `warnmin11` float DEFAULT NULL,
  `warnmax11` float DEFAULT NULL,
  `warnmin12` float DEFAULT NULL,
  `warnmax12` float DEFAULT NULL,
  `warnmin13` float DEFAULT NULL,
  `warnmax13` float DEFAULT NULL,
  `warnmin14` float DEFAULT NULL,
  `warnmax14` float DEFAULT NULL,
  `warnmin15` float DEFAULT NULL,
  `warnmax15` float DEFAULT NULL,
  `warnmin16` float DEFAULT NULL,
  `warnmax16` float DEFAULT NULL,
  `warnmin17` float DEFAULT NULL,
  `warnmax17` float DEFAULT NULL,
  `warnmin18` float DEFAULT NULL,
  `warnmax18` float DEFAULT NULL,
  `warnmin19` float DEFAULT NULL,
  `warnmax19` float DEFAULT NULL,
  `warnmin20` float DEFAULT NULL,
  `warnmax20` float DEFAULT NULL,
  PRIMARY KEY (`eqmid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warn_cfg`
--

LOCK TABLES `warn_cfg` WRITE;
/*!40000 ALTER TABLE `warn_cfg` DISABLE KEYS */;
/*!40000 ALTER TABLE `warn_cfg` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warn_rule`
--

DROP TABLE IF EXISTS `warn_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `warn_rule` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sensor_id` int(11) DEFAULT NULL COMMENT '监测装置ID',
  `modevtype_point_id` int(11) DEFAULT NULL COMMENT '监测设备类型属性点表id',
  `threshold` varchar(45) DEFAULT NULL COMMENT '阈值',
  `comparator` varchar(45) DEFAULT NULL COMMENT '比较器',
  `operator` varchar(45) DEFAULT NULL COMMENT '比较符',
  `level` int(11) DEFAULT NULL COMMENT '告警级别 0:低 1:中 2:高',
  `last_d_time` datetime DEFAULT NULL COMMENT '最后数据采集时间',
  `active` int(11) DEFAULT NULL COMMENT '0:停用; 1:启用;',
  `notify_com` int(11) DEFAULT NULL COMMENT '0:不通知; 1:通知',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='告警规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warn_rule`
--

LOCK TABLES `warn_rule` WRITE;
/*!40000 ALTER TABLE `warn_rule` DISABLE KEYS */;
/*!40000 ALTER TABLE `warn_rule` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warning`
--

DROP TABLE IF EXISTS `warning`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `warning` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `rule_id` int(11) DEFAULT NULL,
  `sensor_id` int(11) DEFAULT NULL COMMENT '设备id',
  `sensor_name` varchar(255) DEFAULT NULL,
  `zsb_name` varchar(255) DEFAULT NULL,
  `field` varchar(45) DEFAULT NULL COMMENT '对应tablename表的字段名',
  `d_time` datetime DEFAULT NULL COMMENT '数据采集时间',
  `warn_time` datetime DEFAULT NULL COMMENT '告警时间YYYY-MM-DD HH:MI:SS',
  `warn_value` varchar(45) DEFAULT NULL COMMENT '告警值',
  `threshold` varchar(45) DEFAULT NULL COMMENT '阈值',
  `warn_desc` varchar(255) DEFAULT NULL COMMENT '告警信息/设备名称/设备安装位置',
  `trigger_desc` varchar(255) DEFAULT NULL,
  `warn_level` int(11) DEFAULT NULL COMMENT '告警级别 0:低 1:中 2:高',
  `state` varchar(4) DEFAULT NULL COMMENT '处理状态 0:已处理 1:未处理',
  `process` varchar(255) DEFAULT NULL COMMENT '处理结果描述',
  `process_user` varchar(32) DEFAULT NULL COMMENT '处理人id',
  `process_time` datetime DEFAULT NULL COMMENT '处理时间',
  PRIMARY KEY (`id`),
  KEY `idxStat` (`state`,`warn_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warning`
--

LOCK TABLES `warning` WRITE;
/*!40000 ALTER TABLE `warning` DISABLE KEYS */;
/*!40000 ALTER TABLE `warning` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `zsb`
--

DROP TABLE IF EXISTS `zsb`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `zsb` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mc` varchar(50) DEFAULT NULL,
  `jgid` int(11) NOT NULL,
  `lxid` int(11) NOT NULL,
  `deviceip` varchar(100) DEFAULT NULL,
  `deviceport` varchar(20) DEFAULT NULL,
  `deviceusername` varchar(20) DEFAULT NULL,
  `devicepasswd` varchar(20) DEFAULT NULL,
  `bdzid` int(11) NOT NULL,
  `address` decimal(65,30) DEFAULT NULL,
  `frequency` decimal(65,30) DEFAULT NULL,
  `portname` varchar(10) DEFAULT NULL,
  `venderid` char(32) DEFAULT NULL COMMENT '默认海康的',
  `transcount` decimal(65,30) DEFAULT NULL,
  `vendercode` varchar(100) DEFAULT NULL,
  `xh` decimal(65,30) DEFAULT NULL,
  `enable` decimal(65,30) DEFAULT NULL COMMENT '针对DVR/NVR，1可用0不可用',
  `sbbm` varchar(100) DEFAULT NULL COMMENT '设备编码（来自PMS）',
  `yxbh` varchar(100) DEFAULT NULL,
  `zcxz` varchar(100) DEFAULT NULL COMMENT '资产性质',
  `zcdw` varchar(100) DEFAULT NULL COMMENT '资产单位',
  `xs` varchar(100) DEFAULT NULL COMMENT '相数',
  `jb` varchar(100) DEFAULT NULL COMMENT '极别',
  `xb` varchar(100) DEFAULT NULL COMMENT '相别',
  `eddy` varchar(100) DEFAULT NULL COMMENT '额定电压(kV)',
  `eddl` varchar(100) DEFAULT NULL COMMENT '额定电流(A)',
  `edpl` varchar(100) DEFAULT NULL COMMENT '额定频率(Hz)',
  `edxh` varchar(100) DEFAULT NULL COMMENT '设备型号',
  `sccj` varchar(100) DEFAULT NULL COMMENT '生产厂家',
  `ccbh` varchar(100) DEFAULT NULL COMMENT '出厂编号',
  `ccdh` varchar(100) DEFAULT NULL COMMENT '产品代号',
  `zzgj` varchar(100) DEFAULT NULL COMMENT '制造国家',
  `ccrq` varchar(100) DEFAULT NULL COMMENT '出厂日期',
  `tcrq` varchar(100) DEFAULT NULL COMMENT '投运日期',
  `syhj` varchar(100) DEFAULT NULL COMMENT '使用环境',
  `fwdj` varchar(100) DEFAULT NULL COMMENT '防污等级',
  `zcbh` varchar(100) DEFAULT NULL COMMENT '资产编号',
  `yt` decimal(65,30) DEFAULT NULL COMMENT '默认0，1客流统计',
  `whbz` varchar(100) DEFAULT NULL COMMENT '维护班组',
  `sbzr` varchar(100) DEFAULT NULL COMMENT '设备主人',
  `ywdw` varchar(100) DEFAULT NULL COMMENT '运维单位',
  `gcbh` varchar(100) DEFAULT NULL COMMENT '工程编号',
  `gcmc` varchar(100) DEFAULT NULL COMMENT '工程名称',
  `sbid` varchar(100) DEFAULT NULL COMMENT '设备ID',
  `zxmc` varchar(100) DEFAULT NULL COMMENT '站线名称',
  `sbcz` varchar(100) DEFAULT NULL COMMENT '设备厂家',
  `zyfl` varchar(100) DEFAULT NULL COMMENT '专业分类',
  `pmbm` varchar(100) DEFAULT NULL COMMENT 'PM编码',
  `gnwz` varchar(100) DEFAULT NULL COMMENT '功能位置',
  `sblxbm` varchar(100) DEFAULT NULL COMMENT '设备类型编码',
  `zfid` varchar(100) DEFAULT NULL COMMENT '站房ID',
  `zjtyrq` varchar(100) DEFAULT NULL COMMENT '最近投运日期',
  `sbzjfs` varchar(100) DEFAULT NULL COMMENT '设备增加方式',
  `zcyjqcid` varchar(100) DEFAULT NULL COMMENT '资产移交清册ID',
  `dqmpyxkid` varchar(100) DEFAULT NULL COMMENT '电器铭牌运行库ID',
  `ssdzdydj` varchar(100) DEFAULT NULL COMMENT '所属电站电压等级',
  `djsj` varchar(100) DEFAULT NULL COMMENT '登记时间',
  `sssj` varchar(100) DEFAULT NULL COMMENT '所属地市',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `zsb`
--

LOCK TABLES `zsb` WRITE;
/*!40000 ALTER TABLE `zsb` DISABLE KEYS */;
/*!40000 ALTER TABLE `zsb` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-03-27 15:36:09
