The tools in the vertical toolbar on the left of the
EER Diagram tab are used for designing an
EER diagram. Start by creating a table using the table tool. The
table tool is the rectangular grid in the middle of the vertical
toolbar. Mousing over it shows the message, Place a New
Table (T)
.
Clicking this tool changes the mouse pointer to a hand with a
rectangular grid. Create a table on the canvas by clicking
anywhere on the EER Diagram
grid.
Right-click the table and choose
from the pop-up menu. This opens the table editor, docked at the bottom of the application.
The table name defaults to table1
. Change the
name by entering invoice
into the
Name: field. Changes here affect the name
of the tab in the table editor and the name of the table on the
canvas.
Pressing Tab or Enter while
the cursor is in the table name field selects the
Columns tab of the table editor and creates
a default column named idinvoice
.
Pressing Tab or Enter again
sets the focus on the Datatype
list with
INT
selected. Notice that a field has been
added to the table on the EER canvas.
Pressing Tab yet again and the focus shifts to
adding a second column. Add a Description
and
a Customer_id
column. When you are finished,
close the table editor, by clicking the
button on the top left of the table editor.