-
Notifications
You must be signed in to change notification settings - Fork 7
Add vehicle_crew supporting table #246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
9940dfa
1024a7f
cee1112
6e22f04
02cd18d
20cd560
9ea76dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| service_date,trip_id_performed,vehicle_id,crew_id,crew_role,start_time,end_time |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like you've accidentally removed |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| { | ||
| "primaryKey": [ | ||
| "service_date", | ||
| "trip_id_performed", | ||
| "crew_id", | ||
| "start_time" | ||
| ], | ||
| "missingValues": [ | ||
| "NA", | ||
| "NaN", | ||
| "" | ||
| ], | ||
| "fields": [ | ||
| { | ||
| "name": "service_date", | ||
| "type": "date", | ||
| "description": "Service date. References GTFS", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "trip_id_performed", | ||
| "type": "string", | ||
| "title": "ID referencing trips_performed.trip_id_performed", | ||
| "description": "Identifies the trip performed. Optional if crew assignment is at vehicle level only." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't |
||
| }, | ||
| { | ||
| "name": "vehicle_id", | ||
| "type": "string", | ||
| "title": "ID referencing vehicles.vehicle_id", | ||
| "description": "Identifies the vehicle.", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "crew_id", | ||
| "type": "string", | ||
| "title": "ID referencing operators.operator_id", | ||
| "description": "Identifies the crew member. References operators table.", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "crew_role", | ||
| "type": "string", | ||
| "description": "Role of the crew member on the vehicle.", | ||
| "constraints": { | ||
| "enum": [ | ||
| "operator", | ||
| "conductor", | ||
| "fare_inspector", | ||
| "other" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "name": "start_time", | ||
| "type": "datetime", | ||
| "description": "Timestamp when the crew member's assignment began.", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "end_time", | ||
| "type": "datetime", | ||
| "description": "Timestamp when the crew member's assignment ended. Null if assignment is ongoing." | ||
| } | ||
| ], | ||
| "foreignReferences": [ | ||
| { | ||
| "fields": ["service_date", "trip_id_performed"], | ||
| "reference": { | ||
| "resource": "trips_performed", | ||
| "fields": ["service_date", "trip_id_performed"] | ||
| } | ||
| }, | ||
| { | ||
| "fields": "vehicle_id", | ||
| "reference": { | ||
| "resource": "vehicles", | ||
| "fields": "vehicle_id" | ||
| } | ||
| }, | ||
| { | ||
| "fields": "crew_id", | ||
| "reference": { | ||
| "resource": "operators", | ||
| "fields": "operator_id" | ||
| } | ||
| } | ||
| ], | ||
| "name": "vehicle_crew.schema.json", | ||
| "description": "Crew member assignments to vehicles and trips, supporting multiple crew members and mid-trip reliefs.", | ||
| "_table_type": "Supporting" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's some extra whitespace in these lines.