Added booking fee and currency to model
This commit is contained in:
parent
ae4f656d54
commit
28f7486634
4 changed files with 27 additions and 1 deletions
|
|
@ -12,6 +12,8 @@ select
|
|||
c.id_reservation,
|
||||
c.id_accommodation,
|
||||
chu.id_currency,
|
||||
chu.currency_code,
|
||||
chu.booking_fee_in_local_currency,
|
||||
c.guest_last_name,
|
||||
c.guest_first_name,
|
||||
c.guest_email,
|
||||
|
|
|
|||
|
|
@ -41,6 +41,21 @@ models:
|
|||
to: ref('stg_core__currency')
|
||||
field: id_currency
|
||||
|
||||
- name: currency_code
|
||||
data_type: character varying
|
||||
description: Currency ISO 4217 code used by user.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: booking_fee_in_local_currency
|
||||
data_type: numeric
|
||||
description: "Fee charged to the user for each booking in the local currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
max_value: 1000
|
||||
strictly: true
|
||||
|
||||
- name: guest_last_name
|
||||
data_type: text
|
||||
description: Last name of the guest checking in.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue