Constraints

195 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
change_log_units_record_id_fkey
change_log_units.record_id
units.id
Cascade on delete
change_log_units_edits_record_id_fkey
change_log_units_edits.record_id
units_edits.id
Cascade on delete
crashes_edits_rpt_cris_cnty_id_fkey
crashes_edits.rpt_cris_cnty_id
cnty.id
Restrict delete
crashes_edits_surf_cond_id_fkey
crashes_edits.surf_cond_id
surf_cond.id
Restrict delete
crashes_edits_obj_struck_id_fkey
crashes_edits.obj_struck_id
obj_struck.id
Restrict delete
crashes_edits_rpt_sec_road_part_id_fkey
crashes_edits.rpt_sec_road_part_id
road_part.id
Restrict delete
crashes_edits_rpt_sec_rdwy_sys_id_fkey
crashes_edits.rpt_sec_rdwy_sys_id
rwy_sys.id
Restrict delete
crashes_edits_wthr_cond_id_fkey
crashes_edits.wthr_cond_id
wthr_cond.id
Restrict delete
crashes_edits_id_fkey
crashes_edits.id
crashes_cris.id
Cascade on delete
crashes_edits_rpt_rdwy_sys_id_fkey
crashes_edits.rpt_rdwy_sys_id
rwy_sys.id
Restrict delete
crashes_edits_investigat_agency_id_fkey
crashes_edits.investigat_agency_id
agency.id
Restrict delete
crashes_edits_traffic_cntl_id_fkey
crashes_edits.traffic_cntl_id
traffic_cntl.id
Restrict delete
crashes_edits_light_cond_id_fkey
crashes_edits.light_cond_id
light_cond.id
Restrict delete
crashes_edits_rpt_road_part_id_fkey
crashes_edits.rpt_road_part_id
road_part.id
Restrict delete
crashes_edits_rpt_city_id_fkey
crashes_edits.rpt_city_id
city.id
Restrict delete
crashes_edits_fhe_collsn_id_fkey
crashes_edits.fhe_collsn_id
collsn.id
Restrict delete
crashes_edits_intrsct_relat_id_fkey
crashes_edits.intrsct_relat_id
intrsct_relat.id
Restrict delete
crashes_edits_surf_type_id_fkey
crashes_edits.surf_type_id
surf_type.id
Restrict delete
change_log_crashes_record_id_fkey
change_log_crashes.record_id
crashes.id
Cascade on delete
recommendations_recommendation_status_id_fkey
recommendations.recommendation_status_id
atd__recommendation_status_lkp.id
Restrict delete
recommendations_crashes_pk_fkey
recommendations.crash_pk
crashes.id
Restrict delete
crashes_cris_rpt_road_part_id_fkey
crashes_cris.rpt_road_part_id
road_part.id
Restrict delete
crashes_cris_obj_struck_id_fkey
crashes_cris.obj_struck_id
obj_struck.id
Restrict delete
crashes_cris_rpt_city_id_fkey
crashes_cris.rpt_city_id
city.id
Restrict delete
crashes_cris_rpt_cris_cnty_id_fkey
crashes_cris.rpt_cris_cnty_id
cnty.id
Restrict delete
crashes_cris_fhe_collsn_id_fkey
crashes_cris.fhe_collsn_id
collsn.id
Restrict delete
crashes_cris_rpt_rdwy_sys_id_fkey
crashes_cris.rpt_rdwy_sys_id
rwy_sys.id
Restrict delete
crashes_cris_surf_cond_id_fkey
crashes_cris.surf_cond_id
surf_cond.id
Restrict delete
crashes_cris_investigat_agency_id_fkey
crashes_cris.investigat_agency_id
agency.id
Restrict delete
crashes_cris_surf_type_id_fkey
crashes_cris.surf_type_id
surf_type.id
Restrict delete
crashes_cris_wthr_cond_id_fkey
crashes_cris.wthr_cond_id
wthr_cond.id
Restrict delete
crashes_cris_light_cond_id_fkey
crashes_cris.light_cond_id
light_cond.id
Restrict delete
crashes_cris_intrsct_relat_id_fkey
crashes_cris.intrsct_relat_id
intrsct_relat.id
Restrict delete
crashes_cris_rpt_sec_road_part_id_fkey
crashes_cris.rpt_sec_road_part_id
road_part.id
Restrict delete
crashes_cris_rpt_sec_rdwy_sys_id_fkey
crashes_cris.rpt_sec_rdwy_sys_id
rwy_sys.id
Restrict delete
crashes_cris_traffic_cntl_id_fkey
crashes_cris.traffic_cntl_id
traffic_cntl.id
Restrict delete
change_log_people_record_id_fkey
change_log_people.record_id
people.id
Cascade on delete
crashes_surf_type_id_fkey
crashes.surf_type_id
surf_type.id
Restrict delete
crashes_wthr_cond_id_fkey
crashes.wthr_cond_id
wthr_cond.id
Restrict delete
crashes_traffic_cntl_id_fkey
crashes.traffic_cntl_id
traffic_cntl.id
Restrict delete
crashes_investigat_agency_id_fkey
crashes.investigat_agency_id
agency.id
Restrict delete
crashes_rpt_sec_rdwy_sys_id_fkey
crashes.rpt_sec_rdwy_sys_id
rwy_sys.id
Restrict delete
crashes_fhe_collsn_id_fkey
crashes.fhe_collsn_id
collsn.id
Restrict delete
crashes_intrsct_relat_id_fkey
crashes.intrsct_relat_id
intrsct_relat.id
Restrict delete
crashes_rpt_sec_road_part_id_fkey
crashes.rpt_sec_road_part_id
road_part.id
Restrict delete
crashes_id_fkey
crashes.id
crashes_cris.id
Cascade on delete
crashes_rpt_cris_cnty_id_fkey
crashes.rpt_cris_cnty_id
cnty.id
Restrict delete
crashes_rpt_road_part_id_fkey
crashes.rpt_road_part_id
road_part.id
Restrict delete
crashes_location_id_fkey
crashes.location_id
atd_txdot_locations.location_id
Null on delete
crashes_engineering_area_fkey
crashes.engineering_area_id
engineering_areas.area_id
Null on delete
crashes_rpt_rdwy_sys_id_fkey
crashes.rpt_rdwy_sys_id
rwy_sys.id
Restrict delete
crashes_light_cond_id_fkey
crashes.light_cond_id
light_cond.id
Restrict delete
crashes_surf_cond_id_fkey
crashes.surf_cond_id
surf_cond.id
Restrict delete
crashes_obj_struck_id_fkey
crashes.obj_struck_id
obj_struck.id
Restrict delete
crashes_rpt_city_id_fkey
crashes.rpt_city_id
city.id
Restrict delete
units_first_harm_evt_inv_id_fkey
units.first_harm_evt_inv_id
harm_evnt.id
Restrict delete
units_veh_body_styl_id_fkey
units.veh_body_styl_id
veh_body_styl.id
Restrict delete
units_e_scooter_id_fkey
units.e_scooter_id
e_scooter.id
Restrict delete
units_contrib_factr_1_id_fkey
units.contrib_factr_1_id
contrib_factr.id
Restrict delete
units_veh_mod_id_fkey
units.veh_mod_id
veh_mod.id
Restrict delete
units_veh_damage_direction_of_force1_id_fkey
units.veh_damage_direction_of_force1_id
veh_direction_of_force.id
Restrict delete
units_contrib_factr_2_id_fkey
units.contrib_factr_2_id
contrib_factr.id
Restrict delete
units_contrib_factr_3_id_fkey
units.contrib_factr_3_id
contrib_factr.id
Restrict delete
units_pedalcyclist_action_id_fkey
units.pedalcyclist_action_id
pedalcyclist_action.id
Restrict delete
units_veh_damage_description1_id_fkey
units.veh_damage_description1_id
veh_damage_description.id
Restrict delete
units_rpt_autonomous_level_engaged_id_fkey
units.rpt_autonomous_level_engaged_id
autonomous_level_engaged.id
Restrict delete
units_veh_make_id_fkey
units.veh_make_id
veh_make.id
Restrict delete
units_cris_crash_id_fkey
units.cris_crash_id
crashes.cris_crash_id
Cascade on delete
units_unit_desc_id_fkey
units.unit_desc_id
unit_desc.id
Restrict delete
units_pedestrian_action_id_fkey
units.pedestrian_action_id
pedestrian_action.id
Restrict delete
units_contrib_factr_p1_id_fkey
units.contrib_factr_p1_id
contrib_factr.id
Restrict delete
units_pbcat_pedalcyclist_id_fkey
units.pbcat_pedalcyclist_id
pbcat_pedalcyclist.id
Restrict delete
units_veh_damage_severity2_id_fkey
units.veh_damage_severity2_id
veh_damage_severity.id
Restrict delete
units_movement_id_fkey
units.movement_id
movt.id
Restrict delete
units_veh_damage_description2_id_fkey
units.veh_damage_description2_id
veh_damage_description.id
Restrict delete
vz_mode_category_fk
units.vz_mode_category_id
mode_category.id
Restrict delete
units_veh_damage_severity1_id_fkey
units.veh_damage_severity1_id
veh_damage_severity.id
Restrict delete
units_veh_damage_direction_of_force2_id_fkey
units.veh_damage_direction_of_force2_id
veh_direction_of_force.id
Restrict delete
units_pbcat_pedestrian_id_fkey
units.pbcat_pedestrian_id
pbcat_pedestrian.id
Restrict delete
units_veh_trvl_dir_id_fkey
units.veh_trvl_dir_id
trvl_dir.id
Restrict delete
units_autonomous_unit_id_fkey
units.autonomous_unit_id
autonomous_unit.id
Restrict delete
units_crash_pk_fkey
units.crash_pk
crashes.id
Cascade on delete
units_contrib_factr_p2_id_fkey
units.contrib_factr_p2_id
contrib_factr.id
Restrict delete
charges_cris_crash_pk_fkey
charges_cris.crash_pk
crashes_cris.id
Cascade on delete
charges_cris_cris_crash_id_fkey
charges_cris.cris_crash_id
crashes_cris.cris_crash_id
Cascade on delete
charges_cris_person_id_fkey
charges_cris.person_id
people_cris.id
Cascade on delete
change_log_people_edits_record_id_fkey
change_log_people_edits.record_id
people_edits.id
Cascade on delete
change_log_people_cris_record_id_fkey
change_log_people_cris.record_id
people_cris.id
Cascade on delete
change_log_crashes_edits_record_id_fkey
change_log_crashes_edits.record_id
crashes_edits.id
Cascade on delete
change_log_units_cris_record_id_fkey
change_log_units_cris.record_id
units_cris.id
Cascade on delete
units_cris_veh_damage_direction_of_force2_id_fkey
units_cris.veh_damage_direction_of_force2_id
veh_direction_of_force.id
Restrict delete
units_cris_contrib_factr_p2_id_fkey
units_cris.contrib_factr_p2_id
contrib_factr.id
Restrict delete
units_cris_contrib_factr_p1_id_fkey
units_cris.contrib_factr_p1_id
contrib_factr.id
Restrict delete
units_cris_veh_damage_description1_id_fkey
units_cris.veh_damage_description1_id
veh_damage_description.id
Restrict delete
units_cris_pbcat_pedalcyclist_id_fkey
units_cris.pbcat_pedalcyclist_id
pbcat_pedalcyclist.id
Restrict delete
units_cris_unit_desc_id_fkey
units_cris.unit_desc_id
unit_desc.id
Restrict delete
units_cris_veh_damage_direction_of_force1_id_fkey
units_cris.veh_damage_direction_of_force1_id
veh_direction_of_force.id
Restrict delete
units_cris_veh_damage_description2_id_fkey
units_cris.veh_damage_description2_id
veh_damage_description.id
Restrict delete
units_cris_pbcat_pedestrian_id_fkey
units_cris.pbcat_pedestrian_id
pbcat_pedestrian.id
Restrict delete
units_cris_veh_trvl_dir_id_fkey
units_cris.veh_trvl_dir_id
trvl_dir.id
Restrict delete
units_cris_veh_damage_severity2_id_fkey
units_cris.veh_damage_severity2_id
veh_damage_severity.id
Restrict delete
units_cris_contrib_factr_3_id_fkey
units_cris.contrib_factr_3_id
contrib_factr.id
Restrict delete
units_cris_veh_damage_severity1_id_fkey
units_cris.veh_damage_severity1_id
veh_damage_severity.id
Restrict delete
units_cris_contrib_factr_1_id_fkey
units_cris.contrib_factr_1_id
contrib_factr.id
Restrict delete
units_cris_cris_crash_id_fkey
units_cris.cris_crash_id
crashes_cris.cris_crash_id
Cascade on delete
units_cris_contrib_factr_2_id_fkey
units_cris.contrib_factr_2_id
contrib_factr.id
Restrict delete
units_cris_veh_make_id_fkey
units_cris.veh_make_id
veh_make.id
Restrict delete
units_cris_veh_body_styl_id_fkey
units_cris.veh_body_styl_id
veh_body_styl.id
Restrict delete
units_cris_rpt_autonomous_level_engaged_id_fkey
units_cris.rpt_autonomous_level_engaged_id
autonomous_level_engaged.id
Restrict delete
units_cris_pedestrian_action_id_fkey
units_cris.pedestrian_action_id
pedestrian_action.id
Restrict delete
units_cris_e_scooter_id_fkey
units_cris.e_scooter_id
e_scooter.id
Restrict delete
units_cris_pedalcyclist_action_id_fkey
units_cris.pedalcyclist_action_id
pedalcyclist_action.id
Restrict delete
units_cris_veh_mod_id_fkey
units_cris.veh_mod_id
veh_mod.id
Restrict delete
units_cris_first_harm_evt_inv_id_fkey
units_cris.first_harm_evt_inv_id
harm_evnt.id
Restrict delete
units_cris_autonomous_unit_id_fkey
units_cris.autonomous_unit_id
autonomous_unit.id
Restrict delete
units_cris_crash_pk_fkey
units_cris.crash_pk
crashes_cris.id
Cascade on delete
recommendations_partners_recommendation_id_fkey
recommendations_partners.recommendation_id
recommendations.id
Cascade on delete
recommendations_partners_partner_id_fkey
recommendations_partners.partner_id
atd__coordination_partners_lkp.id
Cascade on delete
fk_location_note_location
location_notes.location_id
atd_txdot_locations.location_id
Restrict delete
change_log_crashes_cris_record_id_fkey
change_log_crashes_cris.record_id
crashes_cris.id
Cascade on delete
notes_crashes_id_fkey
crash_notes.crash_pk
crashes.id
Restrict delete
people_prsn_occpnt_pos_id_fkey
people.prsn_occpnt_pos_id
occpnt_pos.id
Restrict delete
people_prsn_drg_rslt_id_fkey
people.prsn_drg_rslt_id
substnc_tst_result.id
Restrict delete
people_prsn_alc_rslt_id_fkey
people.prsn_alc_rslt_id
substnc_tst_result.id
Restrict delete
people_ems_id_fkey
people.ems_id
ems__incidents.id
Null on delete
people_prsn_gndr_id_fkey
people.prsn_gndr_id
gndr.id
Restrict delete
people_drvr_lic_type_id_fkey
people.drvr_lic_type_id
drvr_lic_type.id
Restrict delete
people_prsn_injry_sev_id_fkey
people.prsn_injry_sev_id
injry_sev.id
Restrict delete
people_prsn_rest_id_fkey
people.prsn_rest_id
rest.id
Restrict delete
people_prsn_type_id_fkey
people.prsn_type_id
prsn_type.id
Restrict delete
people_unit_id_fkey
people.unit_id
units.id
Cascade on delete
people_prsn_drg_spec_type_id_fkey
people.prsn_drg_spec_type_id
specimen_type.id
Restrict delete
people_prsn_ethnicity_id_fkey
people.prsn_ethnicity_id
drvr_ethncty.id
Restrict delete
people_prsn_helmet_id_fkey
people.prsn_helmet_id
helmet.id
Restrict delete
people_prsn_alc_spec_type_id_fkey
people.prsn_alc_spec_type_id
specimen_type.id
Restrict delete
people_drvr_drg_cat_1_id_fkey
people.drvr_drg_cat_1_id
substnc_cat.id
Restrict delete
people_cris_prsn_alc_rslt_id_fkey
people_cris.prsn_alc_rslt_id
substnc_tst_result.id
Restrict delete
people_cris_prsn_injry_sev_id_fkey
people_cris.prsn_injry_sev_id
injry_sev.id
Restrict delete
people_cris_unit_id_fkey
people_cris.unit_id
units_cris.id
Cascade on delete
people_cris_prsn_rest_id_fkey
people_cris.prsn_rest_id
rest.id
Restrict delete
people_cris_prsn_drg_spec_type_id_fkey
people_cris.prsn_drg_spec_type_id
specimen_type.id
Restrict delete
people_cris_prsn_alc_spec_type_id_fkey
people_cris.prsn_alc_spec_type_id
specimen_type.id
Restrict delete
people_cris_prsn_gndr_id_fkey
people_cris.prsn_gndr_id
gndr.id
Restrict delete
people_cris_prsn_helmet_id_fkey
people_cris.prsn_helmet_id
helmet.id
Restrict delete
people_cris_prsn_ethnicity_id_fkey
people_cris.prsn_ethnicity_id
drvr_ethncty.id
Restrict delete
people_cris_drvr_drg_cat_1_id_fkey
people_cris.drvr_drg_cat_1_id
substnc_cat.id
Restrict delete
people_cris_prsn_drg_rslt_id_fkey
people_cris.prsn_drg_rslt_id
substnc_tst_result.id
Restrict delete
people_cris_cris_crash_id_fkey
people_cris.cris_crash_id
crashes_cris.cris_crash_id
Cascade on delete
people_cris_prsn_type_id_fkey
people_cris.prsn_type_id
prsn_type.id
Restrict delete
people_cris_drvr_lic_type_id_fkey
people_cris.drvr_lic_type_id
drvr_lic_type.id
Restrict delete
people_cris_prsn_occpnt_pos_id_fkey
people_cris.prsn_occpnt_pos_id
occpnt_pos.id
Restrict delete
people_edits_prsn_drg_spec_type_id_fkey
people_edits.prsn_drg_spec_type_id
specimen_type.id
Restrict delete
people_edits_prsn_alc_spec_type_id_fkey
people_edits.prsn_alc_spec_type_id
specimen_type.id
Restrict delete
people_edits_id_fkey
people_edits.id
people_cris.id
Cascade on delete
people_edits_prsn_ethnicity_id_fkey
people_edits.prsn_ethnicity_id
drvr_ethncty.id
Restrict delete
people_edits_drvr_drg_cat_1_id_fkey
people_edits.drvr_drg_cat_1_id
substnc_cat.id
Restrict delete
people_edits_prsn_occpnt_pos_id_fkey
people_edits.prsn_occpnt_pos_id
occpnt_pos.id
Restrict delete
people_edits_prsn_alc_rslt_id_fkey
people_edits.prsn_alc_rslt_id
substnc_tst_result.id
Restrict delete
people_edits_prsn_rest_id_fkey
people_edits.prsn_rest_id
rest.id
Restrict delete
people_edits_unit_id_fkey
people_edits.unit_id
units_cris.id
Cascade on delete
people_edits_drvr_lic_type_id_fkey
people_edits.drvr_lic_type_id
drvr_lic_type.id
Restrict delete
people_edits_prsn_type_id_fkey
people_edits.prsn_type_id
prsn_type.id
Restrict delete
people_edits_prsn_injry_sev_id_fkey
people_edits.prsn_injry_sev_id
injry_sev.id
Restrict delete
people_edits_ems_id_fkey
people_edits.ems_id
ems__incidents.id
Null on delete
people_edits_prsn_drg_rslt_id_fkey
people_edits.prsn_drg_rslt_id
substnc_tst_result.id
Restrict delete
people_edits_prsn_gndr_id_fkey
people_edits.prsn_gndr_id
gndr.id
Restrict delete
people_edits_prsn_helmet_id_fkey
people_edits.prsn_helmet_id
helmet.id
Restrict delete
units_edits_first_harm_evt_inv_id_fkey
units_edits.first_harm_evt_inv_id
harm_evnt.id
Restrict delete
units_edits_veh_body_styl_id_fkey
units_edits.veh_body_styl_id
veh_body_styl.id
Restrict delete
units_edits_pbcat_pedestrian_id_fkey
units_edits.pbcat_pedestrian_id
pbcat_pedestrian.id
Restrict delete
units_edits_veh_damage_severity2_id_fkey
units_edits.veh_damage_severity2_id
veh_damage_severity.id
Restrict delete
units_edits_cris_crash_id_fkey
units_edits.cris_crash_id
crashes_cris.cris_crash_id
Cascade on delete
units_edits_pedalcyclist_action_id_fkey
units_edits.pedalcyclist_action_id
pedalcyclist_action.id
Restrict delete
units_edits_veh_damage_severity1_id_fkey
units_edits.veh_damage_severity1_id
veh_damage_severity.id
Restrict delete
units_edits_autonomous_unit_id_fkey
units_edits.autonomous_unit_id
autonomous_unit.id
Restrict delete
units_edits_id_fkey
units_edits.id
units_cris.id
Cascade on delete
units_edits_e_scooter_id_fkey
units_edits.e_scooter_id
e_scooter.id
Restrict delete
units_edits_veh_damage_direction_of_force1_id_fkey
units_edits.veh_damage_direction_of_force1_id
veh_direction_of_force.id
Restrict delete
units_edits_crash_pk_fkey
units_edits.crash_pk
crashes_cris.id
Cascade on delete
units_edits_veh_damage_direction_of_force2_id_fkey
units_edits.veh_damage_direction_of_force2_id
veh_direction_of_force.id
Restrict delete
units_edits_movement_id_fkey
units_edits.movement_id
movt.id
Restrict delete
units_edits_veh_make_id_fkey
units_edits.veh_make_id
veh_make.id
Restrict delete
units_edits_contrib_factr_1_id_fkey
units_edits.contrib_factr_1_id
contrib_factr.id
Restrict delete
units_edits_veh_trvl_dir_id_fkey
units_edits.veh_trvl_dir_id
trvl_dir.id
Restrict delete
units_edits_veh_damage_description1_id_fkey
units_edits.veh_damage_description1_id
veh_damage_description.id
Restrict delete
units_edits_contrib_factr_p2_id_fkey
units_edits.contrib_factr_p2_id
contrib_factr.id
Restrict delete
units_edits_veh_mod_id_fkey
units_edits.veh_mod_id
veh_mod.id
Restrict delete
units_edits_veh_damage_description2_id_fkey
units_edits.veh_damage_description2_id
veh_damage_description.id
Restrict delete
units_edits_contrib_factr_p1_id_fkey
units_edits.contrib_factr_p1_id
contrib_factr.id
Restrict delete
units_edits_unit_desc_id_fkey
units_edits.unit_desc_id
unit_desc.id
Restrict delete
units_edits_contrib_factr_2_id_fkey
units_edits.contrib_factr_2_id
contrib_factr.id
Restrict delete
units_edits_contrib_factr_3_id_fkey
units_edits.contrib_factr_3_id
contrib_factr.id
Restrict delete
units_edits_pedestrian_action_id_fkey
units_edits.pedestrian_action_id
pedestrian_action.id
Restrict delete
units_edits_rpt_autonomous_level_engaged_id_fkey
units_edits.rpt_autonomous_level_engaged_id
autonomous_level_engaged.id
Restrict delete
units_edits_pbcat_pedalcyclist_id_fkey
units_edits.pbcat_pedalcyclist_id
pbcat_pedalcyclist.id
Restrict delete

Check Constraints

Table Constraint Name Constraint
spatial_ref_sys spatial_ref_sys_srid_check (((srid > 0) AND (srid <= 998999)))
units_cris units_cris_unit_desc_id_check (((unit_desc_id < 177) OR ((created_by <> 'cris'::text) AND (created_by <> 'system'::text))))
units_cris units_cris_veh_body_styl_id_check ((veh_body_styl_id < 177))
people_cris people_cris_prsn_injry_sev_id_check ((prsn_injry_sev_id < 99))