Mineplex/.FILES USED TO GET TO WHERE WE ARE PRESENTLY/account.sql
Daniel Waggner 76a7ae65df PUUUUUSH
2023-05-17 14:44:01 -07:00

1317 lines
30 KiB
SQL

-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 07, 2021 at 06:11 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 */;
--
-- Database: `account`
--
-- --------------------------------------------------------
--
-- Table structure for table `accountamplifierthank`
--
CREATE TABLE `accountamplifierthank` (
`accountId` int(11) NOT NULL,
`amplifierId` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `accountauth`
--
CREATE TABLE `accountauth` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`authKey` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `accountcointransactions`
--
CREATE TABLE `accountcointransactions` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`reason` varchar(100) DEFAULT NULL,
`coins` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountcustomdata`
--
CREATE TABLE `accountcustomdata` (
`accountId` int(11) NOT NULL,
`customDataId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `accounteggs`
--
CREATE TABLE `accounteggs` (
`accountId` int(11) DEFAULT NULL,
`eggId` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `accountfriend`
--
CREATE TABLE `accountfriend` (
`id` int(11) NOT NULL,
`uuidSource` varchar(100) NOT NULL,
`uuidTarget` varchar(100) NOT NULL,
`status` varchar(100) DEFAULT NULL,
`created` timestamp NULL DEFAULT NULL,
`sourceId` int(11) DEFAULT NULL,
`targetId` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountgemtransactions`
--
CREATE TABLE `accountgemtransactions` (
`id` int(11) NOT NULL,
`accountId` int(11) DEFAULT NULL,
`reason` varchar(100) DEFAULT NULL,
`gems` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountignore`
--
CREATE TABLE `accountignore` (
`id` int(11) NOT NULL,
`uuidIgnorer` varchar(100) NOT NULL,
`uuidIgnored` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountinventory`
--
CREATE TABLE `accountinventory` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`itemId` int(11) NOT NULL,
`count` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountpolls`
--
CREATE TABLE `accountpolls` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`pollId` int(11) NOT NULL,
`value` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountpreferences`
--
CREATE TABLE `accountpreferences` (
`id` int(11) NOT NULL,
`uuid` varchar(256) NOT NULL,
`filterChat` tinyint(4) NOT NULL DEFAULT 1,
`invisibility` tinyint(4) NOT NULL DEFAULT 0,
`games` tinyint(4) NOT NULL DEFAULT 1,
`visibility` tinyint(4) NOT NULL DEFAULT 1,
`friendChat` tinyint(4) NOT NULL DEFAULT 1,
`privateMessaging` tinyint(4) NOT NULL DEFAULT 1,
`showChat` tinyint(4) NOT NULL DEFAULT 1,
`partyRequests` tinyint(4) NOT NULL DEFAULT 1,
`forcefield` tinyint(4) NOT NULL DEFAULT 0,
`showMacReports` tinyint(4) NOT NULL DEFAULT 0,
`ignoreVelocity` tinyint(4) NOT NULL DEFAULT 0,
`pendingFriendRequests` tinyint(4) NOT NULL DEFAULT 1,
`friendDisplayInventoryUI` tinyint(4) NOT NULL DEFAULT 1,
`friendDisplayOnlineStatus` tinyint(4) NOT NULL DEFAULT 1,
`friendDisplayServerName` tinyint(4) NOT NULL DEFAULT 1,
`friendAllowRequests` tinyint(4) NOT NULL DEFAULT 1,
`friendAllowMessaging` tinyint(4) NOT NULL DEFAULT 1,
`language` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountpunishments`
--
CREATE TABLE `accountpunishments` (
`id` int(11) NOT NULL,
`target` varchar(16) NOT NULL,
`category` varchar(100) NOT NULL,
`sentence` varchar(100) NOT NULL,
`reason` varchar(100) NOT NULL,
`duration` double NOT NULL,
`admin` varchar(16) NOT NULL,
`severity` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountranks`
--
CREATE TABLE `accountranks` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`rankIdentifier` varchar(40) DEFAULT NULL,
`primaryGroup` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `accounts`
--
CREATE TABLE `accounts` (
`id` int(11) NOT NULL,
`uuid` varchar(100) NOT NULL,
`name` varchar(40) NOT NULL,
`gems` int(11) DEFAULT 2500,
`gold` int(11) NOT NULL DEFAULT 1000,
`coins` int(11) DEFAULT 5000,
`donorRank` varchar(20) DEFAULT NULL,
`rank` varchar(20) DEFAULT 'ALL',
`rankPerm` tinyint(4) DEFAULT NULL,
`rankExpire` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`lastLogin` timestamp NOT NULL DEFAULT current_timestamp(),
`totalPlayTime` tinytext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountstat`
--
CREATE TABLE `accountstat` (
`accountId` int(11) NOT NULL,
`statId` int(11) NOT NULL,
`value` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accountstats`
--
CREATE TABLE `accountstats` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`statId` int(11) NOT NULL,
`value` bigint(20) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accounttasks`
--
CREATE TABLE `accounttasks` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`taskId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `accounttransactions`
--
CREATE TABLE `accounttransactions` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`transactionId` int(11) NOT NULL,
`coins` int(11) DEFAULT NULL,
`gems` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `activetournaments`
--
CREATE TABLE `activetournaments` (
`name` varchar(100) NOT NULL,
`start_date` date NOT NULL,
`end_date` date NOT NULL,
`is_gamemode` int(11) NOT NULL,
`server_id` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `bonus`
--
CREATE TABLE `bonus` (
`accountId` int(11) NOT NULL,
`dailytime` timestamp NULL DEFAULT NULL,
`ranktime` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `clanserver`
--
CREATE TABLE `clanserver` (
`id` int(11) NOT NULL,
`serverName` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `elorating`
--
CREATE TABLE `elorating` (
`id` int(10) NOT NULL,
`uuid` varchar(256) NOT NULL,
`gamemode` tinyint(3) UNSIGNED NOT NULL,
`matchesPlayed` int(10) UNSIGNED NOT NULL,
`elo` int(11) NOT NULL,
`gameType` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `fieldblock`
--
CREATE TABLE `fieldblock` (
`id` int(11) NOT NULL,
`server` varchar(100) DEFAULT NULL,
`location` varchar(100) DEFAULT NULL,
`blockId` int(11) DEFAULT NULL,
`blockData` tinyint(4) DEFAULT NULL,
`emptyId` int(11) DEFAULT NULL,
`emptyData` tinyint(4) DEFAULT NULL,
`stockMax` int(11) DEFAULT NULL,
`stockRegenTime` double DEFAULT NULL,
`loot` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `fieldmonster`
--
CREATE TABLE `fieldmonster` (
`id` int(11) NOT NULL,
`server` varchar(100) DEFAULT NULL,
`name` varchar(100) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
`mobMax` int(11) DEFAULT NULL,
`mobRate` double DEFAULT NULL,
`center` varchar(100) DEFAULT NULL,
`radius` int(11) DEFAULT NULL,
`height` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `fieldore`
--
CREATE TABLE `fieldore` (
`id` int(11) NOT NULL,
`server` varchar(100) DEFAULT NULL,
`location` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `incognitostaff`
--
CREATE TABLE `incognitostaff` (
`accountId` int(11) NOT NULL,
`status` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `ipinfo`
--
CREATE TABLE `ipinfo` (
`id` int(11) NOT NULL,
`ipAddress` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `itemcategories`
--
CREATE TABLE `itemcategories` (
`id` int(11) NOT NULL,
`name` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `itemcategories`
--
INSERT INTO `itemcategories` (`id`, `name`) VALUES
(2, 'Item'),
(3, 'Morph'),
(4, 'Mount'),
(5, 'Pet'),
(1, 'Treasure');
-- --------------------------------------------------------
--
-- Table structure for table `items`
--
CREATE TABLE `items` (
`id` int(11) NOT NULL,
`name` varchar(100) DEFAULT NULL,
`categoryId` int(11) DEFAULT NULL,
`rarity` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `items`
--
INSERT INTO `items` (`id`, `name`, `categoryId`, `rarity`) VALUES
(1, 'Mythical Chest', 1, NULL),
(2, 'Ethereal Pearl', 2, NULL),
(3, 'Fireworks', 2, NULL),
(4, 'Paintball Gun', 2, NULL),
(5, 'TNT', 2, NULL),
(6, 'Melon Launcher', 2, NULL),
(7, 'Flesh Hook', 2, NULL),
(8, 'Bat Blaster', 2, NULL),
(9, 'Coin Party Bomb', 2, NULL),
(10, 'Ancient Chest', 2, NULL),
(11, 'Old Chest', 2, NULL),
(13, 'Cow Morph', 3, NULL),
(14, 'Glacial Steed', 4, NULL),
(15, 'Minecart', 4, NULL),
(16, 'Infernal Horror', 4, NULL),
(17, 'Slime Mount', 4, NULL),
(18, 'Mount Mule', 4, NULL),
(19, 'PIG', 5, NULL),
(20, 'COW', 5, NULL),
(21, 'SHEEP', 5, NULL),
(22, 'OCELOT', 5, NULL),
(23, 'WOLF', 5, NULL),
(24, 'Villager Morph', 3, NULL),
(25, 'Chicken Morph', 3, NULL),
(26, 'Block Morph', 3, NULL),
(27, 'Enderman Morph', 3, NULL),
(28, 'Bat Morph', 3, NULL),
(29, 'MUSHROOM_COW', 5, NULL),
(30, 'CHICKEN', 5, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `mail`
--
CREATE TABLE `mail` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`sender` varchar(64) NOT NULL,
`message` varchar(1024) NOT NULL,
`archived` tinyint(4) NOT NULL,
`deleted` tinyint(4) NOT NULL,
`timeSent` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `mailbox`
--
CREATE TABLE `mailbox` (
`id` int(11) NOT NULL,
`accountId` int(11) DEFAULT NULL,
`sender` varchar(64) DEFAULT NULL,
`message` varchar(1024) DEFAULT NULL,
`archived` tinyint(4) DEFAULT NULL,
`deleted` tinyint(4) DEFAULT NULL,
`timeSent` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `npcs`
--
CREATE TABLE `npcs` (
`id` int(11) NOT NULL,
`server` varchar(50) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`world` varchar(50) NOT NULL,
`x` float NOT NULL,
`y` float NOT NULL,
`z` float NOT NULL,
`yaw` float NOT NULL DEFAULT 1 COMMENT '""',
`pitch` float NOT NULL DEFAULT 1,
`radius` float NOT NULL,
`entityType` varchar(100) NOT NULL,
`entityMeta` varchar(100) DEFAULT NULL,
`adult` bit(1) NOT NULL,
`helmet` tinytext DEFAULT NULL,
`chestplate` tinytext DEFAULT NULL,
`leggings` tinytext DEFAULT NULL,
`boots` tinytext DEFAULT NULL,
`inHand` tinytext DEFAULT NULL,
`info` tinytext DEFAULT NULL,
`infoRadius` float DEFAULT NULL,
`infoDelay` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `playerinfo`
--
CREATE TABLE `playerinfo` (
`id` int(11) NOT NULL,
`uuid` varchar(256) NOT NULL,
`name` text NOT NULL,
`version` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `playerips`
--
CREATE TABLE `playerips` (
`id` int(11) NOT NULL,
`playerInfoId` int(11) NOT NULL,
`ipInfoId` int(11) NOT NULL,
`date` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `playerloginsessions`
--
CREATE TABLE `playerloginsessions` (
`id` int(11) NOT NULL,
`loginTime` text NOT NULL,
`playerInfoId` int(11) NOT NULL,
`timeInGame` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `playermap`
--
CREATE TABLE `playermap` (
`id` int(11) NOT NULL,
`playerName` varchar(256) NOT NULL,
`serverName` varchar(256) NOT NULL,
`us` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `playeruniquelogins`
--
CREATE TABLE `playeruniquelogins` (
`id` int(11) NOT NULL,
`playerInfoId` int(11) NOT NULL,
`day` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `polls`
--
CREATE TABLE `polls` (
`id` int(11) NOT NULL,
`enabled` bit(1) DEFAULT NULL,
`question` varchar(256) NOT NULL,
`answerA` varchar(256) NOT NULL,
`answerB` varchar(256) DEFAULT NULL,
`answerC` varchar(256) DEFAULT NULL,
`answerD` varchar(256) DEFAULT NULL,
`coinReward` int(11) NOT NULL,
`displayType` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `rankbenefits`
--
CREATE TABLE `rankbenefits` (
`id` int(11) NOT NULL,
`accountId` int(11) DEFAULT NULL,
`benefit` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `servergroupstats`
--
CREATE TABLE `servergroupstats` (
`id` int(11) NOT NULL,
`serverGroup` varchar(100) DEFAULT NULL,
`updated` mediumtext DEFAULT NULL,
`players` int(11) DEFAULT NULL,
`maxPlayers` int(11) DEFAULT NULL,
`totalNetworkCpuUsage` double(4,2) DEFAULT NULL,
`totalNetworkRamUsage` double(4,2) DEFAULT NULL,
`totalCpu` mediumint(9) DEFAULT NULL,
`totalRam` mediumint(9) DEFAULT NULL,
`US` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `serverpassword`
--
CREATE TABLE `serverpassword` (
`id` int(11) NOT NULL,
`server` varchar(100) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `spawns`
--
CREATE TABLE `spawns` (
`id` int(11) NOT NULL,
`serverName` varchar(100) DEFAULT NULL,
`location` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `statevents`
--
CREATE TABLE `statevents` (
`eventId` int(10) UNSIGNED NOT NULL,
`accountId` int(10) UNSIGNED NOT NULL,
`date` date NOT NULL,
`gamemode` tinyint(3) UNSIGNED NOT NULL,
`serverGroup` varchar(100) NOT NULL,
`type` tinyint(3) UNSIGNED NOT NULL,
`value` smallint(5) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `stats`
--
CREATE TABLE `stats` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `stattypes`
--
CREATE TABLE `stattypes` (
`id` tinyint(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tasks`
--
CREATE TABLE `tasks` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tournamentlb`
--
CREATE TABLE `tournamentlb` (
`rank` int(10) UNSIGNED NOT NULL,
`accountId` int(10) UNSIGNED NOT NULL,
`value` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `transactions`
--
CREATE TABLE `transactions` (
`id` int(11) NOT NULL,
`name` varchar(60) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accountamplifierthank`
--
ALTER TABLE `accountamplifierthank`
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `accountauth`
--
ALTER TABLE `accountauth`
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `accountcointransactions`
--
ALTER TABLE `accountcointransactions`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `accountcustomdata`
--
ALTER TABLE `accountcustomdata`
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `accountfriend`
--
ALTER TABLE `accountfriend`
ADD PRIMARY KEY (`id`,`uuidSource`,`uuidTarget`);
--
-- Indexes for table `accountgemtransactions`
--
ALTER TABLE `accountgemtransactions`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `accountignore`
--
ALTER TABLE `accountignore`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `accountinventory`
--
ALTER TABLE `accountinventory`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `accountItemIndex` (`accountId`,`itemId`),
ADD KEY `itemId` (`itemId`);
--
-- Indexes for table `accountpolls`
--
ALTER TABLE `accountpolls`
ADD PRIMARY KEY (`id`,`accountId`,`pollId`),
ADD KEY `accountId` (`accountId`),
ADD KEY `pollId` (`pollId`);
--
-- Indexes for table `accountpreferences`
--
ALTER TABLE `accountpreferences`
ADD PRIMARY KEY (`id`,`uuid`);
--
-- Indexes for table `accountpunishments`
--
ALTER TABLE `accountpunishments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `accountranks`
--
ALTER TABLE `accountranks`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `additionalIndex` (`accountId`,`rankIdentifier`,`primaryGroup`),
ADD KEY `accountIndex` (`accountId`),
ADD KEY `rankIndex` (`rankIdentifier`);
--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
ADD PRIMARY KEY (`id`,`uuid`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `accountstat`
--
ALTER TABLE `accountstat`
ADD PRIMARY KEY (`accountId`,`statId`),
ADD KEY `statId` (`statId`);
--
-- Indexes for table `accountstats`
--
ALTER TABLE `accountstats`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`),
ADD KEY `statId` (`statId`);
--
-- Indexes for table `accounttasks`
--
ALTER TABLE `accounttasks`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`),
ADD KEY `taskId` (`taskId`);
--
-- Indexes for table `accounttransactions`
--
ALTER TABLE `accounttransactions`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`),
ADD KEY `transactionId` (`transactionId`);
--
-- Indexes for table `activetournaments`
--
ALTER TABLE `activetournaments`
ADD PRIMARY KEY (`name`);
--
-- Indexes for table `bonus`
--
ALTER TABLE `bonus`
ADD PRIMARY KEY (`accountId`);
--
-- Indexes for table `clanserver`
--
ALTER TABLE `clanserver`
ADD PRIMARY KEY (`id`,`serverName`);
--
-- Indexes for table `elorating`
--
ALTER TABLE `elorating`
ADD PRIMARY KEY (`id`,`uuid`,`gamemode`);
--
-- Indexes for table `fieldblock`
--
ALTER TABLE `fieldblock`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `fieldmonster`
--
ALTER TABLE `fieldmonster`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `fieldore`
--
ALTER TABLE `fieldore`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `incognitostaff`
--
ALTER TABLE `incognitostaff`
ADD PRIMARY KEY (`accountId`);
--
-- Indexes for table `ipinfo`
--
ALTER TABLE `ipinfo`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `itemcategories`
--
ALTER TABLE `itemcategories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `nameIndex` (`name`);
--
-- Indexes for table `items`
--
ALTER TABLE `items`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `uniqueNameCategoryIndex` (`name`,`categoryId`),
ADD KEY `categoryId` (`categoryId`);
--
-- Indexes for table `mail`
--
ALTER TABLE `mail`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `mailbox`
--
ALTER TABLE `mailbox`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `npcs`
--
ALTER TABLE `npcs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_2` (`id`),
ADD KEY `id` (`id`),
ADD KEY `id_3` (`id`);
--
-- Indexes for table `playerinfo`
--
ALTER TABLE `playerinfo`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `playerips`
--
ALTER TABLE `playerips`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `playerloginsessions`
--
ALTER TABLE `playerloginsessions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `playermap`
--
ALTER TABLE `playermap`
ADD PRIMARY KEY (`id`,`playerName`);
--
-- Indexes for table `playeruniquelogins`
--
ALTER TABLE `playeruniquelogins`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `polls`
--
ALTER TABLE `polls`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `rankbenefits`
--
ALTER TABLE `rankbenefits`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `servergroupstats`
--
ALTER TABLE `servergroupstats`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `serverpassword`
--
ALTER TABLE `serverpassword`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `spawns`
--
ALTER TABLE `spawns`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `statevents`
--
ALTER TABLE `statevents`
ADD PRIMARY KEY (`eventId`,`accountId`,`date`,`gamemode`,`serverGroup`,`type`);
--
-- Indexes for table `stats`
--
ALTER TABLE `stats`
ADD PRIMARY KEY (`id`,`name`);
--
-- Indexes for table `stattypes`
--
ALTER TABLE `stattypes`
ADD PRIMARY KEY (`id`,`name`);
--
-- Indexes for table `tasks`
--
ALTER TABLE `tasks`
ADD PRIMARY KEY (`id`,`name`);
--
-- Indexes for table `tournamentlb`
--
ALTER TABLE `tournamentlb`
ADD PRIMARY KEY (`rank`,`accountId`);
--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `accountgemtransactions`
--
ALTER TABLE `accountgemtransactions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountignore`
--
ALTER TABLE `accountignore`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountinventory`
--
ALTER TABLE `accountinventory`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountpolls`
--
ALTER TABLE `accountpolls`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountpreferences`
--
ALTER TABLE `accountpreferences`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountpunishments`
--
ALTER TABLE `accountpunishments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountranks`
--
ALTER TABLE `accountranks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accountstats`
--
ALTER TABLE `accountstats`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounttasks`
--
ALTER TABLE `accounttasks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounttransactions`
--
ALTER TABLE `accounttransactions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `clanserver`
--
ALTER TABLE `clanserver`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `elorating`
--
ALTER TABLE `elorating`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fieldblock`
--
ALTER TABLE `fieldblock`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fieldmonster`
--
ALTER TABLE `fieldmonster`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fieldore`
--
ALTER TABLE `fieldore`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ipinfo`
--
ALTER TABLE `ipinfo`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `itemcategories`
--
ALTER TABLE `itemcategories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `items`
--
ALTER TABLE `items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `mail`
--
ALTER TABLE `mail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mailbox`
--
ALTER TABLE `mailbox`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `npcs`
--
ALTER TABLE `npcs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;
--
-- AUTO_INCREMENT for table `playerinfo`
--
ALTER TABLE `playerinfo`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `playerips`
--
ALTER TABLE `playerips`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `playerloginsessions`
--
ALTER TABLE `playerloginsessions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `playermap`
--
ALTER TABLE `playermap`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `playeruniquelogins`
--
ALTER TABLE `playeruniquelogins`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rankbenefits`
--
ALTER TABLE `rankbenefits`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `servergroupstats`
--
ALTER TABLE `servergroupstats`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serverpassword`
--
ALTER TABLE `serverpassword`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `spawns`
--
ALTER TABLE `spawns`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stats`
--
ALTER TABLE `stats`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stattypes`
--
ALTER TABLE `stattypes`
MODIFY `id` tinyint(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tasks`
--
ALTER TABLE `tasks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `accountamplifierthank`
--
ALTER TABLE `accountamplifierthank`
ADD CONSTRAINT `accountamplifierthank_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
--
-- Constraints for table `accountauth`
--
ALTER TABLE `accountauth`
ADD CONSTRAINT `accountauth_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
--
-- Constraints for table `accountcointransactions`
--
ALTER TABLE `accountcointransactions`
ADD CONSTRAINT `accountCoinTransactions_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
--
-- Constraints for table `accountcustomdata`
--
ALTER TABLE `accountcustomdata`
ADD CONSTRAINT `accountcustomdata_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
--
-- Constraints for table `accountgemtransactions`
--
ALTER TABLE `accountgemtransactions`
ADD CONSTRAINT `accountGemTransactions_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
--
-- Constraints for table `accountranks`
--
ALTER TABLE `accountranks`
ADD CONSTRAINT `accountranks_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
COMMIT;
/*!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 */;