a lot of changes
This commit is contained in:
parent
5101a2a45e
commit
df61682d90
9 changed files with 88 additions and 29 deletions
|
|
@ -1,3 +1,14 @@
|
|||
{{
|
||||
config(
|
||||
indexes=[
|
||||
{"columns": ["id_booking"]},
|
||||
{"columns": ["id_user_host"]},
|
||||
{"columns": ["id_user_guest"]},
|
||||
{"columns": ["id_verification_request"]},
|
||||
]
|
||||
)
|
||||
}}
|
||||
|
||||
with
|
||||
raw_booking as (select * from {{ source("core", "Booking") }}),
|
||||
stg_core__booking as (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
{{ config(indexes=[{"columns": ["id_price_plan"]}, {"columns": ["id_user_host"]}]) }}
|
||||
|
||||
with
|
||||
raw_price_plan_to_user as (select * from {{ source("core", "PricePlanToUser") }}),
|
||||
stg_core__price_plan_to_user as (
|
||||
|
|
@ -10,12 +12,13 @@ with
|
|||
cast({{ adapter.quote("StartDate") }} as date) as start_date_utc,
|
||||
{{ adapter.quote("EndDate") }} as end_at_utc,
|
||||
cast({{ adapter.quote("EndDate") }} as date) end_date_utc,
|
||||
{{ adapter.quote("BookingFeeNet") }} as booking_fee,
|
||||
{{ adapter.quote("ListingFeeNet") }} as listing_fee,
|
||||
{{ adapter.quote("SupportFeeNet") }} as support_fee,
|
||||
{{ adapter.quote("BookingFeeNet") }} as booking_fee_local,
|
||||
{{ adapter.quote("ListingFeeNet") }} as listing_fee_local,
|
||||
{{ adapter.quote("SupportFeeNet") }} as support_fee_local,
|
||||
{{ adapter.quote("TaxPercentage") }} as tax_percentage,
|
||||
{{ adapter.quote("MinBillableListings") }} as minimum_billable_listings,
|
||||
{{ adapter.quote("MinMonthlyListingFee") }} as minimum_monthly_listing_fee,
|
||||
{{ adapter.quote("MinMonthlyListingFee") }}
|
||||
as minimum_monthly_listing_fee_local,
|
||||
{{ adapter.quote("CreatedDate") }} as created_at_utc,
|
||||
cast({{ adapter.quote("CreatedDate") }} as date) as created_date_utc,
|
||||
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
{{ config(indexes=[{"columns": ["id_superhoguser"]}]) }}
|
||||
|
||||
with
|
||||
raw_superhog_user as (select * from {{ source("core", "superhog_user") }}),
|
||||
stg_core__superhog_user as (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
{{ config(indexes=[{"columns": ["id_user"]}]) }}
|
||||
|
||||
with
|
||||
raw_user as (select * from {{ source("core", "User") }}),
|
||||
stg_core__user as (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,14 @@
|
|||
{{
|
||||
config(
|
||||
indexes=[
|
||||
{"columns": ["id_verification_request"]},
|
||||
{"columns": ["id_user_guest"]},
|
||||
{"columns": ["id_user_host"]},
|
||||
]
|
||||
)
|
||||
}}
|
||||
|
||||
|
||||
with
|
||||
raw_verification_request as (
|
||||
select * from {{ source("core", "VerificationRequest") }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue