Passenger Events Schema Flashcards

(29 cards)

1
Q

What is the primary key for the passenger_events table?

A

passenger_event_id

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

What is the description of the passenger_events table?

A

Timestamped passenger-related events, including boardings and alightings

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

What is the table type of passenger_events?

A

Event

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

What does the passenger_event_id field represent?

A

Identifies the recorded passenger event

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

What are the constraints on the passenger_event_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

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 passenger event occurred

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

What does the trip_id_performed field represent?

A

Identifies the trip performed. If trips_performed table is used, this must be populated in order to link to it

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

What does the trip_id_scheduled field represent?

A

Identifies the scheduled trip

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

What does the trip_stop_sequence field represent?

A

The actual order of stops visited within a performed trip

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

Is the trip_stop_sequence field required?

A

Yes

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

What is the minimum value for trip_stop_sequence?

A

1

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

What does the scheduled_stop_sequence field represent?

A

Scheduled order of stops for a particular trip. References GTFS

17
Q

What is the minimum value for scheduled_stop_sequence?

18
Q

What does the event_type field represent?

A

Indicates the type of event recorded

19
Q

Is the event_type field required?

20
Q

What are some possible values for event_type?

A

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

21
Q

What does the vehicle_id field represent?

A

Identifies a vehicle

22
Q

Is the vehicle_id field required?

23
Q

What does the device_id field represent?

A

Identifies the device that recorded the event

24
Q

What does the train_car_id field represent?

A

Identifies the train car

25
What does the stop_id field represent?
Identifies the stop the vehicle is serving. References GTFS
26
What does the pattern_id field represent?
Identifies the unique stop-path for a trip, may be distinct from GTFS shapes.shape_id
27
What does the event_count field represent?
Count for this event, e.g., 3 for a Passenger Boarding event with 3 boardings, default is 1
28
What is the minimum value for event_count?
0
29
What foreign references does the passenger_events table have?
service_date+trip_id_performed → trips_performed, location_ping_id → vehicle_locations, service_date+trip_id_performed+trip_stop_sequence → stop_visits, vehicle_id → vehicles, device_id → devices, train_car_id → train_cars, stop_id → stops