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_7867_01_realmd_account` 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` bigint(20) 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 `online` tinyint(4) 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`)
137 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';
140 -- Dumping data for table `realmcharacters`
143 LOCK TABLES `realmcharacters` WRITE;
144 /*!40000 ALTER TABLE `realmcharacters` DISABLE KEYS */;
145 /*!40000 ALTER TABLE `realmcharacters` ENABLE KEYS */;
149 -- Table structure for table `realmlist`
152 DROP TABLE IF EXISTS `realmlist`;
153 CREATE TABLE `realmlist` (
154 `id` int(11) unsigned NOT NULL auto_increment,
155 `name` varchar(32) NOT NULL default '',
156 `address` varchar(32) NOT NULL default '127.0.0.1',
157 `port` int(11) NOT NULL default '8085',
158 `icon` tinyint(3) unsigned NOT NULL default '0',
159 `color` tinyint(3) unsigned NOT NULL default '2',
160 `timezone` tinyint(3) unsigned NOT NULL default '0',
161 `allowedSecurityLevel` tinyint(3) unsigned NOT NULL default '0',
162 `population` float unsigned NOT NULL default '0',
164 UNIQUE KEY `idx_name` (`name`)
165 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm System';
168 -- Dumping data for table `realmlist`
171 LOCK TABLES `realmlist` WRITE;
172 /*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
173 INSERT INTO `realmlist` VALUES
174 (1,'MaNGOS','127.0.0.1',8085,1,0,1,0,0);
175 /*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
179 -- Table structure for table `uptime`
182 DROP TABLE IF EXISTS `uptime`;
183 CREATE TABLE `uptime` (
184 `realmid` int(11) unsigned NOT NULL,
185 `starttime` bigint(20) unsigned NOT NULL default '0',
186 `startstring` varchar(64) NOT NULL default '',
187 `uptime` bigint(20) unsigned NOT NULL default '0',
188 `maxplayers` smallint(5) unsigned NOT NULL default '0',
189 PRIMARY KEY (`realmid`,`starttime`)
190 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Uptime system';
193 -- Dumping data for table `uptime`
196 LOCK TABLES `uptime` WRITE;
197 /*!40000 ALTER TABLE `uptime` DISABLE KEYS */;
198 /*!40000 ALTER TABLE `uptime` ENABLE KEYS */;
200 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
202 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
203 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
204 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
205 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
206 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
207 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
208 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
210 -- Dump completed on 2008-01-10 11:37:06