{"ok": true, "database": "osha_enforcement", "private": false, "path": "/osha_enforcement", "size": 5971480576, "tables": [{"name": "accident", "columns": ["summary_nr", "report_id", "event_date", "event_time", "event_desc", "event_keyword", "const_end_use", "build_stories", "nonbuild_ht", "project_cost", "project_type", "sic_list", "fatality", "state_flag", "abstract_text", "load_dt"], "primary_keys": ["summary_nr"], "count": 165801, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_abstract", "column": "summary_nr", "other_column": "summary_nr"}, {"other_table": "accident_injury", "column": "summary_nr", "other_column": "summary_nr"}], "outgoing": [{"other_table": "cost", "column": "project_cost", "other_column": "accident_letter"}, {"other_table": "end_use", "column": "const_end_use", "other_column": "accident_letter"}, {"other_table": "project_type", "column": "project_type", "other_column": "accident_letter"}]}, "private": false}, {"name": "accident_abstract", "columns": ["summary_nr", "line_nr", "abstract_text", "load_dt"], "primary_keys": [], "count": 1151159, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "accident", "column": "summary_nr", "other_column": "summary_nr"}]}, "private": false}, {"name": "accident_injury", "columns": ["summary_nr", "rel_insp_nr", "age", "sex", "nature_of_inj", "part_of_body", "src_of_injury", "event_type", "evn_factor", "hum_factor", "occ_code", "degree_of_inj", "task_assigned", "hazsub", "const_op", "const_op_cause", "fat_cause", "fall_distance", "fall_ht", "injury_line_nr", "load_dt"], "primary_keys": [], "count": 231809, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "accident", "column": "summary_nr", "other_column": "summary_nr"}, {"other_table": "body_part", "column": "part_of_body", "other_column": "accident_number"}, {"other_table": "degree_injury", "column": "degree_of_inj", "other_column": "accident_number"}, {"other_table": "environmental", "column": "evn_factor", "other_column": "accident_number"}, {"other_table": "event_type", "column": "event_type", "other_column": "accident_number"}, {"other_table": "fatality", "column": "fat_cause", "other_column": "accident_number"}, {"other_table": "human", "column": "hum_factor", "other_column": "accident_number"}, {"other_table": "injury", "column": "nature_of_inj", "other_column": "accident_number"}, {"other_table": "injury_source", "column": "src_of_injury", "other_column": "accident_number"}, {"other_table": "inspection", "column": "rel_insp_nr", "other_column": "activity_nr"}, {"other_table": "occupation", "column": "occ_code", "other_column": "accident_number"}, {"other_table": "operator", "column": "const_op", "other_column": "accident_number"}, {"other_table": "operator", "column": "const_op_cause", "other_column": "accident_number"}, {"other_table": "task", "column": "task_assigned", "other_column": "accident_number"}]}, "private": false}, {"name": "body_part", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 31, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "part_of_body"}], "outgoing": []}, "private": false}, {"name": "cost", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_letter"], "count": 7, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident", "column": "accident_letter", "other_column": "project_cost"}], "outgoing": []}, "private": false}, {"name": "degree_injury", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 3, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "degree_of_inj"}], "outgoing": []}, "private": false}, {"name": "end_use", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_letter"], "count": 17, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident", "column": "accident_letter", "other_column": "const_end_use"}], "outgoing": []}, "private": false}, {"name": "environmental", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 35, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "evn_factor"}], "outgoing": []}, "private": false}, {"name": "event_type", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 14, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "event_type"}], "outgoing": []}, "private": false}, {"name": "fatality", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 30, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "fat_cause"}], "outgoing": []}, "private": false}, {"name": "human", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 20, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "hum_factor"}], "outgoing": []}, "private": false}, {"name": "injury", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 22, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "nature_of_inj"}], "outgoing": []}, "private": false}, {"name": "injury_source", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 48, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "src_of_injury"}], "outgoing": []}, "private": false}, {"name": "inspection", "columns": ["activity_nr", "reporting_id", "state_flag", "estab_name", "site_address", "site_city", "site_state", "site_zip", "owner_type", "owner_code", "adv_notice", "safety_hlth", "sic_code", "naics_code", "insp_type", "insp_scope", "why_no_insp", "union_status", "safety_manuf", "safety_const", "safety_marit", "health_manuf", "health_const", "health_marit", "migrant", "mail_street", "mail_city", "mail_state", "mail_zip", "host_est_key", "nr_in_estab", "open_date", "case_mod_date", "close_conf_date", "close_case_date", "ld_dt"], "primary_keys": ["activity_nr"], "count": 5176840, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "activity_nr", "other_column": "rel_insp_nr"}, {"other_table": "optional_info", "column": "activity_nr", "other_column": "activity_nr"}, {"other_table": "related_activity", "column": "activity_nr", "other_column": "activity_nr"}, {"other_table": "strategic_codes", "column": "activity_nr", "other_column": "activity_nr"}, {"other_table": "violation", "column": "activity_nr", "other_column": "activity_nr"}], "outgoing": []}, "private": false}, {"name": "occupation", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 573, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "occ_code"}], "outgoing": []}, "private": false}, {"name": "operator", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 71, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "const_op"}, {"other_table": "accident_injury", "column": "accident_number", "other_column": "const_op_cause"}], "outgoing": []}, "private": false}, {"name": "optional_info", "columns": ["activity_nr", "opt_type", "opt_id", "opt_value", "opt_info_id", "load_dt"], "primary_keys": [], "count": 1698628, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "inspection", "column": "activity_nr", "other_column": "activity_nr"}]}, "private": false}, {"name": "project_type", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_letter"], "count": 5, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident", "column": "accident_letter", "other_column": "project_type"}], "outgoing": []}, "private": false}, {"name": "related_activity", "columns": ["activity_nr", "rel_type", "rel_act_nr", "rel_safety", "rel_health", "load_dt"], "primary_keys": [], "count": 2477744, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "inspection", "column": "activity_nr", "other_column": "activity_nr"}]}, "private": false}, {"name": "strategic_codes", "columns": ["activity_nr", "prog_type", "prog_value", "load_dt"], "primary_keys": [], "count": 2897530, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "inspection", "column": "activity_nr", "other_column": "activity_nr"}]}, "private": false}, {"name": "task", "columns": ["accident_code", "accident_number", "accident_value", "accident_letter", "load_dt"], "primary_keys": ["accident_number"], "count": 2, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "accident_injury", "column": "accident_number", "other_column": "task_assigned"}], "outgoing": []}, "private": false}, {"name": "violation", "columns": ["activity_nr", "citation_id", "delete_flag", "standard", "viol_type", "issuance_date", "abate_date", "abate_complete", "current_penalty", "initial_penalty", "contest_date", "final_order_date", "nr_instances", "nr_exposed", "rec", "gravity", "emphasis", "hazcat", "fta_insp_nr", "fta_issuance_date", "fta_penalty", "fta_contest_date", "fta_final_order_date", "hazsub1", "hazsub2", "hazsub3", "hazsub4", "hazsub5", "load_dt"], "primary_keys": [], "count": 13222011, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "violation_event", "column": "activity_nr", "other_column": "activity_nr"}, {"other_table": "violation_gen_duty_std", "column": "activity_nr", "other_column": "activity_nr"}], "outgoing": [{"other_table": "inspection", "column": "activity_nr", "other_column": "activity_nr"}]}, "private": false}, {"name": "violation_event", "columns": ["activity_nr", "citation_id", "pen_fta", "hist_event", "hist_date", "hist_penalty", "hist_abate_date", "hist_vtype", "hist_insp_nr", "load_dt"], "primary_keys": [], "count": 11579650, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "violation", "column": "activity_nr", "other_column": "activity_nr"}]}, "private": false}, {"name": "violation_gen_duty_std", "columns": ["activity_nr", "citation_id", "line_nr", "line_text", "load_dt"], "primary_keys": [], "count": 2202786, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "violation", "column": "activity_nr", "other_column": "activity_nr"}]}, "private": false}, {"name": "sqlite_stat1", "columns": ["tbl", "idx", "stat"], "primary_keys": [], "count": 24, "hidden": true, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": []}, "private": false}], "hidden_count": 1, "views": [], "queries": [], "allow_execute_sql": true, "table_columns": {"accident": ["abstract_text", "build_stories", "const_end_use", "event_date", "event_desc", "event_keyword", "event_time", "fatality", "load_dt", "nonbuild_ht", "project_cost", "project_type", "report_id", "sic_list", "state_flag", "summary_nr"], "accident_abstract": ["abstract_text", "line_nr", "load_dt", "summary_nr"], "accident_injury": ["age", "const_op", "const_op_cause", "degree_of_inj", "event_type", "evn_factor", "fall_distance", "fall_ht", "fat_cause", "hazsub", "hum_factor", "injury_line_nr", "load_dt", "nature_of_inj", "occ_code", "part_of_body", "rel_insp_nr", "sex", "src_of_injury", "summary_nr", "task_assigned"], "body_part": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "cost": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "degree_injury": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "end_use": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "environmental": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "event_type": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "fatality": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "human": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "injury": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "injury_source": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "inspection": ["activity_nr", "adv_notice", "case_mod_date", "close_case_date", "close_conf_date", "estab_name", "health_const", "health_manuf", "health_marit", "host_est_key", "insp_scope", "insp_type", "ld_dt", "mail_city", "mail_state", "mail_street", "mail_zip", "migrant", "naics_code", "nr_in_estab", "open_date", "owner_code", "owner_type", "reporting_id", "safety_const", "safety_hlth", "safety_manuf", "safety_marit", "sic_code", "site_address", "site_city", "site_state", "site_zip", "state_flag", "union_status", "why_no_insp"], "occupation": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "operator": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "optional_info": ["activity_nr", "load_dt", "opt_id", "opt_info_id", "opt_type", "opt_value"], "project_type": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "related_activity": ["activity_nr", "load_dt", "rel_act_nr", "rel_health", "rel_safety", "rel_type"], "sqlite_stat1": ["idx", "stat", "tbl"], "strategic_codes": ["activity_nr", "load_dt", "prog_type", "prog_value"], "task": ["accident_code", "accident_letter", "accident_number", "accident_value", "load_dt"], "violation": ["abate_complete", "abate_date", "activity_nr", "citation_id", "contest_date", "current_penalty", "delete_flag", "emphasis", "final_order_date", "fta_contest_date", "fta_final_order_date", "fta_insp_nr", "fta_issuance_date", "fta_penalty", "gravity", "hazcat", "hazsub1", "hazsub2", "hazsub3", "hazsub4", "hazsub5", "initial_penalty", "issuance_date", "load_dt", "nr_exposed", "nr_instances", "rec", "standard", "viol_type"], "violation_event": ["activity_nr", "citation_id", "hist_abate_date", "hist_date", "hist_event", "hist_insp_nr", "hist_penalty", "hist_vtype", "load_dt", "pen_fta"], "violation_gen_duty_std": ["activity_nr", "citation_id", "line_nr", "line_text", "load_dt"]}, "metadata": {"description_html": "<p>Every OSHA inspection on record since 1970, with associated citations, penalties, and accident investigations. Sourced from the federal Occupational Safety and Health Administration's \"Integrated Management Information System\" (IMIS), the system that captures every enforcement action by federal OSHA offices and the 28 state-plan OSHA programs.</p>\n<p>The data is downloaded nightly from <a href=\"https://enforcedata.dol.gov/\">DOL's Enforcement Data Catalog</a> (the same upstream source as the WHISARD data); processing scripts live at <a href=\"https://github.com/labordata/osha-enforcement\">labordata/osha-enforcement</a>.</p>", "keywords": "[\"OSHA\", \"workplace safety\", \"workplace health\", \"occupational injury\", \"workplace fatality\", \"safety citation\", \"workplace inspection\", \"workplace accident\", \"labor enforcement\"]", "source": "DOL Enforcement Data Catalog, processed", "source_organization": "{\"@type\": \"GovernmentOrganization\", \"name\": \"U.S. Department of Labor, Occupational Safety and Health Administration\", \"url\": \"https://www.osha.gov/\"}", "source_url": "https://github.com/labordata/osha-enforcement", "temporal_coverage": "1970/..", "title": "OSHA Enforcement Data (inspections, citations, accidents)"}}