weather-station/db/migrations/20251013_add_forecast_weights_current.sql

11 lines
357 B
SQL

-- Create snapshot table for per-station forecast fusion weights
CREATE TABLE IF NOT EXISTS forecast_weights_current (
station_id TEXT PRIMARY KEY,
w_open_meteo DOUBLE PRECISION NOT NULL,
w_caiyun DOUBLE PRECISION NOT NULL,
w_imdroid DOUBLE PRECISION NOT NULL,
last_issued_at TIMESTAMPTZ NOT NULL,
updated_at TIMESTAMPTZ NOT NULL
);