ios - CoreData - many-to-many relationship with priorities -


i have conceptual question db schema. have 2 entities: team , member.

1.member can belong many teams,

2.team can have many members.

so it's many-to-many relationship , i've implemented successfully. client wants have ordered members within team. member can have priority in 1 team different in other.

how implemented db schema should like? considering 2 options:

  • with minimum work effort
  • the proper solution

any hints more welcome. thanks.

you should create new table, eg membersort, has memberid, teamid , position. way, can determine position both member , team key , position.

enter image description here


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -