version: 2 sources: - name: src_crisp_api description: Source data from snowflake 'DEV_CIEF_RAW_DB' database: | {%- if target.name == "prod" -%} PROD_CIEF_RAW_DB {%- else -%} DEV_CIEF_RAW_DB {%- endif -%} schema: CRISP_API tables: - name: get_people_data description: Raw `get_people_data` table from Snowflake columns: - name: people_id description: Primary key for 'get_people_data' tests: - unique - not_null loaded_at_field: api_called_at freshness: warn_after: {count: 1, period: day} error_after: {count: 2, period: hour}