What is DbSchema?
DbSchema is a desktop application for working with databases. It draws your database as diagrams. You can change tables without writing SQL, run queries, and generate documentation. It works with many SQL and NoSQL databases, such as PostgreSQL, MySQL, SQL Server, Oracle and MongoDB.
The picture shows a small shop database: customers, orders, products and the tables around them. Each box is a table. Each line between two tables is a foreign key. A foreign key links a column of one table to a row of another table, such as an order to its customer.
What you do with DbSchema
- Explore an existing database. DbSchema reads the tables of a database and draws them as diagrams.
- Design a new database. Draw new tables in DbSchema first, then create them in the database.
- Change a database safely. Compare your design with the database, and read the SQL before it runs.
- Query and edit data. Write SQL in the SQL Editor, or use the Data Explorer to browse rows and follow the links between them.
- Document a database. Create an HTML5 or PDF document with the diagrams and the comments of every table.
- Work as a team. Keep the design in Git, next to your application code. Git is a tool that tracks the changes to files.
- Work with AI. Use the built-in AI Assistant, or connect your own AI agent, such as Claude Code or Cursor, through the MCP server.
Schema, model and offline
The DbSchema documentation uses these three words on almost every page.
Schema. The schema is the structure of a database: its tables, columns, keys and the other objects. The rows of data are not part of the schema.
Model. DbSchema keeps a copy of the schema in its own file.
This copy is the model, also called the design.
The model also holds the diagrams that you draw.
It holds no data rows.
You save it as a .dbs file.
Offline. The model is not the database. You can work with the model with or without a database connection:
- Connected: you change a table in a dialog and press OK. DbSchema runs the change in the database at once.
- Offline: you change the model without a connection. Later, DbSchema compares the model with the database. It shows the SQL that brings the database up to date, and runs it when you agree.
- From the file alone: you open a saved model without connecting to a database, only to read it. For example, you read the diagrams on a train.
The .dbs file is a text file in XML format.
So Git can show what changed between two versions of your design.
See Git Collaboration and Schema Synchronization.
For table, primary key, foreign key and the other words of database design, see Database Terms.
Where to start
- Install DbSchema on Windows, macOS or Linux.
- Start it. The Welcome Screen offers four ways to begin: connect to a database, design without a database, create a design from an SQL or CSV file, or open a sample project.
- Follow the DbSchema Tutorial: connect, add a column, run a query and generate documentation. If you have no database, follow it on a sample project. The sample project includes a small database.
- When you look for a command, use Menus and Layout.
Which edition you need
DbSchema has three editions. A new installation starts with the Pro Trial. For 15 days, you can use every feature, including the Architect features. After the trial ends, DbSchema continues as the free Community Edition, until you register a license.
Nothing that you created is deleted when the trial ends. Your model files stay on your disk, but you need Pro to open them again.
| Edition | What it covers |
|---|---|
| Community (free) | Connecting, diagrams, the SQL Editor, and the AI Assistant through DbSchema AI |
| Pro | Everything in Community, plus the features listed below |
| Architect | Everything in Pro, plus logical design and flow diagrams drawn from SQL code |
Pro adds:
- saving and opening the model file, and Git;
- schema synchronization and model validation;
- HTML5 and PDF documentation;
- the Query Builder, the Data Explorer, the Data Generator and the Data Importer;
- the AI Assistant with the key of your own AI provider, or with Ollama on your computer;
- the MCP server, for your own AI agent.
The Licensing page of the Welcome Screen shows which edition you are using now. For prices and license types, see Licensing.