10 lines
271 B
SQL
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)
|
|
); |