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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.