Databases
The databases of an organization: create, schemas, the packages that use them, archive, trash and delete forever.
Databases are one part of the architecture you describe in Architure, next to the tech stack, the repositories and their packages, skills and environment variables. Each database belongs to the organization: it has a dialect (PostgreSQL or MySQL), holds one or more schemas with their tables and relationships, and is linked to the packages that use it or available to all packages. Agents read it through the MCP server and can write its schema. See Concepts for how the pieces fit together.
The Databases page
Databases, in the organization's sidebar, shows the organization's databases as cards in three tabs, each with its count:
- Databases: the databases in use. A card opens the database's canvas.
- Archived: databases hidden from the list. They keep everything and do not open until you restore them.
- Trash: databases on their way out. They can be restored or deleted for good.
Each card shows the database's name, its dialect, the start of its description, the packages that use it, its number of schemas and when it last changed (on the other tabs, when it was archived or moved to the trash). The menu of a card holds the actions below.
Above the tabs, a row of tiles sums up the databases in use: how many there are, with the total of their schemas and how many are archived or in the trash; how many use PostgreSQL and how many MySQL, each with its share; and the last change, with the name of the database it touched.
Agents list only the databases of the Databases tab.
Create a database
Choose New database, give it a Name (up to 200 characters) and pick its Database, PostgreSQL or MySQL, then Create database. The new database is empty and its canvas opens: draw the first table, or import a schema (see below).
The dialect decides the data types the canvas offers, the issues it checks and the SQL it exports. You can change it later in the database's details on the canvas.
Schemas
A database holds one or more schemas, such as public and audit in PostgreSQL. A new database starts with one schema, public. Each card says how many schemas its database has.
On the canvas, the sidebar lists every schema with its tables, and New schema adds one. An import reuses a schema of the same name, and in MySQL the imported database becomes public. See Canvas for adding, hiding, renaming and deleting schemas.
Packages
A database is either used by chosen packages of your repositories or Available to all packages, the default. An agent that names the package it works in (a repository and a folder) gets the databases that package uses.
Choose Packages… in a card's menu, or the Packages button in the canvas's top bar, to set it. The dialog's Available to all packages switch covers every package of every repository, including the ones imported later. Turn it off to tick packages, grouped by repository, then Save. Without any repository yet, the dialog links to the Repositories page to import one.
Each card shows the result as badges: All packages, the names of the linked packages, or No package when it is linked to none. A database linked to no package and not available to all packages is used by no package. The Packages button shows all or the number of linked packages.
Rename, archive, trash and delete forever
The menu of a card in Databases offers:
- Open: the canvas.
- Rename: a new name, then Save. The name can also be changed in the database's details on the canvas.
- Packages…: see above.
- Archive: the database moves to Archived. Its schemas, tables, descriptions and history stay as they are.
- Move to trash: the database moves to Trash.
An archived database offers Restore (back to Databases) and Move to trash. A database in the trash offers Restore and Delete forever, which asks first: its schemas, tables, columns, descriptions and change history are deleted, and this cannot be undone.
On the canvas
Each database opens on its canvas. Next to Import, Export and Connect an agent, its top bar holds two buttons for the database itself:
- Connections, with its count: the database's connection URLs, one per scope, tested from Architure's servers. From there, Sync… pulls the live schemas into the design after a preview. See Database connections and Schema sync. Viewers do not see this button.
- Packages, with
allor the number of linked packages: the same dialog as Packages… on the card.
Bring an existing database in
There are two ways to start from a database you already have:
- Without an account, on
https://app.architure.dev/new: paste your schema and the diagram opens in your browser as a draft. Save creates your account and organization, then the draft becomes a database of the organization. - Into a saved database: Import in the canvas's top bar adds the imported schemas to it. Create an empty database first to import into a new one.
Both read the catalog query's result or a schema-only dump. See Import. Once a database has a connection, the schema sync brings later live changes in without importing again.
Who can change databases
Owners, admins and members create, rename, link, archive, restore, trash and delete databases forever, and edit them on the canvas. Viewers open and export them; the page tells them their role cannot change databases. API keys and OAuth tokens with write access edit databases through MCP, but never create, archive or delete one.
Every change needs an active trial or subscription. After a trial that ended without payment, the organization is read-only: New database and the card actions are disabled, and the page says so, while databases still open, search and export. See Billing and trial.
Repositories
Import your GitHub repositories; Architure detects their packages, so databases, environment variables and skills link to the code that uses them, and agents get what their package uses.
Import
Bring an existing PostgreSQL or MySQL database into Architure with the catalog query or a schema-only dump.