db: 增加红外测温表

main
huangfeng 3 months ago
parent 1e545e4ae7
commit 1d9c7d73a7

@ -1,6 +1,6 @@
-- MySQL dump 10.13 Distrib 8.0.34, for Win64 (x86_64)
--
-- Host: 192.168.50.82 Database: cacdb
-- Host: 192.168.50.81 Database: cacdb
-- ------------------------------------------------------
-- Server version 5.7.44
@ -424,7 +424,7 @@ DROP TABLE IF EXISTS `data_eaif_h`;
CREATE TABLE `data_eaif_h` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自动编号',
`eqmid` int(11) NOT NULL COMMENT '设备ID',
`areaid` 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 '最小温度',
@ -433,7 +433,6 @@ CREATE TABLE `data_eaif_h` (
`type` tinyint(2) DEFAULT NULL COMMENT '1->点2->线3->框',
`mid` float(10,4) DEFAULT NULL COMMENT '中间差',
`std` float(10,4) DEFAULT NULL COMMENT '标准方差值',
`isupload` int(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx` (`eqmid`,`capturetime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='红外区域测温数据表';
@ -2290,6 +2289,12 @@ CREATE TABLE `n_sensor` (
`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`),
@ -2392,6 +2397,32 @@ LOCK TABLES `rptparamindex` WRITE;
/*!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`
--
@ -2683,4 +2714,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-03-06 16:51:27
-- Dump completed on 2025-03-27 15:36:09

Loading…
Cancel
Save