adding id_deal to api models
This commit is contained in:
parent
dd9bb8a11b
commit
5d3f2f6908
12 changed files with 57 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ with
|
||||||
select
|
select
|
||||||
c.id_record,
|
c.id_record,
|
||||||
c.id_user_partner,
|
c.id_user_partner,
|
||||||
|
chu.id_deal,
|
||||||
c.id_reservation,
|
c.id_reservation,
|
||||||
c.id_accommodation,
|
c.id_accommodation,
|
||||||
chu.id_currency,
|
chu.id_currency,
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ with
|
||||||
|
|
||||||
select
|
select
|
||||||
id_user_partner,
|
id_user_partner,
|
||||||
|
id_deal,
|
||||||
extract('year' from created_date_utc) as year,
|
extract('year' from created_date_utc) as year,
|
||||||
extract('month' from created_date_utc) as month,
|
extract('month' from created_date_utc) as month,
|
||||||
id_currency,
|
id_currency,
|
||||||
|
|
@ -15,4 +16,4 @@ select
|
||||||
company_name,
|
company_name,
|
||||||
user_email
|
user_email
|
||||||
from int_check_in_hero__checkins
|
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:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: id_reservation
|
- name: id_reservation
|
||||||
data_type: text
|
data_type: text
|
||||||
description: Unique identifier for the reservation associated with the check-in.
|
description: Unique identifier for the reservation associated with the check-in.
|
||||||
|
|
@ -211,6 +217,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: year
|
- name: year
|
||||||
data_type: integer
|
data_type: integer
|
||||||
description: |
|
description: |
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,7 @@ select
|
||||||
vr.id_verification,
|
vr.id_verification,
|
||||||
vr.id_booking,
|
vr.id_booking,
|
||||||
vr.id_user_partner,
|
vr.id_user_partner,
|
||||||
|
vr.id_deal,
|
||||||
vr.id_accommodation,
|
vr.id_accommodation,
|
||||||
vr.company_name,
|
vr.company_name,
|
||||||
vr.is_protected,
|
vr.is_protected,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ select
|
||||||
vr.id_verification,
|
vr.id_verification,
|
||||||
vr.id_booking,
|
vr.id_booking,
|
||||||
vr.id_user_partner,
|
vr.id_user_partner,
|
||||||
|
spu.id_deal,
|
||||||
vr.id_accommodation,
|
vr.id_accommodation,
|
||||||
spu.id_currency,
|
spu.id_currency,
|
||||||
spu.is_protected,
|
spu.is_protected,
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: id_accommodation
|
- name: id_accommodation
|
||||||
data_type: text
|
data_type: text
|
||||||
description: Identifier for the accommodation related to the booking.
|
description: Identifier for the accommodation related to the booking.
|
||||||
|
|
@ -374,6 +380,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: id_accommodation
|
- name: id_accommodation
|
||||||
data_type: text
|
data_type: text
|
||||||
description: "Identifier for the accommodation related to the booking."
|
description: "Identifier for the accommodation related to the booking."
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ with
|
||||||
select
|
select
|
||||||
id_record as id_record,
|
id_record as id_record,
|
||||||
id_user_partner as id_user_partner,
|
id_user_partner as id_user_partner,
|
||||||
|
id_deal as id_deal,
|
||||||
id_reservation as id_reservation,
|
id_reservation as id_reservation,
|
||||||
id_accommodation as id_accommodation,
|
id_accommodation as id_accommodation,
|
||||||
guest_last_name as guest_last_name,
|
guest_last_name as guest_last_name,
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ with
|
||||||
|
|
||||||
select
|
select
|
||||||
id_user_partner as id_user_partner,
|
id_user_partner as id_user_partner,
|
||||||
|
id_deal as id_deal,
|
||||||
year as year,
|
year as year,
|
||||||
month as month,
|
month as month,
|
||||||
id_currency as id_currency,
|
id_currency as id_currency,
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: id_reservation
|
- name: id_reservation
|
||||||
data_type: text
|
data_type: text
|
||||||
description: Unique identifier for the reservation associated with the check-in.
|
description: Unique identifier for the reservation associated with the check-in.
|
||||||
|
|
@ -171,6 +177,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: year
|
- name: year
|
||||||
data_type: integer
|
data_type: integer
|
||||||
description: |
|
description: |
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: id_accommodation
|
- name: id_accommodation
|
||||||
data_type: text
|
data_type: text
|
||||||
description: Identifier for the accommodation related to the booking.
|
description: Identifier for the accommodation related to the booking.
|
||||||
|
|
@ -277,6 +283,12 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: id_deal
|
||||||
|
data_type: text
|
||||||
|
description: Identifier for the deal associated with the booking.
|
||||||
|
data_tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: id_accommodation
|
- name: id_accommodation
|
||||||
data_type: text
|
data_type: text
|
||||||
description: "Identifier for the accommodation related to the booking."
|
description: "Identifier for the accommodation related to the booking."
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ select
|
||||||
id_verification as id_verification,
|
id_verification as id_verification,
|
||||||
id_booking as id_booking,
|
id_booking as id_booking,
|
||||||
id_user_partner as id_user_partner,
|
id_user_partner as id_user_partner,
|
||||||
|
id_deal as id_deal,
|
||||||
id_accommodation as id_accommodation,
|
id_accommodation as id_accommodation,
|
||||||
is_protected as is_protected,
|
is_protected as is_protected,
|
||||||
protection_type as protection_type,
|
protection_type as protection_type,
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ select
|
||||||
id_verification as id_verification,
|
id_verification as id_verification,
|
||||||
id_booking as id_booking,
|
id_booking as id_booking,
|
||||||
id_user_partner as id_user_partner,
|
id_user_partner as id_user_partner,
|
||||||
|
id_deal as id_deal,
|
||||||
id_accommodation as id_accommodation,
|
id_accommodation as id_accommodation,
|
||||||
is_protected as is_protected,
|
is_protected as is_protected,
|
||||||
protection_type as protection_type,
|
protection_type as protection_type,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue