Thingies
This commit is contained in:
parent
1e53b3895c
commit
bccbff7205
3 changed files with 41 additions and 0 deletions
27
code_thingies/dbtlearn/models/schema.yml
Normal file
27
code_thingies/dbtlearn/models/schema.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
version: 2
|
||||
|
||||
models:
|
||||
- name: dim_listings_cleansed
|
||||
columns:
|
||||
- name: listing_id
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
|
||||
- name: host_id
|
||||
tests:
|
||||
- not_null
|
||||
- relationships:
|
||||
to: ref('dim_hosts_cleansed')
|
||||
field: host_id
|
||||
|
||||
- name: room_type
|
||||
tests:
|
||||
- accepted_values:
|
||||
values: [
|
||||
'Entire home/apt',
|
||||
'Private room',
|
||||
'Shared room',
|
||||
'Hotel room'
|
||||
]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue