1. transport_mode depends on origin and 2. pickup timetable
Deploy PBT / deploy (push) Successful in 16s

This commit is contained in:
2026-09-11 13:30:54 +02:00
parent ca90346f0b
commit e931de1d3b
6 changed files with 131 additions and 5 deletions
+4
View File
@@ -76,6 +76,10 @@ class Trip(db.Model):
transport_mode = db.Column(db.String(50), nullable=False)
line = db.Column(db.String(50))
# optional detail beyond the line, e.g. direction/departure time looked up
# in an external journey planner ("Kurs"); free text, nothing to match.
# Text, not String(n) - see the "lines" column truncation incident.
course = db.Column(db.Text)
# free-text label as entered; *_stop_id links to a known stop when matched
origin = db.Column(db.String(120), nullable=False)
origin_stop_id = db.Column(db.Integer, db.ForeignKey("stops.id"))