Skip to content
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

Dbt branch #15

Merged
merged 2 commits into from
Mar 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 137 additions & 1 deletion project/chicago_traffic_crashes/models/staging/schema.yaml
Original file line number Diff line number Diff line change
@@ -9,4 +9,140 @@ sources:
- name: vehicle_data
- name: crash_data
- name: person_data


models:
- name: stg_vehicles_data
description: ""
columns:
- name: unique_id
data_type: bytes
description: ""

- name: crash_unit_id
data_type: string
description: ""

- name: crash_record_id
data_type: string
description: ""

- name: crash_date
data_type: timestamp
description: ""

- name: unit_no
data_type: string
description: ""

- name: unit_type
data_type: string
description: ""

- name: vehicle_id
data_type: int64
description: ""

- name: make
data_type: string
description: ""

- name: model
data_type: string
description: ""

- name: stg_traffic_data
description: ""
columns:
- name: unique_id
data_type: bytes
description: ""

- name: crash_record_id
data_type: string
description: ""

- name: crash_date
data_type: timestamp
description: ""

- name: weather_condition
data_type: string
description: ""

- name: lighting_condition
data_type: string
description: ""

- name: road_defect
data_type: string
description: ""

- name: injuries_total
data_type: int64
description: ""

- name: injuries_fatal
data_type: int64
description: ""

- name: latitude
data_type: float64
description: ""

- name: longitude
data_type: float64
description: ""

- name: stg_persons_data
description: ""
columns:
- name: unique_id
data_type: bytes
description: ""

- name: person_id
data_type: string
description: ""

- name: person_type
data_type: string
description: ""

- name: crash_record_id
data_type: string
description: ""

- name: vehicle_id
data_type: string
description: ""

- name: crash_date
data_type: timestamp
description: ""

- name: sex
data_type: string
description: ""

- name: safety_equipment
data_type: string
description: ""

- name: airbag_deployed
data_type: string
description: ""

- name: age
data_type: int64
description: ""

- name: safety_equipment_updated
data_type: string
description: ""

- name: traffic_crash_date
data_type: timestamp
description: ""