-- DBMS: snowflake
CREATE TABLE WEATHER__ENVIRONMENT.CYBERSYN.FEMA_DISASTER_DECLARATION_INDEX (
    DISASTER_END_DATE DATE,
    STATE_OBLIGATED_PUBLIC_ASSISTANCE_CATEGORY_C_TO_G_AMOUNT FLOAT,
    DISASTER_DECLARATION_TYPE TEXT,
    DECLARED_PROGRAMS ARRAY,
    APPROVED_INDIVIDUAL_AND_HOUSEHOLDS_PROGRAM_AMOUNT FLOAT,
    INDIVIDUAL_ASSISTANCE_UPDATE_DATE DATE,
    STATE_OBLIGATED_PUBLIC_ASSISTANCE_CATEGORY_A_B_AMOUNT FLOAT,
    DISASTER_DECLARATION_REQUEST_ID TEXT,
    DISASTER_ID TEXT,
    DISASTER_BEGIN_DATE DATE,
    APPROVED_INDIVIDUAL_ASSISTANCE_APPLICATIONS NUMBER,
    DISASTER_TYPE TEXT,
    STATE_OBLIGATED_HAZARD_MITIGATION_GRANT_PROGRAM_AMOUNT FLOAT,
    STATE_OBLIGATED_PUBLIC_ASSISTANCE_AMOUNT FLOAT,
    DISASTER_DECLARATION_DATE DATE,
    PUBLIC_ASSISTANCE_UPDATE_DATE DATE,
    DISASTER_DECLARATION_NAME TEXT,
    FEMA_DISASTER_DECLARATION_ID TEXT,
    APPROVED_HOUSING_ASSISTANCE_AMOUNT FLOAT,
    APPROVED_OTHER_NEEDS_ASSISTANCE_AMOUNT FLOAT
);

INSERT INTO "WEATHER__ENVIRONMENT"."CYBERSYN"."FEMA_DISASTER_DECLARATION_INDEX" (DISASTER_END_DATE, STATE_OBLIGATED_PUBLIC_ASSISTANCE_CATEGORY_C_TO_G_AMOUNT, DISASTER_DECLARATION_TYPE, DECLARED_PROGRAMS, APPROVED_INDIVIDUAL_AND_HOUSEHOLDS_PROGRAM_AMOUNT, INDIVIDUAL_ASSISTANCE_UPDATE_DATE, STATE_OBLIGATED_PUBLIC_ASSISTANCE_CATEGORY_A_B_AMOUNT, DISASTER_DECLARATION_REQUEST_ID, DISASTER_ID, DISASTER_BEGIN_DATE, APPROVED_INDIVIDUAL_ASSISTANCE_APPLICATIONS, DISASTER_TYPE, STATE_OBLIGATED_HAZARD_MITIGATION_GRANT_PROGRAM_AMOUNT, STATE_OBLIGATED_PUBLIC_ASSISTANCE_AMOUNT, DISASTER_DECLARATION_DATE, PUBLIC_ASSISTANCE_UPDATE_DATE, DISASTER_DECLARATION_NAME, FEMA_DISASTER_DECLARATION_ID, APPROVED_HOUSING_ASSISTANCE_AMOUNT, APPROVED_OTHER_NEEDS_ASSISTANCE_AMOUNT) VALUES ('2024-01-16', NULL, 'Disaster Declaration', '[
  "Hazard Mitigation Program",
  "Public Assistance Program"
]', nan, NULL, nan, '24032', '4774', '2024-01-08', nan, 'Winter Storm', 0.0, nan, '2024-04-28', NULL, 'Severe Winter Storm', 'DR-4774-KS', nan, nan), ('2024-01-29', NULL, 'Disaster Declaration', '[
  "Hazard Mitigation Program",
  "Public Assistance Program"
]', nan, NULL, nan, '24029', '4775', '2024-01-05', nan, 'Severe Storm', 0.0, nan, '2024-04-28', NULL, 'Severe Winter Storms, Straight-Line Winds, Flooding, Landslides, And Mudslides', 'DR-4775-WA', nan, nan), ('2023-12-27', NULL, 'Disaster Declaration', '[
  "Hazard Mitigation Program",
  "Public Assistance Program"
]', nan, NULL, nan, '24005', '4760', '2023-12-25', nan, 'Winter Storm', 0.0, nan, '2024-02-15', NULL, 'Severe Winter Storm And Straight-Line Winds', 'DR-4760-ND', nan, nan), ('2023-05-11', NULL, 'Emergency Declaration', '[
  "Public Assistance Program"
]', nan, NULL, 998989.19, '20151', '3507', '2020-01-20', nan, 'Biological', nan, 998989.19, '2020-03-13', '2024-08-31', 'Covid-19', 'EM-3507-WA', nan, nan), ('2006-06-23', NULL, 'Disaster Declaration', '[
  "Hazard Mitigation Program",
  "Individual Assistance Program",
  "Individuals and Households Program"
]', 8830355.16, '2024-08-31', nan, '6113', '1651', '2006-06-21', 5790.0, 'Severe Storm', 1685290.0, nan, '2006-07-02', NULL, 'Severe Storms, Tornadoes, Straight Line Winds, And Flooding', 'DR-1651-OH', 7477482.29, 1352872.87);