Created check_in_cover_users in reporting for check-in hero report
This commit is contained in:
parent
618ce087a5
commit
50f93a2980
2 changed files with 68 additions and 0 deletions
17
models/reporting/core/core__check_in_cover_users.sql
Normal file
17
models/reporting/core/core__check_in_cover_users.sql
Normal file
|
|
@ -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
|
||||
|
|
@ -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: ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue