aboutsummaryrefslogtreecommitdiff
path: root/lib/Persist.hs
diff options
context:
space:
mode:
authorstuebinm2022-07-02 16:11:29 +0200
committerstuebinm2022-07-02 16:11:29 +0200
commitaeeaf83cf0dc72e9e39439984067563d08e57dec (patch)
tree416cb6b457c61cf09c46de1b35649287347a1e52 /lib/Persist.hs
parent6c25964c0165530e7db6650eea79cbac99031353 (diff)
more or less functional servicealerts for gtfs rt
(kinda barebones, but the important things should be there)
Diffstat (limited to '')
-rw-r--r--lib/Persist.hs9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Persist.hs b/lib/Persist.hs
index 4a6d9b4..552074f 100644
--- a/lib/Persist.hs
+++ b/lib/Persist.hs
@@ -78,10 +78,15 @@ TripPing json sql=tt_trip_ping
timestamp UTCTime
deriving Show Generic Eq
-Announcements sql=tt_announcements
+-- TODO: multi-language support?
+Announcement sql=tt_announcements
+ Id UUID default=uuid_generate_v4()
trip TripID
message Text
- day Text
+ header Text
+ day Day
+ url Text Maybe
+ announcedAt UTCTime Maybe
-- | this table works as calendar_dates.txt in GTFS
ScheduleAmendment json sql=tt_schedule_amendement