diff --git a/models/reporting/core/core__check_in_cover_users.sql b/models/reporting/core/core__check_in_cover_users.sql new file mode 100644 index 0000000..9771311 --- /dev/null +++ b/models/reporting/core/core__check_in_cover_users.sql @@ -0,0 +1,17 @@ +with + int_core__check_in_cover_users as ( + select * from {{ ref("int_core__check_in_cover_users") }} + ) + +select + id_user as id_user_host, + last_name as last_name, + user_name as user_name, + first_name as first_name, + email as host_email, + phone_number as phone_number, + joined_at_utc as joined_at_utc, + joined_date_utc as joined_date_utc, + billing_town as billing_town, + company_name as company_name +from int_core__check_in_cover_users diff --git a/models/reporting/core/schema.yaml b/models/reporting/core/schema.yaml index 5bc2829..8a7450e 100644 --- a/models/reporting/core/schema.yaml +++ b/models/reporting/core/schema.yaml @@ -811,3 +811,54 @@ models: - name: id_user_verification_status data_type: bigint description: "" + + - name: core__check_in_cover_users + description: + This model contains information about hosts that offer check in cover. + It has basic information on the users like name, phone, email or joined date. + + 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 + data_type: character varying + description: Unique id value for the user + tests: + - not_null + - unique + + - name: last_name + data_type: character varying + description: Last name of the user + + - name: user_name + data_type: character varying + description: User name of the user + + - name: first_name + data_type: character varying + description: First name of the user + + - name: email + data_type: character varying + description: Email of the user + + - name: phone_number + data_type: character varying + description: Phone number of the user + + - name: joined_at_utc + data_type: timestamp without time zone + description: Date and time the user joined + + - name: joined_date_utc + data_type: date + description: Date the user joined + + - name: billing_town + data_type: character varying + description: "" + + - name: company_name + data_type: character varying + description: "" \ No newline at end of file