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 `account`
22 DROP TABLE IF EXISTS `account`;
23 CREATE TABLE `account` (
24 `id` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Identifier',
25 `username` varchar(32) NOT NULL default '',
26 `sha_pass_hash` varchar(40) NOT NULL default '',
27 `gmlevel` tinyint(3) unsigned NOT NULL default '0',
28 `sessionkey` longtext,
31 `email` varchar(320) NOT NULL default '',
32 `joindate` timestamp NOT NULL default CURRENT_TIMESTAMP,
33 `last_ip` varchar(30) NOT NULL default '127.0.0.1',
34 `failed_logins` int(11) unsigned NOT NULL default '0',
35 `locked` tinyint(3) unsigned NOT NULL default '0',
36 `last_login` timestamp NOT NULL default '0000-00-00 00:00:00',
37 `online` tinyint(4) NOT NULL default '0',
38 `expansion` tinyint(3) unsigned NOT NULL default '0',
39 `mutetime` bigint(40) unsigned NOT NULL default '0',
40 `locale` tinyint(3) unsigned NOT NULL default '0',
42 UNIQUE KEY `idx_username` (`username`),
43 KEY `idx_gmlevel` (`gmlevel`)
44 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC COMMENT='Account System';
47 -- Dumping data for table `account`
50 LOCK TABLES `account` WRITE;
51 /*!40000 ALTER TABLE `account` DISABLE KEYS */;
52 INSERT INTO `account` VALUES
53 (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),
54 (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),
55 (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),
56 (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);
57 /*!40000 ALTER TABLE `account` ENABLE KEYS */;
61 -- Table structure for table `account_banned`
64 DROP TABLE IF EXISTS `account_banned`;
65 CREATE TABLE `account_banned` (
66 `id` int(11) NOT NULL default '0' COMMENT 'Account id',
67 `bandate` bigint(40) NOT NULL default '0',
68 `unbandate` bigint(40) NOT NULL default '0',
69 `bannedby` varchar(50) NOT NULL,
70 `banreason` varchar(255) NOT NULL,
71 `active` tinyint(4) NOT NULL default '1',
72 PRIMARY KEY (`id`,`bandate`)
73 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Ban List';
76 -- Dumping data for table `account_banned`
79 LOCK TABLES `account_banned` WRITE;
80 /*!40000 ALTER TABLE `account_banned` DISABLE KEYS */;
81 /*!40000 ALTER TABLE `account_banned` ENABLE KEYS */;
85 -- Table structure for table `ip_banned`
88 DROP TABLE IF EXISTS `ip_banned`;
89 CREATE TABLE `ip_banned` (
90 `ip` varchar(32) NOT NULL default '127.0.0.1',
91 `bandate` bigint(40) NOT NULL,
92 `unbandate` bigint(40) NOT NULL,
93 `bannedby` varchar(50) NOT NULL default '[Console]',
94 `banreason` varchar(255) NOT NULL default 'no reason',
95 PRIMARY KEY (`ip`,`bandate`)
96 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Banned IPs';
99 -- Dumping data for table `ip_banned`
102 LOCK TABLES `ip_banned` WRITE;
103 /*!40000 ALTER TABLE `ip_banned` DISABLE KEYS */;
104 /*!40000 ALTER TABLE `ip_banned` ENABLE KEYS */;
108 -- Table structure for table `realmcharacters`
111 DROP TABLE IF EXISTS `realmcharacters`;
112 CREATE TABLE `realmcharacters` (
113 `realmid` int(11) unsigned NOT NULL default '0',
114 `acctid` bigint(20) unsigned NOT NULL,
115 `numchars` tinyint(3) unsigned NOT NULL default '0',
116 PRIMARY KEY (`realmid`,`acctid`)
117 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';
120 -- Dumping data for table `realmcharacters`
123 LOCK TABLES `realmcharacters` WRITE;
124 /*!40000 ALTER TABLE `realmcharacters` DISABLE KEYS */;
125 /*!40000 ALTER TABLE `realmcharacters` ENABLE KEYS */;
129 -- Table structure for table `realmlist`
132 DROP TABLE IF EXISTS `realmlist`;
133 CREATE TABLE `realmlist` (
134 `id` int(11) unsigned NOT NULL auto_increment,
135 `name` varchar(32) NOT NULL default '',
136 `address` varchar(32) NOT NULL default '127.0.0.1',
137 `port` int(11) NOT NULL default '8085',
138 `icon` tinyint(3) unsigned NOT NULL default '0',
139 `color` tinyint(3) unsigned NOT NULL default '2',
140 `timezone` tinyint(3) unsigned NOT NULL default '0',
141 `allowedSecurityLevel` tinyint(3) unsigned NOT NULL default '0',
142 `population` float unsigned NOT NULL default '0',
144 UNIQUE KEY `idx_name` (`name`)
145 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm System';
148 -- Dumping data for table `realmlist`
151 LOCK TABLES `realmlist` WRITE;
152 /*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
153 INSERT INTO `realmlist` VALUES
154 (1,'MaNGOS','127.0.0.1',8085,1,0,1,0,0);
155 /*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
157 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
159 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
160 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
161 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
162 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
163 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
164 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
165 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
167 -- Dump completed on 2008-01-10 11:37:06