From d30d0275718df589ef7522097a5a8513194c3baf Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 17 Jul 2023 12:20:31 +0100 Subject: [PATCH] Add timetable types --- pkg/database/timetable.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkg/database/timetable.go diff --git a/pkg/database/timetable.go b/pkg/database/timetable.go new file mode 100644 index 0000000..fd2ff1c --- /dev/null +++ b/pkg/database/timetable.go @@ -0,0 +1,28 @@ +package database + +import ( + "time" +) + +type Stop struct { + publicDeparture *string + wttDeparture *string + publicArrival *string + wttArrival *string + isPublic bool + tiploc string +} + +type Service struct { + transactionType string + stpIndicator string + operator string + trainUid string + headcode string + powerType string + planSpeed string + scheduleStartDate time.Time + scheduleEndDate time.Time + daysRun []string + stops []Stop +} \ No newline at end of file