Skip to main content

Model properties

Changelog

Models properties can be declared in .yml files in your models/ directory (as defined by the source-paths config).

You can name these files whatever_you_want.yml, and nest them arbitrarily deeply in subfolders within the models/ directory.

models/<filename>.yml
version: 2
models:  - name: <model name>    description: <markdown_string>    docs:      show: true | false    config:      <model_config>: <config_value>    tests:      - <test>      - ... # declare additional tests    columns:      - name: <column_name> # required        description: <markdown_string>        meta: {<dictionary>}        quote: true | false        tests:          - <test>          - ... # declare additional tests        tags: [<string>]
      - name: ... # declare properties of additional columns