...
PhixFlow's relationship diagrams are simplified entity-relationship diagrams (ERD). An ERD is commonly used to show the relationships between database tables. If you are not familiar with ERDs for databases, the concepts are explained in this article: ER Diagram Tutorial in DBMS.
Key concepts | ||||
---|---|---|---|---|
Entity-Relationship Diagram | PhixFlow Relationship Diagram | Examples | ||
A database table represents a thing or entity. | A stream represents a thing or entity.
| Entities:
| ||
The column headers of a database table are the data attributes. | The stream attributes are the data attributes. | Employee attributes:
| ||
A stream must include one unique attribute. This is usually an identifier, so has ID or UID in the name. The unique attribute is the primary key. | Primary Keys
| |||
When the data from one stream's primary key also appears in a different stream, it is a foreign key. | Employee attributes:
Department attributes
| |||
Tables or attributes can have various relationships to each other | Attributes can have the following relationships
| Relationships
|
Relationships are usually expressed as an action (verb) that follows the left-right flow of the diagram. For example:
...