yuzutech / kroki.io

kroki.io website
https://kroki.io
Mozilla Public License 2.0
8 stars 8 forks source link

Add a DBML example #106

Closed ggrossetie closed 1 year ago

ggrossetie commented 1 year ago
Table users {
  id integer
  username varchar
  role varchar
  created_at timestamp
}

Table posts {
  id integer [primary key]
  title varchar
  body text [note: 'Content of the post']
  user_id integer
  status post_status
  created_at timestamp
}

Enum post_status {
  draft
  published
  private [note: 'visible via URL only']
}

Ref: posts.user_id > users.id // many-to-one