I have a RESTful MVC4 server that I want to have a database, the server has Users and Games
So a User can participate in many Games, but Games can also have many Users playing them
That gives me a many to many relation which I would like to avoid, I then tried to implement a weak entity, but I am not sure if thats the correct way to fix the issue?
Mech0z
Member
34 Points
40 Posts
Database design issue
May 09, 2012 08:10 AM|LINK
I have a RESTful MVC4 server that I want to have a database, the server has Users and Games
So a User can participate in many Games, but Games can also have many Users playing them
That gives me a many to many relation which I would like to avoid, I then tried to implement a weak entity, but I am not sure if thats the correct way to fix the issue?
arcitecture Design
ignatandrei
All-Star
134973 Points
21638 Posts
Moderator
MVP
Re: Database design issue
May 09, 2012 08:12 AM|LINK
So your database modelling is correct.
Mech0z
Member
34 Points
40 Posts
Re: Database design issue
May 09, 2012 08:18 AM|LINK
So using the weak entity is the right thing to do?
ignatandrei
All-Star
134973 Points
21638 Posts
Moderator
MVP
Re: Database design issue
May 09, 2012 08:53 AM|LINK
I describe as a "many to many"table.
Mech0z
Member
34 Points
40 Posts
Re: Database design issue
May 09, 2012 08:58 AM|LINK
Think I will use this http://en.wikipedia.org/wiki/Junction_table