Update athena models to remove id_accommodation
This commit is contained in:
parent
85c2c73da7
commit
d7d3422eb9
5 changed files with 1 additions and 11 deletions
|
|
@ -7,7 +7,6 @@ select
|
||||||
id_verification,
|
id_verification,
|
||||||
id_booking,
|
id_booking,
|
||||||
id_user_partner,
|
id_user_partner,
|
||||||
id_accommodation,
|
|
||||||
version,
|
version,
|
||||||
case when version = 'V1' then 'Guesty' else null end as verification_source,
|
case when version = 'V1' then 'Guesty' else null end as verification_source,
|
||||||
verification_status,
|
verification_status,
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,6 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
- name: id_accommodation
|
|
||||||
data_type: text
|
|
||||||
description: "unique Superhog generated id for a listing"
|
|
||||||
|
|
||||||
- name: version
|
- name: version
|
||||||
data_type: text
|
data_type: text
|
||||||
description: "value to identify if it is Guesty (V1) or E-deposit (V2)"
|
description: "value to identify if it is Guesty (V1) or E-deposit (V2)"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ select
|
||||||
av.id_verification,
|
av.id_verification,
|
||||||
av.id_booking,
|
av.id_booking,
|
||||||
av.id_user_partner,
|
av.id_user_partner,
|
||||||
av.id_accommodation,
|
null as id_accommodation,
|
||||||
av.version,
|
av.version,
|
||||||
av.verification_source,
|
av.verification_source,
|
||||||
av.verification_status,
|
av.verification_status,
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,6 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
- name: id_accommodation
|
|
||||||
data_type: text
|
|
||||||
description: An ID for the listing related to the booking.
|
|
||||||
|
|
||||||
- name: version
|
- name: version
|
||||||
data_type: text
|
data_type: text
|
||||||
description: |
|
description: |
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ with
|
||||||
{{ adapter.quote("documents") }} ->> 'id' as id_verification,
|
{{ adapter.quote("documents") }} ->> 'id' as id_verification,
|
||||||
{{ adapter.quote("documents") }} ->> 'BookingId' as id_booking,
|
{{ adapter.quote("documents") }} ->> 'BookingId' as id_booking,
|
||||||
{{ adapter.quote("documents") }} ->> 'userId' as id_user_partner,
|
{{ adapter.quote("documents") }} ->> 'userId' as id_user_partner,
|
||||||
{{ adapter.quote("documents") }} ->> 'ListingId' as id_accommodation,
|
|
||||||
|
|
||||||
{{ adapter.quote("documents") }} ->> 'Version' as "version",
|
{{ adapter.quote("documents") }} ->> 'Version' as "version",
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue