Latest ERD Manual
ERDs or Entity-Relationship Diagrams are a pictorial display of the tables (entities) within the data base structure.
The modules in the application are comprised of many different tables, such as the ‘Identity’ or ‘Assignment’. The tables within the system interact with one another and share information. Through these associations, ‘relationships’ form and tables can become dependant on others. The Entity Relationship Diagrams (ERDs) in this manual will explain the interaction that tables in the application have with one another.
Tables#
Within an ERD, a table is represented as a box containing information about the table.Most boxes found in the ERD’s however, provide the user with detailed information about the table.
Fields#
- Primary key identified with the # symbol
- Mandatory item identified with the * symbol
- Optional item identified with the O symbol
Shaded Tables#
Sometimes in an ERD, a table will appear with a shaded background. The shaded background indicates that the table is date sensitive. These tables will always have Effective (date) and Expiry (date) columns, although not shown on the ERD.The shading will appear grey on a black and white printout; however, it may appear yellow if the ERD is brought up on a computer.
Bold Box#
A table may also appear on an ERD with a bold border. This border indicates that the information in this table is provided as part of the seed data.Dotted Line Within a Box#
Occasionally, an ERD will display a box that will hold minimal information and contain a dotted lineThis line indicates that the table is explained in detail in another ERD within the same module.
Italicized Text Within a Box#
The ERD’s also display boxes that hold only the table name and alias in italicized text. This indicates that the table is explained in detail in a different module's ERD.Lines #
Solid Line Vs. Broken Line The connecting lines between tables will be either dotted or a combination of solid and dotted lines. When reading a connecting line, you will notice many instances where a portion of the line is solid and a portion is dotted.The solid line indicates that the Parent table (EID) is MANDATORY for the Dependant table (ECT). This means that the Parent table must be filled BEFORE the Dependant table can be completed. A broken line indicates that the Dependant table (ECT) is OPTIONAL for the Parent table (EID). This means that the Parent table can be completed WITHOUT the Dependant table having been filled.
If the connecting line between the tables is entirely dotted, the tables are optional for each other. This means that either table may be filled before the other.
Written Description#
In addition to the connecting lines, there are also written descriptions of the relationships between the tables. These descriptions will provide a more in-depth explanation of the relationship.- The wording running along the TOP part of the line describes the relationship of the left hand table to the right hand table. (e.g. ‘Identity is known by the Alias’)
- The wording running along the BOTTOM part of the line describes the relationship of the right hand table to the left hand table. (e.g. ‘Alias is another name for the Identity’)
The individual defined in EID is ‘KNOWN BY’ the alias in EAL. The alias defined in EAL is ‘ANOTHER NAME FOR’ the individual in EID.
Parent / Dependent Relationship#
Another feature of the connecting lines is the end connections, circled in the diagram below. Reading from left to right, we can see that the connection is a ‘One to Many’ relationship. In this instance, the line starts as a single line at the Entity table and ends in many lines at the Unit table. This means that the entity may have many units associated with it, however, the unit cannot belong to more than one entity. Another way this can be expressed is that the Entity table is the PARENT of the Unit table and the Unit table is the DEPENDANT of the Entity table.There can be a situation where two tables are parents to each other, which will be explained further on in this manual.
Two Lines#
Occasionally the tables will have two lines between them. There are two different scenarios for this type of relationshipsParent/Dependant Relationship In the first scenario, one table is the parent with two lines moving towards a dependant table.
- PICTURE ***
The ‘One to Many’ nature of the lines originating from the State/Province table indicates that it is the PARENT to the Contact table. This means that while the state/province information can be applied to many contacts, each contact record, however, can use this data only twice, once for location and once for the mailing address.
Parent/Parent Relationship The second scenario for a two-line relationship between tables is when tables are parents to each other.
- PICTURE ***
Bold Line#
A bold line between two tables indicates that if you delete the record in the parent table, the associated record in the dependant table will be deleted. This is know as a Cascade Delete.- PICTURE ***
Curved Line#
A final line format is the curved line that originates and ends at the same table. This represents a self-referencing foreign key.- PICTURE ***
Suppose that your entity has sub-entities:
Parent Company | = ABC Inc. |
Subsidiaries | = D Corp. |
= E Corp. | |
= F Corp. |
ID | Entity | Foreign Key DEN_ID | |
---|---|---|---|
Parent | 1 | ABC Inc. | Null |
Dependant | 10 | D Corp | 1 |
13 | E Corp | 1 | |
27 | F Corp | 1 |
Exclusive Join#
In the diagram below, the Contact table is connected to both the User and Identity tables. Highlighted in the diagram below are two circular symbols joined by a line. This indicates that there is an Exclusive Join with the Contact table- PICTURE ***
- PICTURE ***
Diamond Symbol#
On many lines there will be a diamond symbol. This diamond means the parent table cannot be changed on the dependant record.- PICTURE ***