CREATE TABLE IF NOT EXISTS sensor_values (
	timestamp INTEGER NOT NULL,
	sensor TEXT NOT NULL,
	value REAL NOT NULL
);

CREATE TABLE IF NOT EXISTS sensor_config (
	sensor TEXT NOT NULL,
	key TEXT NOT NULL,
	value REAL NOT NULL,
	PRIMARY KEY (sensor, key)
);

CREATE TABLE IF NOT EXISTS sessions (
	id TEXT NOT NULL,
	expires_at INTEGER NOT NULL,
	PRIMARY KEY (id)
);
