bahndb-rest/queries/models.go

173 lines
6.2 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.28.0
package bahndb_rest
import (
"github.com/jackc/pgx/v5/pgtype"
)
type HashHafasTid struct {
Thash pgtype.Text `json:"thash"`
Tripid pgtype.Text `json:"tripid"`
}
type Location struct {
Tripid pgtype.Text `json:"tripid"`
Latitude pgtype.Float8 `json:"latitude"`
Longitude pgtype.Float8 `json:"longitude"`
Realtimedataupdatedat pgtype.Timestamptz `json:"realtimedataupdatedat"`
}
type Operator struct {
ID string `json:"id"`
Name pgtype.Text `json:"name"`
}
type Polyline struct {
Polyline []byte `json:"polyline"`
Linehash string `json:"linehash"`
}
type PolylineConnection struct {
Origin pgtype.Text `json:"origin"`
Destination pgtype.Text `json:"destination"`
Path []byte `json:"path"`
Hash pgtype.Text `json:"hash"`
}
type PolylineLinehashConnection struct {
Hash string `json:"hash"`
Connections []string `json:"connections"`
}
type PolylinesTrip struct {
Trip pgtype.Text `json:"trip"`
Polyline pgtype.Text `json:"polyline"`
}
type Remark struct {
Remhash string `json:"remhash"`
Content pgtype.Text `json:"content"`
Type pgtype.Text `json:"type"`
Code pgtype.Text `json:"code"`
Summary pgtype.Text `json:"summary"`
}
type RemarksTrip struct {
Tripid pgtype.Text `json:"tripid"`
Remhash pgtype.Text `json:"remhash"`
}
type SpatialRefSy struct {
Srid int32 `json:"srid"`
AuthName pgtype.Text `json:"auth_name"`
AuthSrid pgtype.Int4 `json:"auth_srid"`
Srtext pgtype.Text `json:"srtext"`
Proj4text pgtype.Text `json:"proj4text"`
}
type StatLocation struct {
ID string `json:"id"`
Latitude pgtype.Float8 `json:"latitude"`
Longitude pgtype.Float8 `json:"longitude"`
}
type StatService struct {
ID string `json:"id"`
Bus pgtype.Bool `json:"bus"`
Taxi pgtype.Bool `json:"taxi"`
Tram pgtype.Bool `json:"tram"`
Ferry pgtype.Bool `json:"ferry"`
Subway pgtype.Bool `json:"subway"`
National pgtype.Bool `json:"national"`
Regional pgtype.Bool `json:"regional"`
Suburban pgtype.Bool `json:"suburban"`
Regionalexp pgtype.Bool `json:"regionalexp"`
Nationalexp pgtype.Bool `json:"nationalexp"`
}
type StationRank struct {
Stop string `json:"stop"`
Count pgtype.Int8 `json:"count"`
}
type Stop struct {
ID string `json:"id"`
Name pgtype.Text `json:"name"`
LocationID pgtype.Text `json:"location_id"`
ServiceID pgtype.Text `json:"service_id"`
}
type StopRemark struct {
Remhash string `json:"remhash"`
Content pgtype.Text `json:"content"`
Type pgtype.Text `json:"type"`
Code pgtype.Text `json:"code"`
Summary pgtype.Text `json:"summary"`
}
type StopRemarksTrip struct {
Tripid pgtype.Text `json:"tripid"`
Stopid pgtype.Text `json:"stopid"`
Remhash pgtype.Text `json:"remhash"`
}
type Stopover struct {
ID pgtype.Text `json:"id"`
Stop pgtype.Text `json:"stop"`
Departure pgtype.Timestamptz `json:"departure"`
Planneddeparture pgtype.Timestamptz `json:"planneddeparture"`
Departuredelay pgtype.Int4 `json:"departuredelay"`
Arrival pgtype.Timestamptz `json:"arrival"`
Plannedarrival pgtype.Timestamptz `json:"plannedarrival"`
Arrivaldelay pgtype.Int4 `json:"arrivaldelay"`
Reachable pgtype.Bool `json:"reachable"`
Direction pgtype.Text `json:"direction"`
Arrivalplatform pgtype.Text `json:"arrivalplatform"`
Plannedarrivalplatform pgtype.Text `json:"plannedarrivalplatform"`
Departureplatform pgtype.Text `json:"departureplatform"`
Planneddepartureplatform pgtype.Text `json:"planneddepartureplatform"`
Arrivalprognosistype pgtype.Text `json:"arrivalprognosistype"`
Departureprognosistype pgtype.Text `json:"departureprognosistype"`
Cancelled pgtype.Text `json:"cancelled"`
Realtimedataupdatedat pgtype.Timestamptz `json:"realtimedataupdatedat"`
Nextstop pgtype.Bool `json:"nextstop"`
}
type Trip struct {
ID string `json:"id"`
LineID pgtype.Text `json:"line_id"`
LineFahrtnr pgtype.Text `json:"line_fahrtnr"`
LineName pgtype.Text `json:"line_name"`
LineAdmincode pgtype.Text `json:"line_admincode"`
LineProductname pgtype.Text `json:"line_productname"`
LineMode pgtype.Text `json:"line_mode"`
LineProduct pgtype.Text `json:"line_product"`
Operator pgtype.Text `json:"operator"`
Origin pgtype.Text `json:"origin"`
Destination pgtype.Text `json:"destination"`
Loadfactor pgtype.Text `json:"loadfactor"`
Realtimedataupdatedat pgtype.Timestamptz `json:"realtimedataupdatedat"`
}
type TripMetum struct {
ID pgtype.Text `json:"id"`
Departure pgtype.Timestamptz `json:"departure"`
Planneddeparture pgtype.Timestamptz `json:"planneddeparture"`
Departuredelay pgtype.Int4 `json:"departuredelay"`
Arrival pgtype.Timestamptz `json:"arrival"`
Plannedarrival pgtype.Timestamptz `json:"plannedarrival"`
Arrivaldelay pgtype.Int4 `json:"arrivaldelay"`
Reachable pgtype.Bool `json:"reachable"`
Direction pgtype.Text `json:"direction"`
Arrivalplatform pgtype.Text `json:"arrivalplatform"`
Plannedarrivalplatform pgtype.Text `json:"plannedarrivalplatform"`
Departureplatform pgtype.Text `json:"departureplatform"`
Planneddepartureplatform pgtype.Text `json:"planneddepartureplatform"`
Arrivalprognosistype pgtype.Text `json:"arrivalprognosistype"`
Departureprognosistype pgtype.Text `json:"departureprognosistype"`
Cancelled pgtype.Text `json:"cancelled"`
Realtimedataupdatedat pgtype.Timestamptz `json:"realtimedataupdatedat"`
}