Skip to content

Draw tables, columns and relationships ​

Draw two tables in an empty diagram and connect them with a relationship.

  1. New diagram — In File › New diagram (Ctrl+N), choose the database type.

  2. Place a table — Pick Table (T) in the palette on the left and click the canvas. The table is created and its name field opens right away. Type a name and press Enter. To rename it later, select the table and press F2.

  3. Add columns — Double-click the table (or press Enter) to open the table properties dialog, and add columns. As you type a physical name, candidates from the word dictionary and from other tables' columns appear above the field. Pick one with ↓ and accept it with Enter to fill in the name, type and length at once.

    Table properties dialog — the column list and suggestions while typing
    Table properties dialog — the column list and suggestions while typing
  4. Connect a relationship — Pick 1:N relationship (R) in the palette and drag from the parent table to the child table. Foreign key (FK) columns that follow the parent's primary key (PK) are created in the child automatically.

    After connecting a relationship, a foreign key column appears in the child table
    After connecting a relationship, a foreign key column appears in the child table
  5. Undo — Every edit can be undone with Ctrl+Z and redone with Ctrl+Y.

Good to know ​

  • Physical and logical names — The physical name is the name the database uses (MEMBER_ID); the logical name is the name people read (Member ID). The View menu chooses which one the canvas shows.
  • Word dictionary — Columns point to words in the word dictionary, so columns that share a word change together. Drag a word from the outline on the right onto a table on the canvas to add it as a column.
  • Design check — Problems such as a missing primary key or a reserved word used as a name are reported while you draw, with a mark on the table header and in the problem list below. Saving and exporting are never blocked.

More → Canvas and palette · Properties dialogs · Edit · Design check and suggestions

Relio is a separate tool, not affiliated with ERMaster.