Skip to main content

docusaurus-plugin-dbml

Write a dbml code fence. Get an interactive database diagram.

Write this

```dbml
Table users {
id bigint [pk, increment]
email varchar(254) [not null, unique]
}

Table posts {
id bigint [pk, increment]
author_id bigint [not null, ref: > users.id]
title varchar(200) [not null]
status post_status [not null, default: 'DRAFT']
}

Enum post_status {
DRAFT
PUBLISHED
ARCHIVED
}
```

Get this