Fare Transactions Schema Flashcards

(42 cards)

1
Q

What is the primary key for the fare_transactions table?

A

transaction_id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the description of the fare_transactions table?

A

Timestamped fare transaction, associated with devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the table type of fare_transactions?

A

Event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the transaction_id field represent?

A

Identifies the fare transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the constraints on the transaction_id field?

A

Required: true, Unique: true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the service_date field represent?

A

Service date. References GTFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is the service_date field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the event_timestamp field represent?

A

Recorded event timestamp, including for transactions that may be aggregated values associated with a trip or vehicle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is the event_timestamp field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the location_ping_id field represent?

A

Identifies the vehicle location where the fare transaction occurred

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the amount field represent?

A

Value of the transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is the amount field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the currency_type field represent?

A

Currency used for the transaction. References GTFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the fare_action field represent?

A

Indicates the type of action performed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Is the fare_action field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are some possible values for fare_action?

A

Unknown action type, Purchase, Enter, Exit, Transfer entrance, Transfer exit, Add, New, Capture, Extend, Combine, Void, Activate, Adjust, Other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does the trip_id_performed field represent?

A

Identifies the trip performed. May be null if the fare collection device is NOT located on a vehicle

18
Q

What does the trip_id_scheduled field represent?

A

Identifies the scheduled trip. May be null if the fare collection device is NOT located on a vehicle

19
Q

What does the pattern_id field represent?

A

Identifies the unique stop-path for a trip, may be distinct from GTFS shapes.shape_id

20
Q

What does the trip_stop_sequence field represent?

A

The actual order of stops visited within a performed trip

21
Q

What is the minimum value for trip_stop_sequence?

22
Q

What does the scheduled_stop_sequence field represent?

A

Scheduled order of stops for a particular trip. References GTFS

23
Q

What is the minimum value for scheduled_stop_sequence?

24
Q

What does the vehicle_id field represent?

A

Identifies the vehicle. May be null if collection device is NOT located on a vehicle

25
What does the device_id field represent?
Identifies the ITS device on which the fare transaction was performed
26
What does the fare_id field represent?
Identifies a fare class, as included in the GTFS Fare_attributes file. References GTFS
27
What does the stop_id field represent?
Identifies the stop. References GTFS
28
What does the num_riders field represent?
The number of riders included in the transaction
29
What is the minimum value for num_riders?
0
30
What does the fare_media_id field represent?
Indicates the fare medium that was used for the transaction
31
What are some possible values for fare_media_id?
Cash or coins, Smart card or ticket, Magnetic-stripe card or ticket, Bank card, Mobile NFC, Optical scan, Button pressed by driver or operator to indicate a boarding or alighting passenger, Other type
32
What does the rider_category field represent?
Indicates rider category (categories defined by transit agency)
33
What are some examples of rider_category values?
Adult, Youth, Student, Senior, Other reduced
34
What does the fare_product field represent?
Indicates the fare group (fare groups defined by transit agency)
35
What are some examples of fare_product values?
Single ride, Pass, Employer sponsored, Other pass
36
What does the fare_period field represent?
Indicates the fare period (fare periods defined by transit agency)
37
What are some examples of fare_period values?
All day, Peak, Off-peak, Summer, Other
38
What does the fare_capped field represent?
Indicates if the fare charged in this transaction was modified by a fare capping policy
39
Is the fare_capped field required?
Yes
40
What does the token_id field represent?
Identifies the individual fare instrument used for the transaction. For example, the fare card ID
41
What does the balance field represent?
Stored value remaining on an account after the transaction is made
42
What foreign references does the fare_transactions table have?
service_date+trip_id_performed → trips_performed, location_ping_id → vehicle_locations, service_date+trip_id_performed+scheduled_stop_sequence → stop_times, vehicle_id → vehicles, device_id → devices, fare_id → fare_attributes, stop_id → stops