-- Commodity dimension: conforms identifiers across source systems.
--
-- This is the ontology seed. Each row is a commodity tracked by BeanFlows.
-- As new sources are added (ICO, futures prices, satellite), their
-- commodity identifiers are added as columns here — not as separate tables.
-- As new commodities are added (cocoa, sugar), rows are added here.
--
-- References:
--   usda_commodity_code → raw.psd_alldata.commodity_code
--   cftc_commodity_code → raw.cot_disaggregated.cftc_commodity_code

MODEL (
  name foundation.dim_commodity,
  kind SEED (
    path '$root/seeds/dim_commodity.csv',
    csv_settings (delimiter = ';')
  ),
  columns (
    usda_commodity_code  varchar,
    cftc_commodity_code  varchar,
    commodity_name       varchar,
    commodity_group      varchar
  )
);
