This page is for....TODO
Overview
TODO
Properties
For information about the properties toolbar, and about the sections Parent Details, Analysis Models, Description and Audit Summary, see Common Properties. We recommend you always add a Description that explains the purpose of the item you are creating. For a full list of all the PhixFlow property tabs and windows, see Properties, Windows, Menus and Toolbars.
Basic Settings
Field | Description |
---|---|
Name | Enter the name for the entity-relationship diagram. When yo press Return or save a new properties tab, PhixFlow opens an empty diagram in the workspace on the left. |
Drawing Entity-Relationship Diagrams
To create an ERD, in the application repository, right-click ERD and select Add New. PhixFlow opens the properties for diagram, where you can add the name and a description for it. When you press Return or save a new properties tab, PhixFlow opens an empty diagram in the workspace on the left.
Adding Entities
To open an existing ERD:
- either, in the Repository, right-click the name and select Display.
- or, in the properties toolbar, click the ERD icon (TODO add).
Entities are represented by streams and their attributes.
To add an existing stream, from the repository, drag an existing stream into the diagram. PhixFlow adds the stream and all of its attributes.
To add a new stream.
- from the toolbar, drag the stream icon (TODO add) into the diagram.
- Enter a name for the new stream and click . PhixFlow opens a new Stream properties tab.
- To add attributes to an entity/stream, in the stream properties → Attributes section toolbar, click Add New.
- In the new attribute properties, enter details for the Stream Attributes.
As streams can contain many attributes, you can collapse the view to show only primary and foreign keys. TODO ADD screenshot
Adding Relationships
To add a relationship, click on one attribute and drag the mouse pointer to an attribute in another stream. PhixFlow extends a red arrow line. Click on an attribute name to connect the two.
When you create a relationship, PhixFlow:
- sets the origin attribute to be a Primary Key which must be unique.
- sets the destination attribute to be a Foreign Key
- creates a one-to-many relationship
The Primary Key and Foreign Key are properties of the Stream Attributes. (TODO ADD the new properties to attributes)
If neither attribute is a key, or both attributes are primary keys, PhixFlow creates a one-to-one relationship.
If you connect two primary keys, PhixFlow creates a 1 to 1 relationship.
ERDs and Relational Views
TODO - Add how ERDs and Relational vies interact.
TODO - Possibly bugs or possibly me...
- I ended up with 3 streams that did not appear until the diagram is saved
- I tried to link 2 non-key attributes. The from point kept going to the primary key attribute. I had to drag the correct attribute from the stream attributes into the relationship.
- relationship end points can be drawn a long way from the mouse.
Toolbar
TODO Same as Model Window Toolbar Icons
Organise selected objects in a grid. | |
Align all selected objects left. | |
Align all selected objects right. | |
Align all selected objects to top. | |
Align all selected objects to bottom. | |
Distribute all selected objects horizontally. Changed ICON TODO | |
Distribute all selected objects vertically. Changed ICON TODO | |
Drag into the diagram to add a stream, or click to open the list of streams in the repository | |
Save TODO | |
Refresh TODO | |
Help TODO |