Need help with dbml?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.


Database Markup Language (DBML), designed to define and document database structures

672 Stars 58 Forks Apache License 2.0 315 Commits 61 Opened issues

Services available

Need anything else?

DBML - Database Markup Language

Build Status

DBML (database markup language) is a simple, readable DSL language designed to define database structures.

For more information, please check out DBML homepage


  • It is simple, flexible and highly human-readable
  • It is database agnostic, focusing on the essential database structure definition without worrying about the detailed syntaxes of each database
  • Comes with a free, simple database visualiser at
  • Also comes with a free database documentation app at


Example of a database definition of a simple blogging site:

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 created_at timestamp }

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

Community Contributions

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.