Add convective outlook Postgres read adapter
This commit is contained in:
42
internal/adapters/outbound/postgres/outlooks_rows.go
Normal file
42
internal/adapters/outbound/postgres/outlooks_rows.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user