Relations

Relationship lines visualize and create FKs in the ERD. NeoSQL provides separate identifying and non-identifying relationship modes.

Create Relationship Lines

Select identifying or non-identifying relationship mode from the left toolbar, then select the parent table and child table in order. In relationship mode, connectable and non-connectable nodes are visually distinguished.

Note:

The parent table must have a PK. In an all-Schema ERD, you can create relationships with tables from another Schema in the same Database, but relationships cannot cross different Databases.

1

Select relationship mode

Select the non-identifying or identifying relationship icon.

2

Select the parent table

Select the referenced table first.

3

Select the child table

Select the table that will have FK columns and confirm the required column mapping.

Identifying and Non-Identifying Relationships

Both relationship types create FKs, but their meaning differs. Use identifying relationships when the parent key is part of the child's identifier, and non-identifying relationships when the child has an independent identifier while referencing the parent.

TypeIdentifyingNon-Identifying
IconIdentifying relationship icon Blue relationshipNon-identifying relationship icon Green relationship
MeaningThe parent is part of the child's identity.The child has an independent PK and references the parent.
ExampleOrder and order detailsMember and order
When to useWhen the child identity cannot exist without the parentWhen the child identity remains stable even if the parent changes

Creation Result

When you create a relationship line, FK information is added to the child table and can be reviewed in the Foreign Keys and Constraints areas of the detail panel. When a table that already has FKs is imported from the DB, relationship lines are rendered from imported key information.

Note:

System Schema tables and tables marked as deleted have restricted structural operations such as relationship creation, column paste, and deletion.