Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / sql / updates / 0.5 / 1465_build_realmd_db.sql
blob1b52a8c6fc5ad38cae4faca26fee7a7506806863
1 -- MySQL dump 10.10
2 --
3 -- Host: localhost    Database: realmd
4 -- ------------------------------------------------------
5 -- Server version       5.0.21
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(16) NOT NULL default '',
26   `password` varchar(28) NOT NULL default '',
27   `gmlevel` tinyint(3) unsigned NOT NULL default '0',
28   `sessionkey` longtext,
29   `email` varchar(50) NOT NULL default '',
30   `joindate` timestamp NOT NULL default CURRENT_TIMESTAMP,
31   `banned` tinyint(3) unsigned NOT NULL default '0',
32   `last_ip` varchar(30) NOT NULL default '127.0.0.1',
33   `failed_logins` int(11) unsigned NOT NULL default '0',
34   `locked` tinyint(3) unsigned NOT NULL default '0',
35   `last_login` timestamp NOT NULL default '0000-00-00 00:00:00',
36   `online` tinyint NOT NULL default 0,
37   PRIMARY KEY  (`id`),
38   UNIQUE KEY `idx_username` (`username`),
39   KEY `idx_banned` (`banned`),
40   KEY `idx_gmlevel` (`gmlevel`)
41 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Account System';
44 -- Table structure for table `realmcharacters`
47 DROP TABLE IF EXISTS `realmcharacters`;
48 CREATE TABLE `realmcharacters` (
49   `realmid` integer(11) unsigned NOT NULL default '0',
50   `acctid` bigint(20) unsigned NOT NULL,
51   `numchars` tinyint(3) unsigned NOT NULL default '0',
52   PRIMARY KEY (`realmid`, `acctid`)
53 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';
57 -- Table structure for table `ip_banned`
60 DROP TABLE IF EXISTS `ip_banned`;
61 CREATE TABLE `ip_banned` (
62   `ip` varchar(32) NOT NULL default '127.0.0.1',
63   PRIMARY KEY  (`ip`)
64 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Banned IPs';
67 -- Dumping data for table `ip_banned`
71 /*!40000 ALTER TABLE `ip_banned` DISABLE KEYS */;
72 LOCK TABLES `ip_banned` WRITE;
73 UNLOCK TABLES;
74 /*!40000 ALTER TABLE `ip_banned` ENABLE KEYS */;
78 -- Table structure for table `realmlist`
81 DROP TABLE IF EXISTS `realmlist`;
82 CREATE TABLE `realmlist` (
83   `id` int(11) unsigned NOT NULL auto_increment,
84   `name` varchar(32) NOT NULL default '',
85   `address` varchar(32) NOT NULL default '127.0.0.1',
86   `icon` tinyint(3) unsigned NOT NULL default '0',
87   `color` tinyint(3) unsigned NOT NULL default '0',
88   `timezone` tinyint(3) unsigned NOT NULL default '0',
89   PRIMARY KEY  (`id`),
90   UNIQUE KEY `idx_name` (`name`)
91 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm System';