Merged PR 4736: adding id_deal to api models
# Description Adding `id_deal` to API models in Check in Cover and Screen & Protect # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #28239
This commit is contained in:
commit
cef363847a
12 changed files with 57 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ with
|
|||
select
|
||||
c.id_record,
|
||||
c.id_user_partner,
|
||||
chu.id_deal,
|
||||
c.id_reservation,
|
||||
c.id_accommodation,
|
||||
chu.id_currency,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ with
|
|||
|
||||
select
|
||||
id_user_partner,
|
||||
id_deal,
|
||||
extract('year' from created_date_utc) as year,
|
||||
extract('month' from created_date_utc) as month,
|
||||
id_currency,
|
||||
|
|
@ -15,4 +16,4 @@ select
|
|||
company_name,
|
||||
user_email
|
||||
from int_check_in_hero__checkins
|
||||
group by 1, 2, 3, 4, 5, 9, 10
|
||||
group by 1, 2, 3, 4, 5, 6, 10, 11
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: text
|
||||
description: Identifier for the deal associated with the booking.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_reservation
|
||||
data_type: text
|
||||
description: Unique identifier for the reservation associated with the check-in.
|
||||
|
|
@ -211,6 +217,12 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: text
|
||||
description: Identifier for the deal associated with the booking.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: year
|
||||
data_type: integer
|
||||
description: |
|
||||
|
|
|
|||
|
|
@ -255,6 +255,7 @@ select
|
|||
vr.id_verification,
|
||||
vr.id_booking,
|
||||
vr.id_user_partner,
|
||||
vr.id_deal,
|
||||
vr.id_accommodation,
|
||||
vr.company_name,
|
||||
vr.is_protected,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ select
|
|||
vr.id_verification,
|
||||
vr.id_booking,
|
||||
vr.id_user_partner,
|
||||
spu.id_deal,
|
||||
vr.id_accommodation,
|
||||
spu.id_currency,
|
||||
spu.is_protected,
|
||||
|
|
|
|||
|
|
@ -31,6 +31,12 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: text
|
||||
description: Identifier for the deal associated with the booking.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_accommodation
|
||||
data_type: text
|
||||
description: Identifier for the accommodation related to the booking.
|
||||
|
|
@ -374,6 +380,12 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: text
|
||||
description: Identifier for the deal associated with the booking.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_accommodation
|
||||
data_type: text
|
||||
description: "Identifier for the accommodation related to the booking."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue