Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.31 KB

model-properties.md

File metadata and controls

47 lines (37 loc) · 1.31 KB
title
Model properties
- **v0.21.0** introduced the `config` property, thereby allowing you to configure models in all `.yml` files

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

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

version: 2

models:
  - [name](model_name): <model name>
    [description](description): <markdown_string>
    [docs](resource-properties/docs):
      show: true | false
    [config](resource-properties/config):
      [<model_config>](model-configs): <config_value>
    [tests](resource-properties/tests):
      - <test>
      - ... # declare additional tests
    columns:
      - name: <column_name> # required
        [description](description): <markdown_string>
        [meta](meta): {<dictionary>}
        [quote](quote): true | false
        [tests](resource-properties/tests):
          - <test>
          - ... # declare additional tests
        [tags](resource-configs/tags): [<string>]

      - name: ... # declare properties of additional columns