format files in staging

This commit is contained in:
Pablo Martin 2024-09-12 15:36:15 +02:00
parent 8fdb88afc7
commit aabb45dbd5
3 changed files with 24 additions and 26 deletions

View file

@ -106,7 +106,7 @@ models:
tests:
- unique
- not_null
- name: stg_core__accommodation
columns:
- name: id_accommodation
@ -195,8 +195,7 @@ models:
- unique
- not_null
- name: stg_core__edeposit_user
description:
"This table contains data on partner users for E-deposit,
description: "This table contains data on partner users for E-deposit,
their currencies and amount of protection according to the
level given on the verification"
columns:
@ -216,8 +215,7 @@ models:
- name: currency
data_type: character varying
description:
"Three-letter ISO code assigned to the currency used by user."
description: "Three-letter ISO code assigned to the currency used by user."
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
@ -275,4 +273,4 @@ models:
- name: dwh_extracted_at_utc
data_type: timestamp with time zone
description: "Timestamp of when data was extracted to DWH"
description: "Timestamp of when data was extracted to DWH"

View file

@ -2,9 +2,9 @@ version: 2
models:
- name: stg_edeposit__verifications
description:
description:
"Records of each transaction that happens in the edeposit API. Records are
mutable and can get updated."
mutable and can get updated."
columns:
- name: id_verification
data_type: character varying
@ -12,7 +12,7 @@ models:
tests:
- unique
- not_null
- name: id_booking
data_type: text
description: ""
@ -32,15 +32,15 @@ models:
- name: version
data_type: text
description: |
description: |
Indicates whether the verification is for V1 (Athena) or V2
(e-deposit).
tests:
- not_null
- accepted_values:
values:
- 'V1'
- 'V2'
- "V1"
- "V2"
- name: nightly_fee_local
data_type: numeric
@ -74,7 +74,7 @@ models:
- name: email_flag
data_type: text
description: |
description: |
Null if the email shows no issues, otherwise it details the problems
attached to the given email.
tests:
@ -86,7 +86,7 @@ models:
- name: phone_flag
data_type: text
description: |
description: |
Null if the phone number shows no issues, otherwise it details the
problems attached to the given phone number.
tests:
@ -95,7 +95,7 @@ models:
- "Phone number not reachable"
- "Not a real phone number"
- "Phone number is disposable"
- name: watch_list
data_type: text
description: ""
@ -119,7 +119,7 @@ models:
- name: is_cancelled
data_type: boolean
description: |
description: |
Indicates if the booking has been cancelled or not. At the source,
null and false values have the same meaning, so here we turn nulls
into false to keep thing simple.
@ -214,7 +214,7 @@ models:
tests:
- not_null:
where: version = 'V1'
- name: status_updated_date_utc
data_type: timestamp without time zone
description: |
@ -226,15 +226,15 @@ models:
- name: updated_at_utc
data_type: timestamp without time zone
description: |
description: |
Timestamp of the last edit of the record, as set by the
Athena/e-deposit application.
tests:
- not_null
- name: updated_date_utc
data_type: timestamp without time zone
description: |
description: |
Date of the last edit of the record, as set by the
Athena/e-deposit application.
tests:
@ -254,14 +254,14 @@ models:
- name: created_at_utc
data_type: timestamp without time zone
description: |
description: |
The internal application timestamp of when this record was created.
tests:
- not_null
- name: created_date_utc
data_type: timestamp without time zone
description: |
description: |
The internal application date of when this record was created.
tests:
- not_null

View file

@ -645,7 +645,7 @@ models:
- SPEND-PREPAYMENT
- RECEIVE-TRANSFER
- SPEND-TRANSFER
- name: transaction_sign
data_type: numeric
description: |
@ -747,9 +747,9 @@ models:
- name: full_contact_details
data_type: jsonb
description: |
description: |
The contact related to this transaction.
Might be null since not all transactions have a related contact.
- name: line_items
@ -793,7 +793,7 @@ models:
- name: dwh_extracted_at_utc
data_type: timestamp with time zone
description: ""
- name: stg_xero__accounts
description: |
Accounts in our accounting tree.