Merged PR 1986: Created verification_requests model in report
Created verification_requests model in report for check-in hero report including the description to check Related work items: #17067
This commit is contained in:
commit
06e5112cfc
2 changed files with 240 additions and 0 deletions
48
models/reporting/core/core__verification_requests.sql
Normal file
48
models/reporting/core/core__verification_requests.sql
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
with int_core__verification_requests as (
|
||||
select *
|
||||
from {{ ref("int_core__verification_requests")}}
|
||||
)
|
||||
|
||||
select
|
||||
id_verification_request as id_verification_request,
|
||||
uuid_verification_request as uuid_verification_request,
|
||||
id_verification_set as id_verification_set,
|
||||
id_superhog_verified_set as id_superhog_verified_set,
|
||||
id_payment_validation_set as id_payment_validation_set,
|
||||
id_user_guest as id_user_guest,
|
||||
id_user_host as id_user_host,
|
||||
is_verification_request_complete as is_verification_request_complete,
|
||||
verification_url as verification_url,
|
||||
callback_url as callback_url,
|
||||
redirect_url as redirect_url,
|
||||
logo as logo,
|
||||
guest_email as guest_email,
|
||||
last_name as last_name,
|
||||
first_name as first_name,
|
||||
guest_phone_number as guest_phone_number,
|
||||
telephone_code as telephone_code,
|
||||
guest_phone_number_2 as guest_phone_number_2,
|
||||
verification_start_at_utc as verification_start_at_utc,
|
||||
verification_start_date_utc as verification_start_date_utc,
|
||||
verification_end_at_utc as verification_end_at_utc,
|
||||
verification_end_date_utc as verification_end_date_utc,
|
||||
link_used_at_utc as link_used_at_utc,
|
||||
link_used_date_utc as link_used_date_utc,
|
||||
expire_at_utc as expire_at_utc,
|
||||
expire_date_utc as expire_date_utc,
|
||||
is_deleted as is_deleted,
|
||||
redirect_name as redirect_name,
|
||||
id_one_step_link as id_one_step_link,
|
||||
success_message as success_message,
|
||||
summary as summary,
|
||||
rejection_reason as rejection_reason,
|
||||
has_switched_to_mobile as has_switched_to_mobile,
|
||||
is_verifier_rejected as is_verifier_rejected,
|
||||
config as config,
|
||||
metadata as metadata,
|
||||
created_at_utc as created_at_utc,
|
||||
created_date_utc as created_date_utc,
|
||||
updated_at_utc as updated_at_utc,
|
||||
updated_date_utc as updated_date_utc,
|
||||
dwh_extracted_at_utc as dwh_extracted_at_utc
|
||||
from int_core__verification_requests
|
||||
|
|
@ -370,3 +370,195 @@ models:
|
|||
probably broken and unreliable.
|
||||
|
||||
For more details, contact pablo.martin or Lawrence.
|
||||
- name: core__verification_requests
|
||||
description:
|
||||
This is a table that shows all guest journey from our guests users with
|
||||
each record matching each guest journey.
|
||||
|
||||
It holds information about the guests like name, email, phone, etc.., as
|
||||
well as dates regarding the process of the guest journey like when it
|
||||
was started or finished.
|
||||
columns:
|
||||
- name: id_verification_request
|
||||
data_type: bigint
|
||||
description:
|
||||
Unique, incremental, internal ID for the related verification
|
||||
request.
|
||||
|
||||
- name: uuid_verification_request
|
||||
data_type: text
|
||||
description: uuid for the related verification request.
|
||||
|
||||
- name: id_verification_set
|
||||
data_type: bigint
|
||||
description: ""
|
||||
|
||||
- name: id_superhog_verified_set
|
||||
data_type: bigint
|
||||
description: ""
|
||||
|
||||
- name: id_payment_validation_set
|
||||
data_type: bigint
|
||||
description: ""
|
||||
|
||||
- name: id_user_guest
|
||||
data_type: character varying
|
||||
description: Unique, incremental, internal ID for the guest user.
|
||||
|
||||
- name: id_user_host
|
||||
data_type: character varying
|
||||
description: Unique, incremental, internal ID for the host user.
|
||||
|
||||
- name: is_verification_request_complete
|
||||
data_type: boolean
|
||||
description: True if the verification request is considered
|
||||
complete, AKA the guest has finished the full guest journey.
|
||||
|
||||
- name: verification_url
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: callback_url
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: redirect_url
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: logo
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: guest_email
|
||||
data_type: character varying
|
||||
description: The email of the guest.
|
||||
|
||||
- name: last_name
|
||||
data_type: character varying
|
||||
description: The last name of the guest.
|
||||
|
||||
- name: first_name
|
||||
data_type: character varying
|
||||
description: The first name of the guest.
|
||||
|
||||
- name: guest_phone_number
|
||||
data_type: character varying
|
||||
description: The phone number of the guest.
|
||||
|
||||
- name: telephone_code
|
||||
data_type: character varying
|
||||
description: The telephone code of the guest.
|
||||
|
||||
- name: guest_phone_number_2
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: verification_start_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the guest started the guest journey.
|
||||
|
||||
- name: verification_start_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the guest started the guest journey.
|
||||
|
||||
- name: verification_end_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the guest finished the guest journey.
|
||||
|
||||
- name: verification_end_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the guest finished the guest journey.
|
||||
|
||||
- name: link_used_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the guest used the link for the verification.
|
||||
|
||||
- name: link_used_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the guest used the link for the verification.
|
||||
|
||||
- name: expire_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the link for the verification expires.
|
||||
|
||||
- name: expire_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the link for the verification expires.
|
||||
|
||||
- name: is_deleted
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if the link for verification expired before finishing the
|
||||
verification.
|
||||
|
||||
- name: redirect_name
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: id_one_step_link
|
||||
data_type: bigint
|
||||
description: ""
|
||||
|
||||
- name: success_message
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: summary
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: rejection_reason
|
||||
data_type: character varying
|
||||
description:
|
||||
Reason as to why the guest was rejected.
|
||||
|
||||
- name: has_switched_to_mobile
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if the guest changed has switched to mobile
|
||||
during the verification process.
|
||||
|
||||
- name: is_verifier_rejected
|
||||
data_type: boolean
|
||||
description: ""
|
||||
|
||||
- name: config
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: metadata
|
||||
data_type: character varying
|
||||
description: ""
|
||||
|
||||
- name: created_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the verification process was created.
|
||||
|
||||
- name: created_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the verification process was created.
|
||||
|
||||
- name: updated_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the last update on the entry happened.
|
||||
|
||||
- name: updated_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the last update on the entry happened.
|
||||
|
||||
- name: dwh_extracted_at_utc
|
||||
data_type: timestamp with time zone
|
||||
description: ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue