-- MySQL dump 10.13 Distrib 5.5.34, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: realmd -- ------------------------------------------------------ -- Server version 5.5.34-0ubuntu0.13.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `dbdocsfields` -- DROP TABLE IF EXISTS `dbdocsfields`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dbdocsfields` ( `tableName` varchar(80) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Name of the table to link to', `fieldName` varchar(80) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Name of the field to link the note to', `fieldNotes` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Additional Field Notes', PRIMARY KEY (`tableName`,`fieldName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Data for the table `dbdocsfields` -- LOCK TABLES `dbdocsfields` WRITE; /*!40000 ALTER TABLE `dbdocsfields` DISABLE KEYS */; insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','active_realm_id','This references the realmlist tables unique ID of the realm server on which the account is currently active. This will allow the game client to connect to the realm the account was active on at the last login.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','email','The e-mail address associated with this account.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','expansion','The field controls to which expansion\'s content a user has access. By default this is set to 0, allowing access to vanilla WoW content. In mangos-zero, other values can be ignored, since there is no expansion.
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
IDExpansion
0WoW Classic
1WoW Burning Crusade
2WoW Wrath of the Lich King
3WoW Cataclysm
4WoW Mists of Pandaria
\r\n
\r\nThe world server will block access to accounts with 0 in this field from accessing the TBC and WotLK areas in-game.\r\n
\r\nThe world server will block access to accounts with 1 in this field from accessing the WotLK areas in-game and so on.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','failed_logins','The number of failed logins attempted on the account. Monitoring this field may help spotting users who try to gain access to accounts which are not their own, or who have forgotten their passwords.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','gmlevel','The account security level. Different levels have access to different commands. The individual level required for a command is defined in the Mangos command table. Valid values are:
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
ValueDescription
0Player
1Moderator
2Gamemaster
3Administrator
4Access control within the world server console only.
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','id','The unique account ID.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','joindate','The date when the account was created.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','last_ip','The last IP used by the person who last logged into the account.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','last_login','The date when the account was last logged into.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','locale','The locale used by the client logged into this account. If multiple locale data has been configured and added to the world servers, the world servers will return the proper locale strings to the client. \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
IDLanguage
0English
1Korean
2French
3German
4Chinese
5Taiwanese
6Spanish Spain
7Spanish Latin America
8Russian
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','locked','Boolean 0 or 1 controlling if the account has been locked or not.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','mutetime','The time, in Unix time, when the account will be unmuted.
\r\n
SELECT `username`, FROM_UNIXTIME(`mutetime`) FROM `account`;
\r\n'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','sha_pass_hash','This field contains the encrypted password. The encryption is SHA1 and is in the following format: username:password. The SQL to create the password (or to compare with the current hash) is:\r\n
SELECT SHA1(CONCAT(UPPER(`username`), \':\', UPPER({pass})));
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account','username','The account user name.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account_banned','active','This is a Boolean field controlling if the ban is currently active or not.
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
ValueMeaning
0Ban Active
1Ban Inactive
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account_banned','bandate','The date when the account was banned, in Unix time.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account_banned','bannedby','The character with the rights to the .ban command that banned the account.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account_banned','banreason','The reason for the ban.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account_banned','id','The account ID. See account.id'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('account_banned','unbandate','The date when the account will be automatically unbanned, in Unix time. A value less than the current date means, in effect, a permanent ban.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('ip_banned','bandate','The date when the IP was first banned, in Unix time.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('ip_banned','bannedby','The name of the character that banned the IP. The character should belong to an account with the rights to the .ban command in-game.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('ip_banned','banreason','The reason given for the IP ban.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('ip_banned','ip','The IP address that is banned.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('ip_banned','unbandate','The date when the IP will be unbanned in Unix time. Any date that is set lower than the current date basically classifies as a permanent ban as it will never auto expire.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmcharacters','acctid','The account ID. See account.id'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmcharacters','numchars','The number of characters the account has on the realm.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmcharacters','realmid','The ID of the realm. See realmlist.id'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','address','The public IP address of the world server. 127.0.0.1 works for LAN play only.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','allowedSecurityLevel','The minimum account (see account.gmlevel) required for accounts to log in to this realm. Normally 0 - that means normal players allowed on this realm. Just useful if you make a GM-only developement realm.
\nChanging this value will automatically update the visible in-game realm list, but the realm server must be restarted for it to take effect.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','icon','The icon of the realm.
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
icon TYPE\r\n
0 Normal
1 PvP
4 Normal
6 RP
8 RP PvP
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','id','The realm ID. This number is unique for every realm and it MUST correlate with the RealmID configuration value in mangosd.conf.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','name','The name of the realm. This will appear in the realm selection list as well as in the character selection screen.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','population','This field is automatically updated at regular intervals and will show the current population. The formula to calculate the value in this field is:
\r\n
playerCount / maxPlayerCount * 2

\r\n\r\n\r\n\r\n\r\n\r\n
PopulationDisplay Population Level
0.5Low
1.0Medium
2.0High
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','port','The port that the world server is running on. Default is 8085. If you will run more than one world server on the same machine, e.g. develop and production, they will all need to use a different port.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','realmbuilds','The accepted client builds that the realm will accept. (You can see this version at the clients left lower corner when starting.)
\r\nThe format is version No. {space} version No. (i.e. space separated)
xxxx xxxx xxxx


\r\nAcceptable values are:\r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n
CoreVersionsGame expansion
MangosZero5875, 6005, 6141Vanila 1.12.x
MangosOne8606TBC 2.4.3
MangosTwo12340WOTLK 3.3.5a
MangosThree15595Cataclysm 4.3.4
MangosFour18414Mists of Pandaria 5.4.8
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','realmflags','Supported masks for the realm, based on the table below.
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
ValueMeaning
0x1Invalid - Do Not show in Realm List
0x2Offline - Set by mangosd
0x4Show version and build in Realm List
0x20New Players - New Players Only
0x40Recommended - sets the recommended option
\r\n'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('realmlist','timezone','The realm timezone, it will be displayed in the tabs of the realmlist.
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
TimezoneIdDisplayed name
1Development
2United States
3Oceanic
4Latin America
5Tournament
6Korea
7Tournament
8English
9German
10French
11Spanish
12Russian
13Tournament
14Taiwan
15Tournament
16China
17CN1
18CN2
19CN3
20CN4
21CN5
22CN6
23CN7
24CN8
25Tournament
26Test Server
27Tournament
28QA Server
29CN9
'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('uptime','maxplayers','The maximum number of players connected'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('uptime','realmid','The realm id (see realmlist.id).'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('uptime','startstring','The time when the server started, formated as a readable string.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('uptime','starttime','The time when the server was started, in Unix time.'); insert into `dbdocsfields`(`tableName`,`fieldName`,`fieldNotes`) values ('uptime','uptime','The uptime of the server, in seconds.'); /*!40000 ALTER TABLE `dbdocsfields` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dbdocstable` -- DROP TABLE IF EXISTS `dbdocstable`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dbdocstable` ( `tableName` varchar(80) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Name of the table to add additional notes to', `tableNotes` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'The additional note to be added to the table', PRIMARY KEY (`tableName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Data for the table `dbdocstable` -- LOCK TABLES `dbdocstable` WRITE; /*!40000 ALTER TABLE `dbdocstable` DISABLE KEYS */; insert into `dbdocstable`(`tableName`,`tableNotes`) values ('account','This table holds information on all available accounts.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('account_banned','This table lists all of the accounts that have been banned along with the date when (or if) the ban will expire.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('dbdocsfields','This table is part of the implementation of the \'Mangos Database Documentation\' (MDD) Project.\r\n\r\nAn entry in this table provides a link to the table and field to allow additional notes to describe the field in the Wiki.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('dbdocstable','This table is part of the implementation of the \'Mangos Database Documentation\' (MDD) Project.\r\n\r\nAn entry in this table provides a additional notes field to describe the database in the Wiki.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('ip_banned','This table contains all of the banned IPs and the date when (or if) the ban will expire.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('realmcharacters','This table holds information on the number of characters each account has for each realm.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('realmlist','This table holds information for the realms.'); insert into `dbdocstable`(`tableName`,`tableNotes`) values ('uptime','This table holds the uptime of all realms. Each realm will automatically update it\'s latest entry\'s value until it crashes and a new record is added. Doing so also some statistical/historical information is collected - about the availability of your machine.'); /*!40000 ALTER TABLE `dbdocstable` ENABLE KEYS */; UNLOCK TABLES; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;