Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is for data modellers or application designers. It explains how to draw an ERD and its properties.

Overview

Use an ERD to represent the information that your application will use and how it is connected.

As you draw the diagram, PhixFlow creates table, attribute and relation relationship items. You can find:

  • tables in the repository Data → Tables category
  • attributes listed in the table properties.

PhixFlow sets the properties for a relation relationship item automatically. If you want to check them, in the ERD, click the relationship arrow to open its properties.

PhixFlow automatically saves any changes you make to the ERD.

For ERD concepts, see Understanding ERDs.


Panel
borderColor#7da054
titleColorwhite
titleBGColor#7da054
borderStylesolid
titleSections on this page

Table of Contents
indent12px
stylenone


Create a New ERD

  1. From the home menu, select Data → ERD.
  2. From the ERD list, select Create New.
  3. PhixFlow opens the properties for the ERD on the right. Enter the name for your ERD and click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
    .
  4. PhixFlow opens a new ERD canvas on the left. The ERD has a toolbar at the top. Hover over toolbar icons to display a tooltip for them.
Tip

When you make any changes to the ERD, remember to 

Insert excerpt
_save
_save
nopaneltrue
 it.

Open an Existing ERD

To open an existing ERD you can:

  • From the home menu, select Data → ERD and click on an ERD in the list.
  • In the repository, open your application and find Data → ERD.
    • either right-click on an ERD name and select Display.
    • or click the ERD name to open the properties. In the properties toolbar, click the
      Insert excerpt
      _erd
      _erd
      nopaneltrue
       icon.

Create a New Table

  1. From the canvas toolbar, drag the 
    Insert excerpt
    _streams_add
    _streams_add
    nopaneltrue
     icon from the toolbar into the diagram.
  2. In the pop-up, enter its name, for example "Customer" and click
    Insert excerpt
    _dialog_finish
    _dialog_finish
    nopaneltrue
    .
  3. PhixFlow adds a box to represent the table, and opens the properties tab for it. The table is created with one attribute called UID, which is set as the primary key.
  4. Optionally, rename the primary key. 
    1. Click on the UID line in the table. PhixFlow opens the attribute properties.
    2. In the Name field, change the name. We recommend that UID or ID is part of the name to indicate this attribute is the unique identifier.
    3. Insert excerpt
      _dialog_finish
      _dialog_finish
      nopaneltrue
       the attribute properties.
  5. To add attributes to the table:
    1. In the table, click 
      Insert excerpt
      _add
      _add
      nopaneltrue
      . PhixFlow opens the attribute properties.
    2. Enter the Name, Type and Length for the data; see Stream Attributes. Attributes are created with the default of a 50 character string. It's important to change this for other types of data, for example, numerical or date/time data.
    3. Insert excerpt
      _dialog_finish
      _dialog_finish
      nopaneltrue
       the attribute properties.
  6. PhixFlow adds the attribute to the table in the ERD.

Add an Existing Table

  1. From the canvas toolbar, Click the Stream List icon.
  2. PhixFlow filters the repository to show the list of tables available in this application.
  3. Drag a table from the repository into the ERD canvas. 

Creating Relationships Between Attributes

The purpose of a relationship is to show that an attribute in one table contains the same data as the same as a primary key in another table. You are aiming to:

  • relate a primary key with a non-primary attribute 
  • ensure related attributes have the same data properties.

To create a relationship between attributes in different tables, click-drag from one attribute to another. 

  1. Click on the source attribute.
  2. Drag to the destination attribute. PhixFlow highlights the attribute when your mouse pointer is over it. This may be offset from the end of the relationship arrow.
  3. When the destination attribute is highlighted release the click.
  4. Enter the name for the relationship.
  5. PhixFlow
    • adds the relationship arrow
    • opens its properties; see Relationships
    • sets the destination attribute to be a foreign key. 

If you try to create a relationship between two non-primary attributes, PhixFlow assumes the source attribute is the primary key.

  • If the source table does not have a primary key, it sets the source attribute to be primary.
  • If the source table already has a primary key, it uses it as the source attribute.

Properties

Insert excerpt
_standard_settings
_standard_settings
nopaneltrue

Basic Settings

FieldDescription
NameEnter the name for the ERD. When you press Return or Save a new properties tab, PhixFlow opens an empty diagram in the workspace on the left.