From f03fa6a8656c18218678f6bb5b546ed338fcfc61 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Tue, 13 Feb 2024 12:51:27 +0100 Subject: [PATCH] adjust model --- models/intermediate/int_core__unified_user.sql | 3 ++- models/staging/core/stg_core__user.sql | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/models/intermediate/int_core__unified_user.sql b/models/intermediate/int_core__unified_user.sql index 7b3e905..3e01822 100644 --- a/models/intermediate/int_core__unified_user.sql +++ b/models/intermediate/int_core__unified_user.sql @@ -4,7 +4,8 @@ with select id_user, user_code, - name, + firstname, + lastname, email, title, id_deal, diff --git a/models/staging/core/stg_core__user.sql b/models/staging/core/stg_core__user.sql index a928140..3e3dfd2 100644 --- a/models/staging/core/stg_core__user.sql +++ b/models/staging/core/stg_core__user.sql @@ -2,13 +2,14 @@ with raw_user as (select * from {{ source("core", "user") }}) select cast("Id" as uuid) as id_user, code as user_code, - "Name" as name, + firstname as first_name, + lastname as last_name, email as email, title as title, dealid as id_deal, deleted as is_deleted, joindate as join_date_utc, - username as username, + username as user_name, codeprefix as code_prefix, billingtown as billing_town, companyname as company_name,