daily-briefing/server/migrations/002_market_news.sql
Sam 2f56be835e Add: München als 3. Wetter-Location + Wetter-Detail-Modal
- München als tertiärer Standort (iris-Akzent) hinzugefügt
- Klick auf WeatherCard öffnet Detail-Modal mit:
  - 24h stündliche Prognose (horizontal scrollbar)
  - 7-Tage-Vorhersage mit Temperaturbalken
  - Wind, Feuchte, Sonnenauf/-untergang
- Backend: 7-Tage statt 3-Tage Forecast, 24 Hourly-Slots pro Standort
- Backend: forecast_3day → forecast Feldname-Konsistenz
- Dashboard: 3-Spalten Wetter-Grid statt 4 (HourlyForecast → Modal)
- Admin: Tertiärer Standort konfigurierbar
- THERMAL Design: iris glow, modal animation, Portal-basiertes Modal

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 01:13:49 +01:00

25 lines
830 B
SQL

-- Migration 002: Market News table
-- Written by n8n workflows, read by the dashboard.
CREATE TABLE IF NOT EXISTS market_news (
id SERIAL PRIMARY KEY,
source VARCHAR(200) NOT NULL DEFAULT '',
title TEXT NOT NULL,
url TEXT NOT NULL DEFAULT '',
category VARCHAR(100),
published_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS idx_market_news_published
ON market_news (published_at DESC);
CREATE INDEX IF NOT EXISTS idx_market_news_category
ON market_news (category);
CREATE UNIQUE INDEX IF NOT EXISTS idx_market_news_url_unique
ON market_news (url);
-- Record this migration
INSERT INTO schema_version (version, description)
VALUES (2, 'market_news table for n8n-sourced articles')
ON CONFLICT (version) DO NOTHING;