3 -- Host: localhost Database: realmd
4 -- ------------------------------------------------------
5 -- Server version 5.0.45-Debian_1ubuntu3.1-log
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
19 -- Table structure for table `realmd_db_version`
22 DROP TABLE IF EXISTS `realmd_db_version`;
23 CREATE TABLE `realmd_db_version` (
24 `required_9010_01_realmd_realmlist` bit(1) default NULL
25 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
28 -- Dumping data for table `realmd_db_version`
31 LOCK TABLES `realmd_db_version` WRITE;
32 /*!40000 ALTER TABLE `realmd_db_version` DISABLE KEYS */;
33 INSERT INTO `realmd_db_version` VALUES
35 /*!40000 ALTER TABLE `realmd_db_version` ENABLE KEYS */;
39 -- Table structure for table `account`
42 DROP TABLE IF EXISTS `account`;
43 CREATE TABLE `account` (
44 `id` int(11) unsigned NOT NULL auto_increment COMMENT 'Identifier',
45 `username` varchar(32) NOT NULL default '',
46 `sha_pass_hash` varchar(40) NOT NULL default '',
47 `gmlevel` tinyint(3) unsigned NOT NULL default '0',
48 `sessionkey` longtext,
52 `joindate` timestamp NOT NULL default CURRENT_TIMESTAMP,
53 `last_ip` varchar(30) NOT NULL default '0.0.0.0',
54 `failed_logins` int(11) unsigned NOT NULL default '0',
55 `locked` tinyint(3) unsigned NOT NULL default '0',
56 `last_login` timestamp NOT NULL default '0000-00-00 00:00:00',
57 `active_realm_id` int(11) unsigned NOT NULL default '0',
58 `expansion` tinyint(3) unsigned NOT NULL default '0',
59 `mutetime` bigint(40) unsigned NOT NULL default '0',
60 `locale` tinyint(3) unsigned NOT NULL default '0',
62 UNIQUE KEY `idx_username` (`username`),
63 KEY `idx_gmlevel` (`gmlevel`)
64 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC COMMENT='Account System';
67 -- Dumping data for table `account`
70 LOCK TABLES `account` WRITE;
71 /*!40000 ALTER TABLE `account` DISABLE KEYS */;
72 INSERT INTO `account` VALUES
73 (1,'ADMINISTRATOR','a34b29541b87b7e4823683ce6c7bf6ae68beaaac',3,'','0','0','','2006-04-25 10:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
74 (2,'GAMEMASTER','7841e21831d7c6bc0b57fbe7151eb82bd65ea1f9',2,'','0','0','','2006-04-25 10:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
75 (3,'MODERATOR','a7f5fbff0b4eec2d6b6e78e38e8312e64d700008',1,'','0','0','','2006-04-25 10:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
76 (4,'PLAYER','3ce8a96d17c5ae88a30681024e86279f1a38c041',0,'','0','0','','2006-04-25 10:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0);
77 /*!40000 ALTER TABLE `account` ENABLE KEYS */;
81 -- Table structure for table `account_banned`
84 DROP TABLE IF EXISTS `account_banned`;
85 CREATE TABLE `account_banned` (
86 `id` int(11) NOT NULL default '0' COMMENT 'Account id',
87 `bandate` bigint(40) NOT NULL default '0',
88 `unbandate` bigint(40) NOT NULL default '0',
89 `bannedby` varchar(50) NOT NULL,
90 `banreason` varchar(255) NOT NULL,
91 `active` tinyint(4) NOT NULL default '1',
92 PRIMARY KEY (`id`,`bandate`)
93 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Ban List';
96 -- Dumping data for table `account_banned`
99 LOCK TABLES `account_banned` WRITE;
100 /*!40000 ALTER TABLE `account_banned` DISABLE KEYS */;
101 /*!40000 ALTER TABLE `account_banned` ENABLE KEYS */;
105 -- Table structure for table `ip_banned`
108 DROP TABLE IF EXISTS `ip_banned`;
109 CREATE TABLE `ip_banned` (
110 `ip` varchar(32) NOT NULL default '0.0.0.0',
111 `bandate` bigint(40) NOT NULL,
112 `unbandate` bigint(40) NOT NULL,
113 `bannedby` varchar(50) NOT NULL default '[Console]',
114 `banreason` varchar(255) NOT NULL default 'no reason',
115 PRIMARY KEY (`ip`,`bandate`)
116 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Banned IPs';
119 -- Dumping data for table `ip_banned`
122 LOCK TABLES `ip_banned` WRITE;
123 /*!40000 ALTER TABLE `ip_banned` DISABLE KEYS */;
124 /*!40000 ALTER TABLE `ip_banned` ENABLE KEYS */;
128 -- Table structure for table `realmcharacters`
131 DROP TABLE IF EXISTS `realmcharacters`;
132 CREATE TABLE `realmcharacters` (
133 `realmid` int(11) unsigned NOT NULL default '0',
134 `acctid` bigint(20) unsigned NOT NULL,
135 `numchars` tinyint(3) unsigned NOT NULL default '0',
136 PRIMARY KEY (`realmid`,`acctid`),
138 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';
141 -- Dumping data for table `realmcharacters`
144 LOCK TABLES `realmcharacters` WRITE;
145 /*!40000 ALTER TABLE `realmcharacters` DISABLE KEYS */;
146 /*!40000 ALTER TABLE `realmcharacters` ENABLE KEYS */;
150 -- Table structure for table `realmlist`
153 DROP TABLE IF EXISTS `realmlist`;
154 CREATE TABLE `realmlist` (
155 `id` int(11) unsigned NOT NULL auto_increment,
156 `name` varchar(32) NOT NULL default '',
157 `address` varchar(32) NOT NULL default '127.0.0.1',
158 `port` int(11) NOT NULL default '8085',
159 `icon` tinyint(3) unsigned NOT NULL default '0',
160 `color` tinyint(3) unsigned NOT NULL default '2',
161 `timezone` tinyint(3) unsigned NOT NULL default '0',
162 `allowedSecurityLevel` tinyint(3) unsigned NOT NULL default '0',
163 `population` float unsigned NOT NULL default '0',
164 `realmbuilds` varchar(64) NOT NULL default '',
166 UNIQUE KEY `idx_name` (`name`)
167 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm System';
170 -- Dumping data for table `realmlist`
173 LOCK TABLES `realmlist` WRITE;
174 /*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
175 INSERT INTO `realmlist` VALUES
176 (1,'MaNGOS','127.0.0.1',8085,1,0,1,0,0,'');
177 /*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
181 -- Table structure for table `uptime`
184 DROP TABLE IF EXISTS `uptime`;
185 CREATE TABLE `uptime` (
186 `realmid` int(11) unsigned NOT NULL,
187 `starttime` bigint(20) unsigned NOT NULL default '0',
188 `startstring` varchar(64) NOT NULL default '',
189 `uptime` bigint(20) unsigned NOT NULL default '0',
190 `maxplayers` smallint(5) unsigned NOT NULL default '0',
191 PRIMARY KEY (`realmid`,`starttime`)
192 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Uptime system';
195 -- Dumping data for table `uptime`
198 LOCK TABLES `uptime` WRITE;
199 /*!40000 ALTER TABLE `uptime` DISABLE KEYS */;
200 /*!40000 ALTER TABLE `uptime` ENABLE KEYS */;
202 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
204 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
205 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
206 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
207 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
208 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
209 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
210 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
212 -- Dump completed on 2008-01-10 11:37:06