[{"data":1,"prerenderedAt":84},["ShallowReactive",2],{"seo-verification":3,"marketplace-app-en-drawdb":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"slug":7,"slugs":8,"categorySlugs":9,"name":13,"description":14,"phase":15,"unavailableReason":16,"docsUrl":17,"logo":16,"github":16,"tagline":18,"longDescription":19,"features":20,"useCases":28,"steps":38,"faq":51,"specs":67,"compatibleOs":75,"relatedApps":76,"relatedPosts":77,"category":79},"drawdb",{"fr":7,"en":7,"ar":7},{"fr":10,"en":11,"ar":12},"developpement","development","التطوير","DrawDB","Open-source database schema editor self-hosted on your VPS — design your tables visually and export SQL DDL for MySQL, PostgreSQL, SQLite, MariaDB or SQL Server.",1,null,"https:\u002F\u002Fservorbit.com\u002Fblog\u002Fdrawdb-on-vps-open-source-erd-editor-for-sql-schema-design","Visual database schema designer — draw tables, define FK relationships and export SQL in seconds.","DrawDB is an open-source entity-relationship diagram (ERD) editor (AGPL-3.0, 39 k+ stars) that runs as a lightweight Nginx container on your VPS. It gives developers and database architects a fast, browser-based canvas to model table structures, define foreign-key relationships and instantly generate SQL DDL scripts for five major database engines.\n\nEverything happens in the browser: table state is stored in localStorage, so the server only serves static files. The Docker image weighs about 30 MB and idles on a few megabytes of RAM — you can run DrawDB alongside other apps on any existing VPS without noticeable overhead.\n\nWith DrawDB, a senior developer can sketch a new schema in minutes instead of writing raw CREATE TABLE statements. A team can import an existing SQL dump and instantly visualise the entity graph for documentation or onboarding. Because the diagram JSON is portable, you can commit it to Git, diff schema changes between versions and regenerate the SQL at any time.\n\nDeploying on ServOrbit takes a single click: Docker pulls the image, Nginx starts and your team has a shared, private schema editor — no SaaS account, no usage limits, no data leaving your infrastructure.",[21,22,23,24,25,26,27],"Visual table editor — add tables with columns, types, constraints (PK, FK, NOT NULL, UNIQUE, DEFAULT) and indexes using a drag-and-drop canvas.","Multi-dialect SQL export — generate DDL for MySQL, PostgreSQL, SQLite, MariaDB and SQL Server from the same diagram in one click.","SQL import — paste existing CREATE TABLE statements and DrawDB reconstructs the full ERD instantly.","FK relationship drawing — connect columns with a line to create FOREIGN KEY constraints; DrawDB draws cardinality arrows and manages ON DELETE \u002F ON UPDATE rules.","Export to PNG, SVG or JSON — save your diagram as an image for documentation or as JSON to commit to Git and restore later.","No server-side database — state lives in browser localStorage; the Nginx container serves only static files, no backend processing.","AGPL-3.0 — open source, no telemetry, no account required.",[29,32,35],{"title":30,"body":31},"Schema design before first migration","Before writing a single Laravel or Django migration, model your entities in DrawDB. You get a visual diagram to share with your team and a DDL SQL script generated instantly — ready to paste into your migration file. DrawDB validates foreign-key consistency as you draw, catching circular dependencies and orphan references before they reach your database.",{"title":33,"body":34},"Documenting an existing database","Paste the CREATE TABLE statements from your existing database into DrawDB: it reconstructs the entity graph in seconds. Export to PNG and embed the image in your wiki or README. When the schema evolves, update the JSON and regenerate — documentation stays in sync with your code with no manual diagram maintenance.",{"title":36,"body":37},"Schema review and onboarding for junior developers","Share your self-hosted DrawDB instance with junior team members. They visualise table relationships, understand referential integrity constraints and submit schema proposals as JSON files that seniors can compare and review. It replaces whiteboard photos and ad-hoc ERD screenshots with a versioned, interactive artefact.",[39,42,45,48],{"title":40,"body":41},"Order a ServOrbit VPS","A 1 vCPU \u002F 512 MB RAM plan on Ubuntu 24.04 is sufficient. DrawDB is a static web application served by Nginx: it consumes a few megabytes at idle and requires no server-side database. You can co-locate it alongside other containers on any existing 1 GB VPS without noticeable overhead.",{"title":43,"body":44},"One-click deploy from the marketplace","Open your ServOrbit control panel, go to Marketplace → Development → DrawDB, and click Deploy. Docker pulls `ghcr.io\u002Fdrawdb-io\u002Fdrawdb:latest` and starts Nginx. The interface is reachable in under 10 seconds — no wizard, no configuration file.",{"title":46,"body":47},"Create your first ERD","The interface opens on an empty canvas. Click Add table to create your first entity, name the table and add columns with their types, nullability and default values. Set the PRIMARY KEY column with the key icon. Repeat for each entity in your schema. Use the toolbar grid and snap options to keep the diagram tidy.",{"title":49,"body":50},"Define relationships and export SQL","Activate the Relationship tool in the toolbar and draw a line between two columns to create a FOREIGN KEY. DrawDB shows a dialog to configure ON DELETE and ON UPDATE behaviour. When your schema is complete, click Export → SQL, choose your target dialect (MySQL, PostgreSQL, SQLite, MariaDB or SQL Server) and copy the generated DDL into your migration file or database console.",[52,55,58,61,64],{"q":53,"a":54},"What is DrawDB?","DrawDB is an open-source entity-relationship diagram (ERD) editor (AGPL-3.0, 39 k+ stars). It lets you design database tables visually, define foreign-key relationships and export SQL DDL for MySQL, PostgreSQL, SQLite, MariaDB and SQL Server — entirely in the browser, with no installation or account required.",{"q":56,"a":57},"Does DrawDB store my data on the server?","No. DrawDB keeps diagram state in your browser's localStorage. The Nginx container only serves static HTML\u002FCSS\u002FJavaScript files — your schema never reaches the server. To persist across browsers or devices, export the diagram JSON and commit it to Git or store it on your VPS.",{"q":59,"a":60},"Which SQL dialects can DrawDB generate?","DrawDB generates DDL for MySQL, PostgreSQL, SQLite, MariaDB and Microsoft SQL Server. Select the dialect in Export → SQL before copying the script. The output includes CREATE TABLE statements with column types, NOT NULL, PRIMARY KEY, FOREIGN KEY and DEFAULT constraints.",{"q":62,"a":63},"Can I import an existing SQL schema?","Yes. Paste your CREATE TABLE statements into DrawDB's SQL import dialog and it reconstructs the entity graph automatically — including detected foreign-key relationships. This makes it easy to document a legacy database or visualise a schema you inherited.",{"q":65,"a":66},"Does DrawDB require a domain name?","No. DrawDB works without a domain: the interface is accessible directly on port 3060. For remote access without exposing that port, open an SSH tunnel (`ssh -L 3060:127.0.0.1:3060 root@\u003Cyour-vps-ip>`) and browse to `http:\u002F\u002Flocalhost:3060`.",{"ram":68,"cpu":69,"stack":70,"port":74},"512 MB","1 vCPU",[71,72,73],"Docker","Nginx","React","3060",[],[],[78],"heberger-drawdb-vps",{"key":10,"slug":11,"name":80,"objective":81,"icon":82,"color":83},"Development","Kick off a software project quickly.","dev","text-warning bg-warning\u002F10",1787581039040]