Jump to content

Help with database model design


chaplain

Recommended Posts

Hi,

I am fairly new to the whole database model design theory. I understand most ( i think) of the relations between entitys but am strugging with my design - Can anybody help suggest how best to do this...

I have four entitys.

[b]games[/b]
  -> game_id  (PK)

[b]maps[/b]
  -> map_id  (PK)

[b]locations[/b]
  -> location_id  (PK)

[b]location_types[/b]
  -> location_type_id  (PK)


What I need to do is...

1) I can have a number of games. Each game will relate to only one map.
2) The location entity can contain locations for all maps so a location needs to know the map it belongs to.
3) The location_type needs to be related to both a map and a location. It will be possible for different locations types to exists for particular maps.

1 and 2 are quite straight forward, its where I add in the location_type where problems start to occur.

Please help - this is really frustraing me

Thanks
Dom
Link to comment
https://forums.phpfreaks.com/topic/31357-help-with-database-model-design/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.