version: 2
models:
- name: dim_listings_cleansed
columns:
- name: listing_id
tests:
- unique
- not_null
- name: host_id
- relationships:
to: ref('dim_hosts_cleansed')
field: host_id
- name: room_type
- accepted_values:
values: [
'Entire home/apt',
'Private room',
'Shared room',
'Hotel room'
]
- name: minimum_nights
- positive_value