diff --git a/models/intermediate/cross/schema.yml b/models/intermediate/cross/schema.yml index 809bbcc..5abf39e 100644 --- a/models/intermediate/cross/schema.yml +++ b/models/intermediate/cross/schema.yml @@ -84,3 +84,40 @@ models: DWH, this will be the point in time when we made the assumption. tests: - not_null + - name: int_simple_exchange_rates + columns: + - name: from_currency + data_type: character + description: The source currency, represented as an ISO 4217 code. + tests: + - not_null + - name: to_currency + data_type: character + description: The source currency, represented as an ISO 4217 code. + tests: + - not_null + - name: rate + data_type: numeric + description: The target currency, represented as an ISO 4217 code. + tests: + - not_null + - name: rate_date_utc + data_type: date + description: The date in which the rate record is relevant. + tests: + - not_null + - name: updated_at_utc + data_type: timestamp with time zone + description: For external sources, this will be the point in time when the + information was obtained from them. For stuff we make up here in the + DWH, this will be the point in time when we made the assumption. + tests: + - not_null + description: >- + A simplified vision of exchange rates, derived from + `int_daily_currency_exchange_rates`. Come here if you don't want to + understand nuances and complexities and just want to convert rates. + + The time granularity is daily. Each record holds a currency pair for a + specific day. You will only find one conversion rate per currency pair and + date.