Persisting teams of projects

Asked

Viewed 30 times

0

In a project management system we have the entities "Users" and "Projects".

inserir a descrição da imagem aqui

I would like to evolve this basic structure into a structure that has teams. Example: Project 1 has 3 members.

What is the best way to persist with this structure? Is this ? Where a user would create the project and then add new members to the structure...

inserir a descrição da imagem aqui

  • 1

    this model seems good to me. it’s simple, if you think that Users - Projects is a relationship n:n or n:m, basically a link table like the Users_projects solves

1 answer

0

Just create the entity Papel and in the entity Usuarios_Projetos replace the field Papel for papel_id.

Remove the column Usuarios_id of the entity Projetos.

As good practice, I recommend leaving the name of the columns in lower case.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.