mirror of
https://github.com/beestat/app.git
synced 2025-06-01 04:37:12 -04:00
Updated SQL for #365
This commit is contained in:
parent
c579cc9a38
commit
6b3e7158ef
@ -423,10 +423,10 @@ CREATE TABLE `runtime_sensor` (
|
|||||||
`temperature` smallint DEFAULT NULL,
|
`temperature` smallint DEFAULT NULL,
|
||||||
`occupancy` tinyint unsigned DEFAULT NULL,
|
`occupancy` tinyint unsigned DEFAULT NULL,
|
||||||
`air_pressure` mediumint unsigned DEFAULT NULL,
|
`air_pressure` mediumint unsigned DEFAULT NULL,
|
||||||
`air_quality` tinyint unsigned DEFAULT NULL,
|
`air_quality` smallint unsigned DEFAULT NULL,
|
||||||
`air_quality_accuracy` tinyint unsigned DEFAULT NULL,
|
`air_quality_accuracy` tinyint unsigned DEFAULT NULL,
|
||||||
`voc_concentration` smallint unsigned DEFAULT NULL,
|
`voc_concentration` mediumint unsigned DEFAULT NULL,
|
||||||
`co2_concentration` smallint unsigned DEFAULT NULL,
|
`co2_concentration` mediumint unsigned DEFAULT NULL,
|
||||||
PRIMARY KEY (`runtime_sensor_id`,`timestamp`),
|
PRIMARY KEY (`runtime_sensor_id`,`timestamp`),
|
||||||
UNIQUE KEY `thermostat_id_timestamp` (`sensor_id`,`timestamp`)
|
UNIQUE KEY `thermostat_id_timestamp` (`sensor_id`,`timestamp`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user