Adding a notification system
A notification system is a critical part in every task management application. We need to be informed about events that happen in the system. Here are a few examples of task notifications. Similar rules apply to projects, workspaces, teams, and users:
When a new task is assigned
When a new task is created
When there is a new attachment for a task
When there are some changes in a task
When a task is completed
According to this business logic, all entities created so far are missing a crucial part. They all need a mechanism to keep track of two times: the first, the moment they have been created and second is the last time they have been updated.
In the following section, I will show you how to implement this mechanism for the Task entity. You can do the same for the rest of the entities or fetch the updated code from the Chapter08
branch.
Adding time tracking properties
It would be very helpful if we could track the activities that happen in a Task entity. For example...