Expand database Service document

This commit is contained in:
Fred Boniface 2024-04-07 21:27:12 +01:00
parent 7dafca9504
commit e58d7d1d9a
1 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,10 @@ type Stop struct {
WttArrival string `json:"wttArrival,omitempty"`
IsPublic bool `json:"isPublic,omitempty"`
Tiploc string `json:"tiploc,omitempty"`
Pass string `json:"pass,omitempty"`
Platform string `json:"platform,omitempty"`
ArrLine string `json:"arrLine,omitempty"`
DepLine string `json:"depLine,omitempty"`
}
type Service struct { // Consider including catering, train class etc. here too.
@ -24,6 +28,10 @@ type Service struct { // Consider including catering, train class etc. here too.
PlanSpeed int32 `json:"planSpeed,omitempty"`
ScheduleStartDate time.Time `json:"scheduleStartDate,omitempty"`
ScheduleEndDate time.Time `json:"scheduleEndDate,omitempty"`
FirstClass bool `json:"firstClass,omitempty"`
Catering bool `json:"catering,omitempty"`
CateringType []string `json:"cateringType,omitempty"`
Sleeper bool `json:"sleeper,omitempty"`
DaysRun []string `json:"daysRun,omitempty"`
Stops []Stop `json:"stops,omitempty"`
}