MySQL Forums
Forum List  »  Newbie

Circular relations?
Posted by: Ådne Brunborg
Date: May 04, 2005 01:25AM

This isn't exactly a mySQL-specific question, but more a design-related one.

The case is a spell-database for a roleplaying game.

The tree dsitinct entities are spell, player character and campaign, as well as some sub-entities of the spell table.

The relations are:
- a spell may be used in one or more campaigns, a campaign has several spells
- a campaign has one or more player characters, a player character may only be in one campaign
- a player character may have one or more spells, but only spells available in his campaign, and a spell in a campaign may be used by zero, one, or more player characters

The question is, how to design these relations? I have made a model using DBDesigner 4, which can be seen at http://brunborg.errors.no/SpellsDB.png

---Ådne

Options: ReplyQuote


Subject
Written By
Posted
Circular relations?
May 04, 2005 01:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.