34968-vm/migrations/20251016_create_weather_status_table.sql
Flatlogic Bot 8795a633f6 V22
2025-10-16 20:00:52 +00:00

10 lines
271 B
SQL

CREATE TABLE IF NOT EXISTS weather_status (
id SERIAL PRIMARY KEY,
"timestamp" TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
temperature FLOAT,
humidity FLOAT,
wind_speed FLOAT,
precipitation FLOAT,
alert_status BOOLEAN DEFAULT FALSE,
alert_message VARCHAR(255)
);