Legends of the Balkans - Relational Design
Signs
Below are the annotations used in the relational schema:
*
(asterisk) → Denotes a Primary Key.#
(hash) → Denotes a Foreign Key.(A, B, C)
→ Represents the attributes within a table.[ ]
→ Represents optional fields (nullable).
Tables
Full list of tables:
Player (*PlayerID, Username, Email, Password)
Character (*CharacterID, #PlayerID, Name, Health, EXP, Gold)
Faction (*FactionID, Name, Description)
ReputationIn (*#CharacterID, *#FactionID, ReputationPoints, Rank)
(tracks a character's reputation with a faction)Quest (*QuestID, Name, EXP_Required, EXP_Reward, Gold_Reward)
Item (*ItemID, Name, Type, Rarity, Craftable)
Enemy (*EnemyID, Name, Health, Damage, LootDrop)
Trader (*TraderID, Name, Type)
Market (*MarketID, #ItemID, #SellerID, Price)
Guild (*GuildID, Name, #LeaderID)
Character_Quest (*#CharacterID, *#QuestID)
Character_Item (*#CharacterID, *#ItemID, Quantity)
Enemy_Item (*#EnemyID, *#ItemID, Quantity)
Trader_Item (*#TraderID, *#ItemID, Quantity)
Character_Guild (*#CharacterID, *#GuildID)
IsMember (*#CharacterID, *#GuildID, Role)
(defines whether a character is a member or a leader of a guild)
DDL Script
The Data Definition Language (DDL) script defines the database schema.
DML Script
The Data Manipulation Language (DML) script contains sample data insertions.
Relational Diagram
The relational schema diagram will be placed here:
Last modified
8 days ago
Last modified on 02/13/25 19:41:40
Attachments (3)
- lotb_rd.png (112.0 KB ) - added by 10 days ago.
- lotb_ddl.sql (3.7 KB ) - added by 10 days ago.
- lotb_dml.sql (1.7 KB ) - added by 10 days ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.