Implementing the task manager data model
In this book, we are going to implement a full-featured task manager web application. In this chapter, we’ll start by implementing the data model that we’ll be using to persist the application’s state in a database.
The following diagram shows the different classes/entities that we are going to implement and their relationships:
Figure 2.2 – Entity-relationship diagram for the task manager application data model
The model is very straightforward: the main entity is a Task
that might be assigned to a Project
and always belongs to a User
. The application is quite simple: a user logs into the task manager and can create different tasks. Each task has a title and a longer optional description. The user may assign a priority to the task and mark it as complete when it’s done. In addition, the user can create different projects that can be used to optionally group the tasks. In this section...