Files

49 lines
1.1 KiB
Go

// 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
SourceURL sql.NullString
ImageURL sql.NullString
ContainsLocation bool
GeometryJSON string
}
type outlookDiscussionRow struct {
DiscussionIndex int
Day int
Headline sql.NullString
Summary sql.NullString
Discussion sql.NullString
UpdatedAt sql.NullTime
}