This is an ER diagram for project management software I'm building.
It contains these entities:
- project - software projects
- tasks - software projects that can be broken into a number of tasks
- employees - employees that belong to this software
To complete the project:
- project must divide into sub tasks
- project can have 1 or many tasks
- tasks belong to only 1 project.
- assign employees to project
- project can assign 1 or many employees
- selected employee happen to be assigned to a 1 or more projects
Let's take project A
- project A has these tasks - task a1, task a2, task a3
- project A has assigned these employees - emp aa1, emp aa2, emp aa3
From those project A assigned employees(emp aa1,emp aa2, emp aa3) you can select one employee, and to that employee you can assign selected project A task (task a1, task a2, task a3).
And employee can submit spend daily amount of time to a particular assigned task. It can be multiple entries.because to done a task it can be spend multiple amount of days
If he submit those data to system
- employee allocated to a particular project(project B) has done few tasks (task b1, task b2) that belong to project B.
Using system select task b1 and then can view how employee spend time day wise for completing that task
I have the following questions
Is this ER diagram correct?
Can I convert relationship (diamond) to convert associative entity?
How to mark cardinality?