diff --git a/models/intermediate/core/int_core__check_in_cover_users.sql b/models/intermediate/core/int_core__check_in_cover_users.sql index 371b66f..624bd3e 100644 --- a/models/intermediate/core/int_core__check_in_cover_users.sql +++ b/models/intermediate/core/int_core__check_in_cover_users.sql @@ -17,12 +17,12 @@ with -- vstvt.id_verification_type = 15 is the value for check_in_cover verification ) select - u.id_user, + u.id_user as id_user_host, u.id_deal, u.last_name, u.user_name, u.first_name, - u.email, + u.email as host_email, u.phone_number, u.joined_at_utc, u.joined_date_utc, diff --git a/models/intermediate/core/schema.yaml b/models/intermediate/core/schema.yaml index dda33a9..718aefc 100644 --- a/models/intermediate/core/schema.yaml +++ b/models/intermediate/core/schema.yaml @@ -931,7 +931,7 @@ models: This model is restricted to active user so it doesn't include historical data like users that had check-in cover but are currently inactive. columns: - - name: id_user + - name: id_user_host data_type: character varying description: Unique id value for the user tests: @@ -954,7 +954,7 @@ models: data_type: character varying description: First name of the user - - name: email + - name: host_email data_type: character varying description: Email of the user diff --git a/models/reporting/core/core__check_in_cover_users.sql b/models/reporting/core/core__check_in_cover_users.sql index 053961e..a37ae6e 100644 --- a/models/reporting/core/core__check_in_cover_users.sql +++ b/models/reporting/core/core__check_in_cover_users.sql @@ -4,12 +4,12 @@ with ) select - id_user as id_user_host, + id_user_host as id_user_host, id_deal as id_deal, last_name as last_name, user_name as user_name, first_name as first_name, - email as host_email, + host_email as host_email, phone_number as phone_number, joined_at_utc as joined_at_utc, joined_date_utc as joined_date_utc, diff --git a/models/reporting/core/schema.yaml b/models/reporting/core/schema.yaml index 1a3e670..1053297 100644 --- a/models/reporting/core/schema.yaml +++ b/models/reporting/core/schema.yaml @@ -885,7 +885,7 @@ models: This model is restricted to active user so it doesn't include historical data like users that had check-in cover but are currently inactive. columns: - - name: id_user + - name: id_user_host data_type: character varying description: Unique id value for the user tests: @@ -908,7 +908,7 @@ models: data_type: character varying description: First name of the user - - name: email + - name: host_email data_type: character varying description: Email of the user