diff --git a/pkg/database/timetable.go b/pkg/database/timetable.go index da8d266..d698086 100644 --- a/pkg/database/timetable.go +++ b/pkg/database/timetable.go @@ -35,6 +35,15 @@ type Service struct { // Consider including catering, train class etc. here too. Stops []Stop `json:"stops,omitempty"` } +// Contains service detail booleans +type ServiceDetail struct { + FirstClass bool `json:"firstClass"` + Catering bool `json:"catering"` + Sleeper bool `json:"sleeper"` + Vstp bool `json:"vstp"` + Guard bool `json:"guard"` +} + type DeleteQuery struct { TrainUid string `json:"trainUid"` ScheduleStartDate time.Time `json:"scheduleStartDate"`