Properties

Every field the Properties panel shows for a table, column, relationship, enum, group or note in an ER diagram.

The Properties panel shows every field the diagram stores for what you've selected. This page lists the fields for each element of an ER diagram. For how the panel works in every kind, see The Properties panel.

To open it, choose Properties in More (⋯) on the selection bar. Or press ⌥ ⌘ P (Alt Ctrl P on Windows and Linux).

The diagram

With nothing selected, the panel shows the diagram's own fields.

FieldWhat it holds
TitleThe diagram's name.
DatabaseNot set, PostgreSQL, MySQL, SQL Server, SQLite or Oracle. It sets the types the assistant writes.
NoteWhat the schema is for.

Below them, the panel counts the tables, relationships and enums, and lists the tables.

A table

FieldWhat it holds
NameThe table's name.
ModelThe entry in your team's Model this table matches.
SchemaThe database schema the table is in. Leave it empty for the default one.
AliasA short name the code can use for the table in relationships, as in Table orders as o.
GroupThe group the table is in. It shows once the diagram has groups.
ColumnsA grid of each column's Name, Type, Key and Null, with Add column below it.
IndexesThe table's indexes, apart from its primary key. Open one to change its Columns, Unique, Name, Type and Note, or to remove it. Add index adds one.
ChecksRules every row must pass, such as end_date > start_date. Open one to change its Expression and Name, or to remove it. Add check adds one.
NoteWhat one row is, such as "One per order".
ColourThe header's colour.
RelationshipsThe table's relationships. Select one to go to it.

When several columns are ticked under Key, they make a composite key together. A table that takes columns from a partial, or holds sample rows, also lists those.

An index's Type is Default, btree, hash, gin, gist or brin.

A column

FieldWhat it holds
NameThe column's name.
TypeSuch as integer, varchar(255), timestamp, or an enum's name.
Primary key, Unique, Not null, Auto-incrementTick to turn each on. A key column is always unique and not null.
DefaultThe value a new row gets when none is given.
CheckA rule every value must pass, such as price >= 0.
RelationshipsThe column's relationships.
NoteWhat the column holds, when its name doesn't say.

Default takes a value as the code writes it: 0, true, 'draft' in single quotes, or an expression in backticks, such as `now()`.

A column that comes from a partial shows its fields read only. Change it in the code, where the partial is written.

A relationship

FieldWhat it holds
From and ToThe two ends. Select one to go to that column.
ColumnsThe pairs of columns it joins. Add column pair relates a composite key.
CardinalityMany to one, One to one or Many to many.
ReferenceRequired or Optional, with a sentence saying what that means.
On delete and On updateWhat the database does to these rows when the row they point at is deleted, or its key changes.
NameThe foreign key's name in SQL.
ColourThe line's colour.
Flip directionSwaps which side holds the reference.

Setting Reference to Required makes the referencing columns Not null. A many-to-many relationship has no Reference. Instead, a sentence suggests a junction table.

On delete and On update take Default, cascade, restrict, set null, set default or no action.

An enum

FieldWhat it holds
NameThe enum's name.
SchemaThe database schema it's in.
ValuesA grid of each value and its Note, which says what the value means. Add value adds one, and each value has a button to remove it.
ColourThe header's colour.
Used byThe columns of its type.

A group

FieldWhat it holds
NameThe group's name.
TablesThe tables in it. To put a table in a group, pick the group in the table's properties.
NoteWhat these tables are for.
ColourThe frame's colour.

A note

FieldWhat it holds
TextWhat a reader should know.
NameThe name the code gives the note.
ColourThe note's colour.

Each element shows its id at the bottom, with a Copy id button.

On this page