-- DBMS: snowflake
CREATE TABLE WEATHER__ENVIRONMENT.CYBERSYN.CYBERSYN_DATA_CATALOG (
    DATA_SOURCE ARRAY,
    LICENSE_URL ARRAY,
    TABLE_NAME_PROPER TEXT,
    LISTING_NAME ARRAY,
    CREATED_DATE DATE,
    LAST_UPDATED_TIMESTAMP TIMESTAMP_TZ,
    TABLE_TYPE TEXT,
    DESCRIPTION TEXT,
    SELECT_RELATED_TABLES ARRAY,
    DOCUMENTATION_URL TEXT,
    SHORT_DESCRIPTION TEXT,
    DATA_SOURCE_URL ARRAY,
    ENTITIES ARRAY,
    LISTING_URL ARRAY,
    TABLE_NAME TEXT
);

INSERT INTO "WEATHER__ENVIRONMENT"."CYBERSYN"."CYBERSYN_DATA_CATALOG" (DATA_SOURCE, LICENSE_URL, TABLE_NAME_PROPER, LISTING_NAME, CREATED_DATE, LAST_UPDATED_TIMESTAMP, TABLE_TYPE, DESCRIPTION, SELECT_RELATED_TABLES, DOCUMENTATION_URL, SHORT_DESCRIPTION, DATA_SOURCE_URL, ENTITIES, LISTING_URL, TABLE_NAME) VALUES ('[
  "Bureau of Labor Statistics (BLS)"
]', '[
  "https://www.bls.gov/bls/linksite.htm"
]', 'BLS Employment Timeseries Point in Time History', '[
  "Financials & Economics: Enterprise "
]', '2023-10-31', '2024-08-28 15:28:48.680000+00:00', 'point-in-time history', 'Tracks history of the bureau_of_labor_statistics_employment_timeseries table with start and end timestamps to indicate row validity periods. 

Current rows have a NULL end timestamp. Updated and deleted rows are time-stamped, including deletion time, in Eastern Time with UTC offset.', '[
  "bureau_of_labor_statistics_employment_timeseries"
]', NULL, NULL, '[
  "https://www.bls.gov/"
]', '[
  "geo_id"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'bureau_of_labor_statistics_employment_timeseries_history'), ('[
  "Bureau of Labor Statistics (BLS)"
]', '[
  "https://www.bls.gov/bls/linksite.htm"
]', 'BLS Price Timeseries Point in Time History', '[
  "Financials & Economics: Enterprise "
]', '2023-10-31', '2024-08-28 15:28:47.011000+00:00', 'point-in-time history', 'Tracks history of the bureau_of_labor_statistics_price_timeseries table with start and end timestamps to indicate row validity periods. 

Current rows have a NULL end timestamp. Updated and deleted rows are time-stamped, including deletion time, in Eastern Time with UTC offset.', '[
  "bureau_of_labor_statistics_price_timeseries"
]', NULL, NULL, '[
  "https://www.bls.gov/"
]', '[
  "geo_id"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'bureau_of_labor_statistics_price_timeseries_history'), ('[
  "Domain Project",
  "ICANN",
  "Majestic"
]', '[
  "https://github.com/tb0hdan/domains/blob/master/LICENSE",
  "https://czds.icann.org/terms-and-conditions",
  "https://majestic.com/reports/majestic-million",
  "https://creativecommons.org/licenses/by/3.0/"
]', 'Company Domain Relationships', '[
  "Web Traffic Foundation (Experimental)"
]', '2023-12-01', '2024-08-24 10:08:57.993000+00:00', 'relationships', 'Map between companies and domains and websites that they own. In addition to the COMPANY_ID that Cybersyn creates, which can be tied back to CIK, LEI, EIN, and company-level PermID information, the table includes the clean DOMAIN_ID which strips away any subdomain (e.g., www) and protocol (e.g., https) information.

Each relationship includes start date and end dates. The start date is the first known date that the company owned or registered the domain and the end date is the last known date of ownership.
If a relationship has a start date of NULL that indicates the relationship pre-dates the beginning of the data.
An end date of NULL indicates the relationship is still valid.', '[
  "company_index",
  "company_characteristics",
  "domain_index"
]', 'https://docs.cybersyn.com/consumer-insights-products/web-traffic-foundation', 'Map between companies and domains and websites that they own. In addition to the COMPANY_ID that Cybersyn creates, which can be tied back to CIK, LEI, EIN, and company-level PermID information, the table includes the clean DOMAIN_ID which strips away any subdomain (e.g., www) and protocol (e.g., https) information.', '[
  "https://domainsproject.org/",
  "https://czds.icann.org/home",
  "https://majestic.com/reports/majestic-million"
]', '[
  "company_id",
  "domain_id"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX5L"
]', 'company_domain_relationships'), ('[
  "Cybersyn"
]', NULL, 'Company Event Transcript Attributes', '[
  "Financials & Economics: Enterprise "
]', '2024-06-24', '2024-08-31 00:11:15.396000+00:00', 'attributes', 'Transcripts of hosted company events (e.g. Update / Briefing, Earnings Call, Annual General Meeting) in JSON format.

The Cybersyn Company Event Transcript Attribute table include JSON-formatted transcripts of hosted company events across 9000+ public companies. The amount of history per company varies and more history is being added on a daily basis.

Company events may include Earnings Calls, Update / Briefings, M&A Announcements, Annual General Meetings, Investor / Analyst Days, and more. ', '[
  "company_index",
  "sec_cik_index",
  "sec_corporate_report_index",
  "sec_corporate_report_attributes"
]', 'https://docs.cybersyn.com/public-domain-sources/earnings-transcripts', 'Transcripts of hosted company events (e.g. Update / Briefing, Earnings Call, Annual General Meeting) in JSON format.', NULL, '[
  "company_id",
  "cik",
  "primary_ticker"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'company_event_transcript_attributes'), ('[
  "Energy Information Administration (EIA)"
]', '[
  "https://www.eia.gov/about/copyrights_reuse.php"
]', 'EIA Energy Timeseries', '[
  "Weather & Environment",
  "Financials & Economics: Enterprise "
]', '2024-07-01', '2024-08-31 00:45:21.153000+00:00', 'timeseries', 'Natural gas, electricity, and petroleum sales, production, consumption, and import/export statistics, provided by the Energy Information Administration (EIA).

The Energy Information Administration (EIA) is part of the U.S. Department of Energy and serves as a primary source of data on energy production, consumption, and related topics.

Each row represents a distinct timeseries, date, and value by geographic entity, JOINABLE to Cybersyn''s geography entity tables. Each variable is detailed in the eia_energy_attributes table.', '[
  "eia_energy_attributes",
  "geography_index"
]', 'https://docs.cybersyn.com/public-domain-sources/energy-information-administration-eia', 'Natural gas, electricity, and petroleum sales, production, consumption, and import/export statistics, provided by the Energy Information Administration (EIA).', '[
  "https://www.eia.gov/opendata/"
]', '[
  "geo_id"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KIM",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'eia_energy_timeseries');