Just committing to save change and create a new branch for basic to push basic changes
This commit is contained in:
parent
6adc424963
commit
42510bbb4d
4 changed files with 7 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ with
|
|||
from int_edeposit__verifications
|
||||
where version = 'V2'
|
||||
),
|
||||
calculated_metrics as (
|
||||
aggregated_partner_booking_metrics as (
|
||||
select
|
||||
id_user_partner,
|
||||
year_month_created,
|
||||
|
|
@ -76,4 +76,4 @@ select
|
|||
then cancelled_per_month * {{ cancellation_fee }}
|
||||
else 0
|
||||
end as total_revenue
|
||||
from calculated_metrics
|
||||
from aggregated_partner_booking_metrics
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ select
|
|||
end as verification_source,
|
||||
verification_status,
|
||||
verification_status_reason,
|
||||
cast(nightly_fee_local as float),
|
||||
nightly_fee_local,
|
||||
cast(checkout_at_utc as date) - cast(checkin_at_utc as date) as number_nights,
|
||||
email_flag,
|
||||
phone_flag,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ models:
|
|||
"Records of each transaction that happens in the edeposit API. Records are
|
||||
mutable and can get updated."
|
||||
columns:
|
||||
- name: id
|
||||
- name: id_verification
|
||||
data_type: character varying
|
||||
description: "Unique id for the specific transaction."
|
||||
tests:
|
||||
|
|
|
|||
|
|
@ -34,7 +34,9 @@ with
|
|||
|
||||
{{ adapter.quote("documents") }} ->> 'Version' as "version",
|
||||
|
||||
{{ adapter.quote("documents") }} ->> 'NightlyFee' as "nightly_fee_local",
|
||||
cast(
|
||||
{{ adapter.quote("documents") }} ->> 'NightlyFee' as decimal(19, 4)
|
||||
) as "nightly_fee_local",
|
||||
|
||||
{{ adapter.quote("documents") }} ->> 'Status' as verification_status,
|
||||
{{ adapter.quote("documents") }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue