Paszt
Staff member
I'm creating a web app for managing projects. I have a users table with UserId (uniqueidentifier), FirstName, & LastName among other fields. Now I need to store data about the Project which will have an associated Project Manager, Sales Manager, Project Leader, Engineering Coordinator, and other users with specific roles in the project.
My query regards the structure of the database tables and having the ability to display the FirstName & LastName of the project's specific roles in place of the UserID.
Would it be best to have one 'Projects' table with ProjectID, ProjectName, ProjectManagerID, SalesManagerID, EngineeringCoordinatorID, ... (ProjectManagerID would be the UserID from the 'Users' table and the same for the other roles). OR should I normalize the database with a 'Projects' table (containing ProjectID & ProjectName) and a Project-ProjectsManager table (Containing ProjectID & UserID), Project-SalesManager table ... ?
My query regards the structure of the database tables and having the ability to display the FirstName & LastName of the project's specific roles in place of the UserID.
Would it be best to have one 'Projects' table with ProjectID, ProjectName, ProjectManagerID, SalesManagerID, EngineeringCoordinatorID, ... (ProjectManagerID would be the UserID from the 'Users' table and the same for the other roles). OR should I normalize the database with a 'Projects' table (containing ProjectID & ProjectName) and a Project-ProjectsManager table (Containing ProjectID & UserID), Project-SalesManager table ... ?