Database version 8

mana_accounts
Column nameDatatypeNullableReferencesDescription
idint(10)PRIMARY KEY
usernamevarchar(64)UNIQUE KEY
passwordvarchar(64)NOT NULL
emailvarchar(32)UNIQUE KEY
leveltinyint(3) NOT NULL
bannedint(10) NOT NULL
registrationint(10)NOT NULL
lastloginint(10)NOT NULL
authorizationtext for manaweb
expirationint(10) for manaweb
  • email
    • The email is stored as a one-way sha256 hash value. This ensures, that the email address a user enters cannot be used to send spam mails. It is only used to validate the mailaddress during password recovery procedure.
  • level
  • describes the user rights in the game (10 = normal user, 50 = gm, 99 = administrator)
  • authorization and expiration
  • these fields are used by TMWWEB to store a secret key and the time of expiration if the user has requested to reset its password. The secret key is sent via mail to the user.
mana_characters
Column nameDatatypeNullableReferencesDescription
idint(10)NOT NULL
user_idint(10)NOT NULLmana_accounts(id)
namevarchar(32)UNIQUE KEY
gendertinyint(3)NOT NULL
hair_styletinyint(3)NOT NULL
level tinyint(3)NOT NULL
char_ptssmallint(5)NOT NULL
correct_ptssmallint(5)NOT NULL
moneyint(10)NOT NULL
xsmallint(5)NOT NULL
ysmallint(5)NOT NULL
map_idtinyint(3)NOT NULL
strsmallint(5)NOT NULL
agismallint(5)NOT NULL
dexsmallint(5)NOT NULL
vitsmallint(5)NOT NULL
intsmallint(5)NOT NULL
willsmallint(5)NOT NULL
mana_char_skills
Column nameDatatypeNullableReferencesDescription
char_idint(10)PRIMARY KEYmana_characters(id)
skill_idsmallint(5)(skills.xml)
skill_expsmallint(5)NOT NULL
mana_char_status_effects
Column nameDatatypeNullableReferencesDescription
char_idint(10)PRIMARY KEYmana_characters(id)
status_idsmallint(5)
status_timeint(10NOT NULL
mana_char_kill_stats
Column nameDatatypeNullableReferencesDescription
char_idint(10)PRIMARY KEYmana_characters(id)
monser_idint(10)
killsint(10)NOT NULL
mana_items
Column nameDatatypeNullableReferencesDescription
idint(10)PRIMARY KEY
namevarchar(100)NOT NULL
descriptionvarchar(255)NOT NULL
imagevarchar(50)NOT NULL
weightsmallint(5)NOT NULL
itemtypevarchar(50)NOT NULL
effectvarchar(100)
dyestringvarchar(50)
mana_items_instances
Column nameDatatypeNullableReferencesDescription
item_idint(10)PRIMARY KEY
itemclass_idint(10)FOREIGN KEYmana_items(id)
amounttinyint(3)NOT NULL
mana_item_attributes
Column nameDatatypeNullableReferencesDescription
attribute_idint(10)PRIMARY KEY
item_idint(10)FOREIGN KEYmana_items_instances(item_id)
attribute_classtinyint(3)NOT NULL
attribute_valuevarchar(500)
mana_inventories
Column nameDatatypeNullableReferencesDescription
idint(10)PRIMARY KEY
owner_idint(10)UNIQUE KEYmana_characters(id)
slotstinyint(3)
class_idint(10)NOT NULL
amounttinyint(3)NOT NULL
mana_guilds
Column nameDatatypeNullableReferencesDescription
idint(10)PRIMARY KEY
namevarchar(35)UNIQUE KEY
mana_guild_members
Column nameDatatypeNullableReferencesDescription
guild_idint(10)PRIMARY KEYmana_guilds(id)
member_idint(10)mana_characters(id)
rightsint(10)NOT NULL
mana_quests
Column nameDatatypeNullableReferencesDescription
owner_idint(10)PRIMARY KEYmana_characters(id)
namevarchar(100)
valuevarchar(200)NOT NULL
mana_world_states
Column nameDatatypeNullableReferencesDescription
state_namevarchar(100)PRIMARY KEY
map_idINTEGER
valueTEXT
moddateINTEGERNOT NULL
mana_auctions
Column nameDatatypeNullableReferencesDescription
auction_idint(10)PRIMARY KEY
auction_statetinyint(3)NOT NULL
char_idint(10)FOREIGN KEYmana_characters(id)
itemclass_idint(10)NOT NULL
amountint(10)NOT NULL
start_timeint(10)NOT NULL
end_timeint(10)NOT NULL
start_priceint(10)NOT NULL
min_priceint(10)
buyout_priceint(10)
descriptionvarchar(255)
  • auction_state can have the following values:
    • 0 = The auction is published and ready for bidders
    • 1 = The auction has finished and closed
  • start_time contains the creation date of the auction. Format: Unixtimestamp
mana_auction_bids
Column nameDatatypeNullableReferencesDescription
bid_idint(10)PRIMARY KEYmana_characters(id)
auction_idint(10)NOT NULL
char_idint(10)NOT NULL
bid_timeint(10)NOT NULL
bid_priceint(10)NOT NULL
mana_post
Column nameDatatypeNullableReferencesDescription
letter_idint(10)PRIMARY KEY
sender_idint(10)FOREIGN KEYmana_characters(id)
receiver_idint(10)FOREIGN KEYmana_characters(id)
letter_typeint(5)NOT NULL
expiration_dateint(10)NOT NULL
sending_dateint(10)NOT NULL
letter_textTEXT
mana_post_attachments
Column nameDatatypeNullableReferencesDescription
attachment_idint(10)PRIMARY KEY
letter_idint(10)FOREIGN KEYmana_post(letter_id)
item_idint(10)FOREIGN KEYmana_item_instances(item_id)
mana_transaction_codes
Column nameDatatypeNullableReferencesDescription
idint(10)PRIMARY KEY
descriptiontextNOT NULL
categorytextNOT NULL
mana_online_list
Column nameDatatypeNullableReferencesDescription
char_idint(10)PRIMARY KEYmana_characters(id)
login_dateint(10)NOT NULL
mana_transactions
Column nameDatatypeNullableReferencesDescription
idint(11)PRIMARY KEY
char_idint(11)NOT NULL
actionint(11)NOT NULL
messagetextNOT NULL
timeint(11)NOT NULL
database_specifications.txt · Last modified: 2010/03/21 21:03 by Maximilian Philipps
 
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki