2016-01-07 03:09:54 +01:00
-- ---------------------- --
-- Oregon Realmd Database --
-- ---------------------- --
2009-12-30 18:04:27 +01:00
2016-01-07 03:09:54 +01:00
-- Please do not edit this file directly,
-- create and update query and place it
-- to the updates/ folder.
2011-01-19 22:40:20 -05:00
2009-12-30 18:04:27 +01:00
--
-- Table structure for table `account`
--
DROP TABLE IF EXISTS ` account ` ;
CREATE TABLE ` account ` (
2016-01-07 03:09:54 +01:00
` id ` bigint ( 20 ) unsigned NOT NULL AUTO_INCREMENT COMMENT ' Identifier ' ,
2009-12-30 18:04:27 +01:00
` username ` varchar ( 32 ) NOT NULL ,
2016-01-07 03:09:54 +01:00
` sha_pass_hash ` varchar ( 40 ) NOT NULL DEFAULT ' ' ,
2009-12-30 18:04:27 +01:00
` sessionkey ` longtext ,
` v ` longtext ,
` s ` longtext ,
` email ` text ,
2016-01-07 03:09:54 +01:00
` joindate ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
` last_ip ` varchar ( 30 ) NOT NULL DEFAULT ' 127.0.0.1 ' ,
` failed_logins ` int ( 11 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` locked ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` last_login ` timestamp NOT NULL DEFAULT ' 0000-00-00 00:00:00 ' ,
` online ` int ( 4 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` expansion ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` mutetime ` bigint ( 40 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` locale ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` os ` varchar ( 4 ) NOT NULL DEFAULT ' ' ,
PRIMARY KEY ( ` id ` ) ,
2011-01-19 22:40:20 -05:00
UNIQUE KEY ` idx_username ` ( ` username ` )
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' Account System ' ;
2009-12-30 18:04:27 +01:00
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `account`
--
--
-- Table structure for table `account_access`
--
DROP TABLE IF EXISTS ` account_access ` ;
CREATE TABLE ` account_access ` (
` id ` int ( 11 ) unsigned NOT NULL ,
` gmlevel ` tinyint ( 3 ) unsigned NOT NULL ,
` RealmID ` int ( 11 ) NOT NULL DEFAULT ' -1 ' ,
PRIMARY KEY ( ` id ` , ` RealmID ` )
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC ;
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `account_access`
--
2009-12-30 18:04:27 +01:00
--
-- Table structure for table `account_banned`
--
DROP TABLE IF EXISTS ` account_banned ` ;
CREATE TABLE ` account_banned ` (
2016-01-07 03:09:54 +01:00
` id ` int ( 11 ) NOT NULL DEFAULT ' 0 ' COMMENT ' Account id ' ,
` bandate ` bigint ( 40 ) NOT NULL DEFAULT ' 0 ' ,
` unbandate ` bigint ( 40 ) NOT NULL DEFAULT ' 0 ' ,
2009-12-30 18:04:27 +01:00
` bannedby ` varchar ( 50 ) NOT NULL ,
` banreason ` varchar ( 255 ) NOT NULL ,
2016-01-07 03:09:54 +01:00
` active ` tinyint ( 4 ) NOT NULL DEFAULT ' 1 ' ,
PRIMARY KEY ( ` id ` , ` bandate ` )
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' Ban List ' ;
2009-12-30 18:04:27 +01:00
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `account_banned`
--
--
-- Table structure for table `account_referred`
--
DROP TABLE IF EXISTS ` account_referred ` ;
CREATE TABLE ` account_referred ` (
` id1 ` bigint ( 20 ) unsigned NOT NULL COMMENT ' Referring Account ' ,
` id2 ` bigint ( 20 ) unsigned NOT NULL COMMENT ' Referred Account ' ,
PRIMARY KEY ( ` id1 ` ) ,
KEY ` id2 ` ( ` id2 ` )
2016-09-01 17:07:01 +02:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' Refer-A-Friend ' ;
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `account_referred`
--
2009-12-30 18:04:27 +01:00
--
-- Table structure for table `ip_banned`
--
DROP TABLE IF EXISTS ` ip_banned ` ;
CREATE TABLE ` ip_banned ` (
2016-01-07 03:09:54 +01:00
` ip ` varchar ( 32 ) NOT NULL DEFAULT ' 127.0.0.1 ' ,
2009-12-30 18:04:27 +01:00
` bandate ` int ( 11 ) NOT NULL ,
` unbandate ` int ( 11 ) NOT NULL ,
2016-01-07 03:09:54 +01:00
` bannedby ` varchar ( 50 ) NOT NULL DEFAULT ' [Console] ' ,
` banreason ` varchar ( 50 ) NOT NULL DEFAULT ' no reason ' ,
PRIMARY KEY ( ` ip ` )
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' Banned IPs ' ;
2009-12-30 18:04:27 +01:00
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `ip_banned`
--
2010-08-12 11:10:56 +02:00
--
-- Table structure for table `logs`
--
DROP TABLE IF EXISTS ` logs ` ;
CREATE TABLE ` logs ` (
` time ` int ( 14 ) NOT NULL ,
` realm ` int ( 4 ) NOT NULL ,
` type ` int ( 4 ) NOT NULL ,
` string ` text
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ;
2010-08-12 11:10:56 +02:00
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `logs`
--
2009-12-30 18:04:27 +01:00
--
-- Table structure for table `realmcharacters`
--
DROP TABLE IF EXISTS ` realmcharacters ` ;
CREATE TABLE ` realmcharacters ` (
2016-01-07 03:09:54 +01:00
` realmid ` int ( 11 ) unsigned NOT NULL DEFAULT ' 0 ' ,
2009-12-30 18:04:27 +01:00
` acctid ` bigint ( 20 ) unsigned NOT NULL ,
2016-01-07 03:09:54 +01:00
` numchars ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` realmid ` , ` acctid ` ) ,
KEY ` acctid ` ( ` acctid ` )
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' Realm Character Tracker ' ;
2009-12-30 18:04:27 +01:00
2016-01-07 03:09:54 +01:00
--
-- Dumping data for table `realmcharacters`
--
2009-12-30 18:04:27 +01:00
--
-- Table structure for table `realmlist`
--
DROP TABLE IF EXISTS ` realmlist ` ;
CREATE TABLE ` realmlist ` (
2016-01-07 03:09:54 +01:00
` id ` int ( 11 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 32 ) NOT NULL DEFAULT ' ' ,
` address ` varchar ( 32 ) NOT NULL DEFAULT ' 127.0.0.1 ' ,
` port ` int ( 11 ) NOT NULL DEFAULT ' 8085 ' ,
` icon ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` realmflags ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' COMMENT ' Supported masks: 0x1 (invalid, not show in realm list), 0x2 (offline, set by realmd), 0x4 (show version and build), 0x20 (new players), 0x40 (recommended) ' ,
` timezone ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` allowedSecurityLevel ` tinyint ( 3 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` population ` float unsigned NOT NULL DEFAULT ' 0 ' ,
` realmbuilds ` varchar ( 64 ) NOT NULL DEFAULT ' 8606 ' ,
PRIMARY KEY ( ` id ` ) ,
2009-12-30 18:04:27 +01:00
UNIQUE KEY ` idx_name ` ( ` name ` )
2017-01-19 21:10:46 +01:00
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' Realm System ' ;
2009-12-30 18:04:27 +01:00
--
-- Dumping data for table `realmlist`
--
2016-01-07 03:09:54 +01:00
INSERT INTO ` realmlist ` VALUES ( 1 , ' OregonCore ' , ' 127.0.0.1 ' , 8085 , 1 , 2 , 1 , 0 , 0 , ' 8606 ' ) ;
2012-03-13 18:56:30 +01:00
--
2016-01-07 03:09:54 +01:00
-- Table structure for table `uptime`
--
DROP TABLE IF EXISTS ` uptime ` ;
CREATE TABLE ` uptime ` (
` realmid ` int ( 10 ) unsigned NOT NULL ,
` starttime ` int ( 10 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` uptime ` int ( 10 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` maxplayers ` smallint ( 5 ) unsigned NOT NULL DEFAULT ' 0 ' ,
` revision ` varchar ( 255 ) NOT NULL DEFAULT ' OregonCore ' ,
PRIMARY KEY ( ` realmid ` , ` starttime ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COMMENT = ' Uptime system ' ;
--
-- Dumping data for table `uptime`
--
--
2016-01-16 12:37:04 +01:00
-- Table structure for table `updates`
2016-01-07 03:09:54 +01:00
--
2016-01-16 12:37:04 +01:00
DROP TABLE IF EXISTS ` updates ` ;
CREATE TABLE ` updates `
(
` update ` varchar ( 255 ) not null primary key comment ' Filename of the update ' ,
` applied ` timestamp not null comment ' Date when the update was applied. '
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COMMENT ' DB versioning information (Used by auto-updater) ' ;
2016-01-07 03:09:54 +01:00
-- Dump completed on 2016-01-07 2:24:06