This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Tortuga/database template.md
T
2013-09-04 17:56:43 +10:00

1.6 KiB

Server

UserAccount

  • userAccountID primary key
  • username unique
  • password --stored in the database (hashed)?
  • blacklisted {false, true}
  • whitelisted {true, false}

Items

Notes

  • These are static; they're immutable during runtime

GlobalItemList

  • globalItemListID primary key
  • itemName unique
  • itemImage
  • type {mundane, consumable, equipment, etc.}
  • stackable {1-max; -1 for false}
  • maxUniqueCopies {1-max; -1 for unlimited}

MundaneItems

  • mundaneItemID primary key
  • globalItemListID foreign key -> GlobalItemList.globalItemListID
  • TODO: attributes

Consumables

  • consumableID primary key
  • globalItemListID foreign key -> GlobalItemList.globalItemListID
  • TODO: attributes

Equipment

  • equipmentID primary key
  • globalItemListID foreign key -> GlobalItemList.globalItemListID
  • TODO: attributes

Player

Notes

  • These change as the character progresses and grows

PlayerCharacter

  • characterID primary key
  • name unique
  • TODO: customizable sprite

PlayerStatistics

  • characterID foreign key -> PlayerCharacter.characterID
  • currentLevel
  • currentExperience
  • maxHealth
  • maxMana
  • currentHealth
  • currentMana
  • attack
  • defence
  • TODO: etc.

PlayerEquipment

  • characterID foreign key -> PlayerCharacter.characterID
  • head foreign key -> Equipment.equipmentID
  • weapon foreign key -> Equipment.equipmentID
  • armour foreign key -> Equipment.equipmentID
  • TODO: etc.

PlayerInventoryItem

  • characterID foreign key -> PlayerCharacter.characterID
  • globalItemListID foreign key -> GlobalItemList.globalItemListID