-
Book Overview & Buying
-
Table Of Contents
FuelPHP Application Development Blueprints
By :
This step should be pretty straightforward from the specification phase. We will generate the following two models:
Project: This model will only have a name property.
Task: This model will have a name, a status, and a rank property. A project contains many tasks, and each task is related to a project, so we will add an additional column here, named project_id. This column will contain the ID of the project each task is associated with.
We can represent our models by the following ER diagram:

Entity Relationship diagram (Min-Max notation)
An ER diagram allows you to describe the data structure of your application. As you noticed, almost everything we wrote earlier can be found in the diagram:
The models (called entities in ER diagrams), represented by rectangles
The model's properties (called attributes), represented by ellipses (primary keys are underlined) and linked to models using lines
The relationships between models, represented by a line from a model to another
We used the Min...
Change the font size
Change margin width
Change background colour