version: 2

sources:
  - name: bq_warehouse
    description: >
      Snapshots of BigQuery warehouse-layer tables (from the digital_bi_dbt project) landed in
      Databend so we can short-circuit branches we are not re-porting. cloud_tenants is snapshotted
      instead of rebuilding the GA4 → cloud_users → cloud_tenants chain (only its scalar columns
      are consumed downstream). In production this is produced by the ingestion/extract/bigquery +
      gcs_bulk_load cloud_tenants units (ADR 0017); for now it is seeded by a fixture
      (engine/fixtures/cloud_tenants_fixture.sql).
    schema: bq_warehouse_raw
    tables:
      - name: cloud_tenants
        identifier: cloud_tenants_snapshots
