A project is a folder on disk. It holds one or more designs, and each design is one database schema.
- New project: on the Projects page choose New project. The row shows where it will be saved; Choose another folder… puts this one project somewhere else.
- Open… adds a project that already exists in another folder, for example one copied from a colleague.
- The ⋯ menu on a project renames it, moves it to another folder or deletes it. Renaming also renames the folder when the folder was named after the project.
- Inside a project, New design asks for a name and a database engine.
- Click a column header to sort the designs. A third click returns to your own order, which you set by dragging rows up and down, here or in the navigation pane while a design is open.
- Add table (or
T) places a table in free space near the middle of the view. Type the table name, press Enter, then add columns: name, Enter, type, Enter. Done or Esc finishes. - Click a table to see it in the inspector on the right. There you can rename it, add a comment, flip the PK / nullable / unique flags and manage indexes.
- Click a column for its own inspector: type, default, comment, flags, and arrows to move it up or down.
- Hover a column and drag the round handle at its right edge onto a column in another table. The tip tells you whether the types match.
- Click a line to select it. The inspector shows both ends as dropdowns, the ON DELETE and ON UPDATE actions, and the type.
- Types: one to many is the default (one customer, many orders). One to one makes the foreign key unique. Many to many replaces the relationship with a junction table referencing both sides. A relationship from a table to itself (an employee's manager) is drawn the same way: drag from one column to another column of the same table.
- To reconnect, select the line and drag either round handle at its ends onto a different column.
- The Types button defines enum types and their values. They appear in the type picker as Enums in this design.
- The type picker lists the built-in types of the design's engine. You can also type any type by hand.
- Drag the canvas to pan; Ctrl+scroll or pinch to zoom;
Shift+1fits everything. - The minimap in the corner shows the whole schema; click or drag in it to jump.
Ctrl+Ksearches tables and columns.Nadds a note where the pointer is, andTa table near it. Hover a note to change its color from the top strip. Drag it by its top strip; hover to delete it.
When something would make the exported SQL wrong, the status bar shows a count of issues. Click it for the list; choosing an entry takes you to the table, column or relationship.
The design name in the toolbar opens the design menu, where Change engine switches the target database. Column types and defaults are converted where the new engine has an equivalent (for example uuid becomes uniqueidentifier on SQL Server). Types with no equivalent, such as your own enums, are left as they are. Changing engine clears that design's undo history.
The File menu in the toolbar has:
- Import SQL… — paste
CREATE TABLEstatements or open a.sqlfile. Tables, keys, indexes, foreign keys and enums are added as one step you can undo. Statements Joinery does not understand are skipped and counted. - Export SQL… — shows the script. The dropdown at the top generates it for another engine without changing the design.
- Export PNG / SVG image… — the whole diagram in the current theme.
| Key | What it does |
|---|---|
F11 |
Full screen |
Ctrl+Shift+/ |
Hide the whole interface, leaving only the canvas. Press again to bring back what was showing. (Ctrl+\ does the same.) |
Ctrl+B |
Navigation pane |
Ctrl+Shift+T |
Toolbar |
Ctrl+. |
Inspector |
Ctrl+Shift+S |
Status bar |
M |
Minimap |
Ctrl+, |
Settings |
Each part can be shown or hidden on its own, also while the rest is hidden, and from Settings → Show.
The inspector is the panel on the right that shows the selected table, column or relationship. It appears when you select something. Its collapse button (or Ctrl+.) puts it away and leaves a slim rail to bring it back. While the whole interface is hidden, it still comes up for each new selection.
Settings (bottom of the navigation pane, or Ctrl+,) covers the whole app: the theme, which parts of the interface are shown, whether pinch and Ctrl+scroll zoom the canvas, the engine preselected for new designs, and the default projects folder.
Project settings (the gear on a project's page, or the ⋯ menu on the Projects page) belong to one project and are saved in its file: its name, the engine for its new designs, the order of its designs, and its folder.