Task app data normalization

Hey

I am building a task app and here are my tables :

Client table :

rajivvaishnav_0-1725283359745.png

Task Table :

rajivvaishnav_1-1725283379672.png

Task_ref table which has all the master task which is common for all the employees and clients :

rajivvaishnav_2-1725283404098.png

Here is employees table :

rajivvaishnav_3-1725283427896.png

Here is the job table :

rajivvaishnav_4-1725283444032.png

Here is the jobid table which has just job id which gets copied to task table

rajivvaishnav_5-1725283481688.png

Everything is working fine but issue is when i create a job, here is what I do :

I select the employee to whom I want to assign the job, then i select the task from enum list populated from task_ref table, then I select the client and when i save, it creates 10 records for (10 fixed tasks in task_ref), so for each employee it creates 10 records in task table for each client, so my question is, is this a good way? becuase I see lots of rows created in task even if i just add 2 clients and asign them to 2 employees, I hope this makes sense, am I wrong somewhere ?

can someone help me to re-structure my tables.

Best Regards

Rajiv

 

0 1 82
1 REPLY 1

if one Job, which has a client and an employee associated with it, has 10 tasks (Task table is a child table of the Job table) then, yes, it is correct to have 10 rows in the Task table per job.

Top Labels in this Space