Markus Pesch
43e9d00dcb
changes: - Implement repository test for the sqlite backend - Add testutils package to start container images - Remove deprecated till_date in measured values - Renamed columns of the table humidities, pressures and temperatures
9 lines
537 B
SQL
9 lines
537 B
SQL
CREATE TABLE IF NOT EXISTS humidities (
|
|
id CHAR(37) PRIMARY KEY,
|
|
value NUMERIC(10,3) NOT NULL,
|
|
date TIMESTAMP NOT NULL,
|
|
sensor_id CHAR(37) NOT NULL,
|
|
creation_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
update_date TIMESTAMP,
|
|
FOREIGN KEY(sensor_id) REFERENCES sensors(sensor_id)
|
|
); |