Modified date name to stick to convention
This commit is contained in:
parent
6bc26a66ff
commit
205bc6534d
4 changed files with 8 additions and 7 deletions
|
|
@ -16,9 +16,10 @@ with
|
|||
-- vs.isactive is to consider the current verification set used by the host
|
||||
-- vstvt.id_verification_type = 15 is the value for check_in_cover verification
|
||||
),
|
||||
check_in_cover_added_date as (
|
||||
check_in_cover_added_date_utc as (
|
||||
select
|
||||
vs.id_user_host, min(date(vs.created_at_utc)) as check_in_cover_added_date
|
||||
vs.id_user_host,
|
||||
min(date(vs.created_at_utc)) as check_in_cover_added_date_utc
|
||||
from stg_core__verification_set as vs
|
||||
left join hosts_with_check_in_cover as hcv on vs.id_user_host = hcv.id_user_host
|
||||
left join
|
||||
|
|
@ -38,9 +39,9 @@ select
|
|||
u.phone_number,
|
||||
u.joined_at_utc,
|
||||
u.joined_date_utc,
|
||||
ad.check_in_cover_added_date,
|
||||
ad.check_in_cover_added_date_utc,
|
||||
u.billing_town,
|
||||
u.company_name
|
||||
from stg_core__user u
|
||||
inner join hosts_with_check_in_cover hcih on hcih.id_user_host = u.id_user
|
||||
left join check_in_cover_added_date ad on ad.id_user_host = u.id_user
|
||||
left join check_in_cover_added_date_utc ad on ad.id_user_host = u.id_user
|
||||
|
|
|
|||
|
|
@ -970,7 +970,7 @@ models:
|
|||
data_type: date
|
||||
description: Date the user joined
|
||||
|
||||
- name: check_in_cover_added_date
|
||||
- name: check_in_cover_added_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
Date the user first included check-in cover
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ select
|
|||
phone_number as phone_number,
|
||||
joined_at_utc as joined_at_utc,
|
||||
joined_date_utc as joined_date_utc,
|
||||
check_in_cover_added_date as check_in_cover_added_date,
|
||||
check_in_cover_added_date_utc as check_in_cover_added_date_utc,
|
||||
billing_town as billing_town,
|
||||
company_name as company_name
|
||||
from int_core__check_in_cover_users
|
||||
|
|
|
|||
|
|
@ -924,7 +924,7 @@ models:
|
|||
data_type: date
|
||||
description: Date the user joined
|
||||
|
||||
- name: check_in_cover_added_date
|
||||
- name: check_in_cover_added_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
Date the user first included check-in cover
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue