Add convective outlook Postgres read adapter

This commit is contained in:
2026-06-11 15:33:26 +00:00
parent 6e0b71f6f4
commit 63c8f33a2a
5 changed files with 413 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
// outlooks_rows.go defines row DTOs for outlook reads.
// Layer: adapters/outbound/postgres outlook feature.
package postgres
import (
"database/sql"
"time"
)
type outlookRunParentRow struct {
EventID string
LocationID sql.NullString
LocationName sql.NullString
Latitude sql.NullFloat64
Longitude sql.NullFloat64
AsOf time.Time
IssuedAt sql.NullTime
}
type outlookRow struct {
OutlookIndex int
OutlookID string
Provider string
Product string
Day int
OutlookType string
Label string
LabelText sql.NullString
SeverityRank sql.NullInt64
ValidFrom time.Time
ValidTo time.Time
IssuedAt time.Time
ExpiresAt time.Time
Forecaster sql.NullString
Headline sql.NullString
Summary sql.NullString
Discussion sql.NullString
SourceURL sql.NullString
ImageURL sql.NullString
ContainsLocation bool
GeometryJSON string
}