78 | | - **Sells** (Trader, Item): |
79 | | A Trader sells one or more Items. |
80 | | *Cardinality*: A Trader can sell many Items; an Item can be sold by multiple Traders. |
81 | | |
82 | | - **ReputationIn** (Faction, Character): |
83 | | This relationship captures a Character’s reputation within a Faction, with attributes such as `ReputationPoints` and `Rank`. |
84 | | *Cardinality*: A Character can have reputation in multiple Factions; a Faction can record reputation for multiple Characters. |
85 | | |
86 | | - **Completes** (Quest, Character): |
87 | | A Character can complete one or more Quests. |
88 | | *Cardinality*: A Character may complete many Quests; a Quest can be completed by multiple Characters. |
89 | | |
90 | | - **Owns** (Player, Character): |
91 | | A Player owns one or more Characters. |
92 | | *Cardinality*: One Player may own many Characters, while each Character is owned by a single Player. |
93 | | |
94 | | - **IsMember** (Guild, Character): |
95 | | This membership relationship indicates that a Character is a member of a Guild. |
96 | | *Cardinality*: A Character can be a member of multiple Guilds; a Guild can have many Characters as members. |
| 83 | === N-N Relations === |
| 84 | - `ReputationIn(CharacterID, FactionID)`: A character can have reputation with multiple factions, and factions can have multiple characters. |
| 85 | - `Completes(CharacterID, QuestID)`: A character can accept multiple quests, and quests can be taken by multiple characters. |
| 86 | - `Owns(CharacterID, ItemID)`: A character can own multiple items, and items can belong to multiple characters. |
| 87 | - `Drops(EnemyID, ItemID)`: Enemies can drop multiple items, and items can be dropped by multiple enemies. |
| 88 | - `Sells(TraderID, ItemID)`: Traders can sell multiple items, and items can be sold by multiple traders. |
| 89 | - `IsMember(CharacterID, GuildID, Role)`: A character can join a guild, and a guild can have multiple members. The `Role` attribute defines if the character is a "Leader" or "Member" in the guild. |