Merged PR 2001: Add phone number to unified user
Includes the phone number field in unified user. Also added basic tests on the PK. Also improved upstream models traceability in the model. Related work items: #17240
This commit is contained in:
commit
d18b47f597
2 changed files with 45 additions and 35 deletions
|
|
@ -3,42 +3,43 @@ with
|
|||
stg_core__superhog_user as (select * from {{ ref("stg_core__superhog_user") }}),
|
||||
stg_core__currency as (select * from {{ ref("stg_core__currency") }})
|
||||
select
|
||||
id_user,
|
||||
id_account_type,
|
||||
id_billing_country,
|
||||
u.id_user,
|
||||
u.id_account_type,
|
||||
u.id_billing_country,
|
||||
c.iso4217_code as account_currency_iso4217,
|
||||
user_code,
|
||||
first_name,
|
||||
last_name,
|
||||
email,
|
||||
title,
|
||||
id_deal,
|
||||
is_deleted,
|
||||
joined_at_utc,
|
||||
joined_date_utc,
|
||||
user_name,
|
||||
code_prefix,
|
||||
billing_town,
|
||||
company_name,
|
||||
is_email_confirmed,
|
||||
is_lockout_enabled,
|
||||
billing_postcode,
|
||||
is_twofactor_enabled,
|
||||
access_failed_count,
|
||||
lockout_end_date_utc,
|
||||
avatar,
|
||||
id_airbnb,
|
||||
airbnb_url,
|
||||
created_date_utc,
|
||||
updated_date_utc,
|
||||
verified_at_utc,
|
||||
verified_date_utc,
|
||||
flag_as_problem,
|
||||
number_of_properties,
|
||||
id_superhog_verified_set,
|
||||
platform_comms_recipient,
|
||||
other_sharing_platform_url,
|
||||
id_user_verification_status
|
||||
u.user_code,
|
||||
u.first_name,
|
||||
u.last_name,
|
||||
u.email,
|
||||
u.phone_number,
|
||||
u.title,
|
||||
u.id_deal,
|
||||
u.is_deleted,
|
||||
u.joined_at_utc,
|
||||
u.joined_date_utc,
|
||||
u.user_name,
|
||||
u.code_prefix,
|
||||
u.billing_town,
|
||||
u.company_name,
|
||||
u.is_email_confirmed,
|
||||
u.is_lockout_enabled,
|
||||
u.billing_postcode,
|
||||
u.is_twofactor_enabled,
|
||||
u.access_failed_count,
|
||||
u.lockout_end_date_utc,
|
||||
su.avatar,
|
||||
su.id_airbnb,
|
||||
su.airbnb_url,
|
||||
su.created_date_utc,
|
||||
su.updated_date_utc,
|
||||
su.verified_at_utc,
|
||||
su.verified_date_utc,
|
||||
su.flag_as_problem,
|
||||
su.number_of_properties,
|
||||
su.id_superhog_verified_set,
|
||||
su.platform_comms_recipient,
|
||||
su.other_sharing_platform_url,
|
||||
su.id_user_verification_status
|
||||
from stg_core__user as u
|
||||
inner join stg_core__superhog_user as su on u.id_user = su.id_superhoguser
|
||||
left join stg_core__currency c on u.id_account_currency = c.id_currency
|
||||
|
|
|
|||
|
|
@ -124,3 +124,12 @@ models:
|
|||
description: |
|
||||
The amount for which the guest user is covered if he faces problems
|
||||
during check-in.
|
||||
|
||||
- name: int_core__unified_user
|
||||
columns:
|
||||
- name: id_user
|
||||
data_type: character varying
|
||||
description: The unique ID for the user.
|
||||
tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue