The modern database diagramming platform. Write DBML code, arrange visual table groups, manage team workspaces, and import/export SQL schemas instantly.
TableGroup Billing {
invoices
payments
}
Table invoices {
id uuid
amount numeric
}
Table payments {
id uuid
invoice_id uuid
}
Ref: payments.invoice_id > invoices.idYour DBML updates the canvas the moment you save.
Organize tables logically, collaborate with workspaces, and import/export legacy code in a single platform.
Maintain separate environments for personal draft drawings and shared team blueprints. Accept email workspace keys to join shared environments, coordinate updates in real-time, and securely store assets on a synced developer cloud.
Organize large database diagrams by partitioning related entity tables into custom Table Groups. Color-code containers to mark schema sub-modules like authentication, payments, inventory, or log analytics, keeping complex schemas structured.
Import legacy database dumps directly to generate visual designs in one click. Export finished designs into clean DDL scripts optimized for PostgreSQL, MySQL, SQL Server, and SQLite, or share diagram links with teammates.
CREATE TABLE users...Table users { ... }Whether you deploy to cloud databases or local servers, DB Nexus generates optimized schemas instantly. Switch target dialects and export clean DDL scripts with one click.
CREATE TABLE "invoices" (
"id" uuid PRIMARY KEY,
"amount" numeric
);
CREATE TABLE "payments" (
"id" uuid PRIMARY KEY,
"invoice_id" uuid
);
ALTER TABLE "payments"
ADD FOREIGN KEY ("invoice_id")
REFERENCES "invoices" ("id");A structured, developer-centric workflow to model, organize, sync, and export your database blueprints.
Type declarative DBML code in our high-speed editor, or import existing SQL DDL dump scripts (Postgres, MySQL, Oracle) to instantly generate visual table boxes.
Arrange your entity tables inside color-coded, named Table Groups. Partition catalog items, logs, billing, or user auth domains to keep diagrams readable.
Save diagrams to secure cloud Workspaces. Switch dynamically between personal drafts and shared team folders. Invite colleagues and accept keys to edit together.
Compile visual schemas back into optimized SQL scripts, or download vector SVG and PDF graphics directly to integrate into your documentation or github READMEs.