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 c877ccd..714d19a 100644 --- a/models/intermediate/core/int_core__check_in_cover_users.sql +++ b/models/intermediate/core/int_core__check_in_cover_users.sql @@ -30,12 +30,12 @@ with ) -- this table is to obtain the first verification_set with check_in_cover active 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 7fcb00e..c371644 100644 --- a/models/intermediate/core/schema.yaml +++ b/models/intermediate/core/schema.yaml @@ -945,7 +945,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: @@ -968,7 +968,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 f4b292b..52184ba 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 08e40c4..fe2a9dc 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