Bright Web Data Modeller started as a simple question: why do database schemas get less review than the code that uses them? A pull request for a React component gets three comments about naming. A migration that adds a nullable column to the busiest table in production often gets a thumbs up. This is the first version of our answer, and a tour of what's in it and how the pieces fit together.
A diagram everyone edits at once
A diagram is a canvas of tables, columns and the foreign keys between them. Everyone who opens it sees the same thing, live: each person's cursor, which tables they have selected, and a table moving while someone drags it. The avatars in the header show who's here, and hovering one tells you what that person is doing ("Editing users.email type", "Moving orders").
If someone is typing in a field in the Inspector, that field is locked for everyone else until they leave it. You see a coloured ring and their name on it, and the field is disabled, so two people can't overwrite each other's column name.
Building the schema itself is direct:
- Right-click empty canvas and pick "Add table here".
- Drag from one column to another to add a foreign key.
- Select tables and press
Ctrl G(⌘ Gon a Mac) to put them in a group, orCtrl Shift Gto ungroup them. Groups draw as tinted boxes behind their tables, and you can pick each group's colour. - Press Arrange to lay everything out from its relationships, left to right or top to bottom. Grouped tables stay together.
Tables can also carry indexes (including unique and multi-column ones), check constraints, and composite foreign keys. Enums and views have their own panels under Objects. Undo and redo cover structural changes too, so deleting a table by accident is one click to reverse.
Branches and merge requests
Every diagram starts with a main branch. In the Branches tab, Fork makes a copy of the branch you're looking at, and you edit that copy without touching anyone else's work. Each branch shows which branch it was forked from.
Editing rights follow branches. The diagram's owner and maintainers can edit any branch. An editor can edit the branches they created, and nothing else. Anyone who can manage a branch can Lock it, which makes it read-only for everyone until it's unlocked.
Here's how a change usually goes:
- Fork
mainintoadd-teams. - Add
teamsandteam_members, and drawteam_members.team_idtoteams.id. - Open "⛙ Merge / review" in the Branches tab and pick
add-teamsas the source andmainas the target. - The review lists every added, changed or removed table, column and relationship, grouped by table, each with its own checkbox. Everything starts ticked. Untick what you disagree with.
- The right half shows the result as a canvas, recomputed on every tick, with removed items struck through rather than vanishing.
- The Migration SQL tab shows the Up and Down SQL for exactly the ticked changes, for PostgreSQL, MySQL or SQLite. Copy it, download it, or Commit to GitHub.
If you can edit main, the footer offers "Apply N changes". If you can't, the review tells you the branch is protected, and "Save as merge request" turns it into a merge request instead. Merge requests live under Branches → Merge requests, with a description and a comment thread. Only someone who can edit the target branch can merge one.
Applying matches tables and columns by name and updates them in place, so positions and comments on the target branch stay where they were.
"⇄ Compare branches" shows two branches side by side, read-only, with additions, removals and changes highlighted.
Snapshots and history
Under Insights → Versions, "Save snapshot" records a branch as it is now, under a name you choose. "Review & restore" doesn't wipe the branch and paste the old one back. It opens the same review screen as a merge, with the snapshot as the source, so you see every change the restore would make and can untick some.
Insights → History lists who changed what and when (on the Team plan and above). Insights → Health checks the schema as you edit it: tables with no primary key, a nullable primary key column, duplicate table or column names, a foreign key whose type doesn't match the column it points at, a foreign key to a column that isn't unique, an index that names a column that no longer exists, an empty check constraint, and tables with no relationships at all.
Comments on the canvas
Turn on comment mode from the canvas toolbar and click anywhere to drop a comment, or right-click and pick "Add comment here". A pin marks the spot. Threads take replies and emoji reactions, and Resolve greys the pin out once the question is answered. You can drag your own pins somewhere better.
Viewers can comment too. A share link can give someone viewer access, so a reviewer who should read and question the schema, but not edit it, has exactly that.
Getting a schema in and out
You don't have to start from a blank canvas. New diagram offers templates: SaaS starter, Blog / CMS and E-commerce, or Blank.
To bring an existing schema in, use Import SQL and paste CREATE TABLE statements from PostgreSQL or MySQL. The parser takes inline PRIMARY KEY, NOT NULL, UNIQUE, DEFAULT and REFERENCES, table-level keys, and ALTER TABLE ... ADD FOREIGN KEY. Something like this comes in as two tables and a relationship, laid out so related tables sit together:
CREATE TABLE authors (
id serial PRIMARY KEY,
email varchar(255) NOT NULL UNIQUE
);
CREATE TABLE posts (
id serial PRIMARY KEY,
author_id integer NOT NULL REFERENCES authors (id),
title text NOT NULL,
published_at timestamptz
);
Import DBML does the same for DBML from dbdiagram.io. On Pro and above, Import DB connects to a live PostgreSQL or MySQL database with a connection string, reads its tables, columns, keys and foreign keys, and lays them out. Its "Review & sync" button reads the database again later and shows the difference as a review instead of overwriting the diagram. The connection is used for that read and isn't stored.
Export schema writes:
- SQL DDL for PostgreSQL, MySQL or SQLite.
- Mock
INSERTdata for any of the three, 1 to 100 rows per table (5 by default). It's generated from a fixed seed, so the same diagram gives the same rows each time. - Prisma, Drizzle (pg) or SQLAlchemy models.
- DBML.
The canvas toolbar also saves the diagram as a PNG or SVG.
An assistant that proposes
On Pro and above, the Assistant tab is a chat about the diagram you have open. Ask a question ("which tables have no index on their foreign keys?") and it answers in the chat. Describe a change ("add teams, with members and invitations") and the reply comes with a "Review changes →" button.
That button opens the same review screen as a merge, with the assistant's proposal as the source and your branch as the target. Nothing lands on your diagram until you've ticked what you want and applied it. Messages are screened by a moderation check first. Each workspace gets a monthly allowance of requests (300 on Pro, 1,500 on Team), and the tab shows how many are left this month.
The command palette (Ctrl K, or ⌘ K on a Mac) finds any table by name, jumps to it on the canvas, and runs the common actions: Arrange tables, Import SQL…, Import DBML…, Export schema…, Share… and the rest.
That's the start. We'll post here as more of it ships.