I have the following structure for my project and developer program:
developer table
id
developer name
etc...
project table
id
project name
etc...
developer _project table
???
Because a developer can be in multiple projects and a projects can have multiple developer I have to create a new table but from what I read is they don’t tell what id should I use.
If I use an id auto increment + user_id + project_id will I have duplicate since the id is the primary key?
Use a unique combined key:
If you create an
IDyou will probably never use it since you will query the developer_id and/or project_id in yourLEFT JOINNOTE: make sure the column definitions are the same as the
developerand theprojecttables.