Quote:
|
Originally Posted by georgev
Can Consultant A and Consultant B be part of project A?
If so you have a many-to-many relationship.
If you can only have one consultant per project then it is one-to-many.
|
Hi,
Yes, we may have more than one Consultant in the same project.
I would like to design the table to be simple and logical.
Here is my idea with just some fields from the tables:
Project Table
|id|name|...|
Users Table:
|id|name|function|...|
Team Table (This is the table where relations are established) :
|proj_id|users_id|
Sample Team Fields:
|1|1,4,6|
|2|1,6,10,21|
My questions:
Is this a good practice?
I can place users_id inside an PHP array a search for the users in each project. Is this a good way to go?
How would I manage vertical relations so that Local or Zone Manager only have access projects?
Thanks
NN