From 3a6c0b5575f8aaf1bd12ebca26d52fbeb122f086 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 8 Oct 2026 10:37:27 +0200 Subject: [PATCH] docs(database): add current Vcore MariaDB schemas --- database/schema/README.md | 20 + database/schema/cata_auth.sql | 300 ++ database/schema/cata_characters.sql | 1581 ++++++++++ database/schema/cata_hotfixes.sql | 315 ++ database/schema/cata_locale_reference.sql | 374 +++ database/schema/cata_world.sql | 3251 +++++++++++++++++++++ database/schema/vcore_dev.sql | 233 ++ 7 files changed, 6074 insertions(+) create mode 100644 database/schema/README.md create mode 100644 database/schema/cata_auth.sql create mode 100644 database/schema/cata_characters.sql create mode 100644 database/schema/cata_hotfixes.sql create mode 100644 database/schema/cata_locale_reference.sql create mode 100644 database/schema/cata_world.sql create mode 100644 database/schema/vcore_dev.sql diff --git a/database/schema/README.md b/database/schema/README.md new file mode 100644 index 0000000000..020ce94d97 --- /dev/null +++ b/database/schema/README.md @@ -0,0 +1,20 @@ +# Vcore Database Schemas + +This directory contains schema-only snapshots of the MariaDB databases +used by Vcore (World of Warcraft Cataclysm 4.3.4). + +## Databases + +- cata_world +- cata_locale_reference +- cata_characters +- cata_auth +- cata_hotfixes +- vcore_dev + +The files contain database structures only, not production table data. + +These snapshots reflect the database state at the time of export. +They are not a substitute for SQL migrations or database backups. + +Initial snapshot: 2026-10-08. diff --git a/database/schema/cata_auth.sql b/database/schema/cata_auth.sql new file mode 100644 index 0000000000..dee7b94297 --- /dev/null +++ b/database/schema/cata_auth.sql @@ -0,0 +1,300 @@ +/*M!999999\- enable the sandbox mode */ + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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 */; +DROP TABLE IF EXISTS `account`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier', + `username` varchar(32) NOT NULL DEFAULT '', + `salt` binary(32) NOT NULL, + `verifier` binary(32) NOT NULL, + `session_key_auth` binary(40) DEFAULT NULL, + `session_key_bnet` varbinary(64) DEFAULT NULL, + `totp_secret` varbinary(128) DEFAULT NULL, + `v` varchar(64) NOT NULL DEFAULT '', + `s` varchar(64) NOT NULL DEFAULT '', + `token_key` varchar(100) NOT NULL DEFAULT '', + `email` varchar(255) NOT NULL DEFAULT '', + `reg_mail` varchar(255) NOT NULL DEFAULT '', + `joindate` timestamp NOT NULL DEFAULT current_timestamp(), + `last_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1', + `last_attempt_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1', + `failed_logins` int(10) unsigned NOT NULL DEFAULT 0, + `locked` tinyint(3) unsigned NOT NULL DEFAULT 0, + `lock_country` varchar(2) NOT NULL DEFAULT '00', + `last_login` timestamp NULL DEFAULT NULL, + `online` tinyint(3) unsigned NOT NULL DEFAULT 0, + `expansion` tinyint(3) unsigned NOT NULL DEFAULT 3, + `mutetime` bigint(20) 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(5) DEFAULT NULL, + `timezone_offset` smallint(6) NOT NULL DEFAULT 0, + `recruiter` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `idx_username` (`username`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Account System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `account_access`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account_access` ( + `AccountID` int(10) unsigned NOT NULL, + `SecurityLevel` tinyint(3) unsigned NOT NULL, + `RealmID` int(11) NOT NULL DEFAULT -1, + PRIMARY KEY (`AccountID`,`RealmID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `account_banned`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account_banned` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account id', + `bandate` int(10) unsigned NOT NULL DEFAULT 0, + `unbandate` int(10) unsigned NOT NULL DEFAULT 0, + `bannedby` varchar(50) NOT NULL, + `banreason` varchar(255) NOT NULL, + `active` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`id`,`bandate`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Ban List'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `account_muted`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account_muted` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `mutedate` int(10) unsigned NOT NULL DEFAULT 0, + `mutetime` int(10) unsigned NOT NULL DEFAULT 0, + `mutedby` varchar(50) NOT NULL, + `mutereason` varchar(255) NOT NULL, + PRIMARY KEY (`guid`,`mutedate`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='mute List'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `autobroadcast`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `autobroadcast` ( + `realmid` int(11) NOT NULL DEFAULT -1, + `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, + `weight` tinyint(3) unsigned DEFAULT 1, + `text` longtext NOT NULL, + PRIMARY KEY (`id`,`realmid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `build_auth_key`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `build_auth_key` ( + `build` int(11) NOT NULL, + `platform` char(4) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, + `arch` char(4) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, + `type` char(4) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, + `key` binary(16) NOT NULL, + PRIMARY KEY (`build`,`platform`,`arch`,`type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `build_executable_hash`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `build_executable_hash` ( + `build` int(11) NOT NULL, + `platform` char(4) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, + `executableHash` binary(20) NOT NULL, + PRIMARY KEY (`build`,`platform`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `build_info`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `build_info` ( + `build` int(11) NOT NULL, + `majorVersion` int(11) DEFAULT NULL, + `minorVersion` int(11) DEFAULT NULL, + `bugfixVersion` int(11) DEFAULT NULL, + `hotfixVersion` char(3) DEFAULT NULL, + PRIMARY KEY (`build`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `ip_banned`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `ip_banned` ( + `ip` varchar(15) NOT NULL DEFAULT '127.0.0.1', + `bandate` int(10) unsigned NOT NULL, + `unbandate` int(10) unsigned NOT NULL, + `bannedby` varchar(50) NOT NULL DEFAULT '[Console]', + `banreason` varchar(255) NOT NULL DEFAULT 'no reason', + PRIMARY KEY (`ip`,`bandate`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Banned IPs'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `logs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `logs` ( + `time` int(10) unsigned NOT NULL, + `realm` int(10) unsigned NOT NULL, + `type` varchar(250) NOT NULL, + `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `string` text CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `logs_ip_actions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `logs_ip_actions` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique Identifier', + `account_id` int(10) unsigned NOT NULL COMMENT 'Account ID', + `character_guid` int(10) unsigned NOT NULL COMMENT 'Character Guid', + `type` tinyint(3) unsigned NOT NULL, + `ip` varchar(15) NOT NULL DEFAULT '127.0.0.1', + `systemnote` text DEFAULT NULL COMMENT 'Notes inserted by system', + `unixtime` int(10) unsigned NOT NULL COMMENT 'Unixtime', + `time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'Timestamp', + `comment` text DEFAULT NULL COMMENT 'Allows users to add a comment', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Used to log ips of individual actions'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `rbac_account_permissions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `rbac_account_permissions` ( + `accountId` int(10) unsigned NOT NULL COMMENT 'Account id', + `permissionId` int(10) unsigned NOT NULL COMMENT 'Permission id', + `granted` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Granted = 1, Denied = 0', + `realmId` int(11) NOT NULL DEFAULT -1 COMMENT 'Realm Id, -1 means all', + PRIMARY KEY (`accountId`,`permissionId`,`realmId`), + KEY `fk__rbac_account_roles__rbac_permissions` (`permissionId`), + CONSTRAINT `fk__rbac_account_permissions__account` FOREIGN KEY (`accountId`) REFERENCES `account` (`id`) ON DELETE CASCADE, + CONSTRAINT `fk__rbac_account_roles__rbac_permissions` FOREIGN KEY (`permissionId`) REFERENCES `rbac_permissions` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Account-Permission relation'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `rbac_default_permissions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `rbac_default_permissions` ( + `secId` int(10) unsigned NOT NULL COMMENT 'Security Level id', + `permissionId` int(10) unsigned NOT NULL COMMENT 'permission id', + `realmId` int(11) NOT NULL DEFAULT -1 COMMENT 'Realm Id, -1 means all', + PRIMARY KEY (`secId`,`permissionId`,`realmId`), + KEY `fk__rbac_default_permissions__rbac_permissions` (`permissionId`), + CONSTRAINT `fk__rbac_default_permissions__rbac_permissions` FOREIGN KEY (`permissionId`) REFERENCES `rbac_permissions` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Default permission to assign to different account security levels'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `rbac_linked_permissions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `rbac_linked_permissions` ( + `id` int(10) unsigned NOT NULL COMMENT 'Permission id', + `linkedId` int(10) unsigned NOT NULL COMMENT 'Linked Permission id', + PRIMARY KEY (`id`,`linkedId`), + KEY `fk__rbac_linked_permissions__rbac_permissions1` (`id`), + KEY `fk__rbac_linked_permissions__rbac_permissions2` (`linkedId`), + CONSTRAINT `fk__rbac_linked_permissions__rbac_permissions1` FOREIGN KEY (`id`) REFERENCES `rbac_permissions` (`id`) ON DELETE CASCADE, + CONSTRAINT `fk__rbac_linked_permissions__rbac_permissions2` FOREIGN KEY (`linkedId`) REFERENCES `rbac_permissions` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Permission - Linked Permission relation'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `rbac_permissions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `rbac_permissions` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Permission id', + `name` varchar(100) NOT NULL COMMENT 'Permission name', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Permission List'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `realmcharacters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `realmcharacters` ( + `realmid` int(10) unsigned NOT NULL DEFAULT 0, + `acctid` int(10) unsigned NOT NULL, + `numchars` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`realmid`,`acctid`), + KEY `acctid` (`acctid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Realm Character Tracker'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `realmlist`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `realmlist` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(32) NOT NULL DEFAULT '', + `address` varchar(255) 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` smallint(5) unsigned NOT NULL DEFAULT 8085, + `icon` tinyint(3) unsigned NOT NULL DEFAULT 0, + `flag` 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` int(10) unsigned NOT NULL DEFAULT 15595, + `Region` tinyint(3) unsigned NOT NULL DEFAULT 2, + `Battlegroup` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + UNIQUE KEY `idx_name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Realm System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `secret_digest`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `secret_digest` ( + `id` int(10) unsigned NOT NULL, + `digest` varchar(100) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates` ( + `name` varchar(200) NOT NULL COMMENT 'filename with extension of the update.', + `hash` char(40) DEFAULT '' COMMENT 'sha1 hash of the sql file.', + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if an update is released or archived.', + `timestamp` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'timestamp when the query was applied.', + `speed` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'time the query takes to apply in ms.', + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of all applied updates in this database.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates_include`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates_include` ( + `path` varchar(200) NOT NULL COMMENT 'directory to include. $ means relative to the source directory.', + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if the directory contains released or archived updates.', + PRIMARY KEY (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of directories where we want to include sql updates.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `uptime`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +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 'Trinitycore', + PRIMARY KEY (`realmid`,`starttime`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Uptime system'; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/database/schema/cata_characters.sql b/database/schema/cata_characters.sql new file mode 100644 index 0000000000..abb1d3085d --- /dev/null +++ b/database/schema/cata_characters.sql @@ -0,0 +1,1581 @@ +/*M!999999\- enable the sandbox mode */ + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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 */; +DROP TABLE IF EXISTS `account_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account_data` ( + `accountId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier', + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `time` int(10) unsigned NOT NULL DEFAULT 0, + `data` blob NOT NULL, + PRIMARY KEY (`accountId`,`type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `account_instance_times`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account_instance_times` ( + `accountId` int(10) unsigned NOT NULL, + `instanceId` int(10) unsigned NOT NULL DEFAULT 0, + `releaseTime` bigint(20) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`accountId`,`instanceId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `account_tutorial`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `account_tutorial` ( + `accountId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier', + `tut0` int(10) unsigned NOT NULL DEFAULT 0, + `tut1` int(10) unsigned NOT NULL DEFAULT 0, + `tut2` int(10) unsigned NOT NULL DEFAULT 0, + `tut3` int(10) unsigned NOT NULL DEFAULT 0, + `tut4` int(10) unsigned NOT NULL DEFAULT 0, + `tut5` int(10) unsigned NOT NULL DEFAULT 0, + `tut6` int(10) unsigned NOT NULL DEFAULT 0, + `tut7` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`accountId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `addons`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `addons` ( + `name` varchar(120) NOT NULL DEFAULT '', + `crc` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Addons'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `arena_team`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `arena_team` ( + `arenaTeamId` int(10) unsigned NOT NULL DEFAULT 0, + `name` varchar(24) NOT NULL, + `captainGuid` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `rating` smallint(5) unsigned NOT NULL DEFAULT 0, + `seasonGames` smallint(5) unsigned NOT NULL DEFAULT 0, + `seasonWins` smallint(5) unsigned NOT NULL DEFAULT 0, + `weekGames` smallint(5) unsigned NOT NULL DEFAULT 0, + `weekWins` smallint(5) unsigned NOT NULL DEFAULT 0, + `rank` int(10) unsigned NOT NULL DEFAULT 0, + `backgroundColor` int(10) unsigned NOT NULL DEFAULT 0, + `emblemStyle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `emblemColor` int(10) unsigned NOT NULL DEFAULT 0, + `borderStyle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `borderColor` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`arenaTeamId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `arena_team_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `arena_team_member` ( + `arenaTeamId` int(10) unsigned NOT NULL DEFAULT 0, + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `weekGames` smallint(5) unsigned NOT NULL DEFAULT 0, + `weekWins` smallint(5) unsigned NOT NULL DEFAULT 0, + `seasonGames` smallint(5) unsigned NOT NULL DEFAULT 0, + `seasonWins` smallint(5) unsigned NOT NULL DEFAULT 0, + `personalRating` smallint(5) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`arenaTeamId`,`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `auctionbidders`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `auctionbidders` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `bidderguid` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`,`bidderguid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `auctionhouse`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `auctionhouse` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `houseid` tinyint(3) unsigned NOT NULL DEFAULT 7, + `itemguid` int(10) unsigned NOT NULL DEFAULT 0, + `itemowner` int(10) unsigned NOT NULL DEFAULT 0, + `buyoutprice` bigint(20) unsigned NOT NULL DEFAULT 0, + `time` int(10) unsigned NOT NULL DEFAULT 0, + `buyguid` int(10) unsigned NOT NULL DEFAULT 0, + `lastbid` bigint(20) unsigned NOT NULL DEFAULT 0, + `startbid` bigint(20) unsigned NOT NULL DEFAULT 0, + `deposit` bigint(20) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `item_guid` (`itemguid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `banned_addons`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `banned_addons` ( + `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `Name` varchar(255) NOT NULL, + `Version` varchar(255) NOT NULL DEFAULT '', + `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`Id`), + UNIQUE KEY `idx_name_ver` (`Name`,`Version`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `battleground_deserters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `battleground_deserters` ( + `guid` int(10) unsigned NOT NULL COMMENT 'characters.guid', + `type` tinyint(3) unsigned NOT NULL COMMENT 'type of the desertion', + `datetime` datetime NOT NULL COMMENT 'datetime of the desertion' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bugreport`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `bugreport` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier', + `type` longtext NOT NULL, + `content` longtext NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Debug System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `calendar_events`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `calendar_events` ( + `id` bigint(20) unsigned NOT NULL DEFAULT 0, + `creator` int(10) unsigned NOT NULL DEFAULT 0, + `title` varchar(255) NOT NULL DEFAULT '', + `description` varchar(255) NOT NULL DEFAULT '', + `type` tinyint(3) unsigned NOT NULL DEFAULT 4, + `dungeon` int(11) NOT NULL DEFAULT -1, + `eventtime` int(10) unsigned NOT NULL DEFAULT 0, + `flags` int(10) unsigned NOT NULL DEFAULT 0, + `time2` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `calendar_invites`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `calendar_invites` ( + `id` bigint(20) unsigned NOT NULL DEFAULT 0, + `event` bigint(20) unsigned NOT NULL DEFAULT 0, + `invitee` int(10) unsigned NOT NULL DEFAULT 0, + `sender` int(10) unsigned NOT NULL DEFAULT 0, + `status` tinyint(3) unsigned NOT NULL DEFAULT 0, + `statustime` int(10) unsigned NOT NULL DEFAULT 0, + `rank` tinyint(3) unsigned NOT NULL DEFAULT 0, + `text` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `channels`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `channels` ( + `name` varchar(128) NOT NULL, + `team` int(10) unsigned NOT NULL, + `announce` tinyint(3) unsigned NOT NULL DEFAULT 1, + `ownership` tinyint(3) unsigned NOT NULL DEFAULT 1, + `password` varchar(32) DEFAULT NULL, + `bannedList` text DEFAULT NULL, + `lastUsed` int(10) unsigned NOT NULL, + PRIMARY KEY (`name`,`team`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Channel System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_account_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_account_data` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `time` int(10) unsigned NOT NULL DEFAULT 0, + `data` blob NOT NULL, + PRIMARY KEY (`guid`,`type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_achievement`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_achievement` ( + `guid` int(10) unsigned NOT NULL, + `achievement` smallint(5) unsigned NOT NULL, + `date` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`achievement`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_achievement_progress`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_achievement_progress` ( + `guid` int(10) unsigned NOT NULL, + `criteria` smallint(5) unsigned NOT NULL, + `counter` bigint(20) unsigned NOT NULL, + `date` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`criteria`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_action`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_action` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `spec` tinyint(3) unsigned NOT NULL DEFAULT 0, + `button` tinyint(3) unsigned NOT NULL DEFAULT 0, + `action` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`spec`,`button`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_archaeology_completed`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_archaeology_completed` ( + `guid` int(10) unsigned NOT NULL, + `project` smallint(5) unsigned NOT NULL, + `time` int(11) NOT NULL, + `count` int(11) NOT NULL, + PRIMARY KEY (`guid`,`project`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_archaeology_projects`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_archaeology_projects` ( + `guid` int(10) unsigned NOT NULL, + `branch` tinyint(3) unsigned NOT NULL, + `project` int(10) unsigned NOT NULL, + PRIMARY KEY (`guid`,`branch`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_archaeology_sites`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_archaeology_sites` ( + `guid` int(10) unsigned NOT NULL, + `site` tinyint(3) unsigned NOT NULL, + `type` smallint(5) unsigned NOT NULL, + `finds` tinyint(3) unsigned NOT NULL, + PRIMARY KEY (`guid`,`site`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_arena_stats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_arena_stats` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `slot` tinyint(3) unsigned NOT NULL DEFAULT 0, + `matchMakerRating` smallint(5) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`slot`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_aura`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_aura` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `casterGuid` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT 'Full Global Unique Identifier', + `itemGuid` bigint(20) unsigned NOT NULL DEFAULT 0, + `spell` int(10) unsigned NOT NULL DEFAULT 0, + `effectMask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `recalculateMask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `stackCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `amount0` int(11) NOT NULL DEFAULT 0, + `amount1` int(11) NOT NULL DEFAULT 0, + `amount2` int(11) NOT NULL DEFAULT 0, + `base_amount0` int(11) NOT NULL DEFAULT 0, + `base_amount1` int(11) NOT NULL DEFAULT 0, + `base_amount2` int(11) NOT NULL DEFAULT 0, + `maxDuration` int(11) NOT NULL DEFAULT 0, + `remainTime` int(11) NOT NULL DEFAULT 0, + `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT 0, + `critChance` float NOT NULL DEFAULT 0, + `applyResilience` tinyint(3) NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`casterGuid`,`itemGuid`,`spell`,`effectMask`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_banned`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_banned` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `bandate` int(10) unsigned NOT NULL DEFAULT 0, + `unbandate` int(10) unsigned NOT NULL DEFAULT 0, + `bannedby` varchar(50) NOT NULL, + `banreason` varchar(255) NOT NULL, + `active` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`guid`,`bandate`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Ban List'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_battleground_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_battleground_data` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `instanceId` int(10) unsigned NOT NULL COMMENT 'Instance Identifier', + `team` smallint(5) unsigned NOT NULL, + `joinX` float NOT NULL DEFAULT 0, + `joinY` float NOT NULL DEFAULT 0, + `joinZ` float NOT NULL DEFAULT 0, + `joinO` float NOT NULL DEFAULT 0, + `joinMapId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier', + `taxiStart` int(10) unsigned NOT NULL DEFAULT 0, + `taxiEnd` int(10) unsigned NOT NULL DEFAULT 0, + `mountSpell` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_battleground_random`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_battleground_random` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_cuf_profiles`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_cuf_profiles` ( + `guid` int(10) unsigned NOT NULL COMMENT 'Character Guid', + `id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-4)', + `name` varchar(12) NOT NULL COMMENT 'Profile Name', + `frameHeight` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Frame Height', + `frameWidth` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Frame Width', + `sortBy` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Frame Sort By', + `healthText` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Frame Health Text', + `boolOptions` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Many Configurable Bool Options', + `unk146` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Unk Int8', + `unk147` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Unk Int8', + `unk148` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Unk Int8', + `unk150` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Unk Int16', + `unk152` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Unk Int16', + `unk154` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Profile Unk Int16', + PRIMARY KEY (`guid`,`id`), + KEY `index` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_currency`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_currency` ( + `CharacterGuid` int(10) unsigned NOT NULL, + `Currency` smallint(5) unsigned NOT NULL, + `Quantity` int(10) unsigned NOT NULL, + `WeeklyQuantity` int(10) unsigned NOT NULL, + `TrackedQuantity` int(10) unsigned NOT NULL, + `Flags` tinyint(3) unsigned NOT NULL, + PRIMARY KEY (`CharacterGuid`,`Currency`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_declinedname`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_declinedname` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `genitive` varchar(15) NOT NULL DEFAULT '', + `dative` varchar(15) NOT NULL DEFAULT '', + `accusative` varchar(15) NOT NULL DEFAULT '', + `instrumental` varchar(15) NOT NULL DEFAULT '', + `prepositional` varchar(15) NOT NULL DEFAULT '', + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_equipmentsets`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_equipmentsets` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `setguid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `setindex` tinyint(3) unsigned NOT NULL DEFAULT 0, + `name` varchar(31) NOT NULL, + `iconname` varchar(100) NOT NULL, + `ignore_mask` int(10) unsigned NOT NULL DEFAULT 0, + `item0` int(10) unsigned NOT NULL DEFAULT 0, + `item1` int(10) unsigned NOT NULL DEFAULT 0, + `item2` int(10) unsigned NOT NULL DEFAULT 0, + `item3` int(10) unsigned NOT NULL DEFAULT 0, + `item4` int(10) unsigned NOT NULL DEFAULT 0, + `item5` int(10) unsigned NOT NULL DEFAULT 0, + `item6` int(10) unsigned NOT NULL DEFAULT 0, + `item7` int(10) unsigned NOT NULL DEFAULT 0, + `item8` int(10) unsigned NOT NULL DEFAULT 0, + `item9` int(10) unsigned NOT NULL DEFAULT 0, + `item10` int(10) unsigned NOT NULL DEFAULT 0, + `item11` int(10) unsigned NOT NULL DEFAULT 0, + `item12` int(10) unsigned NOT NULL DEFAULT 0, + `item13` int(10) unsigned NOT NULL DEFAULT 0, + `item14` int(10) unsigned NOT NULL DEFAULT 0, + `item15` int(10) unsigned NOT NULL DEFAULT 0, + `item16` int(10) unsigned NOT NULL DEFAULT 0, + `item17` int(10) unsigned NOT NULL DEFAULT 0, + `item18` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`setguid`), + UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`), + KEY `Idx_setindex` (`setindex`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_fishingsteps`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_fishingsteps` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `fishingSteps` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_gifts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_gifts` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `item_guid` int(10) unsigned NOT NULL DEFAULT 0, + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `flags` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`item_guid`), + KEY `idx_guid` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_glyphs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_glyphs` ( + `guid` int(10) unsigned NOT NULL, + `talentGroup` tinyint(3) unsigned NOT NULL DEFAULT 0, + `glyph1` smallint(5) unsigned DEFAULT 0, + `glyph2` smallint(5) unsigned DEFAULT 0, + `glyph3` smallint(5) unsigned DEFAULT 0, + `glyph4` smallint(5) unsigned DEFAULT 0, + `glyph5` smallint(5) unsigned DEFAULT 0, + `glyph6` smallint(5) unsigned DEFAULT 0, + `glyph7` smallint(5) unsigned DEFAULT 0, + `glyph8` smallint(5) unsigned DEFAULT 0, + `glyph9` smallint(5) unsigned DEFAULT 0, + PRIMARY KEY (`guid`,`talentGroup`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_homebind`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_homebind` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `mapId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier', + `zoneId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Zone Identifier', + `posX` float NOT NULL DEFAULT 0, + `posY` float NOT NULL DEFAULT 0, + `posZ` float NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_instance` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `instance` int(10) unsigned NOT NULL DEFAULT 0, + `permanent` tinyint(3) unsigned NOT NULL DEFAULT 0, + `extendState` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`guid`,`instance`), + KEY `instance` (`instance`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_inventory`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_inventory` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `bag` int(10) unsigned NOT NULL DEFAULT 0, + `slot` tinyint(3) unsigned NOT NULL DEFAULT 0, + `item` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Item Global Unique Identifier', + PRIMARY KEY (`item`), + UNIQUE KEY `guid` (`guid`,`bag`,`slot`), + KEY `idx_guid` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_pet`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_pet` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `owner` int(10) unsigned NOT NULL DEFAULT 0, + `modelid` int(10) unsigned DEFAULT 0, + `CreatedBySpell` int(10) unsigned NOT NULL DEFAULT 0, + `PetType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level` smallint(5) unsigned NOT NULL DEFAULT 1, + `exp` int(10) unsigned NOT NULL DEFAULT 0, + `Reactstate` tinyint(3) unsigned NOT NULL DEFAULT 0, + `name` varchar(21) NOT NULL DEFAULT 'Pet', + `renamed` tinyint(3) unsigned NOT NULL DEFAULT 0, + `active` tinyint(3) unsigned NOT NULL DEFAULT 0, + `slot` tinyint(3) unsigned NOT NULL DEFAULT 0, + `curhealth` int(10) unsigned NOT NULL DEFAULT 1, + `curmana` int(10) unsigned NOT NULL DEFAULT 0, + `savetime` int(10) unsigned NOT NULL DEFAULT 0, + `abdata` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `owner` (`owner`), + KEY `idx_slot` (`slot`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Pet System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_pet_declinedname`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_pet_declinedname` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `owner` int(10) unsigned NOT NULL DEFAULT 0, + `genitive` varchar(12) NOT NULL DEFAULT '', + `dative` varchar(12) NOT NULL DEFAULT '', + `accusative` varchar(12) NOT NULL DEFAULT '', + `instrumental` varchar(12) NOT NULL DEFAULT '', + `prepositional` varchar(12) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `owner_key` (`owner`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_queststatus`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_queststatus` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + `status` tinyint(3) unsigned NOT NULL DEFAULT 0, + `explored` tinyint(3) unsigned NOT NULL DEFAULT 0, + `timer` int(10) unsigned NOT NULL DEFAULT 0, + `mobcount1` smallint(5) unsigned NOT NULL DEFAULT 0, + `mobcount2` smallint(5) unsigned NOT NULL DEFAULT 0, + `mobcount3` smallint(5) unsigned NOT NULL DEFAULT 0, + `mobcount4` smallint(5) unsigned NOT NULL DEFAULT 0, + `itemcount1` smallint(5) unsigned NOT NULL DEFAULT 0, + `itemcount2` smallint(5) unsigned NOT NULL DEFAULT 0, + `itemcount3` smallint(5) unsigned NOT NULL DEFAULT 0, + `itemcount4` smallint(5) unsigned NOT NULL DEFAULT 0, + `itemcount5` smallint(5) unsigned NOT NULL DEFAULT 0, + `itemcount6` smallint(5) unsigned NOT NULL DEFAULT 0, + `playercount` smallint(5) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_queststatus_daily`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_queststatus_daily` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + `time` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`quest`), + KEY `idx_guid` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_queststatus_monthly`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_queststatus_monthly` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`guid`,`quest`), + KEY `idx_guid` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_queststatus_rewarded`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_queststatus_rewarded` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + `active` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`guid`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_queststatus_seasonal`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_queststatus_seasonal` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + `event` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Event Identifier', + `completedTime` bigint(20) NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`quest`), + KEY `idx_guid` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_queststatus_weekly`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_queststatus_weekly` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`guid`,`quest`), + KEY `idx_guid` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_reputation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_reputation` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `faction` smallint(5) unsigned NOT NULL DEFAULT 0, + `standing` int(11) NOT NULL DEFAULT 0, + `flags` smallint(5) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`faction`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_rewardstatus_lfg`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_rewardstatus_lfg` ( + `guid` int(11) NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `dungeonId` smallint(6) NOT NULL DEFAULT 0 COMMENT 'Dungeon ID Identifier', + `rewardCount` tinyint(3) unsigned DEFAULT 0 COMMENT 'Dungeon First Reward Count Identifier', + `dailyReset` tinyint(3) unsigned DEFAULT 0 COMMENT 'Reward Count Daily Reset Identifier' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_skills`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_skills` ( + `guid` int(10) unsigned NOT NULL COMMENT 'Global Unique Identifier', + `skill` smallint(5) unsigned NOT NULL, + `value` smallint(5) unsigned NOT NULL, + `max` smallint(5) unsigned NOT NULL, + PRIMARY KEY (`guid`,`skill`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_social`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_social` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier', + `friend` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Friend Global Unique Identifier', + `flags` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Friend Flags', + `note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note', + PRIMARY KEY (`guid`,`friend`,`flags`), + KEY `friend` (`friend`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_spell` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `spell` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier', + `active` tinyint(3) unsigned NOT NULL DEFAULT 1, + `disabled` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`spell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_spell_cooldown`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_spell_cooldown` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier, Low part', + `spell` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier', + `item` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Item Identifier', + `time` int(10) unsigned NOT NULL DEFAULT 0, + `categoryId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell category Id', + `categoryEnd` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`spell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_stats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_stats` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier, Low part', + `maxhealth` int(10) unsigned NOT NULL DEFAULT 0, + `maxpower1` int(10) unsigned NOT NULL DEFAULT 0, + `maxpower2` int(10) unsigned NOT NULL DEFAULT 0, + `maxpower3` int(10) unsigned NOT NULL DEFAULT 0, + `maxpower4` int(10) unsigned NOT NULL DEFAULT 0, + `maxpower5` int(10) unsigned NOT NULL DEFAULT 0, + `strength` int(10) unsigned NOT NULL DEFAULT 0, + `agility` int(10) unsigned NOT NULL DEFAULT 0, + `stamina` int(10) unsigned NOT NULL DEFAULT 0, + `intellect` int(10) unsigned NOT NULL DEFAULT 0, + `spirit` int(10) unsigned NOT NULL DEFAULT 0, + `armor` int(10) unsigned NOT NULL DEFAULT 0, + `resHoly` int(10) unsigned NOT NULL DEFAULT 0, + `resFire` int(10) unsigned NOT NULL DEFAULT 0, + `resNature` int(10) unsigned NOT NULL DEFAULT 0, + `resFrost` int(10) unsigned NOT NULL DEFAULT 0, + `resShadow` int(10) unsigned NOT NULL DEFAULT 0, + `resArcane` int(10) unsigned NOT NULL DEFAULT 0, + `blockPct` float unsigned NOT NULL DEFAULT 0, + `dodgePct` float unsigned NOT NULL DEFAULT 0, + `parryPct` float unsigned NOT NULL DEFAULT 0, + `critPct` float unsigned NOT NULL DEFAULT 0, + `rangedCritPct` float unsigned NOT NULL DEFAULT 0, + `spellCritPct` float unsigned NOT NULL DEFAULT 0, + `attackPower` int(10) unsigned NOT NULL DEFAULT 0, + `rangedAttackPower` int(10) unsigned NOT NULL DEFAULT 0, + `spellPower` int(10) unsigned NOT NULL DEFAULT 0, + `resilience` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_talent`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_talent` ( + `guid` int(10) unsigned NOT NULL, + `spell` int(10) unsigned NOT NULL, + `talentGroup` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`spell`,`talentGroup`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `character_void_storage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `character_void_storage` ( + `itemId` bigint(20) unsigned NOT NULL, + `playerGuid` int(10) unsigned NOT NULL, + `itemEntry` int(10) unsigned NOT NULL, + `slot` tinyint(3) unsigned NOT NULL, + `creatorGuid` int(10) unsigned NOT NULL DEFAULT 0, + `randomPropertyType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `randomProperty` int(10) unsigned NOT NULL DEFAULT 0, + `suffixFactor` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`itemId`), + UNIQUE KEY `idx_player_slot` (`playerGuid`,`slot`), + KEY `idx_player` (`playerGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `characters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `characters` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `account` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier', + `name` varchar(12) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, + `slot` tinyint(3) unsigned NOT NULL DEFAULT 0, + `race` tinyint(3) unsigned NOT NULL DEFAULT 0, + `class` tinyint(3) unsigned NOT NULL DEFAULT 0, + `gender` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `xp` int(10) unsigned NOT NULL DEFAULT 0, + `money` bigint(20) unsigned NOT NULL DEFAULT 0, + `skin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `face` tinyint(3) unsigned NOT NULL DEFAULT 0, + `hairStyle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `hairColor` tinyint(3) unsigned NOT NULL DEFAULT 0, + `facialStyle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `bankSlots` tinyint(3) unsigned NOT NULL DEFAULT 0, + `restState` tinyint(3) unsigned NOT NULL DEFAULT 0, + `characterFlags` int(10) unsigned NOT NULL DEFAULT 0, + `characterFlags2` int(10) unsigned NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `map` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier', + `instance_id` int(10) unsigned NOT NULL DEFAULT 0, + `instance_mode_mask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `taximask` text NOT NULL, + `online` tinyint(3) unsigned NOT NULL DEFAULT 0, + `cinematic` tinyint(3) unsigned NOT NULL DEFAULT 0, + `totaltime` int(10) unsigned NOT NULL DEFAULT 0, + `leveltime` int(10) unsigned NOT NULL DEFAULT 0, + `logout_time` int(10) unsigned NOT NULL DEFAULT 0, + `is_logout_resting` tinyint(3) unsigned NOT NULL DEFAULT 0, + `rest_bonus` float NOT NULL DEFAULT 0, + `resettalents_cost` int(10) unsigned NOT NULL DEFAULT 0, + `resettalents_time` int(10) unsigned NOT NULL DEFAULT 0, + `talentTree` varchar(10) NOT NULL DEFAULT '0 0', + `trans_x` float NOT NULL DEFAULT 0, + `trans_y` float NOT NULL DEFAULT 0, + `trans_z` float NOT NULL DEFAULT 0, + `trans_o` float NOT NULL DEFAULT 0, + `transguid` int(10) unsigned NOT NULL DEFAULT 0, + `trans_spawn_id` int(10) unsigned NOT NULL DEFAULT 0, + `extra_flags` smallint(5) unsigned NOT NULL DEFAULT 0, + `stable_slots` tinyint(3) unsigned NOT NULL DEFAULT 0, + `at_login` smallint(5) unsigned NOT NULL DEFAULT 0, + `zone` smallint(5) unsigned NOT NULL DEFAULT 0, + `death_expire_time` int(10) unsigned NOT NULL DEFAULT 0, + `taxi_path` text DEFAULT NULL, + `totalKills` int(10) unsigned NOT NULL DEFAULT 0, + `todayKills` smallint(5) unsigned NOT NULL DEFAULT 0, + `yesterdayKills` smallint(5) unsigned NOT NULL DEFAULT 0, + `chosenTitle` int(10) unsigned NOT NULL DEFAULT 0, + `watchedFaction` int(10) unsigned NOT NULL DEFAULT 0, + `drunk` tinyint(3) unsigned NOT NULL DEFAULT 0, + `health` int(10) unsigned NOT NULL DEFAULT 0, + `power1` int(10) unsigned NOT NULL DEFAULT 0, + `power2` int(10) unsigned NOT NULL DEFAULT 0, + `power3` int(10) unsigned NOT NULL DEFAULT 0, + `power4` int(10) unsigned NOT NULL DEFAULT 0, + `power5` int(10) unsigned NOT NULL DEFAULT 0, + `latency` int(10) unsigned NOT NULL DEFAULT 0, + `talentGroupsCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `activeTalentGroup` tinyint(3) unsigned NOT NULL DEFAULT 0, + `exploredZones` longtext DEFAULT NULL, + `equipmentCache` longtext DEFAULT NULL, + `knownTitles` longtext DEFAULT NULL, + `actionBars` tinyint(3) unsigned NOT NULL DEFAULT 0, + `grantableLevels` tinyint(3) unsigned NOT NULL DEFAULT 0, + `achievementPoints` int(10) unsigned NOT NULL DEFAULT 0, + `deleteInfos_Account` int(10) unsigned DEFAULT NULL, + `deleteInfos_Name` varchar(12) DEFAULT NULL, + `deleteDate` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`guid`), + KEY `idx_account` (`account`), + KEY `idx_online` (`online`), + KEY `idx_name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `corpse`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `corpse` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier', + `posX` float NOT NULL DEFAULT 0, + `posY` float NOT NULL DEFAULT 0, + `posZ` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `mapId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier', + `displayId` int(10) unsigned NOT NULL DEFAULT 0, + `itemCache` text NOT NULL, + `bytes1` int(10) unsigned NOT NULL DEFAULT 0, + `bytes2` int(10) unsigned NOT NULL DEFAULT 0, + `flags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `dynFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `time` int(10) unsigned NOT NULL DEFAULT 0, + `corpseType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `instanceId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Instance Identifier', + PRIMARY KEY (`guid`), + KEY `idx_type` (`corpseType`), + KEY `idx_instance` (`instanceId`), + KEY `idx_time` (`time`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Death System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `corpse_phases`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `corpse_phases` ( + `OwnerGuid` int(10) unsigned NOT NULL DEFAULT 0, + `PhaseId` int(10) unsigned NOT NULL, + PRIMARY KEY (`OwnerGuid`,`PhaseId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Grid Loading System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_condition_save`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_condition_save` ( + `eventEntry` tinyint(3) unsigned NOT NULL, + `condition_id` int(10) unsigned NOT NULL DEFAULT 0, + `done` float DEFAULT 0, + PRIMARY KEY (`eventEntry`,`condition_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_save`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_save` ( + `eventEntry` tinyint(3) unsigned NOT NULL, + `state` tinyint(3) unsigned NOT NULL DEFAULT 1, + `next_start` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gm_subsurvey`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gm_subsurvey` ( + `surveyId` int(10) unsigned NOT NULL AUTO_INCREMENT, + `questionId` int(10) unsigned NOT NULL DEFAULT 0, + `answer` int(10) unsigned NOT NULL DEFAULT 0, + `answerComment` text NOT NULL, + PRIMARY KEY (`surveyId`,`questionId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gm_survey`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gm_survey` ( + `surveyId` int(10) unsigned NOT NULL AUTO_INCREMENT, + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `mainSurvey` int(10) unsigned NOT NULL DEFAULT 0, + `comment` longtext NOT NULL, + `createTime` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`surveyId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gm_ticket`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gm_ticket` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '0 open, 1 closed, 2 character deleted', + `playerGuid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier of ticket creator', + `name` varchar(12) NOT NULL COMMENT 'Name of ticket creator', + `description` text NOT NULL, + `createTime` int(10) unsigned NOT NULL DEFAULT 0, + `mapId` smallint(5) unsigned NOT NULL DEFAULT 0, + `posX` float NOT NULL DEFAULT 0, + `posY` float NOT NULL DEFAULT 0, + `posZ` float NOT NULL DEFAULT 0, + `lastModifiedTime` int(10) unsigned NOT NULL DEFAULT 0, + `closedBy` int(11) NOT NULL DEFAULT 0, + `assignedTo` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'GUID of admin to whom ticket is assigned', + `comment` text NOT NULL, + `response` text NOT NULL, + `completed` tinyint(3) unsigned NOT NULL DEFAULT 0, + `escalated` tinyint(3) unsigned NOT NULL DEFAULT 0, + `viewed` tinyint(3) unsigned NOT NULL DEFAULT 0, + `needMoreHelp` tinyint(3) unsigned NOT NULL DEFAULT 0, + `resolvedBy` int(11) NOT NULL DEFAULT 0 COMMENT 'GUID of GM who resolved the ticket', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `group_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `group_instance` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `instance` int(10) unsigned NOT NULL DEFAULT 0, + `permanent` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`instance`), + KEY `instance` (`instance`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `group_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `group_member` ( + `guid` int(10) unsigned NOT NULL, + `memberGuid` int(10) unsigned NOT NULL, + `memberFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `subgroup` tinyint(3) unsigned NOT NULL DEFAULT 0, + `roles` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`memberGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Groups'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `groups`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `groups` ( + `guid` int(10) unsigned NOT NULL, + `leaderGuid` int(10) unsigned NOT NULL, + `lootMethod` tinyint(3) unsigned NOT NULL, + `looterGuid` int(10) unsigned NOT NULL, + `lootThreshold` tinyint(3) unsigned NOT NULL, + `icon1` bigint(20) unsigned NOT NULL, + `icon2` bigint(20) unsigned NOT NULL, + `icon3` bigint(20) unsigned NOT NULL, + `icon4` bigint(20) unsigned NOT NULL, + `icon5` bigint(20) unsigned NOT NULL, + `icon6` bigint(20) unsigned NOT NULL, + `icon7` bigint(20) unsigned NOT NULL, + `icon8` bigint(20) unsigned NOT NULL, + `groupType` tinyint(3) unsigned NOT NULL, + `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0, + `raidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT 0, + `masterLooterGuid` int(10) unsigned NOT NULL, + PRIMARY KEY (`guid`), + KEY `leaderGuid` (`leaderGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Groups'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0, + `name` varchar(24) NOT NULL DEFAULT '', + `leaderguid` int(10) unsigned NOT NULL DEFAULT 0, + `EmblemStyle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `EmblemColor` tinyint(3) unsigned NOT NULL DEFAULT 0, + `BorderStyle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `BorderColor` tinyint(3) unsigned NOT NULL DEFAULT 0, + `BackgroundColor` tinyint(3) unsigned NOT NULL DEFAULT 0, + `info` varchar(500) NOT NULL DEFAULT '', + `motd` varchar(128) NOT NULL DEFAULT '', + `createdate` int(10) unsigned NOT NULL DEFAULT 0, + `BankMoney` bigint(20) unsigned NOT NULL DEFAULT 0, + `level` int(10) unsigned DEFAULT 1, + `experience` bigint(20) unsigned DEFAULT 0, + `todayExperience` bigint(20) unsigned DEFAULT 0, + `completedDungeonChallenges` int(10) unsigned DEFAULT 0, + `completedRaidChallenges` int(10) unsigned DEFAULT 0, + `completedRatedBattlegroundChallenges` int(10) unsigned DEFAULT 0, + `WeeklyBonusMoney` bigint(20) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guildid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_achievement`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_achievement` ( + `guildId` int(10) unsigned NOT NULL, + `achievement` smallint(5) unsigned NOT NULL, + `date` int(10) unsigned NOT NULL DEFAULT 0, + `guids` text NOT NULL, + PRIMARY KEY (`guildId`,`achievement`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_achievement_progress`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_achievement_progress` ( + `guildId` int(10) unsigned NOT NULL, + `criteria` smallint(5) unsigned NOT NULL, + `counter` bigint(20) unsigned NOT NULL, + `date` int(10) unsigned NOT NULL DEFAULT 0, + `completedGuid` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guildId`,`criteria`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_bank_eventlog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_bank_eventlog` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Guild Identificator', + `LogGuid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Log record identificator - auxiliary column', + `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Guild bank TabId', + `EventType` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Event type', + `PlayerGuid` int(10) unsigned NOT NULL DEFAULT 0, + `ItemOrMoney` bigint(20) unsigned NOT NULL DEFAULT 0, + `ItemStackCount` smallint(5) unsigned NOT NULL DEFAULT 0, + `DestTabId` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Destination Tab Id', + `TimeStamp` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Event UNIX time', + PRIMARY KEY (`guildid`,`LogGuid`,`TabId`), + KEY `guildid_key` (`guildid`), + KEY `Idx_PlayerGuid` (`PlayerGuid`), + KEY `Idx_LogGuid` (`LogGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_bank_item`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_bank_item` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0, + `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `SlotId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `item_guid` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guildid`,`TabId`,`SlotId`), + KEY `guildid_key` (`guildid`), + KEY `Idx_item_guid` (`item_guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_bank_right`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_bank_right` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0, + `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `rid` tinyint(3) unsigned NOT NULL DEFAULT 0, + `gbright` tinyint(3) unsigned NOT NULL DEFAULT 0, + `SlotPerDay` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guildid`,`TabId`,`rid`), + KEY `guildid_key` (`guildid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_bank_tab`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_bank_tab` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0, + `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `TabName` varchar(16) NOT NULL DEFAULT '', + `TabIcon` varchar(100) NOT NULL DEFAULT '', + `TabText` varchar(500) DEFAULT NULL, + PRIMARY KEY (`guildid`,`TabId`), + KEY `guildid_key` (`guildid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_eventlog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_eventlog` ( + `guildid` int(10) unsigned NOT NULL COMMENT 'Guild Identificator', + `LogGuid` int(10) unsigned NOT NULL COMMENT 'Log record identificator - auxiliary column', + `EventType` tinyint(3) unsigned NOT NULL COMMENT 'Event type', + `PlayerGuid1` int(10) unsigned NOT NULL COMMENT 'Player 1', + `PlayerGuid2` int(10) unsigned NOT NULL COMMENT 'Player 2', + `NewRank` tinyint(3) unsigned NOT NULL COMMENT 'New rank(in case promotion/demotion)', + `TimeStamp` int(10) unsigned NOT NULL COMMENT 'Event UNIX time', + PRIMARY KEY (`guildid`,`LogGuid`), + KEY `Idx_PlayerGuid1` (`PlayerGuid1`), + KEY `Idx_PlayerGuid2` (`PlayerGuid2`), + KEY `Idx_LogGuid` (`LogGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild Eventlog'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_finder_applicant`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_finder_applicant` ( + `guildId` int(10) unsigned DEFAULT NULL, + `playerGuid` int(10) unsigned DEFAULT NULL, + `availability` tinyint(3) unsigned DEFAULT 0, + `classRole` tinyint(3) unsigned DEFAULT 0, + `interests` tinyint(3) unsigned DEFAULT 0, + `comment` varchar(255) DEFAULT NULL, + `submitTime` int(10) unsigned DEFAULT NULL, + UNIQUE KEY `guildId` (`guildId`,`playerGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_finder_guild_settings`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_finder_guild_settings` ( + `guildId` int(10) unsigned NOT NULL, + `availability` tinyint(3) unsigned NOT NULL DEFAULT 0, + `classRoles` tinyint(3) unsigned NOT NULL DEFAULT 0, + `interests` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level` tinyint(3) unsigned NOT NULL DEFAULT 1, + `listed` tinyint(3) unsigned NOT NULL DEFAULT 0, + `comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`guildId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_member` ( + `guildid` int(10) unsigned NOT NULL COMMENT 'Guild Identificator', + `guid` int(10) unsigned NOT NULL, + `rank` tinyint(3) unsigned NOT NULL, + `pnote` varchar(31) NOT NULL DEFAULT '', + `offnote` varchar(31) NOT NULL DEFAULT '', + `activity` int(10) unsigned NOT NULL DEFAULT 0, + `weekActivity` int(10) unsigned NOT NULL DEFAULT 0, + `weekReputation` int(10) unsigned NOT NULL DEFAULT 0, + UNIQUE KEY `guid_key` (`guid`), + KEY `guildid_key` (`guildid`), + KEY `guildid_rank_key` (`guildid`,`rank`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_member_withdraw`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_member_withdraw` ( + `guid` int(10) unsigned NOT NULL, + `tab0` int(10) unsigned NOT NULL DEFAULT 0, + `tab1` int(10) unsigned NOT NULL DEFAULT 0, + `tab2` int(10) unsigned NOT NULL DEFAULT 0, + `tab3` int(10) unsigned NOT NULL DEFAULT 0, + `tab4` int(10) unsigned NOT NULL DEFAULT 0, + `tab5` int(10) unsigned NOT NULL DEFAULT 0, + `tab6` int(10) unsigned NOT NULL DEFAULT 0, + `tab7` int(10) unsigned NOT NULL DEFAULT 0, + `money` bigint(20) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild Member Daily Withdraws'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_newslog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_newslog` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Guild Identificator', + `LogGuid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Log record identificator - auxiliary column', + `EventType` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Event type', + `PlayerGuid` int(10) unsigned NOT NULL DEFAULT 0, + `Flags` int(10) unsigned NOT NULL DEFAULT 0, + `Value` int(10) unsigned NOT NULL DEFAULT 0, + `TimeStamp` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Event UNIX time', + PRIMARY KEY (`guildid`,`LogGuid`), + KEY `guildid_key` (`guildid`), + KEY `Idx_PlayerGuid` (`PlayerGuid`), + KEY `Idx_LogGuid` (`LogGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_old_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_old_member` ( + `guid` int(10) unsigned NOT NULL, + `guildId` int(10) unsigned NOT NULL, + `weekReputation` int(10) unsigned NOT NULL, + `leaveDate` int(10) unsigned NOT NULL, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_rank`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_rank` ( + `guildid` int(10) unsigned NOT NULL DEFAULT 0, + `rid` tinyint(3) unsigned NOT NULL, + `rname` varchar(20) NOT NULL DEFAULT '', + `rights` int(10) unsigned NOT NULL DEFAULT 0, + `BankMoneyPerDay` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guildid`,`rid`), + KEY `Idx_rid` (`rid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `instance` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `map` smallint(5) unsigned NOT NULL DEFAULT 0, + `resettime` bigint(20) unsigned NOT NULL DEFAULT 0, + `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0, + `completedEncounters` int(10) unsigned NOT NULL DEFAULT 0, + `data` tinytext NOT NULL, + PRIMARY KEY (`id`), + KEY `map` (`map`), + KEY `resettime` (`resettime`), + KEY `difficulty` (`difficulty`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `instance_reset`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `instance_reset` ( + `mapid` smallint(5) unsigned NOT NULL DEFAULT 0, + `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0, + `resettime` bigint(20) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`mapid`,`difficulty`), + KEY `difficulty` (`difficulty`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_instance` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `itemEntry` int(10) unsigned NOT NULL DEFAULT 0, + `owner_guid` int(10) unsigned NOT NULL DEFAULT 0, + `creatorGuid` int(10) unsigned NOT NULL DEFAULT 0, + `giftCreatorGuid` int(10) unsigned NOT NULL DEFAULT 0, + `count` int(10) unsigned NOT NULL DEFAULT 1, + `duration` int(11) NOT NULL DEFAULT 0, + `charges` tinytext DEFAULT NULL, + `flags` int(10) unsigned NOT NULL DEFAULT 0, + `enchantments` text NOT NULL, + `randomPropertyType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `randomPropertyId` int(10) unsigned NOT NULL DEFAULT 0, + `durability` smallint(5) unsigned NOT NULL DEFAULT 0, + `creationTime` int(10) unsigned NOT NULL DEFAULT 0, + `text` text DEFAULT NULL, + PRIMARY KEY (`guid`), + KEY `idx_owner_guid` (`owner_guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Item System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_loot_items`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_loot_items` ( + `container_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'guid of container (item_instance.guid)', + `item_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'loot item entry (item_instance.itemEntry)', + `item_count` int(11) NOT NULL DEFAULT 0 COMMENT 'stack size', + `item_index` int(10) unsigned NOT NULL DEFAULT 0, + `follow_rules` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'follow loot rules', + `ffa` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'free-for-all', + `blocked` tinyint(1) NOT NULL DEFAULT 0, + `counted` tinyint(1) NOT NULL DEFAULT 0, + `under_threshold` tinyint(1) NOT NULL DEFAULT 0, + `needs_quest` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'quest drop', + `rnd_type` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'random enchantment type', + `rnd_prop` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'random enchantment added when originally rolled', + `rnd_suffix` int(11) NOT NULL DEFAULT 0 COMMENT 'random suffix added when originally rolled' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_loot_money`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_loot_money` ( + `container_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'guid of container (item_instance.guid)', + `money` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'money loot (in copper)', + PRIMARY KEY (`container_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_refund_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_refund_instance` ( + `item_guid` int(10) unsigned NOT NULL COMMENT 'Item GUID', + `player_guid` int(10) unsigned NOT NULL COMMENT 'Player GUID', + `paidMoney` int(10) unsigned NOT NULL DEFAULT 0, + `paidExtendedCost` smallint(5) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`item_guid`,`player_guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Item Refund System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_soulbound_trade_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_soulbound_trade_data` ( + `itemGuid` int(10) unsigned NOT NULL COMMENT 'Item GUID', + `allowedPlayers` text NOT NULL COMMENT 'Space separated GUID list of players who can receive this item in trade', + PRIMARY KEY (`itemGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Item Refund System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `lag_reports`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `lag_reports` ( + `reportId` int(10) unsigned NOT NULL AUTO_INCREMENT, + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `lagType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `mapId` smallint(5) unsigned NOT NULL DEFAULT 0, + `posX` float NOT NULL DEFAULT 0, + `posY` float NOT NULL DEFAULT 0, + `posZ` float NOT NULL DEFAULT 0, + `latency` int(10) unsigned NOT NULL DEFAULT 0, + `createTime` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`reportId`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `lfg_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `lfg_data` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `dungeon` int(10) unsigned NOT NULL DEFAULT 0, + `state` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='LFG Data'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `mail`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `mail` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier', + `messageType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `stationery` tinyint(4) NOT NULL DEFAULT 41, + `mailTemplateId` smallint(5) unsigned NOT NULL DEFAULT 0, + `sender` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier', + `receiver` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier', + `subject` longtext DEFAULT NULL, + `body` longtext DEFAULT NULL, + `has_items` tinyint(3) unsigned NOT NULL DEFAULT 0, + `expire_time` int(10) unsigned NOT NULL DEFAULT 0, + `deliver_time` int(10) unsigned NOT NULL DEFAULT 0, + `money` bigint(20) unsigned NOT NULL DEFAULT 0, + `cod` bigint(20) unsigned NOT NULL DEFAULT 0, + `checked` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_receiver` (`receiver`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Mail System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `mail_items`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `mail_items` ( + `mail_id` int(10) unsigned NOT NULL DEFAULT 0, + `item_guid` int(10) unsigned NOT NULL DEFAULT 0, + `receiver` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier', + PRIMARY KEY (`item_guid`), + KEY `idx_receiver` (`receiver`), + KEY `idx_mail_id` (`mail_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pet_aura`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pet_aura` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `casterGuid` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT 'Full Global Unique Identifier', + `spell` int(10) unsigned NOT NULL DEFAULT 0, + `effectMask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `recalculateMask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `stackCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `amount0` int(11) NOT NULL, + `amount1` int(11) NOT NULL, + `amount2` int(11) NOT NULL, + `base_amount0` int(11) NOT NULL, + `base_amount1` int(11) NOT NULL, + `base_amount2` int(11) NOT NULL, + `maxDuration` int(11) NOT NULL DEFAULT 0, + `remainTime` int(11) NOT NULL DEFAULT 0, + `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT 0, + `critChance` float NOT NULL DEFAULT 0, + `applyResilience` tinyint(3) NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`casterGuid`,`spell`,`effectMask`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Pet System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pet_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pet_spell` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier', + `spell` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier', + `active` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`spell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Pet System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pet_spell_cooldown`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pet_spell_cooldown` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier, Low part', + `spell` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier', + `time` int(10) unsigned NOT NULL DEFAULT 0, + `categoryId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell category Id', + `categoryEnd` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`spell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `petition`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `petition` ( + `ownerguid` int(10) unsigned NOT NULL, + `petitionguid` int(10) unsigned DEFAULT 0, + `name` varchar(24) NOT NULL, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`ownerguid`,`type`), + UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `petition_sign`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `petition_sign` ( + `ownerguid` int(10) unsigned NOT NULL, + `petitionguid` int(10) unsigned NOT NULL DEFAULT 0, + `playerguid` int(10) unsigned NOT NULL DEFAULT 0, + `player_account` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`petitionguid`,`playerguid`), + KEY `Idx_playerguid` (`playerguid`), + KEY `Idx_ownerguid` (`ownerguid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pool_quest_save`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pool_quest_save` ( + `pool_id` int(10) unsigned NOT NULL DEFAULT 0, + `quest_id` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`pool_id`,`quest_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pvpstats_battlegrounds`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pvpstats_battlegrounds` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `winner_faction` tinyint(4) NOT NULL, + `bracket_id` tinyint(3) unsigned NOT NULL, + `type` tinyint(3) unsigned NOT NULL, + `date` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pvpstats_players`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pvpstats_players` ( + `battleground_id` bigint(20) unsigned NOT NULL, + `character_guid` int(10) unsigned NOT NULL, + `winner` bit(1) NOT NULL, + `score_killing_blows` int(10) unsigned NOT NULL, + `score_deaths` int(10) unsigned NOT NULL, + `score_honorable_kills` int(10) unsigned NOT NULL, + `score_bonus_honor` int(10) unsigned NOT NULL, + `score_damage_done` int(10) unsigned NOT NULL, + `score_healing_done` int(10) unsigned NOT NULL, + `attr_1` int(10) unsigned NOT NULL DEFAULT 0, + `attr_2` int(10) unsigned NOT NULL DEFAULT 0, + `attr_3` int(10) unsigned NOT NULL DEFAULT 0, + `attr_4` int(10) unsigned NOT NULL DEFAULT 0, + `attr_5` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`battleground_id`,`character_guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_tracker`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_tracker` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `character_guid` int(10) unsigned NOT NULL DEFAULT 0, + `quest_accept_time` datetime NOT NULL, + `quest_complete_time` datetime DEFAULT NULL, + `quest_abandon_time` datetime DEFAULT NULL, + `completed_by_gm` tinyint(1) NOT NULL DEFAULT 0, + `core_hash` varchar(120) NOT NULL DEFAULT '0', + `core_revision` varchar(120) NOT NULL DEFAULT '0' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `reserved_name`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `reserved_name` ( + `name` varchar(12) NOT NULL DEFAULT '', + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player Reserved Names'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `respawn`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `respawn` ( + `type` smallint(5) unsigned NOT NULL, + `spawnId` int(10) unsigned NOT NULL, + `respawnTime` bigint(20) unsigned NOT NULL, + `mapId` smallint(5) unsigned NOT NULL, + `instanceId` int(10) unsigned NOT NULL, + PRIMARY KEY (`type`,`spawnId`,`instanceId`), + KEY `idx_instance` (`instanceId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Stored respawn times'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates` ( + `name` varchar(200) NOT NULL COMMENT 'filename with extension of the update.', + `hash` char(40) DEFAULT '' COMMENT 'sha1 hash of the sql file.', + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if an update is released or archived.', + `timestamp` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'timestamp when the query was applied.', + `speed` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'time the query takes to apply in ms.', + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of all applied updates in this database.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates_include`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates_include` ( + `path` varchar(200) NOT NULL COMMENT 'directory to include. $ means relative to the source directory.', + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if the directory contains released or archived updates.', + PRIMARY KEY (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of directories where we want to include sql updates.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `warden_action`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `warden_action` ( + `wardenId` smallint(5) unsigned NOT NULL, + `action` tinyint(3) unsigned DEFAULT NULL, + PRIMARY KEY (`wardenId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `world_state_value`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `world_state_value` ( + `Id` int(11) NOT NULL, + `Value` int(11) NOT NULL, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `world_variable`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `world_variable` ( + `ID` varchar(64) NOT NULL, + `Value` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/database/schema/cata_hotfixes.sql b/database/schema/cata_hotfixes.sql new file mode 100644 index 0000000000..b90f01c132 --- /dev/null +++ b/database/schema/cata_hotfixes.sql @@ -0,0 +1,315 @@ +/*M!999999\- enable the sandbox mode */ + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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 */; +DROP TABLE IF EXISTS `hotfix_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `hotfix_data` ( + `TableHash` int(10) unsigned NOT NULL DEFAULT 0, + `RecordID` int(11) NOT NULL, + `Deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`TableHash`,`RecordID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `ClassID` int(10) unsigned NOT NULL DEFAULT 0, + `SubclassID` int(10) unsigned NOT NULL DEFAULT 0, + `SoundOverrideSubclassID` int(11) NOT NULL DEFAULT 0, + `Material` int(11) NOT NULL DEFAULT 0, + `DisplayInfoID` int(10) unsigned NOT NULL DEFAULT 0, + `InventoryType` int(10) unsigned NOT NULL DEFAULT 0, + `SheatheType` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_currency_cost`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_currency_cost` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `ItemID` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`), + UNIQUE KEY `idx_itemId` (`ItemID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_extended_cost`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_extended_cost` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredHonorPoints` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredArenaPoints` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredArenaSlot` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItem1` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItem2` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItem3` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItem4` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItem5` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount1` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount2` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount3` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount4` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount5` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredPersonalArenaRating` int(10) unsigned NOT NULL DEFAULT 0, + `ItemPurchaseGroup` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrency1` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrency2` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrency3` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrency4` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrency5` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount1` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount2` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount3` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount4` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount5` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredFactionId` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredFactionStanding` int(10) unsigned NOT NULL DEFAULT 0, + `RequirementFlags` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredGuildLevel` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredAchievement` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_sparse`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_sparse` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Quality` int(10) unsigned NOT NULL DEFAULT 0, + `Flags1` int(10) unsigned NOT NULL DEFAULT 0, + `Flags2` int(10) unsigned NOT NULL DEFAULT 0, + `PriceRandomValue` float NOT NULL DEFAULT 0, + `PriceVariance` float NOT NULL DEFAULT 0, + `BuyCount` int(10) unsigned NOT NULL DEFAULT 0, + `BuyPrice` int(10) unsigned NOT NULL DEFAULT 0, + `SellPrice` int(10) unsigned NOT NULL DEFAULT 0, + `InventoryType` int(10) unsigned NOT NULL DEFAULT 0, + `AllowableClass` int(11) NOT NULL DEFAULT 0, + `AllowableRace` int(11) NOT NULL DEFAULT 0, + `ItemLevel` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredLevel` int(11) NOT NULL DEFAULT 0, + `RequiredSkill` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredSkillRank` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredSpell` int(11) NOT NULL DEFAULT 0, + `RequiredHonorRank` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCityRank` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredReputationFaction` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredReputationRank` int(10) unsigned NOT NULL DEFAULT 0, + `MaxCount` int(11) NOT NULL DEFAULT 0, + `Stackable` int(11) NOT NULL DEFAULT 0, + `ContainerSlots` int(10) unsigned NOT NULL DEFAULT 0, + `ItemStatType1` int(11) NOT NULL DEFAULT 0, + `ItemStatType2` int(11) NOT NULL DEFAULT 0, + `ItemStatType3` int(11) NOT NULL DEFAULT 0, + `ItemStatType4` int(11) NOT NULL DEFAULT 0, + `ItemStatType5` int(11) NOT NULL DEFAULT 0, + `ItemStatType6` int(11) NOT NULL DEFAULT 0, + `ItemStatType7` int(11) NOT NULL DEFAULT 0, + `ItemStatType8` int(11) NOT NULL DEFAULT 0, + `ItemStatType9` int(11) NOT NULL DEFAULT 0, + `ItemStatType10` int(11) NOT NULL DEFAULT 0, + `ItemStatValue1` int(11) NOT NULL DEFAULT 0, + `ItemStatValue2` int(11) NOT NULL DEFAULT 0, + `ItemStatValue3` int(11) NOT NULL DEFAULT 0, + `ItemStatValue4` int(11) NOT NULL DEFAULT 0, + `ItemStatValue5` int(11) NOT NULL DEFAULT 0, + `ItemStatValue6` int(11) NOT NULL DEFAULT 0, + `ItemStatValue7` int(11) NOT NULL DEFAULT 0, + `ItemStatValue8` int(11) NOT NULL DEFAULT 0, + `ItemStatValue9` int(11) NOT NULL DEFAULT 0, + `ItemStatValue10` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation1` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation2` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation3` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation4` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation5` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation6` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation7` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation8` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation9` int(11) NOT NULL DEFAULT 0, + `ItemStatAllocation10` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier1` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier2` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier3` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier4` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier5` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier6` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier7` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier8` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier9` int(11) NOT NULL DEFAULT 0, + `ItemStatSocketCostMultiplier10` int(11) NOT NULL DEFAULT 0, + `ScalingStatDistribution` int(11) NOT NULL DEFAULT 0, + `DamageType` int(11) NOT NULL DEFAULT 0, + `Delay` int(10) unsigned NOT NULL DEFAULT 0, + `RangedModRange` float NOT NULL DEFAULT 0, + `SpellID1` int(11) NOT NULL DEFAULT 0, + `SpellID2` int(11) NOT NULL DEFAULT 0, + `SpellID3` int(11) NOT NULL DEFAULT 0, + `SpellID4` int(11) NOT NULL DEFAULT 0, + `SpellID5` int(11) NOT NULL DEFAULT 0, + `SpellTrigger1` int(11) NOT NULL DEFAULT 0, + `SpellTrigger2` int(11) NOT NULL DEFAULT 0, + `SpellTrigger3` int(11) NOT NULL DEFAULT 0, + `SpellTrigger4` int(11) NOT NULL DEFAULT 0, + `SpellTrigger5` int(11) NOT NULL DEFAULT 0, + `SpellCharges1` int(11) NOT NULL DEFAULT 0, + `SpellCharges2` int(11) NOT NULL DEFAULT 0, + `SpellCharges3` int(11) NOT NULL DEFAULT 0, + `SpellCharges4` int(11) NOT NULL DEFAULT 0, + `SpellCharges5` int(11) NOT NULL DEFAULT 0, + `SpellCooldown1` int(11) NOT NULL DEFAULT 0, + `SpellCooldown2` int(11) NOT NULL DEFAULT 0, + `SpellCooldown3` int(11) NOT NULL DEFAULT 0, + `SpellCooldown4` int(11) NOT NULL DEFAULT 0, + `SpellCooldown5` int(11) NOT NULL DEFAULT 0, + `SpellCategory1` int(11) NOT NULL DEFAULT 0, + `SpellCategory2` int(11) NOT NULL DEFAULT 0, + `SpellCategory3` int(11) NOT NULL DEFAULT 0, + `SpellCategory4` int(11) NOT NULL DEFAULT 0, + `SpellCategory5` int(11) NOT NULL DEFAULT 0, + `SpellCategoryCooldown1` int(11) NOT NULL DEFAULT 0, + `SpellCategoryCooldown2` int(11) NOT NULL DEFAULT 0, + `SpellCategoryCooldown3` int(11) NOT NULL DEFAULT 0, + `SpellCategoryCooldown4` int(11) NOT NULL DEFAULT 0, + `SpellCategoryCooldown5` int(11) NOT NULL DEFAULT 0, + `Bonding` int(11) NOT NULL DEFAULT 0, + `Display` mediumtext DEFAULT NULL, + `Display1` mediumtext DEFAULT NULL, + `Display2` mediumtext DEFAULT NULL, + `Display3` mediumtext DEFAULT NULL, + `Description` mediumtext DEFAULT NULL, + `PageText` int(10) unsigned NOT NULL DEFAULT 0, + `LanguageID` int(11) NOT NULL DEFAULT 0, + `PageMaterial` int(11) NOT NULL DEFAULT 0, + `StartQuest` int(11) NOT NULL DEFAULT 0, + `LockID` int(10) unsigned NOT NULL DEFAULT 0, + `Material` int(11) NOT NULL DEFAULT 0, + `SheatheType` int(11) NOT NULL DEFAULT 0, + `RandomProperty` int(11) NOT NULL DEFAULT 0, + `RandomSuffix` int(10) unsigned NOT NULL DEFAULT 0, + `ItemSet` int(10) unsigned NOT NULL DEFAULT 0, + `AreaID` int(10) unsigned NOT NULL DEFAULT 0, + `MapID` int(11) NOT NULL DEFAULT 0, + `BagFamily` int(11) NOT NULL DEFAULT 0, + `TotemCategory` int(11) NOT NULL DEFAULT 0, + `SocketColor1` int(11) NOT NULL DEFAULT 0, + `SocketColor2` int(11) NOT NULL DEFAULT 0, + `SocketColor3` int(11) NOT NULL DEFAULT 0, + `Content1` int(10) unsigned NOT NULL DEFAULT 0, + `Content2` int(10) unsigned NOT NULL DEFAULT 0, + `Content3` int(10) unsigned NOT NULL DEFAULT 0, + `SocketBonus` int(11) NOT NULL DEFAULT 0, + `GemProperties` int(11) NOT NULL DEFAULT 0, + `ArmorDamageModifier` float NOT NULL DEFAULT 0, + `Duration` int(11) NOT NULL DEFAULT 0, + `ItemLimitCategory` int(11) NOT NULL DEFAULT 0, + `HolidayID` int(11) NOT NULL DEFAULT 0, + `StatScalingFactor` float NOT NULL DEFAULT 0, + `CurrencySubstitutionID` int(11) NOT NULL DEFAULT 0, + `CurrencySubstitutionCount` int(11) NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_sparse_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_sparse_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Display_lang` mediumtext DEFAULT NULL, + `Display1_lang` mediumtext DEFAULT NULL, + `Display2_lang` mediumtext DEFAULT NULL, + `Display3_lang` mediumtext DEFAULT NULL, + `Description_lang` mediumtext DEFAULT NULL, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`,`locale`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `key_chain`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `key_chain` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Key1` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key2` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key3` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key4` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key5` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key6` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key7` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key8` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key9` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key10` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key11` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key12` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key13` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key14` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key15` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key16` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key17` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key18` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key19` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key20` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key21` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key22` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key23` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key24` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key25` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key26` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key27` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key28` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key29` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key30` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key31` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Key32` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates` ( + `name` varchar(200) NOT NULL COMMENT 'filename with extension of the update.', + `hash` char(40) DEFAULT '' COMMENT 'sha1 hash of the sql file.', + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if an update is released or archived.', + `timestamp` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'timestamp when the query was applied.', + `speed` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'time the query takes to apply in ms.', + PRIMARY KEY (`name`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of all applied updates in this database.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates_include`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates_include` ( + `path` varchar(200) NOT NULL COMMENT 'directory to include. $ means relative to the source directory.', + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if the directory contains released or archived updates.', + PRIMARY KEY (`path`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of directories where we want to include sql updates.'; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/database/schema/cata_locale_reference.sql b/database/schema/cata_locale_reference.sql new file mode 100644 index 0000000000..0712ec295f --- /dev/null +++ b/database/schema/cata_locale_reference.sql @@ -0,0 +1,374 @@ +/*M!999999\- enable the sandbox mode */ + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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 */; +DROP TABLE IF EXISTS `backup_creature_locale_before_mangos_names`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_creature_locale_before_mangos_names` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Name` text DEFAULT NULL, + `FemaleName` text DEFAULT NULL, + `Title` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_creature_locale_missing_rows`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_creature_locale_missing_rows` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_guildmaster_gossip_options`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_guildmaster_gossip_options` ( + `MenuID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionIcon` tinyint(3) unsigned NOT NULL DEFAULT 0, + `OptionText` text DEFAULT NULL, + `OptionBroadcastTextID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionType` int(10) unsigned NOT NULL DEFAULT 0, + `OptionNpcflag` bigint(20) unsigned NOT NULL DEFAULT 0, + `ActionMenuID` int(10) unsigned NOT NULL DEFAULT 0, + `ActionPoiID` int(10) unsigned NOT NULL DEFAULT 0, + `BoxCoded` tinyint(3) unsigned NOT NULL DEFAULT 0, + `BoxMoney` int(10) unsigned NOT NULL DEFAULT 0, + `BoxText` mediumtext DEFAULT NULL, + `BoxBroadcastTextID` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_guildmaster_urtrun_gossip_options`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_guildmaster_urtrun_gossip_options` ( + `MenuID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionIcon` tinyint(3) unsigned NOT NULL DEFAULT 0, + `OptionText` text DEFAULT NULL, + `OptionBroadcastTextID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionType` int(10) unsigned NOT NULL DEFAULT 0, + `OptionNpcflag` bigint(20) unsigned NOT NULL DEFAULT 0, + `ActionMenuID` int(10) unsigned NOT NULL DEFAULT 0, + `ActionPoiID` int(10) unsigned NOT NULL DEFAULT 0, + `BoxCoded` tinyint(3) unsigned NOT NULL DEFAULT 0, + `BoxMoney` int(10) unsigned NOT NULL DEFAULT 0, + `BoxText` mediumtext DEFAULT NULL, + `BoxBroadcastTextID` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_quest_locale_before_gtdb_fill`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_quest_locale_before_gtdb_fill` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Title` text DEFAULT NULL, + `Details` text DEFAULT NULL, + `Objectives` text DEFAULT NULL, + `OfferRewardText` text DEFAULT NULL, + `RequestItemsText` text DEFAULT NULL, + `EndText` text DEFAULT NULL, + `CompletedText` text DEFAULT NULL, + `ObjectiveText1` text DEFAULT NULL, + `ObjectiveText2` text DEFAULT NULL, + `ObjectiveText3` text DEFAULT NULL, + `ObjectiveText4` text DEFAULT NULL, + `QuestGiverTextWindow` text DEFAULT NULL, + `QuestGiverTargetName` text DEFAULT NULL, + `QuestTurnTextWindow` text DEFAULT NULL, + `QuestTurnTargetName` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_quest_locale_before_mangos_fill`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_quest_locale_before_mangos_fill` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Title` text DEFAULT NULL, + `Details` text DEFAULT NULL, + `Objectives` text DEFAULT NULL, + `OfferRewardText` text DEFAULT NULL, + `RequestItemsText` text DEFAULT NULL, + `EndText` text DEFAULT NULL, + `CompletedText` text DEFAULT NULL, + `ObjectiveText1` text DEFAULT NULL, + `ObjectiveText2` text DEFAULT NULL, + `ObjectiveText3` text DEFAULT NULL, + `ObjectiveText4` text DEFAULT NULL, + `QuestGiverTextWindow` text DEFAULT NULL, + `QuestGiverTargetName` text DEFAULT NULL, + `QuestTurnTextWindow` text DEFAULT NULL, + `QuestTurnTargetName` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_quest_locale_missing_rows`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_quest_locale_missing_rows` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backup_quest_locale_missing_rows_before_gtdb`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `backup_quest_locale_missing_rows_before_gtdb` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_001`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_001` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_002`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_002` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_003`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_003` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_004`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_004` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_005`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_005` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_006`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_006` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_007`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_007` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_008`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_008` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_009`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_009` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_010`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_010` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_011`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_011` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_012`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_012` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_013`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_013` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_014`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_014` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_batch_015`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_batch_015` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_name_review_exceptions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_name_review_exceptions` ( + `entry` int(10) unsigned NOT NULL, + `EnglishName` text NOT NULL, + `ProposedGermanName` text DEFAULT NULL, + `reason` varchar(255) DEFAULT NULL, + `status` varchar(32) NOT NULL DEFAULT 'open', + `final_german_name` text DEFAULT NULL, + `notes` text DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gtdb_quest_de`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gtdb_quest_de` ( + `ID` int(10) unsigned NOT NULL, + `Title` text DEFAULT NULL, + `Details` text DEFAULT NULL, + `Objectives` text DEFAULT NULL, + `OfferRewardText` text DEFAULT NULL, + `RequestItemsText` text DEFAULT NULL, + `EndText` text DEFAULT NULL, + `CompletedText` text DEFAULT NULL, + `ObjectiveText1` text DEFAULT NULL, + `ObjectiveText2` text DEFAULT NULL, + `ObjectiveText3` text DEFAULT NULL, + `ObjectiveText4` text DEFAULT NULL, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `mangos_creature_de`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `mangos_creature_de` ( + `entry` int(10) unsigned NOT NULL, + `name_de` text DEFAULT NULL, + `subname_de` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `mangos_quest_de`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `mangos_quest_de` ( + `ID` int(10) unsigned NOT NULL, + `Title` text DEFAULT NULL, + `Details` text DEFAULT NULL, + `Objectives` text DEFAULT NULL, + `OfferRewardText` text DEFAULT NULL, + `RequestItemsText` text DEFAULT NULL, + `EndText` text DEFAULT NULL, + `CompletedText` text DEFAULT NULL, + `ObjectiveText1` text DEFAULT NULL, + `ObjectiveText2` text DEFAULT NULL, + `ObjectiveText3` text DEFAULT NULL, + `ObjectiveText4` text DEFAULT NULL, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `strong_creature_name_matches`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `strong_creature_name_matches` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `GermanName` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `unresolved_creature_names`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `unresolved_creature_names` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `EnglishName` varchar(100) NOT NULL, + `MangosGermanName` text DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/database/schema/cata_world.sql b/database/schema/cata_world.sql new file mode 100644 index 0000000000..cd701cdacf --- /dev/null +++ b/database/schema/cata_world.sql @@ -0,0 +1,3251 @@ +/*M!999999\- enable the sandbox mode */ + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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 */; +DROP TABLE IF EXISTS `access_requirement`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `access_requirement` ( + `mapId` int(10) unsigned NOT NULL, + `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level_min` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level_max` tinyint(3) unsigned NOT NULL DEFAULT 0, + `item` int(10) unsigned NOT NULL DEFAULT 0, + `item2` int(10) unsigned NOT NULL DEFAULT 0, + `quest_done_A` int(10) unsigned NOT NULL DEFAULT 0, + `quest_done_H` int(10) unsigned NOT NULL DEFAULT 0, + `completed_achievement` int(10) unsigned NOT NULL DEFAULT 0, + `heroic_exclusive` tinyint(1) DEFAULT 0, + `comment` text DEFAULT NULL, + PRIMARY KEY (`mapId`,`difficulty`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Access Requirements'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `achievement_criteria_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `achievement_criteria_data` ( + `criteria_id` int(11) NOT NULL, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `value1` int(10) unsigned NOT NULL DEFAULT 0, + `value2` int(10) unsigned NOT NULL DEFAULT 0, + `ScriptName` varchar(64) NOT NULL, + PRIMARY KEY (`criteria_id`,`type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Achievment system'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `achievement_dbc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `achievement_dbc` ( + `ID` int(10) unsigned NOT NULL, + `requiredFaction` int(11) NOT NULL DEFAULT -1, + `mapID` int(11) NOT NULL DEFAULT -1, + `points` int(10) unsigned NOT NULL DEFAULT 0, + `flags` int(10) unsigned NOT NULL DEFAULT 0, + `count` int(10) unsigned NOT NULL DEFAULT 0, + `refAchievement` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `achievement_reward`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `achievement_reward` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `TitleA` int(10) unsigned NOT NULL DEFAULT 0, + `TitleH` int(10) unsigned NOT NULL DEFAULT 0, + `ItemID` int(10) unsigned NOT NULL DEFAULT 0, + `Sender` int(10) unsigned NOT NULL DEFAULT 0, + `Subject` varchar(255) DEFAULT NULL, + `Text` text DEFAULT NULL, + `MailTemplateID` int(10) unsigned DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `achievement_reward_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `achievement_reward_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Locale` varchar(4) NOT NULL, + `Subject` text DEFAULT NULL, + `Text` text DEFAULT NULL, + PRIMARY KEY (`ID`,`Locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `archaeology_projects`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `archaeology_projects` ( + `Entry` smallint(5) unsigned NOT NULL DEFAULT 0, + `Branch` tinyint(3) unsigned NOT NULL, + `Rarity` tinyint(3) unsigned NOT NULL, + `ReqSkill` smallint(5) unsigned NOT NULL, + `Fragments` tinyint(3) unsigned NOT NULL, + `Keystone` tinyint(3) unsigned NOT NULL, + `Spell` int(10) unsigned NOT NULL, + PRIMARY KEY (`Entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `archaeology_sites`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `archaeology_sites` ( + `Id` smallint(5) unsigned NOT NULL, + `MapId` int(10) unsigned NOT NULL, + `QuestPOI` smallint(5) unsigned NOT NULL, + `ReqSkill` int(10) unsigned NOT NULL, + `MinLevel` int(10) unsigned NOT NULL, + `GameobjectEntry` int(10) unsigned NOT NULL, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `areatrigger_involvedrelation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `areatrigger_involvedrelation` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Trigger System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `areatrigger_scripts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `areatrigger_scripts` ( + `entry` int(11) NOT NULL, + `ScriptName` varchar(64) NOT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `areatrigger_tavern`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `areatrigger_tavern` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier', + `name` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Trigger System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `areatrigger_teleport`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `areatrigger_teleport` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Name` text DEFAULT NULL, + `target_map` smallint(5) unsigned NOT NULL DEFAULT 0, + `target_position_x` float NOT NULL DEFAULT 0, + `target_position_y` float NOT NULL DEFAULT 0, + `target_position_z` float NOT NULL DEFAULT 0, + `target_orientation` float NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`), + FULLTEXT KEY `name` (`Name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Trigger System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `battlefield_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `battlefield_template` ( + `TypeId` tinyint(3) unsigned NOT NULL, + `ScriptName` varchar(64) NOT NULL, + `comment` text DEFAULT NULL, + PRIMARY KEY (`TypeId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `battleground_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `battleground_template` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `MinPlayersPerTeam` smallint(5) unsigned NOT NULL DEFAULT 0, + `MaxPlayersPerTeam` smallint(5) unsigned NOT NULL DEFAULT 0, + `MinLvl` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MaxLvl` tinyint(3) unsigned NOT NULL DEFAULT 0, + `AllianceStartLoc` int(10) unsigned NOT NULL, + `AllianceStartO` float NOT NULL, + `HordeStartLoc` int(10) unsigned NOT NULL, + `HordeStartO` float NOT NULL, + `StartMaxDist` float NOT NULL DEFAULT 0, + `Weight` tinyint(3) unsigned NOT NULL DEFAULT 1, + `ScriptName` varchar(64) NOT NULL, + `Comment` varchar(32) NOT NULL, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `battlemaster_entry`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `battlemaster_entry` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Entry of a creature', + `bg_template` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Battleground template id', + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `broadcast_text`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `broadcast_text` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `LanguageID` int(10) unsigned NOT NULL DEFAULT 0, + `Text` text NOT NULL, + `Text1` text NOT NULL, + `EmoteID1` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteID2` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteID3` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay1` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay2` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay3` int(10) unsigned NOT NULL DEFAULT 0, + `SoundEntriesID` int(10) unsigned NOT NULL DEFAULT 0, + `EmotesID` int(10) unsigned NOT NULL DEFAULT 0, + `Flags` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `broadcast_text_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `broadcast_text_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Text` text DEFAULT NULL, + `Text1` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `command`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `command` ( + `name` varchar(50) NOT NULL, + `permission` smallint(5) unsigned NOT NULL DEFAULT 0, + `help` mediumtext NOT NULL, + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Chat System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `conditions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `conditions` ( + `SourceTypeOrReferenceId` int(11) NOT NULL DEFAULT 0, + `SourceGroup` int(10) unsigned NOT NULL DEFAULT 0, + `SourceEntry` int(11) NOT NULL DEFAULT 0, + `SourceId` int(11) NOT NULL DEFAULT 0, + `ElseGroup` int(10) unsigned NOT NULL DEFAULT 0, + `ConditionTypeOrReference` int(11) NOT NULL DEFAULT 0, + `ConditionTarget` tinyint(3) unsigned NOT NULL DEFAULT 0, + `ConditionValue1` int(10) unsigned NOT NULL DEFAULT 0, + `ConditionValue2` int(10) unsigned NOT NULL DEFAULT 0, + `ConditionValue3` int(10) unsigned NOT NULL DEFAULT 0, + `NegativeCondition` tinyint(3) unsigned NOT NULL DEFAULT 0, + `ErrorType` int(10) unsigned NOT NULL DEFAULT 0, + `ErrorTextId` int(10) unsigned NOT NULL DEFAULT 0, + `ScriptName` varchar(64) NOT NULL DEFAULT '', + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Condition System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature` ( + `guid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Global Unique Identifier', + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Creature Identifier', + `map` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier', + `zoneId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Zone Identifier', + `areaId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Area Identifier', + `spawnMask` tinyint(3) unsigned NOT NULL DEFAULT 1, + `phaseUseFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `phaseMask` int(10) unsigned NOT NULL DEFAULT 1, + `PhaseId` int(11) DEFAULT 0, + `PhaseGroup` int(11) DEFAULT 0, + `terrainSwapMap` int(11) NOT NULL DEFAULT -1, + `modelid` int(10) unsigned NOT NULL DEFAULT 0, + `equipment_id` tinyint(4) NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `spawntimesecs` int(10) unsigned NOT NULL DEFAULT 120, + `wander_distance` float NOT NULL DEFAULT 0, + `currentwaypoint` int(10) unsigned NOT NULL DEFAULT 0, + `curhealth` int(10) unsigned NOT NULL DEFAULT 1, + `curmana` int(10) unsigned NOT NULL DEFAULT 0, + `MovementType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `npcflag` int(10) unsigned DEFAULT NULL, + `unit_flags` int(10) unsigned DEFAULT NULL, + `unit_flags2` int(10) unsigned DEFAULT NULL, + `ScriptName` varchar(64) DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`guid`), + KEY `idx_map` (`map`), + KEY `idx_id` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1022767 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_addon` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `waypointPathId` int(10) unsigned NOT NULL DEFAULT 0, + `cyclicSplinePathId` int(10) unsigned NOT NULL DEFAULT 0, + `mount` int(10) unsigned NOT NULL DEFAULT 0, + `StandState` tinyint(3) unsigned NOT NULL DEFAULT 0, + `AnimTier` tinyint(3) unsigned NOT NULL DEFAULT 0, + `VisFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `SheathState` tinyint(3) unsigned NOT NULL DEFAULT 1, + `PvPFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `emote` int(10) unsigned NOT NULL DEFAULT 0, + `aiAnimKit` smallint(6) NOT NULL DEFAULT 0, + `movementAnimKit` smallint(6) NOT NULL DEFAULT 0, + `meleeAnimKit` smallint(6) NOT NULL DEFAULT 0, + `visibilityDistanceType` tinyint(3) unsigned DEFAULT 0, + `auras` text DEFAULT NULL, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_classlevelstats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_classlevelstats` ( + `level` tinyint(4) NOT NULL, + `class` tinyint(4) NOT NULL, + `basemana` int(10) unsigned NOT NULL DEFAULT 1, + `basearmor` int(10) unsigned NOT NULL DEFAULT 1, + `attackpower` smallint(6) NOT NULL DEFAULT 0, + `rangedattackpower` smallint(6) NOT NULL DEFAULT 0, + `comment` text DEFAULT NULL, + PRIMARY KEY (`level`,`class`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_equip_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_equip_template` ( + `CreatureID` int(10) unsigned NOT NULL DEFAULT 0, + `ID` tinyint(3) unsigned NOT NULL DEFAULT 1, + `ItemID1` int(10) unsigned NOT NULL DEFAULT 0, + `ItemID2` int(10) unsigned NOT NULL DEFAULT 0, + `ItemID3` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`CreatureID`,`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_formations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_formations` ( + `LeaderGUID` int(10) unsigned NOT NULL DEFAULT 0, + `MemberGUID` int(10) unsigned NOT NULL DEFAULT 0, + `FollowDistance` float NOT NULL, + `FollowAngle` float NOT NULL, + `GroupAI` int(10) unsigned NOT NULL, + `InversionPoint1` int(11) DEFAULT -1, + `InversionPoint2` int(11) DEFAULT -1, + PRIMARY KEY (`MemberGUID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_model_info`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_model_info` ( + `DisplayID` int(10) unsigned NOT NULL DEFAULT 0, + `BoundingRadius` float NOT NULL DEFAULT 0, + `CombatReach` float NOT NULL DEFAULT 0, + `Gender` tinyint(3) unsigned NOT NULL DEFAULT 2, + `DisplayID_Other_Gender` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`DisplayID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature System (Model related info)'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_movement_info`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_movement_info` ( + `MovementID` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'creature_template.movementId value', + `WalkSpeed` float DEFAULT NULL, + `RunSpeed` float DEFAULT NULL, + PRIMARY KEY (`MovementID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_movement_override`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_movement_override` ( + `SpawnId` int(10) unsigned NOT NULL DEFAULT 0, + `HoverInitiallyEnabled` tinyint(3) unsigned DEFAULT NULL, + `GravityInitiallyDisabled` tinyint(1) DEFAULT NULL, + `Random` tinyint(3) unsigned DEFAULT NULL, + `InteractionPauseTimer` int(10) unsigned DEFAULT NULL COMMENT 'Time (in milliseconds) during which creature will not move after interaction with player', + PRIMARY KEY (`SpawnId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_onkill_reward`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_onkill_reward` ( + `creature_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Creature Identifier', + `RewOnKillRepFaction1` smallint(6) NOT NULL DEFAULT 0, + `RewOnKillRepFaction2` smallint(6) NOT NULL DEFAULT 0, + `MaxStanding1` tinyint(4) NOT NULL DEFAULT 0, + `IsTeamAward1` tinyint(4) NOT NULL DEFAULT 0, + `RewOnKillRepValue1` int(11) NOT NULL DEFAULT 0, + `MaxStanding2` tinyint(4) NOT NULL DEFAULT 0, + `IsTeamAward2` tinyint(4) NOT NULL DEFAULT 0, + `RewOnKillRepValue2` int(11) NOT NULL DEFAULT 0, + `TeamDependent` tinyint(3) unsigned NOT NULL DEFAULT 0, + `CurrencyId1` int(11) DEFAULT 0, + `CurrencyId2` int(11) DEFAULT 0, + `CurrencyId3` int(11) DEFAULT 0, + `CurrencyCount1` int(11) DEFAULT 0, + `CurrencyCount2` int(11) DEFAULT 0, + `CurrencyCount3` int(11) DEFAULT 0, + PRIMARY KEY (`creature_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature OnKill Reputation gain'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_questender`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_questender` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`id`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_questitem`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_questitem` ( + `CreatureEntry` int(10) unsigned NOT NULL DEFAULT 0, + `Idx` int(10) unsigned NOT NULL DEFAULT 0, + `ItemId` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`CreatureEntry`,`Idx`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_queststarter`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_queststarter` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`id`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_sparring_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_sparring_template` ( + `CreatureID` int(10) unsigned NOT NULL, + `HealthLimitPct` float DEFAULT 0, + PRIMARY KEY (`CreatureID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_static_flags_override`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_static_flags_override` ( + `SpawnId` int(10) unsigned NOT NULL, + `DifficultyId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `StaticFlags1` int(10) unsigned DEFAULT NULL, + `StaticFlags2` int(10) unsigned DEFAULT NULL, + `StaticFlags3` int(10) unsigned DEFAULT NULL, + `StaticFlags4` int(10) unsigned DEFAULT NULL, + `StaticFlags5` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`SpawnId`,`DifficultyId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_summon_groups`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_summon_groups` ( + `summonerId` int(10) unsigned NOT NULL DEFAULT 0, + `summonerType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `groupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `summonType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `summonTime` int(10) unsigned NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_template` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `difficulty_entry_1` int(10) unsigned NOT NULL DEFAULT 0, + `difficulty_entry_2` int(10) unsigned NOT NULL DEFAULT 0, + `difficulty_entry_3` int(10) unsigned NOT NULL DEFAULT 0, + `KillCredit1` int(10) unsigned NOT NULL DEFAULT 0, + `KillCredit2` int(10) unsigned NOT NULL DEFAULT 0, + `modelid1` int(10) unsigned NOT NULL DEFAULT 0, + `modelid2` int(10) unsigned NOT NULL DEFAULT 0, + `modelid3` int(10) unsigned NOT NULL DEFAULT 0, + `modelid4` int(10) unsigned NOT NULL DEFAULT 0, + `name` varchar(100) NOT NULL, + `femaleName` varchar(100) NOT NULL, + `subname` varchar(100) DEFAULT NULL, + `IconName` varchar(100) DEFAULT NULL, + `minlevel` tinyint(3) unsigned NOT NULL DEFAULT 1, + `maxlevel` tinyint(3) unsigned NOT NULL DEFAULT 1, + `HealthScalingExpansion` int(11) NOT NULL DEFAULT 0, + `exp_unk` smallint(6) NOT NULL DEFAULT 0, + `faction` smallint(5) unsigned NOT NULL DEFAULT 0, + `npcflag` int(10) unsigned NOT NULL DEFAULT 0, + `speed_walk` float NOT NULL DEFAULT 1 COMMENT 'Result of 2.5/2.5, most common value', + `speed_run` float NOT NULL DEFAULT 1.14286 COMMENT 'Result of 8.0/7.0, most common value', + `scale` float NOT NULL DEFAULT 1, + `rank` tinyint(3) unsigned NOT NULL DEFAULT 0, + `dmgschool` tinyint(4) NOT NULL DEFAULT 0, + `BaseAttackTime` int(10) unsigned NOT NULL DEFAULT 0, + `RangeAttackTime` int(10) unsigned NOT NULL DEFAULT 0, + `BaseVariance` float NOT NULL DEFAULT 1, + `RangeVariance` float NOT NULL DEFAULT 1, + `unit_class` tinyint(3) unsigned NOT NULL DEFAULT 0, + `unit_flags` int(10) unsigned NOT NULL DEFAULT 0, + `unit_flags2` int(10) unsigned NOT NULL DEFAULT 0, + `family` tinyint(4) NOT NULL DEFAULT 0, + `trainer_type` tinyint(4) NOT NULL DEFAULT 0, + `trainer_class` tinyint(3) unsigned NOT NULL DEFAULT 0, + `trainer_race` tinyint(3) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `type_flags` int(10) unsigned NOT NULL DEFAULT 0, + `type_flags2` int(10) unsigned NOT NULL DEFAULT 0, + `lootid` int(10) unsigned NOT NULL DEFAULT 0, + `pickpocketloot` int(10) unsigned NOT NULL DEFAULT 0, + `skinloot` int(10) unsigned NOT NULL DEFAULT 0, + `resistance1` smallint(6) NOT NULL DEFAULT 0, + `resistance2` smallint(6) NOT NULL DEFAULT 0, + `resistance3` smallint(6) NOT NULL DEFAULT 0, + `resistance4` smallint(6) NOT NULL DEFAULT 0, + `resistance5` smallint(6) NOT NULL DEFAULT 0, + `resistance6` smallint(6) NOT NULL DEFAULT 0, + `spell1` int(10) unsigned NOT NULL DEFAULT 0, + `spell2` int(10) unsigned NOT NULL DEFAULT 0, + `spell3` int(10) unsigned NOT NULL DEFAULT 0, + `spell4` int(10) unsigned NOT NULL DEFAULT 0, + `spell5` int(10) unsigned NOT NULL DEFAULT 0, + `spell6` int(10) unsigned NOT NULL DEFAULT 0, + `spell7` int(10) unsigned NOT NULL DEFAULT 0, + `spell8` int(10) unsigned NOT NULL DEFAULT 0, + `PetSpellDataId` int(10) unsigned NOT NULL DEFAULT 0, + `VehicleId` int(10) unsigned NOT NULL DEFAULT 0, + `mingold` int(10) unsigned NOT NULL DEFAULT 0, + `maxgold` int(10) unsigned NOT NULL DEFAULT 0, + `AIName` varchar(64) NOT NULL, + `MovementType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `HoverHeight` float NOT NULL DEFAULT 1, + `HealthModifier` float NOT NULL DEFAULT 1, + `HealthModifierExtra` float NOT NULL DEFAULT 1, + `ManaModifier` float NOT NULL DEFAULT 1, + `ManaModifierExtra` float NOT NULL DEFAULT 1, + `ArmorModifier` float NOT NULL DEFAULT 1, + `DamageModifier` float NOT NULL DEFAULT 1, + `ExperienceModifier` float NOT NULL DEFAULT 1, + `RacialLeader` tinyint(3) unsigned NOT NULL DEFAULT 0, + `movementId` int(10) unsigned NOT NULL DEFAULT 0, + `RegenHealth` tinyint(3) unsigned NOT NULL DEFAULT 1, + `mechanic_immune_mask` int(10) unsigned NOT NULL DEFAULT 0, + `spell_school_immune_mask` int(10) unsigned NOT NULL DEFAULT 0, + `flags_extra` int(10) unsigned NOT NULL DEFAULT 0, + `StaticFlags` int(10) unsigned NOT NULL DEFAULT 0, + `StaticFlags2` int(10) unsigned NOT NULL DEFAULT 0, + `StaticFlags3` int(10) unsigned NOT NULL DEFAULT 0, + `StaticFlags4` int(10) unsigned NOT NULL DEFAULT 0, + `StaticFlags5` int(10) unsigned NOT NULL DEFAULT 0, + `ScriptName` varchar(64) NOT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`entry`), + KEY `idx_name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_template_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_template_addon` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `waypointPathId` int(10) unsigned NOT NULL DEFAULT 0, + `cyclicSplinePathId` int(10) unsigned NOT NULL DEFAULT 0, + `mount` int(10) unsigned NOT NULL DEFAULT 0, + `StandState` tinyint(3) unsigned NOT NULL DEFAULT 0, + `AnimTier` tinyint(3) unsigned NOT NULL DEFAULT 0, + `VisFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `SheathState` tinyint(3) unsigned NOT NULL DEFAULT 1, + `PvPFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `emote` int(10) unsigned NOT NULL DEFAULT 0, + `aiAnimKit` smallint(6) NOT NULL DEFAULT 0, + `movementAnimKit` smallint(6) NOT NULL DEFAULT 0, + `meleeAnimKit` smallint(6) NOT NULL DEFAULT 0, + `visibilityDistanceType` tinyint(3) unsigned DEFAULT 0, + `auras` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_template_gossip`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_template_gossip` ( + `CreatureID` int(10) unsigned NOT NULL, + `MenuID` int(10) unsigned NOT NULL, + `VerifiedBuild` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`CreatureID`,`MenuID`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_template_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_template_locale` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Name` text DEFAULT NULL, + `FemaleName` text DEFAULT NULL, + `Title` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`entry`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_template_model`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_template_model` ( + `CreatureID` int(10) unsigned NOT NULL, + `Idx` int(10) unsigned NOT NULL DEFAULT 0, + `CreatureDisplayID` int(10) unsigned NOT NULL, + `Probability` float NOT NULL DEFAULT 0, + `VerifiedBuild` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`CreatureID`,`Idx`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_template_movement`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_template_movement` ( + `CreatureId` int(10) unsigned NOT NULL DEFAULT 0, + `HoverInitiallyEnabled` tinyint(3) unsigned DEFAULT NULL, + `GravityInitiallyDisabled` tinyint(1) DEFAULT NULL, + `Random` tinyint(3) unsigned DEFAULT NULL, + `InteractionPauseTimer` int(10) unsigned DEFAULT NULL COMMENT 'Time (in milliseconds) during which creature will not move after interaction with player', + PRIMARY KEY (`CreatureId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_text`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_text` ( + `CreatureID` int(10) unsigned NOT NULL DEFAULT 0, + `GroupID` tinyint(3) unsigned NOT NULL DEFAULT 0, + `ID` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Text` mediumtext NOT NULL, + `Type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Language` tinyint(4) NOT NULL DEFAULT 0, + `Probability` float NOT NULL DEFAULT 0, + `Emote` int(10) unsigned NOT NULL DEFAULT 0, + `Duration` int(10) unsigned NOT NULL DEFAULT 0, + `Sound` int(10) unsigned NOT NULL DEFAULT 0, + `SoundType` int(10) unsigned NOT NULL DEFAULT 0, + `BroadcastTextId` int(11) NOT NULL DEFAULT 0, + `TextRange` tinyint(3) unsigned NOT NULL DEFAULT 0, + `comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`CreatureID`,`GroupID`,`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_text_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_text_locale` ( + `CreatureID` int(10) unsigned NOT NULL DEFAULT 0, + `GroupID` tinyint(3) unsigned NOT NULL DEFAULT 0, + `ID` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Locale` varchar(4) NOT NULL, + `Text` text DEFAULT NULL, + PRIMARY KEY (`CreatureID`,`GroupID`,`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `creature_trainer`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `creature_trainer` ( + `CreatureID` int(10) unsigned NOT NULL DEFAULT 0, + `TrainerID` int(10) unsigned NOT NULL DEFAULT 0, + `MenuID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionID` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`CreatureID`,`MenuID`,`OptionID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `debug_gameobject_template_backup`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `debug_gameobject_template_backup` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `displayId` int(10) unsigned NOT NULL DEFAULT 0, + `name` varchar(100) NOT NULL, + `IconName` varchar(100) NOT NULL, + `castBarCaption` varchar(100) NOT NULL, + `unk1` varchar(100) NOT NULL, + `size` float NOT NULL DEFAULT 1, + `Data0` int(10) unsigned NOT NULL DEFAULT 0, + `Data1` int(11) NOT NULL DEFAULT 0, + `Data2` int(10) unsigned NOT NULL DEFAULT 0, + `Data3` int(10) unsigned NOT NULL DEFAULT 0, + `Data4` int(10) unsigned NOT NULL DEFAULT 0, + `Data5` int(10) unsigned NOT NULL DEFAULT 0, + `Data6` int(11) NOT NULL DEFAULT 0, + `Data7` int(10) unsigned NOT NULL DEFAULT 0, + `Data8` int(10) unsigned NOT NULL DEFAULT 0, + `Data9` int(10) unsigned NOT NULL DEFAULT 0, + `Data10` int(10) unsigned NOT NULL DEFAULT 0, + `Data11` int(10) unsigned NOT NULL DEFAULT 0, + `Data12` int(10) unsigned NOT NULL DEFAULT 0, + `Data13` int(10) unsigned NOT NULL DEFAULT 0, + `Data14` int(10) unsigned NOT NULL DEFAULT 0, + `Data15` int(10) unsigned NOT NULL DEFAULT 0, + `Data16` int(10) unsigned NOT NULL DEFAULT 0, + `Data17` int(10) unsigned NOT NULL DEFAULT 0, + `Data18` int(10) unsigned NOT NULL DEFAULT 0, + `Data19` int(10) unsigned NOT NULL DEFAULT 0, + `Data20` int(10) unsigned NOT NULL DEFAULT 0, + `Data21` int(10) unsigned NOT NULL DEFAULT 0, + `Data22` int(10) unsigned NOT NULL DEFAULT 0, + `Data23` int(10) unsigned NOT NULL DEFAULT 0, + `Data24` int(10) unsigned NOT NULL DEFAULT 0, + `Data25` int(10) unsigned NOT NULL DEFAULT 0, + `Data26` int(10) unsigned NOT NULL DEFAULT 0, + `Data27` int(10) unsigned NOT NULL DEFAULT 0, + `Data28` int(10) unsigned NOT NULL DEFAULT 0, + `Data29` int(10) unsigned NOT NULL DEFAULT 0, + `Data30` int(10) unsigned NOT NULL DEFAULT 0, + `Data31` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredLevel` int(11) NOT NULL DEFAULT 0, + `AIName` varchar(64) NOT NULL, + `ScriptName` varchar(64) NOT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `disables`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `disables` ( + `sourceType` int(10) unsigned NOT NULL, + `entry` int(10) unsigned NOT NULL, + `flags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `params_0` varchar(255) NOT NULL, + `params_1` varchar(255) NOT NULL, + `comment` varchar(255) NOT NULL, + PRIMARY KEY (`sourceType`,`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `disenchant_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `disenchant_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `event_scripts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `event_scripts` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `delay` int(10) unsigned NOT NULL DEFAULT 0, + `command` int(10) unsigned NOT NULL DEFAULT 0, + `datalong` int(10) unsigned NOT NULL DEFAULT 0, + `datalong2` int(10) unsigned NOT NULL DEFAULT 0, + `dataint` int(11) NOT NULL DEFAULT 0, + `x` float NOT NULL DEFAULT 0, + `y` float NOT NULL DEFAULT 0, + `z` float NOT NULL DEFAULT 0, + `o` float NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `exploration_basexp`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `exploration_basexp` ( + `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `basexp` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Exploration System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `fishing_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `fishing_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', + `start_time` timestamp NULL DEFAULT NULL COMMENT 'Absolute start date, the event will never start before', + `end_time` timestamp NULL DEFAULT NULL COMMENT 'Absolute end date, the event will never start after', + `occurence` bigint(20) unsigned NOT NULL DEFAULT 5184000 COMMENT 'Delay in minutes between occurences of the event', + `length` bigint(20) unsigned NOT NULL DEFAULT 2592000 COMMENT 'Length in minutes of the event', + `holiday` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Client side holiday id', + `holidayStage` tinyint(3) unsigned NOT NULL DEFAULT 0, + `description` varchar(255) DEFAULT NULL, + `world_event` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '0 if normal event, 1 if world event', + `announce` tinyint(3) unsigned DEFAULT 2 COMMENT '0 dont announce, 1 announce, 2 value from config', + PRIMARY KEY (`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_arena_seasons`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_arena_seasons` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', + `season` tinyint(3) unsigned NOT NULL COMMENT 'Arena season number', + UNIQUE KEY `season` (`season`,`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_battleground_holiday`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_battleground_holiday` ( + `EventEntry` tinyint(3) unsigned NOT NULL COMMENT 'game_event EventEntry identifier', + `BattlegroundID` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`EventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_condition`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_condition` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', + `condition_id` int(10) unsigned NOT NULL DEFAULT 0, + `req_num` float DEFAULT 0, + `max_world_state_field` smallint(5) unsigned NOT NULL DEFAULT 0, + `done_world_state_field` smallint(5) unsigned NOT NULL DEFAULT 0, + `description` varchar(25) NOT NULL, + PRIMARY KEY (`eventEntry`,`condition_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_creature`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_creature` ( + `eventEntry` tinyint(4) NOT NULL COMMENT 'Entry of the game event. Put negative entry to remove during event.', + `guid` int(10) unsigned NOT NULL, + PRIMARY KEY (`guid`,`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_creature_quest`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_creature_quest` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event.', + `id` int(10) unsigned NOT NULL DEFAULT 0, + `quest` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_gameobject`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_gameobject` ( + `eventEntry` tinyint(4) NOT NULL COMMENT 'Entry of the game event. Put negative entry to remove during event.', + `guid` int(10) unsigned NOT NULL, + PRIMARY KEY (`guid`,`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_gameobject_quest`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_gameobject_quest` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', + `id` int(10) unsigned NOT NULL DEFAULT 0, + `quest` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`,`quest`,`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_model_equip`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_model_equip` ( + `eventEntry` tinyint(4) NOT NULL COMMENT 'Entry of the game event.', + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `modelid` int(10) unsigned NOT NULL DEFAULT 0, + `equipment_id` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_npc_vendor`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_npc_vendor` ( + `eventEntry` tinyint(4) NOT NULL COMMENT 'Entry of the game event.', + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `slot` smallint(6) NOT NULL DEFAULT 0, + `item` int(10) unsigned NOT NULL DEFAULT 0, + `maxcount` int(10) unsigned NOT NULL DEFAULT 0, + `incrtime` int(10) unsigned NOT NULL DEFAULT 0, + `ExtendedCost` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`guid`,`item`,`ExtendedCost`,`type`), + KEY `slot` (`slot`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_npcflag`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_npcflag` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `npcflag` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`eventEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_pool`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_pool` ( + `eventEntry` tinyint(4) NOT NULL COMMENT 'Entry of the game event. Put negative entry to remove during event.', + `pool_entry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Id of the pool', + PRIMARY KEY (`pool_entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_prerequisite`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_prerequisite` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', + `prerequisite_event` int(10) unsigned NOT NULL, + PRIMARY KEY (`eventEntry`,`prerequisite_event`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_quest_condition`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_quest_condition` ( + `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event.', + `quest` int(10) unsigned NOT NULL DEFAULT 0, + `condition_id` int(10) unsigned NOT NULL DEFAULT 0, + `num` float DEFAULT 0, + PRIMARY KEY (`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_event_seasonal_questrelation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_event_seasonal_questrelation` ( + `questId` int(10) unsigned NOT NULL COMMENT 'Quest Identifier', + `eventEntry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Entry of the game event', + PRIMARY KEY (`questId`,`eventEntry`), + KEY `idx_quest` (`questId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_tele`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_tele` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `map` smallint(5) unsigned NOT NULL DEFAULT 0, + `name` varchar(100) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1533 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Tele Command'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `game_weather`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `game_weather` ( + `zone` int(10) unsigned NOT NULL DEFAULT 0, + `spring_rain_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `spring_snow_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `spring_storm_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `summer_rain_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `summer_snow_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `summer_storm_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `fall_rain_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `fall_snow_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `fall_storm_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `winter_rain_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `winter_snow_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `winter_storm_chance` tinyint(3) unsigned NOT NULL DEFAULT 25, + `ScriptName` varchar(64) NOT NULL, + PRIMARY KEY (`zone`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Weather System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject` ( + `guid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Global Unique Identifier', + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Gameobject Identifier', + `map` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier', + `zoneId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Zone Identifier', + `areaId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Area Identifier', + `spawnMask` tinyint(3) unsigned NOT NULL DEFAULT 1, + `phaseUseFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `phaseMask` int(10) unsigned NOT NULL DEFAULT 1, + `PhaseId` int(11) DEFAULT 0, + `PhaseGroup` int(11) DEFAULT 0, + `terrainSwapMap` int(11) NOT NULL DEFAULT -1, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `rotation0` float NOT NULL DEFAULT 0, + `rotation1` float NOT NULL DEFAULT 0, + `rotation2` float NOT NULL DEFAULT 0, + `rotation3` float NOT NULL DEFAULT 0, + `spawntimesecs` int(11) NOT NULL DEFAULT 0, + `animprogress` tinyint(3) unsigned NOT NULL DEFAULT 0, + `state` tinyint(3) unsigned NOT NULL DEFAULT 0, + `ScriptName` varchar(64) DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB AUTO_INCREMENT=255116 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Gameobject System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_addon` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `parent_rotation0` float NOT NULL DEFAULT 0, + `parent_rotation1` float NOT NULL DEFAULT 0, + `parent_rotation2` float NOT NULL DEFAULT 0, + `parent_rotation3` float NOT NULL DEFAULT 1, + `invisibilityType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `invisibilityValue` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_questender`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_questender` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`id`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_questitem`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_questitem` ( + `GameObjectEntry` int(10) unsigned NOT NULL DEFAULT 0, + `Idx` int(10) unsigned NOT NULL DEFAULT 0, + `ItemId` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`GameObjectEntry`,`Idx`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_queststarter`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_queststarter` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier', + PRIMARY KEY (`id`,`quest`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_template` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `displayId` int(10) unsigned NOT NULL DEFAULT 0, + `name` varchar(100) NOT NULL, + `IconName` varchar(100) NOT NULL, + `castBarCaption` varchar(100) NOT NULL, + `unk1` varchar(100) NOT NULL, + `size` float NOT NULL DEFAULT 1, + `Data0` int(10) unsigned NOT NULL DEFAULT 0, + `Data1` int(11) NOT NULL DEFAULT 0, + `Data2` int(10) unsigned NOT NULL DEFAULT 0, + `Data3` int(10) unsigned NOT NULL DEFAULT 0, + `Data4` int(10) unsigned NOT NULL DEFAULT 0, + `Data5` int(10) unsigned NOT NULL DEFAULT 0, + `Data6` int(11) NOT NULL DEFAULT 0, + `Data7` int(10) unsigned NOT NULL DEFAULT 0, + `Data8` int(10) unsigned NOT NULL DEFAULT 0, + `Data9` int(10) unsigned NOT NULL DEFAULT 0, + `Data10` int(10) unsigned NOT NULL DEFAULT 0, + `Data11` int(10) unsigned NOT NULL DEFAULT 0, + `Data12` int(10) unsigned NOT NULL DEFAULT 0, + `Data13` int(10) unsigned NOT NULL DEFAULT 0, + `Data14` int(10) unsigned NOT NULL DEFAULT 0, + `Data15` int(10) unsigned NOT NULL DEFAULT 0, + `Data16` int(10) unsigned NOT NULL DEFAULT 0, + `Data17` int(10) unsigned NOT NULL DEFAULT 0, + `Data18` int(10) unsigned NOT NULL DEFAULT 0, + `Data19` int(10) unsigned NOT NULL DEFAULT 0, + `Data20` int(10) unsigned NOT NULL DEFAULT 0, + `Data21` int(10) unsigned NOT NULL DEFAULT 0, + `Data22` int(10) unsigned NOT NULL DEFAULT 0, + `Data23` int(10) unsigned NOT NULL DEFAULT 0, + `Data24` int(10) unsigned NOT NULL DEFAULT 0, + `Data25` int(10) unsigned NOT NULL DEFAULT 0, + `Data26` int(10) unsigned NOT NULL DEFAULT 0, + `Data27` int(10) unsigned NOT NULL DEFAULT 0, + `Data28` int(10) unsigned NOT NULL DEFAULT 0, + `Data29` int(10) unsigned NOT NULL DEFAULT 0, + `Data30` int(10) unsigned NOT NULL DEFAULT 0, + `Data31` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredLevel` int(11) NOT NULL DEFAULT 0, + `AIName` varchar(64) NOT NULL, + `ScriptName` varchar(64) NOT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`entry`), + KEY `idx_name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Gameobject System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_template_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_template_addon` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `faction` smallint(5) unsigned NOT NULL DEFAULT 0, + `flags` int(10) unsigned NOT NULL DEFAULT 0, + `mingold` int(10) unsigned NOT NULL DEFAULT 0, + `maxgold` int(10) unsigned NOT NULL DEFAULT 0, + `artkit0` int(11) NOT NULL DEFAULT 0, + `artkit1` int(11) NOT NULL DEFAULT 0, + `artkit2` int(11) NOT NULL DEFAULT 0, + `artkit3` int(11) NOT NULL DEFAULT 0, + `artkit4` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gameobject_template_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gameobject_template_locale` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `name` text DEFAULT NULL, + `castBarCaption` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`entry`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gossip_menu`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gossip_menu` ( + `MenuID` int(10) unsigned NOT NULL DEFAULT 0, + `TextID` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`MenuID`,`TextID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gossip_menu_option`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gossip_menu_option` ( + `MenuID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionIcon` tinyint(3) unsigned NOT NULL DEFAULT 0, + `OptionText` text DEFAULT NULL, + `OptionBroadcastTextID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionType` int(10) unsigned NOT NULL DEFAULT 0, + `OptionNpcflag` bigint(20) unsigned NOT NULL DEFAULT 0, + `ActionMenuID` int(10) unsigned NOT NULL DEFAULT 0, + `ActionPoiID` int(10) unsigned NOT NULL DEFAULT 0, + `BoxCoded` tinyint(3) unsigned NOT NULL DEFAULT 0, + `BoxMoney` int(10) unsigned NOT NULL DEFAULT 0, + `BoxText` mediumtext DEFAULT NULL, + `BoxBroadcastTextID` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`MenuID`,`OptionID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gossip_menu_option_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gossip_menu_option_locale` ( + `MenuID` int(10) unsigned NOT NULL DEFAULT 0, + `OptionID` int(10) unsigned NOT NULL DEFAULT 0, + `Locale` varchar(4) NOT NULL, + `OptionText` text DEFAULT NULL, + `BoxText` text DEFAULT NULL, + PRIMARY KEY (`MenuID`,`OptionID`,`Locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `graveyard_orientation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `graveyard_orientation` ( + `Id` int(10) unsigned NOT NULL DEFAULT 0, + `Orientation` float NOT NULL DEFAULT 0, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Orientations used by graveyards'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `graveyard_zone`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `graveyard_zone` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `GhostZone` int(10) unsigned NOT NULL DEFAULT 0, + `Faction` smallint(5) unsigned NOT NULL DEFAULT 0, + `Comment` text DEFAULT NULL, + PRIMARY KEY (`ID`,`GhostZone`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Trigger System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_damage_by_class`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_damage_by_class` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_damage_by_class_exp1`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_damage_by_class_exp1` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_damage_by_class_exp2`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_damage_by_class_exp2` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_damage_by_class_exp3`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_damage_by_class_exp3` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_total_hp`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_total_hp` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_total_hp_exp1`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_total_hp_exp1` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_total_hp_exp2`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_total_hp_exp2` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gt_npc_total_hp_exp3`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `gt_npc_total_hp_exp3` ( + `Level` tinyint(3) unsigned NOT NULL, + `Warrior` float NOT NULL, + `Paladin` float NOT NULL, + `Hunter` float NOT NULL, + `Rogue` float NOT NULL, + `Priest` float NOT NULL, + `DeathKnight` float NOT NULL, + `Shaman` float NOT NULL, + `Mage` float NOT NULL, + `Warlock` float NOT NULL, + `Monk` float NOT NULL, + `Druid` float NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_challenges`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_challenges` ( + `ChallengeType` int(10) unsigned NOT NULL DEFAULT 0, + `ChallengeCount` int(10) unsigned DEFAULT 1, + `Experience` int(10) unsigned DEFAULT 0, + `Gold` int(10) unsigned DEFAULT 0, + `GoldMaxLevel` int(10) unsigned DEFAULT 0, + PRIMARY KEY (`ChallengeType`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_rewards`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_rewards` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `standing` tinyint(3) unsigned DEFAULT 0, + `racemask` int(11) DEFAULT 0, + `price` bigint(20) unsigned DEFAULT 0, + `achievement` int(10) unsigned DEFAULT 0, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `guild_xp_for_level`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `guild_xp_for_level` ( + `lvl` tinyint(3) unsigned NOT NULL, + `xp_for_next_level` int(10) unsigned NOT NULL, + PRIMARY KEY (`lvl`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `holiday_dates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `holiday_dates` ( + `id` int(10) unsigned NOT NULL, + `date_id` tinyint(3) unsigned NOT NULL, + `date_value` int(10) unsigned NOT NULL, + `holiday_duration` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`,`date_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `instance_encounters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `instance_encounters` ( + `entry` int(10) unsigned NOT NULL COMMENT 'Unique entry from DungeonEncounter.dbc', + `creditType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `creditEntry` int(10) unsigned NOT NULL DEFAULT 0, + `lastEncounterDungeon` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'If not 0, LfgDungeon.dbc entry for the instance it is last encounter in', + `comment` varchar(255) NOT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `instance_spawn_groups`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `instance_spawn_groups` ( + `instanceMapId` smallint(5) unsigned NOT NULL, + `bossStateId` tinyint(3) unsigned NOT NULL, + `bossStates` tinyint(3) unsigned NOT NULL, + `spawnGroupId` int(10) unsigned NOT NULL, + `flags` tinyint(3) unsigned NOT NULL, + PRIMARY KEY (`instanceMapId`,`bossStateId`,`spawnGroupId`,`bossStates`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `instance_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `instance_template` ( + `map` smallint(5) unsigned NOT NULL, + `parent` smallint(5) unsigned NOT NULL, + `script` varchar(128) NOT NULL, + PRIMARY KEY (`map`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_enchantment_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_enchantment_template` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL, + `ench` int(10) unsigned NOT NULL DEFAULT 0, + `chance` float NOT NULL DEFAULT 0, + PRIMARY KEY (`entry`,`type`,`ench`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Item Random Enchantment System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_script_names`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_script_names` ( + `Id` int(10) unsigned NOT NULL, + `ScriptName` varchar(64) NOT NULL, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `item_template_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `item_template_addon` ( + `Id` int(10) unsigned NOT NULL, + `FlagsCu` int(10) unsigned NOT NULL DEFAULT 0, + `FoodType` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinMoneyLoot` int(10) unsigned NOT NULL DEFAULT 0, + `MaxMoneyLoot` int(10) unsigned NOT NULL DEFAULT 0, + `SpellPPMChance` float NOT NULL DEFAULT 0, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `lfg_dungeon_rewards`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `lfg_dungeon_rewards` ( + `dungeonId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Dungeon entry from dbc', + `maxLevel` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Max level at which this reward is rewarded', + `firstQuestId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest id with rewards for first dungeon this day', + `otherQuestId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest id with rewards for Nth dungeon this day', + `shortageQuestId` int(10) unsigned DEFAULT 0 COMMENT 'Quest ID with rewards for joining a random dungeon queue while the role is short on supply', + `completionsPerPeriod` tinyint(3) unsigned DEFAULT 0 COMMENT 'Maximum amount that the first quest may be rewarded', + `dailyReset` tinyint(3) unsigned DEFAULT 0 COMMENT 'Indicator for resetting rewards daily or weekly', + PRIMARY KEY (`dungeonId`,`maxLevel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `lfg_dungeon_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `lfg_dungeon_template` ( + `dungeonId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Unique id from LFGDungeons.dbc', + `name` varchar(255) DEFAULT NULL, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `requiredItemLevel` smallint(6) NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`dungeonId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `linked_respawn`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `linked_respawn` ( + `guid` int(10) unsigned NOT NULL COMMENT 'dependent creature', + `linkedGuid` int(10) unsigned NOT NULL COMMENT 'master creature', + `linkType` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`,`linkType`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature Respawn Link System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `mail_level_reward`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `mail_level_reward` ( + `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `raceMask` int(10) unsigned NOT NULL DEFAULT 0, + `mailTemplateId` int(10) unsigned NOT NULL DEFAULT 0, + `senderEntry` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`level`,`raceMask`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Mail System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `mail_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `mail_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `milling_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `milling_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `npc_spellclick_spells`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `npc_spellclick_spells` ( + `npc_entry` int(10) unsigned NOT NULL COMMENT 'reference to creature_template', + `spell_id` int(10) unsigned NOT NULL COMMENT 'spell which should be casted ', + `cast_flags` tinyint(3) unsigned NOT NULL COMMENT 'first bit defines caster: 1=player, 0=creature; second bit defines target, same mapping as caster bit', + `user_type` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'relation with summoner: 0-no 1-friendly 2-raid 3-party player can click', + PRIMARY KEY (`npc_entry`,`spell_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `npc_text`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `npc_text` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `text0_0` longtext DEFAULT NULL, + `text0_1` longtext DEFAULT NULL, + `BroadcastTextID0` int(11) NOT NULL DEFAULT 0, + `lang0` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability0` float NOT NULL DEFAULT 0, + `EmoteDelay0_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote0_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay0_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote0_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay0_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote0_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text1_0` longtext DEFAULT NULL, + `text1_1` longtext DEFAULT NULL, + `BroadcastTextID1` int(11) NOT NULL DEFAULT 0, + `lang1` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability1` float NOT NULL DEFAULT 0, + `EmoteDelay1_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote1_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay1_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote1_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay1_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote1_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text2_0` longtext DEFAULT NULL, + `text2_1` longtext DEFAULT NULL, + `BroadcastTextID2` int(11) NOT NULL DEFAULT 0, + `lang2` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability2` float NOT NULL DEFAULT 0, + `EmoteDelay2_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote2_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay2_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote2_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay2_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote2_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text3_0` longtext DEFAULT NULL, + `text3_1` longtext DEFAULT NULL, + `BroadcastTextID3` int(11) NOT NULL DEFAULT 0, + `lang3` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability3` float NOT NULL DEFAULT 0, + `EmoteDelay3_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote3_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay3_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote3_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay3_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote3_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text4_0` longtext DEFAULT NULL, + `text4_1` longtext DEFAULT NULL, + `BroadcastTextID4` int(11) NOT NULL DEFAULT 0, + `lang4` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability4` float NOT NULL DEFAULT 0, + `EmoteDelay4_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote4_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay4_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote4_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay4_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote4_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text5_0` longtext DEFAULT NULL, + `text5_1` longtext DEFAULT NULL, + `BroadcastTextID5` int(11) NOT NULL DEFAULT 0, + `lang5` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability5` float NOT NULL DEFAULT 0, + `EmoteDelay5_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote5_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay5_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote5_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay5_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote5_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text6_0` longtext DEFAULT NULL, + `text6_1` longtext DEFAULT NULL, + `BroadcastTextID6` int(11) NOT NULL DEFAULT 0, + `lang6` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability6` float NOT NULL DEFAULT 0, + `EmoteDelay6_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote6_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay6_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote6_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay6_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote6_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `text7_0` longtext DEFAULT NULL, + `text7_1` longtext DEFAULT NULL, + `BroadcastTextID7` int(11) NOT NULL DEFAULT 0, + `lang7` tinyint(3) unsigned NOT NULL DEFAULT 0, + `Probability7` float NOT NULL DEFAULT 0, + `EmoteDelay7_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote7_0` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay7_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote7_1` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay7_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote7_2` smallint(5) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `npc_text_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `npc_text_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Locale` varchar(4) NOT NULL, + `Text0_0` longtext DEFAULT NULL, + `Text0_1` longtext DEFAULT NULL, + `Text1_0` longtext DEFAULT NULL, + `Text1_1` longtext DEFAULT NULL, + `Text2_0` longtext DEFAULT NULL, + `Text2_1` longtext DEFAULT NULL, + `Text3_0` longtext DEFAULT NULL, + `Text3_1` longtext DEFAULT NULL, + `Text4_0` longtext DEFAULT NULL, + `Text4_1` longtext DEFAULT NULL, + `Text5_0` longtext DEFAULT NULL, + `Text5_1` longtext DEFAULT NULL, + `Text6_0` longtext DEFAULT NULL, + `Text6_1` longtext DEFAULT NULL, + `Text7_0` longtext DEFAULT NULL, + `Text7_1` longtext DEFAULT NULL, + PRIMARY KEY (`ID`,`Locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `npc_vendor`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `npc_vendor` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `slot` smallint(6) NOT NULL DEFAULT 0, + `item` int(11) NOT NULL DEFAULT 0, + `maxcount` int(10) unsigned NOT NULL DEFAULT 0, + `incrtime` int(10) unsigned NOT NULL DEFAULT 0, + `ExtendedCost` int(10) unsigned NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 1, + `PlayerConditionID` int(11) NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`entry`,`item`,`ExtendedCost`,`type`), + KEY `slot` (`slot`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Npc System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `outdoorpvp_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `outdoorpvp_template` ( + `TypeId` tinyint(3) unsigned NOT NULL, + `ScriptName` varchar(64) NOT NULL, + `comment` text DEFAULT NULL, + PRIMARY KEY (`TypeId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='OutdoorPvP Templates'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `page_text`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `page_text` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Text` mediumtext NOT NULL, + `NextPageID` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Item System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `page_text_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `page_text_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Text` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pet_levelstats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pet_levelstats` ( + `creature_entry` int(10) unsigned NOT NULL, + `level` tinyint(3) unsigned NOT NULL, + `hp` smallint(5) unsigned NOT NULL, + `mana` smallint(5) unsigned NOT NULL, + `armor` int(10) unsigned NOT NULL DEFAULT 0, + `str` smallint(5) unsigned NOT NULL, + `agi` smallint(5) unsigned NOT NULL, + `sta` smallint(5) unsigned NOT NULL, + `inte` smallint(5) unsigned NOT NULL, + `spi` smallint(5) unsigned NOT NULL, + PRIMARY KEY (`creature_entry`,`level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=0 COMMENT='Stores pet levels stats.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pet_name_generation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pet_name_generation` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `word` tinytext NOT NULL, + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `half` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=314 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `phase_area`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `phase_area` ( + `AreaId` int(10) unsigned NOT NULL, + `PhaseId` int(10) unsigned NOT NULL, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`AreaId`,`PhaseId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pickpocketing_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pickpocketing_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_classlevelstats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_classlevelstats` ( + `class` smallint(5) unsigned NOT NULL, + `level` smallint(5) unsigned NOT NULL, + `str` smallint(5) unsigned NOT NULL COMMENT 'strength', + `agi` smallint(5) unsigned NOT NULL COMMENT 'agility', + `sta` smallint(5) unsigned NOT NULL COMMENT 'stamina', + `inte` smallint(5) unsigned NOT NULL COMMENT 'intellect', + `spi` smallint(6) NOT NULL COMMENT 'spirit', + `VerifiedBuild` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`class`,`level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Stores levels stats.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_factionchange_achievement`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_factionchange_achievement` ( + `alliance_id` int(10) unsigned NOT NULL, + `horde_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`alliance_id`,`horde_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_factionchange_items`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_factionchange_items` ( + `race_A` int(10) unsigned NOT NULL, + `alliance_id` int(10) unsigned NOT NULL, + `commentA` text DEFAULT NULL, + `race_H` int(10) unsigned NOT NULL, + `horde_id` int(10) unsigned NOT NULL, + `commentH` text DEFAULT NULL, + PRIMARY KEY (`alliance_id`,`horde_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_factionchange_quests`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_factionchange_quests` ( + `alliance_id` int(10) unsigned NOT NULL, + `horde_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`alliance_id`,`horde_id`), + UNIQUE KEY `alliance_uniq` (`alliance_id`), + UNIQUE KEY `horde_uniq` (`horde_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_factionchange_reputations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_factionchange_reputations` ( + `alliance_id` int(10) unsigned NOT NULL, + `horde_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`alliance_id`,`horde_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_factionchange_spells`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_factionchange_spells` ( + `alliance_id` int(10) unsigned NOT NULL, + `horde_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`alliance_id`,`horde_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_factionchange_titles`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_factionchange_titles` ( + `alliance_id` int(11) NOT NULL, + `horde_id` int(11) NOT NULL, + PRIMARY KEY (`alliance_id`,`horde_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_levelstats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_levelstats` ( + `race` tinyint(3) unsigned NOT NULL, + `class` tinyint(3) unsigned NOT NULL, + `level` tinyint(3) unsigned NOT NULL, + `str` tinyint(3) unsigned NOT NULL, + `agi` tinyint(3) unsigned NOT NULL, + `sta` tinyint(3) unsigned NOT NULL, + `inte` tinyint(3) unsigned NOT NULL, + `spi` tinyint(3) unsigned NOT NULL, + PRIMARY KEY (`race`,`class`,`level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=0 COMMENT='Stores levels stats.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_racestats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_racestats` ( + `race` tinyint(3) unsigned NOT NULL, + `str` smallint(6) NOT NULL COMMENT 'strength', + `agi` smallint(6) NOT NULL COMMENT 'agility', + `sta` smallint(6) NOT NULL COMMENT 'stamina', + `inte` smallint(6) NOT NULL COMMENT 'intellect', + `spi` smallint(6) NOT NULL COMMENT 'spirit', + PRIMARY KEY (`race`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Stores race stats.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `player_xp_for_level`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `player_xp_for_level` ( + `Level` tinyint(3) unsigned NOT NULL, + `Experience` int(10) unsigned NOT NULL, + PRIMARY KEY (`Level`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `playercondition_dbc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `playercondition_dbc` ( + `ID` int(10) unsigned NOT NULL, + `FailureDescription` varchar(100) NOT NULL, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `playercreateinfo`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `playercreateinfo` ( + `race` tinyint(3) unsigned NOT NULL DEFAULT 0, + `class` tinyint(3) unsigned NOT NULL DEFAULT 0, + `map` smallint(5) unsigned NOT NULL DEFAULT 0, + `zone` int(10) unsigned NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + PRIMARY KEY (`race`,`class`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `playercreateinfo_action`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `playercreateinfo_action` ( + `race` tinyint(3) unsigned NOT NULL DEFAULT 0, + `class` tinyint(3) unsigned NOT NULL DEFAULT 0, + `button` smallint(5) unsigned NOT NULL DEFAULT 0, + `action` int(10) unsigned NOT NULL DEFAULT 0, + `type` smallint(5) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`race`,`class`,`button`), + KEY `playercreateinfo_race_class_index` (`race`,`class`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `playercreateinfo_cast_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `playercreateinfo_cast_spell` ( + `raceMask` int(10) unsigned NOT NULL DEFAULT 0, + `classMask` int(10) unsigned NOT NULL DEFAULT 0, + `spell` int(10) unsigned NOT NULL DEFAULT 0, + `note` varchar(255) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `playercreateinfo_item`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `playercreateinfo_item` ( + `race` tinyint(3) unsigned NOT NULL DEFAULT 0, + `class` tinyint(3) unsigned NOT NULL DEFAULT 0, + `itemid` int(10) unsigned NOT NULL DEFAULT 0, + `amount` tinyint(4) NOT NULL DEFAULT 1, + PRIMARY KEY (`race`,`class`,`itemid`), + KEY `playercreateinfo_race_class_index` (`race`,`class`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `playercreateinfo_spell_custom`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `playercreateinfo_spell_custom` ( + `racemask` int(10) unsigned NOT NULL DEFAULT 0, + `classmask` int(10) unsigned NOT NULL DEFAULT 0, + `Spell` int(10) unsigned NOT NULL DEFAULT 0, + `Note` varchar(255) DEFAULT NULL, + PRIMARY KEY (`racemask`,`classmask`,`Spell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `points_of_interest`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `points_of_interest` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `PositionX` float NOT NULL DEFAULT 0, + `PositionY` float NOT NULL DEFAULT 0, + `Icon` int(10) unsigned NOT NULL DEFAULT 0, + `Flags` int(10) unsigned NOT NULL DEFAULT 0, + `Importance` int(10) unsigned NOT NULL DEFAULT 0, + `Name` text NOT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `points_of_interest_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `points_of_interest_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Name` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pool_members`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pool_members` ( + `type` smallint(5) unsigned NOT NULL, + `spawnId` int(10) unsigned NOT NULL, + `poolSpawnId` int(10) unsigned NOT NULL, + `chance` float NOT NULL, + `description` varchar(255) DEFAULT NULL, + PRIMARY KEY (`type`,`spawnId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `pool_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `pool_template` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Pool entry', + `max_limit` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Max number of objects (0) is no limit', + `description` varchar(255) DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `prospecting_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `prospecting_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_details`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_details` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Emote1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote3` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote4` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay1` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay2` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay3` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay4` int(10) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_greeting`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_greeting` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `GreetEmoteType` smallint(5) unsigned NOT NULL DEFAULT 0, + `GreetEmoteDelay` int(10) unsigned NOT NULL DEFAULT 0, + `Greeting` text DEFAULT NULL, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`,`Type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_greeting_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_greeting_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Greeting` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`,`Type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_mail_sender`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_mail_sender` ( + `QuestId` int(10) unsigned NOT NULL DEFAULT 0, + `RewardMailSenderEntry` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`QuestId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_money_reward`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_money_reward` ( + `Id` int(10) unsigned NOT NULL, + `Difficulty0` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty1` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty2` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty3` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty4` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty5` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty6` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty7` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty8` int(10) unsigned NOT NULL DEFAULT 0, + `Difficulty9` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_offer_reward`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_offer_reward` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `Emote1` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote2` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote3` smallint(5) unsigned NOT NULL DEFAULT 0, + `Emote4` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteDelay1` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay2` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay3` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteDelay4` int(10) unsigned NOT NULL DEFAULT 0, + `RewardText` text DEFAULT NULL, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_poi`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_poi` ( + `QuestID` int(11) NOT NULL DEFAULT 0, + `BlobIndex` int(11) NOT NULL DEFAULT 0, + `Idx1` int(11) NOT NULL, + `ObjectiveIndex` int(11) NOT NULL DEFAULT 0, + `MapID` int(11) NOT NULL DEFAULT 0, + `WorldMapAreaID` int(11) NOT NULL DEFAULT 0, + `Floor` int(11) NOT NULL DEFAULT 0, + `Priority` int(11) NOT NULL DEFAULT 0, + `Flags` int(11) NOT NULL DEFAULT 0, + `VerifiedBuild` int(11) DEFAULT 0, + PRIMARY KEY (`QuestID`,`BlobIndex`,`Idx1`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_poi_points`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_poi_points` ( + `QuestID` int(11) NOT NULL DEFAULT 0, + `Idx1` int(11) NOT NULL DEFAULT 0, + `Idx2` int(11) NOT NULL DEFAULT 0, + `X` int(11) NOT NULL DEFAULT 0, + `Y` int(11) NOT NULL DEFAULT 0, + `VerifiedBuild` int(11) DEFAULT 0, + PRIMARY KEY (`QuestID`,`Idx1`,`Idx2`), + KEY `questId_id` (`QuestID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_pool_members`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_pool_members` ( + `questId` int(10) unsigned NOT NULL, + `poolId` int(10) unsigned NOT NULL, + `poolIndex` tinyint(3) unsigned NOT NULL COMMENT 'Multiple quests with the same index will always spawn together!', + `description` varchar(255) DEFAULT NULL, + PRIMARY KEY (`questId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_pool_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_pool_template` ( + `poolId` int(10) unsigned NOT NULL, + `numActive` int(10) unsigned NOT NULL COMMENT 'Number of indices to have active at any time', + `description` varchar(255) DEFAULT NULL, + PRIMARY KEY (`poolId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_request_items`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_request_items` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `EmoteOnComplete` smallint(5) unsigned NOT NULL DEFAULT 0, + `EmoteOnIncomplete` smallint(5) unsigned NOT NULL DEFAULT 0, + `CompletionText` text DEFAULT NULL, + `VerifiedBuild` int(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_template` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `QuestType` tinyint(3) unsigned NOT NULL DEFAULT 2, + `QuestLevel` smallint(6) NOT NULL DEFAULT 1, + `MinLevel` smallint(6) NOT NULL DEFAULT 0, + `QuestSortID` smallint(6) NOT NULL DEFAULT 0, + `QuestInfoID` smallint(5) unsigned NOT NULL DEFAULT 0, + `SuggestedGroupNum` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RequiredFactionId1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredFactionId2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredFactionValue1` int(11) NOT NULL DEFAULT 0, + `RequiredFactionValue2` int(11) NOT NULL DEFAULT 0, + `RewardNextQuest` int(10) unsigned NOT NULL DEFAULT 0, + `RewardXPDifficulty` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RewardMoney` int(11) NOT NULL DEFAULT 0, + `RewardBonusMoney` int(10) unsigned NOT NULL DEFAULT 0, + `RewardDisplaySpell` int(10) unsigned NOT NULL DEFAULT 0, + `RewardSpell` int(11) NOT NULL DEFAULT 0, + `RewardHonor` int(11) NOT NULL DEFAULT 0, + `RewardKillHonor` float NOT NULL DEFAULT 0, + `StartItem` int(10) unsigned NOT NULL DEFAULT 0, + `Flags` int(10) unsigned NOT NULL DEFAULT 0, + `MinimapTargetMark` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RequiredPlayerKills` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RewardSkillId` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardSkillPoints` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RewardReputationMask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `QuestGiverPortrait` int(10) unsigned NOT NULL DEFAULT 0, + `QuestTurnInPortrait` int(10) unsigned NOT NULL DEFAULT 0, + `RewardItem1` int(10) unsigned NOT NULL DEFAULT 0, + `RewardAmount1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardItem2` int(10) unsigned NOT NULL DEFAULT 0, + `RewardAmount2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardItem3` int(10) unsigned NOT NULL DEFAULT 0, + `RewardAmount3` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardItem4` int(10) unsigned NOT NULL DEFAULT 0, + `RewardAmount4` smallint(5) unsigned NOT NULL DEFAULT 0, + `ItemDrop1` int(10) unsigned NOT NULL DEFAULT 0, + `ItemDropQuantity1` smallint(5) unsigned NOT NULL DEFAULT 0, + `ItemDrop2` int(10) unsigned NOT NULL DEFAULT 0, + `ItemDropQuantity2` smallint(5) unsigned NOT NULL DEFAULT 0, + `ItemDrop3` int(10) unsigned NOT NULL DEFAULT 0, + `ItemDropQuantity3` smallint(5) unsigned NOT NULL DEFAULT 0, + `ItemDrop4` int(10) unsigned NOT NULL DEFAULT 0, + `ItemDropQuantity4` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemID1` int(10) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemQuantity1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemID2` int(10) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemQuantity2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemID3` int(10) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemQuantity3` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemID4` int(10) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemQuantity4` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemID5` int(10) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemQuantity5` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemID6` int(10) unsigned NOT NULL DEFAULT 0, + `RewardChoiceItemQuantity6` smallint(5) unsigned NOT NULL DEFAULT 0, + `POIContinent` smallint(5) unsigned NOT NULL DEFAULT 0, + `POIx` float NOT NULL DEFAULT 0, + `POIy` float NOT NULL DEFAULT 0, + `POIPriority` int(10) unsigned NOT NULL DEFAULT 0, + `RewardTitle` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RewardTalents` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RewardArenaPoints` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardFactionID1` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction id from Faction.dbc in this case', + `RewardFactionValue1` int(11) NOT NULL DEFAULT 0, + `RewardFactionOverride1` int(11) NOT NULL DEFAULT 0, + `RewardFactionID2` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction id from Faction.dbc in this case', + `RewardFactionValue2` int(11) NOT NULL DEFAULT 0, + `RewardFactionOverride2` int(11) NOT NULL DEFAULT 0, + `RewardFactionID3` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction id from Faction.dbc in this case', + `RewardFactionValue3` int(11) NOT NULL DEFAULT 0, + `RewardFactionOverride3` int(11) NOT NULL DEFAULT 0, + `RewardFactionID4` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction id from Faction.dbc in this case', + `RewardFactionValue4` int(11) NOT NULL DEFAULT 0, + `RewardFactionOverride4` int(11) NOT NULL DEFAULT 0, + `RewardFactionID5` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction id from Faction.dbc in this case', + `RewardFactionValue5` int(11) NOT NULL DEFAULT 0, + `RewardFactionOverride5` int(11) NOT NULL DEFAULT 0, + `LogTitle` text DEFAULT NULL, + `LogDescription` text DEFAULT NULL, + `QuestDescription` text DEFAULT NULL, + `AreaDescription` text DEFAULT NULL, + `QuestCompletionLog` text DEFAULT NULL, + `RequiredNpcOrGo1` int(11) NOT NULL DEFAULT 0, + `RequiredNpcOrGo2` int(11) NOT NULL DEFAULT 0, + `RequiredNpcOrGo3` int(11) NOT NULL DEFAULT 0, + `RequiredNpcOrGo4` int(11) NOT NULL DEFAULT 0, + `RequiredNpcOrGoCount1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredNpcOrGoCount2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredNpcOrGoCount3` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredNpcOrGoCount4` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredItemId1` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemId2` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemId3` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemId4` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemId5` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemId6` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount3` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount4` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount5` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredItemCount6` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredSpell` int(10) unsigned NOT NULL DEFAULT 0, + `ObjectiveText1` text DEFAULT NULL, + `ObjectiveText2` text DEFAULT NULL, + `ObjectiveText3` text DEFAULT NULL, + `ObjectiveText4` text DEFAULT NULL, + `RewardCurrencyId1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyId2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyId3` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyId4` smallint(5) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyCount1` int(10) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyCount2` int(10) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyCount3` int(10) unsigned NOT NULL DEFAULT 0, + `RewardCurrencyCount4` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyId1` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyId2` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyId3` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyId4` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount1` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount2` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount3` tinyint(3) unsigned NOT NULL DEFAULT 0, + `RequiredCurrencyCount4` int(10) unsigned NOT NULL DEFAULT 0, + `QuestGiverTextWindow` text DEFAULT NULL, + `QuestGiverTargetName` text DEFAULT NULL, + `QuestTurnTextWindow` text DEFAULT NULL, + `QuestTurnTargetName` text DEFAULT NULL, + `SoundAccept` smallint(5) unsigned NOT NULL DEFAULT 890, + `SoundTurnIn` smallint(5) unsigned NOT NULL DEFAULT 878, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Quest System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_template_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_template_addon` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `MaxLevel` tinyint(3) unsigned NOT NULL DEFAULT 0, + `AllowableClasses` int(10) unsigned NOT NULL DEFAULT 0, + `SourceSpellID` int(10) unsigned NOT NULL DEFAULT 0, + `PrevQuestID` int(11) NOT NULL DEFAULT 0, + `NextQuestID` int(10) unsigned NOT NULL DEFAULT 0, + `ExclusiveGroup` int(11) NOT NULL DEFAULT 0, + `BreadcrumbForQuestId` int(11) NOT NULL DEFAULT 0, + `RewardMailTemplateID` int(10) unsigned NOT NULL DEFAULT 0, + `RewardMailDelay` int(10) unsigned NOT NULL DEFAULT 0, + `RequiredSkillID` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredSkillPoints` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredMinRepFaction` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredMaxRepFaction` smallint(5) unsigned NOT NULL DEFAULT 0, + `RequiredMinRepValue` int(11) NOT NULL DEFAULT 0, + `RequiredMaxRepValue` int(11) NOT NULL DEFAULT 0, + `ProvidedItemCount` tinyint(3) unsigned NOT NULL DEFAULT 0, + `SpecialFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `AllowableRaces` int(10) unsigned NOT NULL DEFAULT 0, + `TimeAllowed` int(10) unsigned NOT NULL DEFAULT 0, + `AbandonSpellID` int(10) unsigned NOT NULL DEFAULT 0, + `QuestMaxScalingLevel` int(10) unsigned NOT NULL DEFAULT 0, + `RewardMoneyDifficulty` int(10) unsigned NOT NULL DEFAULT 0, + `RewardMoneyMultiplier` float NOT NULL DEFAULT 1, + `RequiredMoney` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quest_template_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `quest_template_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Title` text DEFAULT NULL, + `Details` text DEFAULT NULL, + `Objectives` text DEFAULT NULL, + `OfferRewardText` text DEFAULT NULL, + `RequestItemsText` text DEFAULT NULL, + `EndText` text DEFAULT NULL, + `CompletedText` text DEFAULT NULL, + `ObjectiveText1` text DEFAULT NULL, + `ObjectiveText2` text DEFAULT NULL, + `ObjectiveText3` text DEFAULT NULL, + `ObjectiveText4` text DEFAULT NULL, + `QuestGiverTextWindow` text DEFAULT NULL, + `QuestGiverTargetName` text DEFAULT NULL, + `QuestTurnTextWindow` text DEFAULT NULL, + `QuestTurnTargetName` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `reference_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `reference_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `reputation_reward_rate`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `reputation_reward_rate` ( + `faction` int(10) unsigned NOT NULL DEFAULT 0, + `quest_rate` float NOT NULL DEFAULT 1, + `quest_daily_rate` float NOT NULL DEFAULT 1, + `quest_weekly_rate` float NOT NULL DEFAULT 1, + `quest_monthly_rate` float NOT NULL DEFAULT 1, + `quest_repeatable_rate` float NOT NULL DEFAULT 1, + `creature_rate` float NOT NULL DEFAULT 1, + `spell_rate` float NOT NULL DEFAULT 1, + PRIMARY KEY (`faction`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `reputation_spillover_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `reputation_spillover_template` ( + `faction` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction entry', + `faction1` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'faction to give spillover for', + `rate_1` float NOT NULL DEFAULT 0 COMMENT 'the given rep points * rate', + `rank_1` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'max rank,above this will not give any spillover', + `faction2` smallint(5) unsigned NOT NULL DEFAULT 0, + `rate_2` float NOT NULL DEFAULT 0, + `rank_2` tinyint(3) unsigned NOT NULL DEFAULT 0, + `faction3` smallint(5) unsigned NOT NULL DEFAULT 0, + `rate_3` float NOT NULL DEFAULT 0, + `rank_3` tinyint(3) unsigned NOT NULL DEFAULT 0, + `faction4` smallint(5) unsigned NOT NULL DEFAULT 0, + `rate_4` float NOT NULL DEFAULT 0, + `rank_4` tinyint(3) unsigned NOT NULL DEFAULT 0, + `faction5` smallint(5) unsigned NOT NULL DEFAULT 0, + `rate_5` float NOT NULL DEFAULT 0, + `rank_5` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`faction`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Reputation spillover reputation gain'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `script_spline_chain_meta`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `script_spline_chain_meta` ( + `entry` int(10) unsigned NOT NULL, + `chainId` smallint(5) unsigned NOT NULL, + `splineId` tinyint(3) unsigned NOT NULL, + `expectedDuration` int(10) unsigned NOT NULL, + `msUntilNext` int(10) unsigned NOT NULL, + `velocity` float DEFAULT 0, + PRIMARY KEY (`entry`,`chainId`,`splineId`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `script_spline_chain_waypoints`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `script_spline_chain_waypoints` ( + `entry` int(10) unsigned NOT NULL, + `chainId` smallint(5) unsigned NOT NULL, + `splineId` tinyint(3) unsigned NOT NULL, + `wpId` tinyint(3) unsigned NOT NULL, + `x` float NOT NULL, + `y` float NOT NULL, + `z` float NOT NULL, + PRIMARY KEY (`entry`,`chainId`,`splineId`,`wpId`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `script_waypoint`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `script_waypoint` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'creature_template entry', + `pointid` int(10) unsigned NOT NULL DEFAULT 0, + `location_x` float NOT NULL DEFAULT 0, + `location_y` float NOT NULL DEFAULT 0, + `location_z` float NOT NULL DEFAULT 0, + `waittime` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'waittime in millisecs', + `point_comment` text DEFAULT NULL, + PRIMARY KEY (`entry`,`pointid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Script Creature waypoints'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `skill_discovery_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `skill_discovery_template` ( + `spellId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'SpellId of the discoverable spell', + `reqSpell` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'spell requirement', + `reqSkillValue` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'skill points requirement', + `chance` float NOT NULL DEFAULT 0 COMMENT 'chance to discover', + PRIMARY KEY (`spellId`,`reqSpell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Skill Discovery System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `skill_extra_item_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `skill_extra_item_template` ( + `spellId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'SpellId of the item creation spell', + `requiredSpecialization` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Specialization spell id', + `additionalCreateChance` float NOT NULL DEFAULT 0 COMMENT 'chance to create add', + `additionalMaxNum` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'max num of adds', + PRIMARY KEY (`spellId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Skill Specialization System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `skill_fishing_base_level`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `skill_fishing_base_level` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Area identifier', + `skill` smallint(6) NOT NULL DEFAULT 0 COMMENT 'Base skill level requirement', + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Fishing system'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `skill_perfect_item_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `skill_perfect_item_template` ( + `spellId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'SpellId of the item creation spell', + `requiredSpecialization` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Specialization spell id', + `perfectCreateChance` float NOT NULL DEFAULT 0 COMMENT 'chance to create the perfect item instead', + `perfectItemType` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'perfect item type to create instead', + PRIMARY KEY (`spellId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Crafting Perfection System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `skinning_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `skinning_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `smart_scripts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `smart_scripts` ( + `entryorguid` int(11) NOT NULL, + `source_type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `id` smallint(5) unsigned NOT NULL DEFAULT 0, + `link` smallint(5) unsigned NOT NULL DEFAULT 0, + `event_type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `event_phase_mask` smallint(5) unsigned NOT NULL DEFAULT 0, + `event_chance` tinyint(3) unsigned NOT NULL DEFAULT 100, + `event_flags` smallint(5) unsigned NOT NULL DEFAULT 0, + `event_param1` int(10) unsigned NOT NULL DEFAULT 0, + `event_param2` int(10) unsigned NOT NULL DEFAULT 0, + `event_param3` int(10) unsigned NOT NULL DEFAULT 0, + `event_param4` int(10) unsigned NOT NULL DEFAULT 0, + `event_param5` int(10) unsigned NOT NULL DEFAULT 0, + `action_type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `action_param1` int(10) unsigned NOT NULL DEFAULT 0, + `action_param2` int(10) unsigned NOT NULL DEFAULT 0, + `action_param3` int(10) unsigned NOT NULL DEFAULT 0, + `action_param4` int(10) unsigned NOT NULL DEFAULT 0, + `action_param5` int(10) unsigned NOT NULL DEFAULT 0, + `action_param6` int(10) unsigned NOT NULL DEFAULT 0, + `target_type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `target_param1` int(10) unsigned NOT NULL DEFAULT 0, + `target_param2` int(10) unsigned NOT NULL DEFAULT 0, + `target_param3` int(10) unsigned NOT NULL DEFAULT 0, + `target_x` float NOT NULL DEFAULT 0, + `target_y` float NOT NULL DEFAULT 0, + `target_z` float NOT NULL DEFAULT 0, + `target_o` float NOT NULL DEFAULT 0, + `comment` text NOT NULL, + PRIMARY KEY (`entryorguid`,`source_type`,`id`,`link`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spawn_group`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spawn_group` ( + `groupId` int(10) unsigned NOT NULL, + `spawnType` tinyint(3) unsigned NOT NULL, + `spawnId` int(10) unsigned NOT NULL, + PRIMARY KEY (`groupId`,`spawnType`,`spawnId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spawn_group_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spawn_group_template` ( + `groupId` int(10) unsigned NOT NULL, + `groupName` varchar(100) NOT NULL, + `groupFlags` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`groupId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_area`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_area` ( + `spell` int(10) unsigned NOT NULL DEFAULT 0, + `area` int(10) unsigned NOT NULL DEFAULT 0, + `quest_start` int(10) unsigned NOT NULL DEFAULT 0, + `quest_end` int(10) unsigned NOT NULL DEFAULT 0, + `aura_spell` int(11) NOT NULL DEFAULT 0, + `racemask` int(10) unsigned NOT NULL DEFAULT 0, + `gender` tinyint(3) unsigned NOT NULL DEFAULT 2, + `flags` tinyint(3) unsigned NOT NULL DEFAULT 3, + `quest_start_status` int(11) NOT NULL DEFAULT 64, + `quest_end_status` int(11) NOT NULL DEFAULT 11, + PRIMARY KEY (`spell`,`area`,`quest_start`,`aura_spell`,`racemask`,`gender`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_custom_attr`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_custom_attr` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'spell id', + `attributes` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'SpellCustomAttributes', + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='SpellInfo custom attributes'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_dbc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_dbc` ( + `Id` int(10) unsigned NOT NULL, + `Attributes` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx2` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx3` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx4` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx5` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx6` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx7` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx8` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx9` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesEx10` int(10) unsigned NOT NULL DEFAULT 0, + `CastingTimeIndex` int(10) unsigned NOT NULL DEFAULT 1, + `DurationIndex` int(10) unsigned NOT NULL DEFAULT 0, + `RangeIndex` int(10) unsigned NOT NULL DEFAULT 1, + `SchoolMask` int(10) unsigned NOT NULL DEFAULT 0, + `SpellAuraOptionsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellCastingRequirementsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellCategoriesId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellClassOptionsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellEquippedItemsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellInterruptsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellLevelsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellTargetRestrictionsId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellName` varchar(128) NOT NULL, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Custom spell.dbc entries'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_enchant_proc_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_enchant_proc_data` ( + `EnchantID` int(10) unsigned NOT NULL, + `Chance` float NOT NULL DEFAULT 0, + `ProcsPerMinute` float NOT NULL DEFAULT 0, + `HitMask` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesMask` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`EnchantID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Spell enchant proc data'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_group`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_group` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `spell_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`,`spell_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Spell System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_group_stack_rules`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_group_stack_rules` ( + `group_id` int(10) unsigned NOT NULL DEFAULT 0, + `stack_rule` tinyint(4) NOT NULL DEFAULT 0, + PRIMARY KEY (`group_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_learn_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_learn_spell` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `SpellID` int(10) unsigned NOT NULL DEFAULT 0, + `Active` tinyint(3) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`entry`,`SpellID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Item System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_linked_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_linked_spell` ( + `spell_trigger` int(11) NOT NULL, + `spell_effect` int(11) NOT NULL DEFAULT 0, + `type` tinyint(3) unsigned NOT NULL DEFAULT 0, + `comment` text NOT NULL, + UNIQUE KEY `trigger_effect_type` (`spell_trigger`,`spell_effect`,`type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Spell System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_loot_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_loot_template` ( + `Entry` int(10) unsigned NOT NULL DEFAULT 0, + `Item` int(10) unsigned NOT NULL DEFAULT 0, + `Reference` int(10) unsigned NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 100, + `QuestRequired` tinyint(1) NOT NULL DEFAULT 0, + `IsCurrency` tinyint(1) NOT NULL DEFAULT 0, + `LootMode` smallint(5) unsigned NOT NULL DEFAULT 1, + `GroupId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MinCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `MaxCount` tinyint(3) unsigned NOT NULL DEFAULT 1, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`Entry`,`Item`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Loot System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_pet_auras`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_pet_auras` ( + `spell` int(10) unsigned NOT NULL COMMENT 'dummy spell id', + `effectId` tinyint(3) unsigned NOT NULL DEFAULT 0, + `pet` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'pet id; 0 = all', + `aura` int(10) unsigned NOT NULL COMMENT 'pet aura id', + PRIMARY KEY (`spell`,`effectId`,`pet`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_proc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_proc` ( + `SpellId` int(11) NOT NULL DEFAULT 0, + `SchoolMask` tinyint(3) unsigned NOT NULL DEFAULT 0, + `SpellFamilyName` smallint(5) unsigned NOT NULL DEFAULT 0, + `SpellFamilyMask0` int(10) unsigned NOT NULL DEFAULT 0, + `SpellFamilyMask1` int(10) unsigned NOT NULL DEFAULT 0, + `SpellFamilyMask2` int(10) unsigned NOT NULL DEFAULT 0, + `ProcFlags` int(10) unsigned NOT NULL DEFAULT 0, + `SpellTypeMask` int(10) unsigned NOT NULL DEFAULT 0, + `SpellPhaseMask` int(10) unsigned NOT NULL DEFAULT 0, + `HitMask` int(10) unsigned NOT NULL DEFAULT 0, + `AttributesMask` int(10) unsigned NOT NULL DEFAULT 0, + `DisableEffectsMask` int(10) unsigned NOT NULL DEFAULT 0, + `ProcsPerMinute` float NOT NULL DEFAULT 0, + `Chance` float NOT NULL DEFAULT 0, + `Cooldown` int(10) unsigned NOT NULL DEFAULT 0, + `Charges` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`SpellId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_ranks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_ranks` ( + `first_spell_id` int(10) unsigned NOT NULL DEFAULT 0, + `spell_id` int(10) unsigned NOT NULL DEFAULT 0, + `rank` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`first_spell_id`,`rank`), + UNIQUE KEY `spell_id` (`spell_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Spell Rank Data'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_required`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_required` ( + `spell_id` int(11) NOT NULL DEFAULT 0, + `req_spell` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`spell_id`,`req_spell`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Spell Additinal Data'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_script_names`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_script_names` ( + `spell_id` int(11) NOT NULL, + `ScriptName` varchar(64) NOT NULL, + UNIQUE KEY `spell_id` (`spell_id`,`ScriptName`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_scripts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_scripts` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `effIndex` tinyint(3) unsigned NOT NULL DEFAULT 0, + `delay` int(10) unsigned NOT NULL DEFAULT 0, + `command` int(10) unsigned NOT NULL DEFAULT 0, + `datalong` int(10) unsigned NOT NULL DEFAULT 0, + `datalong2` int(10) unsigned NOT NULL DEFAULT 0, + `dataint` int(11) NOT NULL DEFAULT 0, + `x` float NOT NULL DEFAULT 0, + `y` float NOT NULL DEFAULT 0, + `z` float NOT NULL DEFAULT 0, + `o` float NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_target_position`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_target_position` ( + `ID` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier', + `EffectIndex` tinyint(3) unsigned NOT NULL DEFAULT 0, + `MapID` smallint(5) unsigned NOT NULL DEFAULT 0, + `PositionX` float NOT NULL DEFAULT 0, + `PositionY` float NOT NULL DEFAULT 0, + `PositionZ` float NOT NULL DEFAULT 0, + `Orientation` float NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`ID`,`EffectIndex`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Spell System'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spell_threat`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spell_threat` ( + `entry` int(10) unsigned NOT NULL, + `flatMod` int(11) DEFAULT NULL, + `pctMod` float NOT NULL DEFAULT 1 COMMENT 'threat multiplier for damage/healing', + `apPctMod` float NOT NULL DEFAULT 0 COMMENT 'additional threat bonus from attack power', + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spelldifficulty_dbc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spelldifficulty_dbc` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `spellid0` int(10) unsigned NOT NULL DEFAULT 0, + `spellid1` int(10) unsigned NOT NULL DEFAULT 0, + `spellid2` int(10) unsigned NOT NULL DEFAULT 0, + `spellid3` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `spelleffect_dbc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `spelleffect_dbc` ( + `Id` int(10) unsigned NOT NULL, + `Effect` int(10) unsigned NOT NULL DEFAULT 0, + `EffectAmplitude` float NOT NULL DEFAULT 0, + `EffectAura` int(10) unsigned NOT NULL DEFAULT 0, + `EffectAuraPeriod` int(10) unsigned NOT NULL DEFAULT 0, + `EffectBasePoints` int(11) NOT NULL DEFAULT 0, + `EffectBonusCoefficient` float NOT NULL DEFAULT 0, + `EffectChainAmplitude` float NOT NULL DEFAULT 0, + `EffectChainTargets` int(10) unsigned NOT NULL DEFAULT 0, + `EffectDieSides` int(11) NOT NULL DEFAULT 0, + `EffectItemType` int(10) unsigned NOT NULL DEFAULT 0, + `EffectMechanic` int(10) unsigned NOT NULL DEFAULT 0, + `EffectMiscValue` int(11) NOT NULL DEFAULT 0, + `EffectMiscValueB` int(11) NOT NULL DEFAULT 0, + `EffectPointsPerResource` float NOT NULL DEFAULT 0, + `EffectRadiusIndex` int(10) unsigned NOT NULL DEFAULT 0, + `EffectRadiusMaxIndex` int(10) unsigned NOT NULL DEFAULT 0, + `EffectRealPointsPerLevel` float NOT NULL DEFAULT 0, + `EffectSpellClassMaskA` int(10) unsigned NOT NULL DEFAULT 0, + `EffectSpellClassMaskB` int(10) unsigned NOT NULL DEFAULT 0, + `EffectSpellClassMaskC` int(10) unsigned NOT NULL DEFAULT 0, + `EffectTriggerSpell` int(10) unsigned NOT NULL DEFAULT 0, + `EffectImplicitTargetA` int(10) unsigned NOT NULL DEFAULT 0, + `EffectImplicitTargetB` int(10) unsigned NOT NULL DEFAULT 0, + `SpellID` int(10) unsigned NOT NULL, + `EffectIndex` int(10) unsigned NOT NULL DEFAULT 0, + `Comment` varchar(128) NOT NULL, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `summon_properties_parameters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `summon_properties_parameters` ( + `RecID` int(10) unsigned NOT NULL COMMENT 'SummonProperties.dbc Identifier', + `ParamType` tinyint(3) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`RecID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `taxi_level_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `taxi_level_data` ( + `TaxiNodeId` smallint(6) NOT NULL, + `Level` tinyint(4) DEFAULT 0, + PRIMARY KEY (`TaxiNodeId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `terrain_swap_defaults`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `terrain_swap_defaults` ( + `MapId` int(10) unsigned NOT NULL, + `TerrainSwapMap` int(10) unsigned NOT NULL, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`MapId`,`TerrainSwapMap`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `terrain_worldmap`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `terrain_worldmap` ( + `TerrainSwapMap` int(10) unsigned NOT NULL, + `WorldMapArea` int(10) unsigned NOT NULL, + `Comment` varchar(255) DEFAULT NULL, + PRIMARY KEY (`TerrainSwapMap`,`WorldMapArea`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `trainer`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `trainer` ( + `Id` int(10) unsigned NOT NULL DEFAULT 0, + `Type` tinyint(3) unsigned NOT NULL DEFAULT 2, + `Requirement` int(10) unsigned NOT NULL DEFAULT 0, + `Greeting` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`Id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `trainer_locale`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `trainer_locale` ( + `Id` int(10) unsigned NOT NULL DEFAULT 0, + `locale` varchar(4) NOT NULL, + `Greeting_lang` text DEFAULT NULL, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`Id`,`locale`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `trainer_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `trainer_spell` ( + `TrainerId` int(10) unsigned NOT NULL DEFAULT 0, + `SpellId` int(10) unsigned NOT NULL DEFAULT 0, + `MoneyCost` int(10) unsigned NOT NULL DEFAULT 0, + `ReqSkillLine` int(10) unsigned NOT NULL DEFAULT 0, + `ReqSkillRank` int(10) unsigned NOT NULL DEFAULT 0, + `ReqAbility1` int(10) unsigned NOT NULL DEFAULT 0, + `ReqAbility2` int(10) unsigned NOT NULL DEFAULT 0, + `ReqAbility3` int(10) unsigned NOT NULL DEFAULT 0, + `ReqLevel` tinyint(3) unsigned NOT NULL DEFAULT 0, + `VerifiedBuild` smallint(6) DEFAULT 0, + PRIMARY KEY (`TrainerId`,`SpellId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `transports`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `transports` ( + `guid` int(10) unsigned NOT NULL AUTO_INCREMENT, + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `name` text DEFAULT NULL, + `phaseUseFlags` tinyint(3) unsigned NOT NULL DEFAULT 0, + `phaseid` int(11) NOT NULL DEFAULT 0, + `phasegroup` int(11) NOT NULL DEFAULT 0, + `ScriptName` varchar(64) NOT NULL, + PRIMARY KEY (`guid`), + UNIQUE KEY `idx_entry` (`entry`) +) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Transports'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `trinity_string`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `trinity_string` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `content_default` text NOT NULL, + `content_loc1` text DEFAULT NULL, + `content_loc2` text DEFAULT NULL, + `content_loc3` text DEFAULT NULL, + `content_loc4` text DEFAULT NULL, + `content_loc5` text DEFAULT NULL, + `content_loc6` text DEFAULT NULL, + `content_loc7` text DEFAULT NULL, + `content_loc8` text DEFAULT NULL, + PRIMARY KEY (`entry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates` ( + `name` varchar(200) NOT NULL, + `hash` varchar(40) DEFAULT NULL, + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if an update is released or archived.', + `timestamp` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'timestamp when the query was applied.', + `speed` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'time the query takes to apply in ms.', + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of all applied updates in this database.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `updates_include`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `updates_include` ( + `path` varchar(200) NOT NULL, + `state` enum('RELEASED','ARCHIVED') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if the directory contains released or archived updates.', + PRIMARY KEY (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of directories where we want to include sql updates.'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `vehicle_accessory`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `vehicle_accessory` ( + `guid` int(10) unsigned NOT NULL DEFAULT 0, + `accessory_entry` int(10) unsigned NOT NULL DEFAULT 0, + `seat_id` tinyint(4) NOT NULL DEFAULT 0, + `minion` tinyint(3) unsigned NOT NULL DEFAULT 0, + `description` text NOT NULL, + `summontype` tinyint(3) unsigned NOT NULL DEFAULT 6 COMMENT 'see enum TempSummonType', + `summontimer` int(10) unsigned NOT NULL DEFAULT 30000 COMMENT 'timer, only relevant for certain summontypes', + PRIMARY KEY (`guid`,`seat_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `vehicle_seat_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `vehicle_seat_addon` ( + `SeatEntry` int(10) unsigned NOT NULL COMMENT 'VehicleSeatEntry.dbc identifier', + `SeatOffsetX` float DEFAULT 0, + `SeatOffsetY` float DEFAULT 0, + `SeatOffsetZ` float DEFAULT 0, + `SeatOffsetO` float DEFAULT 0 COMMENT 'Seat Orientation override value', + `ExitParamX` float DEFAULT 0, + `ExitParamY` float DEFAULT 0, + `ExitParamZ` float DEFAULT 0, + `ExitParamO` float DEFAULT 0, + `ExitParamValue` tinyint(1) DEFAULT 0, + PRIMARY KEY (`SeatEntry`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `vehicle_template_accessory`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `vehicle_template_accessory` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `accessory_entry` int(10) unsigned NOT NULL DEFAULT 0, + `seat_id` tinyint(4) NOT NULL DEFAULT 0, + `minion` tinyint(3) unsigned NOT NULL DEFAULT 0, + `description` text NOT NULL, + `summontype` tinyint(3) unsigned NOT NULL DEFAULT 6 COMMENT 'see enum TempSummonType', + `summontimer` int(10) unsigned NOT NULL DEFAULT 30000 COMMENT 'timer, only relevant for certain summontypes', + PRIMARY KEY (`entry`,`seat_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `version`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `version` ( + `core_version` varchar(255) NOT NULL, + `core_revision` varchar(120) DEFAULT NULL, + `db_version` varchar(120) DEFAULT NULL, + `cache_id` int(11) DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Version Notes'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `warden_checks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `warden_checks` ( + `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, + `type` tinyint(3) unsigned DEFAULT NULL, + `data` varchar(48) DEFAULT NULL, + `str` varchar(20) DEFAULT NULL, + `address` int(10) unsigned DEFAULT NULL, + `length` tinyint(3) unsigned DEFAULT NULL, + `result` varchar(24) DEFAULT NULL, + `comment` varchar(50) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=787 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `waypoint_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `waypoint_data` ( + `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Creature GUID', + `point` int(10) unsigned NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float DEFAULT NULL, + `velocity` float NOT NULL DEFAULT 0, + `delay` int(10) unsigned NOT NULL DEFAULT 0, + `smoothTransition` tinyint(3) unsigned NOT NULL DEFAULT 0, + `move_type` int(11) NOT NULL DEFAULT 0, + `action` int(11) NOT NULL DEFAULT 0, + `action_chance` smallint(6) NOT NULL DEFAULT 100, + `wpguid` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`,`point`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `waypoint_data_addon`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `waypoint_data_addon` ( + `PathID` int(10) unsigned NOT NULL DEFAULT 0, + `PointID` int(10) unsigned NOT NULL DEFAULT 0, + `SplinePointIndex` tinyint(3) unsigned NOT NULL DEFAULT 0, + `PositionX` float NOT NULL DEFAULT 0, + `PositionY` float NOT NULL DEFAULT 0, + `PositionZ` float NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `waypoint_scripts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `waypoint_scripts` ( + `id` int(10) unsigned NOT NULL DEFAULT 0, + `delay` int(10) unsigned NOT NULL DEFAULT 0, + `command` int(10) unsigned NOT NULL DEFAULT 0, + `datalong` int(10) unsigned NOT NULL DEFAULT 0, + `datalong2` int(10) unsigned NOT NULL DEFAULT 0, + `dataint` int(10) unsigned NOT NULL DEFAULT 0, + `x` float NOT NULL DEFAULT 0, + `y` float NOT NULL DEFAULT 0, + `z` float NOT NULL DEFAULT 0, + `o` float NOT NULL DEFAULT 0, + `guid` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `waypoints`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `waypoints` ( + `entry` int(10) unsigned NOT NULL DEFAULT 0, + `pointid` int(10) unsigned NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float DEFAULT NULL, + `velocity` float NOT NULL DEFAULT 0, + `delay` int(10) unsigned NOT NULL DEFAULT 0, + `smoothTransition` tinyint(3) unsigned NOT NULL DEFAULT 0, + `point_comment` text DEFAULT NULL, + PRIMARY KEY (`entry`,`pointid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Creature waypoints'; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `world_map_template`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `world_map_template` ( + `mapID` int(10) unsigned NOT NULL DEFAULT 0, + `ScriptName` text DEFAULT NULL, + PRIMARY KEY (`mapID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `world_state`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `world_state` ( + `ID` int(10) unsigned NOT NULL, + `DefaultValue` int(11) NOT NULL DEFAULT 0, + `MapIDs` varchar(128) DEFAULT NULL, + `AreaIDs` varchar(255) DEFAULT NULL, + `ScriptName` varchar(64) NOT NULL DEFAULT '', + `Comment` text DEFAULT NULL, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/database/schema/vcore_dev.sql b/database/schema/vcore_dev.sql new file mode 100644 index 0000000000..adb25e6f5b --- /dev/null +++ b/database/schema/vcore_dev.sql @@ -0,0 +1,233 @@ +/*M!999999\- enable the sandbox mode */ + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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 */; +DROP TABLE IF EXISTS `bug_report_attachments`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `bug_report_attachments` ( + `attachment_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `report_id` bigint(20) unsigned NOT NULL, + `attachment_type` varchar(32) NOT NULL DEFAULT 'screenshot', + `file_name` varchar(255) NOT NULL, + `file_path` varchar(1024) NOT NULL, + `mime_type` varchar(128) DEFAULT NULL, + `file_size` bigint(20) unsigned DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`attachment_id`), + KEY `idx_bug_report_attachments_report_id` (`report_id`), + KEY `idx_bug_report_attachments_type` (`attachment_type`), + KEY `idx_bug_report_attachments_created_at` (`created_at`), + CONSTRAINT `fk_bug_report_attachments_report` FOREIGN KEY (`report_id`) REFERENCES `bug_reports` (`report_id`) ON DELETE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bug_reports`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `bug_reports` ( + `report_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `report_token` varchar(96) DEFAULT NULL, + `bug_id` bigint(20) unsigned DEFAULT NULL, + `source_type` varchar(32) NOT NULL DEFAULT 'player', + `reported_severity` varchar(16) NOT NULL DEFAULT 'unknown', + `status` varchar(16) NOT NULL DEFAULT 'open', + `account_id` bigint(20) unsigned DEFAULT NULL, + `character_guid` bigint(20) unsigned DEFAULT NULL, + `character_name` varchar(64) DEFAULT NULL, + `title` varchar(255) DEFAULT NULL, + `description` text NOT NULL, + `expected_behavior` text DEFAULT NULL, + `reproduction_notes` text DEFAULT NULL, + `reproducible` tinyint(1) DEFAULT NULL, + `map_id` int(10) unsigned DEFAULT NULL, + `zone_id` int(10) unsigned DEFAULT NULL, + `area_id` int(10) unsigned DEFAULT NULL, + `position_x` float DEFAULT NULL, + `position_y` float DEFAULT NULL, + `position_z` float DEFAULT NULL, + `orientation` float DEFAULT NULL, + `target_guid` bigint(20) unsigned DEFAULT NULL, + `target_entry` int(10) unsigned DEFAULT NULL, + `target_type` varchar(32) DEFAULT NULL, + `quest_id` int(10) unsigned DEFAULT NULL, + `client_build` int(10) unsigned DEFAULT NULL, + `server_version` varchar(128) DEFAULT NULL, + `core_commit` varchar(64) DEFAULT NULL, + `context_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`context_json`)), + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `closed_at` datetime DEFAULT NULL, + `closed_by_account_id` bigint(20) unsigned DEFAULT NULL, + `closure_reason` varchar(32) DEFAULT NULL, + `closure_note` text DEFAULT NULL, + PRIMARY KEY (`report_id`), + UNIQUE KEY `uq_bug_reports_report_token` (`report_token`), + KEY `idx_bug_reports_bug_id` (`bug_id`), + KEY `idx_bug_reports_created_at` (`created_at`), + KEY `idx_bug_reports_character` (`character_guid`), + KEY `idx_bug_reports_quest` (`quest_id`), + KEY `idx_bug_reports_target` (`target_type`,`target_entry`), + KEY `idx_bug_reports_status_created` (`status`,`created_at`), + KEY `idx_bug_reports_reported_severity` (`reported_severity`), + KEY `idx_bug_reports_zone` (`zone_id`,`area_id`), + CONSTRAINT `fk_bug_reports_bug` FOREIGN KEY (`bug_id`) REFERENCES `bugs` (`bug_id`) ON DELETE SET NULL +) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bug_reproduction_events`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `bug_reproduction_events` ( + `event_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `reproduction_id` bigint(20) unsigned NOT NULL, + `source` varchar(16) NOT NULL DEFAULT 'server', + `event_time` datetime NOT NULL DEFAULT current_timestamp(), + `event_type` varchar(64) NOT NULL, + `entity_type` varchar(32) DEFAULT NULL, + `entity_id` bigint(20) unsigned DEFAULT NULL, + `entity_guid` bigint(20) unsigned DEFAULT NULL, + `data_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`data_json`)), + PRIMARY KEY (`event_id`), + KEY `idx_repro_event_reproduction` (`reproduction_id`), + KEY `idx_repro_event_type` (`event_type`), + KEY `idx_repro_event_time` (`event_time`), + KEY `idx_repro_event_source` (`source`), + CONSTRAINT `bug_reproduction_events_ibfk_1` FOREIGN KEY (`reproduction_id`) REFERENCES `bug_reproductions` (`reproduction_id`) ON DELETE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=526 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bug_reproductions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `bug_reproductions` ( + `reproduction_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `session_token` varchar(96) DEFAULT NULL, + `bug_id` bigint(20) unsigned DEFAULT NULL, + `report_id` bigint(20) unsigned DEFAULT NULL, + `tester_account_id` bigint(20) unsigned DEFAULT NULL, + `tester_character_guid` bigint(20) unsigned DEFAULT NULL, + `tester_character_name` varchar(64) DEFAULT NULL, + `result` varchar(32) NOT NULL DEFAULT 'unknown', + `description` text DEFAULT NULL, + `steps` text DEFAULT NULL, + `observation` text DEFAULT NULL, + `map_id` int(10) unsigned DEFAULT NULL, + `zone_id` int(10) unsigned DEFAULT NULL, + `area_id` int(10) unsigned DEFAULT NULL, + `position_x` float DEFAULT NULL, + `position_y` float DEFAULT NULL, + `position_z` float DEFAULT NULL, + `orientation` float DEFAULT NULL, + `target_guid` bigint(20) unsigned DEFAULT NULL, + `target_entry` int(10) unsigned DEFAULT NULL, + `target_type` varchar(32) DEFAULT NULL, + `quest_id` int(10) unsigned DEFAULT NULL, + `diagnostic_focus_type` varchar(32) DEFAULT NULL, + `diagnostic_focus_id` bigint(20) DEFAULT NULL, + `context_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`context_json`)), + `started_at` datetime DEFAULT NULL, + `finished_at` datetime DEFAULT NULL, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`reproduction_id`), + UNIQUE KEY `uq_bug_reproductions_session_token` (`session_token`), + KEY `idx_repro_bug` (`bug_id`), + KEY `idx_repro_report` (`report_id`), + KEY `idx_repro_quest` (`quest_id`), + KEY `idx_repro_zone` (`zone_id`), + KEY `idx_repro_created` (`created_at`), + KEY `idx_bug_reproductions_diagnostic_focus` (`diagnostic_focus_type`,`diagnostic_focus_id`), + CONSTRAINT `bug_reproductions_ibfk_1` FOREIGN KEY (`bug_id`) REFERENCES `bugs` (`bug_id`) ON DELETE SET NULL, + CONSTRAINT `bug_reproductions_ibfk_2` FOREIGN KEY (`report_id`) REFERENCES `bug_reports` (`report_id`) ON DELETE SET NULL +) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bugs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `bugs` ( + `bug_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `bug_token` varchar(96) DEFAULT NULL, + `title` varchar(255) NOT NULL, + `status` varchar(32) NOT NULL DEFAULT 'new', + `severity` varchar(32) NOT NULL DEFAULT 'unknown', + `category` varchar(32) NOT NULL DEFAULT 'unknown', + `primary_entity_type` varchar(32) DEFAULT NULL, + `primary_entity_id` bigint(20) unsigned DEFAULT NULL, + `primary_map_id` int(10) unsigned DEFAULT NULL, + `primary_zone_id` int(10) unsigned DEFAULT NULL, + `primary_area_id` int(10) unsigned DEFAULT NULL, + `description` text DEFAULT NULL, + `developer_notes` mediumtext DEFAULT NULL, + `resolution_notes` mediumtext DEFAULT NULL, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `resolved_at` datetime DEFAULT NULL, + PRIMARY KEY (`bug_id`), + UNIQUE KEY `uq_bugs_bug_token` (`bug_token`), + KEY `idx_bugs_status` (`status`), + KEY `idx_bugs_category` (`category`), + KEY `idx_bugs_severity` (`severity`), + KEY `idx_bugs_entity` (`primary_entity_type`,`primary_entity_id`), + KEY `idx_bugs_created_at` (`created_at`), + KEY `idx_bugs_zone` (`primary_zone_id`,`primary_area_id`), + KEY `idx_bugs_updated_at` (`updated_at`) +) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `diagnostic_event_catalog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `diagnostic_event_catalog` ( + `event_entry` tinyint(3) unsigned NOT NULL, + `display_name` varchar(128) NOT NULL, + `category` varchar(32) NOT NULL DEFAULT 'seasonal', + `enabled` tinyint(1) NOT NULL DEFAULT 1, + `sort_order` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`event_entry`), + KEY `idx_diagnostic_event_catalog_enabled_sort` (`enabled`,`sort_order`,`display_name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `diagnostic_runs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `diagnostic_runs` ( + `diagnostic_run_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `run_token` varchar(96) DEFAULT NULL, + `bug_id` bigint(20) unsigned NOT NULL, + `requested_by_account_id` bigint(20) unsigned DEFAULT NULL, + `requested_by_character_guid` bigint(20) unsigned DEFAULT NULL, + `status` varchar(16) NOT NULL DEFAULT 'queued', + `claim_token` varchar(96) DEFAULT NULL, + `claimed_by` varchar(255) DEFAULT NULL, + `claimed_at` datetime DEFAULT NULL, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + `started_at` datetime DEFAULT NULL, + `finished_at` datetime DEFAULT NULL, + `output_path` text DEFAULT NULL, + `error_message` text DEFAULT NULL, + `wowdiag_version` varchar(64) DEFAULT NULL, + `core_revision` varchar(64) DEFAULT NULL, + PRIMARY KEY (`diagnostic_run_id`), + UNIQUE KEY `uq_diagnostic_runs_token` (`run_token`), + UNIQUE KEY `uq_diagnostic_runs_claim_token` (`claim_token`), + KEY `idx_diagnostic_runs_bug` (`bug_id`), + KEY `idx_diagnostic_runs_status_created` (`status`,`created_at`), + KEY `idx_diagnostic_runs_claimed_at` (`claimed_at`), + CONSTRAINT `fk_diagnostic_runs_bug` FOREIGN KEY (`bug_id`) REFERENCES `bugs` (`bug_id`) ON DELETE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; +