version: 2
models:
- name: view_model
  description: |
    View model description "with double quotes"
    and with 'single  quotes' as welll as other;
    '''abc123'''
    reserved -- characters
    --
    /* comment */
  columns:
  - name: dupe
    tests:
    - unique
  - name: id
    tests:
    - not_null
    - unique
  - name: updated_at
    tests:
    - not_null
  tests:
  - was_materialized:
      name: view_model
      type: view
- name: table_model
  description: |
    View model description "with double quotes"
    and with 'single  quotes' as welll as other;
    '''abc123'''
    reserved -- characters
    --
    /* comment */
  columns:
  - name: id
    tests:
    - not_null
  tests:
  - was_materialized:
      name: table_model
      type: table
- name: fUnKyCaSe
  columns:
    - name: id
      tests:
        - not_null
        - unique
  tests:
    - was_materialized:
        name: fUnKyCaSe
        type: view


sources:
  - name: raw
    project: "{{ target.database }}"
    dataset: "{{ target.schema }}"
    tables:
      - name: seed
        identifier: data_seed
