Choosing an ER Notation Your Team Can Read
For database architects who hand ER diagrams to developers, reviewers and stakeholders, and have to pick the notation the diagrams are drawn in.
On this page
You have one data model and three groups who will read it: the developers, a data-governance reviewer and a business sponsor. Pick the notation by who reads the diagram. Crow's foot suits developers and most technical readers, IDEF1X suits reviewers trained on that standard, and UML class diagrams suit software teams that already draw them. Barker suits Oracle-trained modelers, and Chen belongs in teaching and early workshops.
In DbSchema, the notation is a display setting: the same model shows in crow's foot, Barker or IDEF1X without being redrawn.
Choosing by who has to read the diagram
A reader who has to learn the symbols first spends the review on the symbols instead of on the model. Each reader gets something different from the notation they know:
| Reader | Notation | What the reader gets from it |
|---|---|---|
| Application developers | Crow's foot | One box per table, with the columns inside |
| Software team that models in UML | UML class diagram | The same boxes as in their code diagrams |
| Oracle-trained data modelers | Barker | The notation of Oracle's CASE tools |
| Reviewer trained on IDEF1X | IDEF1X | Identifying relationships and inherited keys |
| Business stakeholders | Crow's foot or Barker | Entities and lines, without key detail |
| Students, early workshops | Chen | Relationships as objects of their own |
The level of the model matters as much as the reader. A conceptual model records the data requirements without any technology, so that the business can discuss it. Draw that diagram with few columns. The physical model goes to the developers and the deployment review, with every key and column.
If one model goes to several of these readers, show each reader the model in that reader's notation. Never mix two notations in one diagram.
One relationship in five notations
The notations differ most on a relationship that carries data of its own. In this schema, a user belongs to a team with a role:
CREATE TABLE teams (
team_id INT PRIMARY KEY,
name VARCHAR(50) NOT NULL
);
CREATE TABLE users (
user_id INT PRIMARY KEY,
name VARCHAR(50) NOT NULL
);
CREATE TABLE team_members (
team_id INT NOT NULL,
user_id INT NOT NULL,
role VARCHAR(20) NOT NULL,
PRIMARY KEY (team_id, user_id),
FOREIGN KEY (team_id) REFERENCES teams (team_id),
FOREIGN KEY (user_id) REFERENCES users (user_id)
);
Here is the relationship between teams and users in each notation:
Chen draws the relationship as a diamond, and role hangs off the diamond as an oval. The other four notations draw team_members as a box of its own. Crow's foot and Barker draw how many at the line ends, IDEF1X marks the child end with a dot, and UML writes the counts as numbers.
For what each crow's foot and Chen symbol means, read Entity Relationship Diagram (ERD): Symbols, Examples, and How to Create One.
Chen notation and what it is good for
Peter Chen published the entity-relationship model in 1976, in ACM Transactions on Database Systems. In his notation, entities are rectangles, relationships are diamonds, and attributes are ovals.
The diamond sets Chen apart. A relationship is an object of its own, so it can have attributes, such as the role of a team member. In a workshop where the team still argues about what a membership holds, the diamond gives that question a place on the page.
Chen takes much more room on a real schema. Every attribute is a shape of its own, so a table with ten columns becomes eleven shapes. Wikipedia's ER model article says: "Attributes are often omitted as they can clutter up a diagram." Use Chen to teach the concepts, or to sketch the first entities. Draw the working model in a notation that lists the columns inside the box.
Crow's foot and Information Engineering
Crow's foot draws each table as a box with its columns inside, and puts everything about a relationship at the two ends of its line. In the figure, two bars at the teams end mean exactly one team. A circle and a crow's foot at the team_members end mean zero or many members. Wikipedia's ER model article traces the notation to a 1976 article by Gordon Everest.
In crow's foot, a relationship can't have attributes. So role goes in the team_members box, and a relational database also stores role in the team_members table. In a crow's foot diagram of a physical model, each box is a table and each line is a foreign key. A developer reads it as the schema.
DbSchema calls crow's foot Information Engineering. Its default, Information Engineering With Arrows, also draws an arrow at the parent end of each line.
Barker notation
Barker notation is a variant of crow's foot. Richard Barker, Ian Palmer, Harry Ellis and others developed it at the British consulting firm CACI around 1981, and Oracle's CASE modelling tools still use it.
Barker splits each line at its middle, and each half describes the entity at its own end. A solid half means that this entity must take part in the relationship, and a dashed half means that it may. Each team member must belong to a team, so the half next to team_members is solid. A team may have no members, so the half next to teams is dashed. As in crow's foot, the crow's foot at team_members means many.
Together, the halves and the crow's foot read as sentences: "Each team member must belong to one team. Each team may have one or more team members." A business reader can confirm or correct each sentence without learning a symbol. A bar across the line near team_members marks the relationship as part of the identifier of team_members.
IDEF1X and identifying relationships
IDEF1X puts one question first: does the child table, the one with the foreign key, take its identity from the parent? In an identifying relationship, the primary key of the child contains the key of the parent. IDEF1X draws an identifying relationship as a solid line and a non-identifying one as a dashed line. The child of an identifying relationship gets a box with rounded corners.
IDEF1X is a standard. NIST published it as FIPS PUB 184 in December 1993. Since September 2012, IDEF1X has been part of ISO/IEC/IEEE 31320-2:2012. A reviewer trained on the standard expects a data model to look like it.
Before you choose IDEF1X, list which foreign keys in your schema are identifying. To see both kinds, add a tasks table to the schema above. Its primary key is task_id, and its team_id refers to teams:
CREATE TABLE tasks (
task_id INT PRIMARY KEY,
title VARCHAR(100) NOT NULL,
team_id INT,
FOREIGN KEY (team_id) REFERENCES teams (team_id)
);
This query lists the foreign keys of a PostgreSQL database. A foreign key is identifying when all its columns belong to the child's primary key:
SELECT c.conrelid::regclass::text AS child_table,
c.confrelid::regclass::text AS parent_table,
CASE WHEN c.conkey <@ p.conkey THEN 'identifying'
ELSE 'non-identifying' END AS relationship
FROM pg_constraint c
LEFT JOIN pg_constraint p ON p.conrelid = c.conrelid AND p.contype = 'p'
WHERE c.contype = 'f'
ORDER BY 1, 2;
PostgreSQL 18 returns:
| child_table | parent_table | relationship |
|---|---|---|
| tasks | teams | non-identifying |
| team_members | teams | identifying |
| team_members | users | identifying |
Both foreign keys of team_members are identifying, so IDEF1X draws them as solid lines and rounds the corners of team_members. The line from tasks is dashed. FIPS 184 also puts a small diamond at the teams end of that line, because tasks.team_id allows NULL. A foreign key of a table without a primary key comes back as non-identifying.
The standard has rules of its own. In the IDEF1X views that show keys, every entity must have a primary key. If a child inherits the same parent key twice, each copy needs a role name, such as created_by and assigned_to for two keys to users. These rules fit formal logical design. They slow early conceptual work, while the entities are still under debate.
UML class diagrams
A software team may already read UML class diagrams, which the Object Management Group publishes. A class is a box with three parts: the name, the attributes and the operations. The counts are numbers at the line ends, such as 1 and 0..*. Class diagrams can also be used for data modeling. A developer who draws class diagrams of the code then reads the data model in the same style.
A table has no operations, so that part of each box stays empty. Don't use composition, the filled diamond, to mark an identifying relationship. In UML, composition means that the parts are deleted with the whole, which is a rule about objects rather than about keys.
Symbols that change meaning between notations
Some marks look the same in two notations and mean different things. A reader who knows only one of the two gives the other's marks the wrong meaning.
A dashed line is the clearest case. In Barker, a dashed half line means that the entity at that end may take part. In IDEF1X, a dashed line means a non-identifying relationship. In DbSchema's Information Engineering notations, a dashed line marks a foreign key whose child column allows NULL.
The bar across a line is the second case. In crow's foot, a bar means one. In Barker, a bar marks the relationship as part of the child's identifier.
Name the notation on every diagram that you hand over, in its title or in a one-line legend. A reader trained on another notation then knows which symbols to look up.
Settling on one notation for your model
Write the choice down where the team sees it, such as a note on the diagram or a line in the model's README.
In DbSchema, set the notation in View → Foreign Keys → Foreign Key Notation. The options are Information Engineering With Arrows (the default), Information Engineering, Barker and Idef1x. DbSchema's documentation says: "The notation changes only the diagram. The model and the database stay the same."
DbSchema has no Chen or UML option. For a team that reads UML, the Information Engineering boxes list the columns of each table, as a class box lists its attributes.
When different readers need different parts of the model, add a diagram for each. In DbSchema, one model holds as many diagrams as you need, and a table can show on several of them. Choose Diagram → New Diagram and include only the tables that one reader needs. A new diagram changes the model file, never the database.
For a workshop with business stakeholders, the model can live in DbSchema before any database exists. In a logical design, the entities and relations connect to no database. You set each relation to Identifying or Non-Identifying. You also set its cardinality to one of Zero or More, One or More, Zero or One, and One.
Download DbSchema, connect it to one of your own schemas, and switch the foreign key notation to see how each one reads at full size. Connecting, reverse-engineering and the interactive diagram are in the free Community Edition. Saving the model to a file needs DbSchema Pro, and a logical design drawn before the database exists needs DbSchema Architect.
Open your own schema and switch the notation
DbSchema reverse-engineers a live database into an interactive ER diagram, and the foreign-key notation is a View setting you can change while you read it. The free Community Edition covers connecting, reverse-engineering, interactive diagrams and the SQL editor, and DbSchema Architect adds the conceptual and logical model.