Fare Transactions Schema Flashcards
(42 cards)
What is the primary key for the fare_transactions table?
transaction_id
What is the description of the fare_transactions table?
Timestamped fare transaction, associated with devices
What is the table type of fare_transactions?
Event
What does the transaction_id field represent?
Identifies the fare transaction
What are the constraints on the transaction_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, including for transactions that may be aggregated values associated with a trip or vehicle
Is the event_timestamp field required?
Yes
What does the location_ping_id field represent?
Identifies the vehicle location where the fare transaction occurred
What does the amount field represent?
Value of the transaction
Is the amount field required?
Yes
What does the currency_type field represent?
Currency used for the transaction. References GTFS
What does the fare_action field represent?
Indicates the type of action performed
Is the fare_action field required?
Yes
What are some possible values for fare_action?
Unknown action type, Purchase, Enter, Exit, Transfer entrance, Transfer exit, Add, New, Capture, Extend, Combine, Void, Activate, Adjust, Other
What does the trip_id_performed field represent?
Identifies the trip performed. May be null if the fare collection device is NOT located on a vehicle
What does the trip_id_scheduled field represent?
Identifies the scheduled trip. May be null if the fare collection device is NOT located on a vehicle
What does the pattern_id field represent?
Identifies the unique stop-path for a trip, may be distinct from GTFS shapes.shape_id
What does the trip_stop_sequence field represent?
The actual order of stops visited within a performed trip
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 vehicle_id field represent?
Identifies the vehicle. May be null if collection device is NOT located on a vehicle