---
name: mydatabase
include:
  - users
  - posts
  - schema_migrations
exclude:
  - schema_*
relations:
  -
    table: posts
    columns:
      - user_id
    parentTable: users
    parentColumns:
      - id
    def: posts->users
comments:
  -
    table: users
    indexComments:
      user_index: user index
    constraintComments:
      PRIMARY: PRIMARY(id)
  -
    table: posts
    columnComments:
      title: post title
    columnLabels:
      title:
        - string
        - required
    triggerComments:
      update_posts_title: update posts title
