Luca Berselli201 downloadsDocument database schemas with one note per table and view them as an interactive ER diagram.
Document database schemas in Obsidian with one note per table, and explore them as an interactive ER diagram.
Each table note keeps the column definitions in its properties and your notes about each column in its body. The diagram view reads a folder of table notes, draws tables and relations, and opens the right note — or the paragraph about a column — with a click.

col_* properties, notes about each column under ## column headings.With BRAT: install BRAT, choose Add beta plugin, enter https://github.com/lucabersel/db-atlas, then enable DB Atlas in Settings → Community plugins.
Manually: download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/db-atlas/ and enable the plugin.
Requires Obsidian 1.13.0 or later.
Create a folder (e.g. Shop) and add it in Settings → DB Atlas → DB folders.
Run DB Atlas: New table, or create notes in the folder: each note is a table named after the file.
Define the columns as properties — a JSON object in single quotes:
---
table_description: Customer orders
col_id: '{"type":"int","pk":true,"increment":true}'
col_customer_id: '{"type":"int","notNull":true,"ref":"customers.id"}'
col_status: '{"type":"varchar(20)","notNull":true,"default":"pending"}'
---
## status
pending → paid → shipped → delivered, or cancelled.
Open the diagram with the ribbon icon or DB Atlas: Open diagram.
Issues and pull requests are welcome — especially improvements to the translations or new languages (see Translations in the developer guide; npm test checks that every language is complete).
MIT, see LICENSE. The bundled main.js includes elkjs (EPL-2.0), see THIRD_PARTY_NOTICES.md.