Passenger Events Schema Flashcards
(29 cards)
What is the primary key for the passenger_events table?
passenger_event_id
What is the description of the passenger_events table?
Timestamped passenger-related events, including boardings and alightings
What is the table type of passenger_events?
Event
What does the passenger_event_id field represent?
Identifies the recorded passenger event
What are the constraints on the passenger_event_id field?
Required: true, Unique: true
What does the service_date field represent?
Service date. References GTFS
Is the service_date field required?
Yes
What does the event_timestamp field represent?
Recorded event timestamp
Is the event_timestamp field required?
Yes
What does the location_ping_id field represent?
Identifies the vehicle location where the passenger event occurred
What does the trip_id_performed field represent?
Identifies the trip performed. If trips_performed table is used, this must be populated in order to link to it
What does the trip_id_scheduled field represent?
Identifies the scheduled trip
What does the trip_stop_sequence field represent?
The actual order of stops visited within a performed trip
Is the trip_stop_sequence field required?
Yes
What is the minimum value for trip_stop_sequence?
1
What does the scheduled_stop_sequence field represent?
Scheduled order of stops for a particular trip. References GTFS
What is the minimum value for scheduled_stop_sequence?
0
What does the event_type field represent?
Indicates the type of event recorded
Is the event_type field required?
Yes
What are some possible values for event_type?
Vehicle arrived at stop, Vehicle departed stop, Door opened, Door closed, Passenger boarded, Passenger alighted, Kneel was engaged, Kneel was disengaged, Ramp was deployed, Ramp was raised
What does the vehicle_id field represent?
Identifies a vehicle
Is the vehicle_id field required?
Yes
What does the device_id field represent?
Identifies the device that recorded the event
What does the train_car_id field represent?
Identifies the train car