Finished values and telemetry

This commit is contained in:
2023-09-19 19:58:48 +00:00
parent cd0581973d
commit 3b8926fb61
5 changed files with 134 additions and 37 deletions

9
migrations/3_values.sql Normal file
View File

@@ -0,0 +1,9 @@
-- Add migration script here
CREATE TABLE Values (
timestamp TIMESTAMP NOT NULL,
value FLOAT NOT NULL,
value_id INT NOT NULL,
device_id CHAR(32) NOT NULL,
active_errors INT NOT NULL,
FOREIGN KEY (device_id) REFERENCES Devices(ID)
);