Files
iot-cloud-api/migrations/3_values.sql
Tobias Maier f76f248446
All checks were successful
Build Project / test (push) Successful in 6m32s
Now using macaddr datatype and added test for adding devices and displaynames
2025-01-04 17:06:13 +00:00

9 lines
255 B
SQL

-- Add migration script here
CREATE TABLE Values (
timestamp TIMESTAMP NOT NULL,
value FLOAT NOT NULL,
value_id INT NOT NULL,
device_id MACADDR NOT NULL,
active_errors INT NOT NULL,
FOREIGN KEY (device_id) REFERENCES Devices(ID)
);