43 lines
1010 B
Go
43 lines
1010 B
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
|
|
Headline sql.NullString
|
|
Summary sql.NullString
|
|
Discussion sql.NullString
|
|
SourceURL sql.NullString
|
|
ImageURL sql.NullString
|
|
ContainsLocation bool
|
|
GeometryJSON string
|
|
}
|