remove hardcoded rates and seed, remove docs

This commit is contained in:
Pablo Martin 2024-06-18 11:35:07 +02:00
parent 8b91babad6
commit 662c7b8ba8
3 changed files with 0 additions and 111 deletions

View file

@ -41,42 +41,3 @@ seeds:
min_value: 0
max_value: 8
strictly: False
- name: stg_seed__hardcoded_currency_rates
description: |
A bunch of rates between currencies, taken from our invoicing cycle in February 2024.
These are hardcoded and so will become outdated, but it's the best we have now since we don't have a live feed for exchange rates.
config:
column_types:
from_currency: varchar(3)
to_currency: varchar(3)
rate: numeric
columns:
- name: from_currency
data_type: character varying
description: The 3 character ISO 4217 code for the base currency, in Uppercase.
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: "^[A-Z]{3}$"
columns:
- name: to_currency
data_type: character varying
description: The 3 character ISO 4217 code for the target currency, in Uppercase.
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: "^[A-Z]{3}$"
- name: rate
data_type: numeric
description: |
The rate between the two currencies. You should read it as the amount of target currency you get for each unit of base currency.
For example: for the combination EUR-GBP, a rate of 0.8 means you get 0.8 GBP for 1 EUR.
Rates between same-currency pairs are always one.
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0.00000000001
max_value: 999999999999