model and docs+tests
This commit is contained in:
parent
f3e9985d0f
commit
049c2d3e31
2 changed files with 125 additions and 0 deletions
|
|
@ -3184,6 +3184,80 @@ models:
|
|||
plans happened during that month.
|
||||
tests:
|
||||
- not_null
|
||||
- name: int_core__payaway_per_month_user
|
||||
description: |
|
||||
This model contains the payaway plans that were considered as active
|
||||
for the invoicing process each month. This is, given that more than
|
||||
one plan coexist within the same month, we take the one plan that
|
||||
was active at the end of the month. This is the one that should apply for
|
||||
the invoicing of that month, indisctintly of the fact that there was other
|
||||
plans active before.
|
||||
|
||||
The time scope of the model is limited to the current month. This means
|
||||
that, even though some plans will end in future dates or have no planned
|
||||
end date, th
|
||||
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- id_user_host
|
||||
- id_payaway_plan
|
||||
- active_in_month_start_date_utc
|
||||
|
||||
columns:
|
||||
- name: id_payaway_plan
|
||||
data_type: bigint
|
||||
description: |
|
||||
The unique identifier of this table, representing
|
||||
the identifier of the payaway plan.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: id_user_host
|
||||
data_type: string
|
||||
description: |
|
||||
The unique identifier of the user host that has
|
||||
a price plan.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: start_at_utc
|
||||
data_type: timestamp
|
||||
description: |
|
||||
Original timestamp of when a given plan started to be active.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: end_at_utc
|
||||
data_type: timestamp
|
||||
description: |
|
||||
Original timestamp of when a given plan stopped being active. If it's
|
||||
null, it means the plan is open ended (has no planned end date yet).
|
||||
|
||||
- name: created_at_utc
|
||||
data_type: timestamp
|
||||
description: |
|
||||
Original timestamp of when a given plan was created.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: active_in_month_start_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
Date that refers to the first day of the month on which we will
|
||||
consider a plan as active. If we're interested in retrieving the
|
||||
information from June, this date will be the 1st of June.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: active_in_month_end_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
Date that refers to the last day of the month on which we will
|
||||
consider a plan as active. If we're interested in retrieving the
|
||||
information from June, this date will be the 30th of June.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: int_core__deal
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue