192 lines
7.1 KiB
SQL
192 lines
7.1 KiB
SQL
/*
|
|
SQLyog Ultimate
|
|
MySQL - 5.7.14-log : Database - nost_logon
|
|
*********************************************************************
|
|
*/
|
|
|
|
|
|
/*!40101 SET NAMES utf8 */;
|
|
|
|
/*!40101 SET SQL_MODE=''*/;
|
|
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
/*Table structure for table `account` */
|
|
|
|
DROP TABLE IF EXISTS `account`;
|
|
|
|
CREATE TABLE `account` (
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
|
|
`username` varchar(32) NOT NULL,
|
|
`sha_pass_hash` varchar(40) NOT NULL,
|
|
`gmlevel` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`sessionkey` longtext,
|
|
`v` longtext,
|
|
`s` longtext,
|
|
`reg_mail` varchar(255) NOT NULL DEFAULT '',
|
|
`token_key` varchar(100) NOT NULL DEFAULT '',
|
|
`email` text,
|
|
`joindate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`last_ip` varchar(30) NOT NULL DEFAULT '0.0.0.0',
|
|
`last_attempt_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1',
|
|
`last_local_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',
|
|
`lock_country` varchar(2) NOT NULL DEFAULT '00',
|
|
`last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`last_pwd_reset` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`online` tinyint(4) NOT NULL DEFAULT '0',
|
|
`expansion` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`mutetime` bigint(40) NOT NULL DEFAULT '0',
|
|
`mutereason` varchar(255) NOT NULL DEFAULT '',
|
|
`muteby` varchar(50) NOT NULL DEFAULT '',
|
|
`locale` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`os` varchar(4) NOT NULL DEFAULT '',
|
|
`recruiter` int(11) NOT NULL DEFAULT '0',
|
|
`current_realm` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`banned` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
`mail_verif` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
`remember_token` varchar(100) NOT NULL DEFAULT '',
|
|
`flags` int(10) unsigned NOT NULL DEFAULT '0',
|
|
`security` varchar(255) NULL,
|
|
`pass_verif` varchar(255) NULL COMMENT 'Web recover password',
|
|
`email_verif` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Email verification',
|
|
`email_check` varchar(255) NULL,
|
|
`nostalrius_token` varchar(255) NULL,
|
|
`nostalrius_token_enabled` tinyint(1) NOT NULL DEFAULT '0',
|
|
`nostalrius_email` text NULL,
|
|
`nostalrius_reason` text NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `idx_username` (`username`),
|
|
KEY `idx_gmlevel` (`gmlevel`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Account System';
|
|
|
|
/*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,
|
|
PRIMARY KEY (`id`,`RealmID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
|
|
|
|
/*Table structure for table `account_banned` */
|
|
|
|
DROP TABLE IF EXISTS `account_banned`;
|
|
|
|
CREATE TABLE `account_banned` (
|
|
`id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Account id',
|
|
`bandate` bigint(40) NOT NULL DEFAULT '0',
|
|
`unbandate` bigint(40) NOT NULL DEFAULT '0',
|
|
`bannedby` varchar(50) NOT NULL,
|
|
`banreason` varchar(255) NOT NULL,
|
|
`active` tinyint(4) NOT NULL DEFAULT '1',
|
|
`realm` tinyint(4) NOT NULL DEFAULT '1',
|
|
`gmlevel` tinyint(4) unsigned NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`, `bandate`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Ban List';
|
|
|
|
/*Table structure for table `ip2nation` */
|
|
|
|
DROP TABLE IF EXISTS `ip2nation`;
|
|
|
|
CREATE TABLE `ip2nation` (
|
|
`ip` int(11) unsigned NOT NULL DEFAULT '0',
|
|
`country` char(2) NOT NULL DEFAULT '',
|
|
KEY `ip` (`ip`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
/*Table structure for table `ip2nationcountries` */
|
|
|
|
DROP TABLE IF EXISTS `ip2nationcountries`;
|
|
|
|
CREATE TABLE `ip2nationcountries` (
|
|
`code` varchar(4) NOT NULL DEFAULT '',
|
|
`iso_code_2` varchar(2) NOT NULL DEFAULT '',
|
|
`iso_code_3` varchar(3) DEFAULT '',
|
|
`iso_country` varchar(255) NOT NULL DEFAULT '',
|
|
`country` varchar(255) NOT NULL DEFAULT '',
|
|
`lat` float NOT NULL DEFAULT '0',
|
|
`lon` float NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`code`),
|
|
KEY `code` (`code`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
/*Table structure for table `ip_banned` */
|
|
|
|
DROP TABLE IF EXISTS `ip_banned`;
|
|
|
|
CREATE TABLE `ip_banned` (
|
|
`ip` varchar(32) NOT NULL DEFAULT '0.0.0.0',
|
|
`bandate` int(11) NOT NULL,
|
|
`unbandate` int(11) NOT NULL,
|
|
`bannedby` varchar(50) NOT NULL DEFAULT '[Console]',
|
|
`banreason` varchar(50) NOT NULL DEFAULT 'no reason',
|
|
PRIMARY KEY (`ip`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Banned IPs';
|
|
|
|
/*Table structure for table `migrations` */
|
|
|
|
DROP TABLE IF EXISTS `migrations`;
|
|
|
|
CREATE TABLE `migrations` (
|
|
`id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
|
|
/*Table structure for table `realmcharacters` */
|
|
|
|
DROP TABLE IF EXISTS `realmcharacters`;
|
|
|
|
CREATE TABLE `realmcharacters` (
|
|
`realmid` int(11) unsigned NOT NULL DEFAULT '0',
|
|
`acctid` bigint(20) unsigned NOT NULL,
|
|
`numchars` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`realmid`,`acctid`),
|
|
KEY `acctid` (`acctid`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';
|
|
|
|
/*Table structure for table `realmlist` */
|
|
|
|
DROP TABLE IF EXISTS `realmlist`;
|
|
|
|
CREATE TABLE `realmlist` (
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(32) NOT NULL DEFAULT '',
|
|
`address` varchar(32) NOT NULL DEFAULT '127.0.0.1',
|
|
`localAddress` varchar(255) NOT NULL DEFAULT '127.0.0.1',
|
|
`localSubnetMask` varchar(255) NOT NULL DEFAULT '255.255.255.0',
|
|
`port` int(11) NOT NULL DEFAULT '8085',
|
|
`icon` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`realmflags` tinyint(3) unsigned NOT NULL DEFAULT '2',
|
|
`timezone` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`allowedSecurityLevel` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`population` float unsigned NOT NULL DEFAULT '0',
|
|
`gamebuild_min` int(11) unsigned NOT NULL DEFAULT '0',
|
|
`gamebuild_max` int(11) unsigned NOT NULL DEFAULT '0',
|
|
`flag` tinyint(3) unsigned NOT NULL DEFAULT '2',
|
|
`realmbuilds` varchar(64) NOT NULL DEFAULT '',
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `idx_name` (`name`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm System';
|
|
|
|
/*Table structure for table `uptime` */
|
|
|
|
DROP TABLE IF EXISTS `uptime`;
|
|
|
|
CREATE TABLE `uptime` (
|
|
`realmid` int(11) unsigned NOT NULL,
|
|
`starttime` bigint(20) unsigned NOT NULL DEFAULT '0',
|
|
`startstring` varchar(64) NOT NULL DEFAULT '',
|
|
`uptime` bigint(20) unsigned NOT NULL DEFAULT '0',
|
|
`maxplayers` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`revision` varchar(255) NOT NULL DEFAULT 'Trinitycore',
|
|
PRIMARY KEY (`realmid`,`starttime`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Uptime system';
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|