995 lines
23 KiB
SQL
995 lines
23 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 5.1.1
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Host: 127.0.0.1
|
|
-- Generation Time: May 21, 2023 at 09:35 AM
|
|
-- Server version: 10.4.22-MariaDB
|
|
-- PHP Version: 7.4.27
|
|
|
|
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 `accountcrowns`
|
|
--
|
|
|
|
CREATE TABLE `accountcrowns` (
|
|
`accountId` int(11) NOT NULL,
|
|
`crownCount` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountcustomdata`
|
|
--
|
|
|
|
CREATE TABLE `accountcustomdata` (
|
|
`accountId` int(11) NOT NULL,
|
|
`customDataId` int(11) NOT NULL,
|
|
`data` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountfavouritenano`
|
|
--
|
|
|
|
CREATE TABLE `accountfavouritenano` (
|
|
`accountId` int(11) NOT NULL,
|
|
`gameId` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountfriend`
|
|
--
|
|
|
|
CREATE TABLE `accountfriend` (
|
|
`id` int(11) NOT NULL,
|
|
`uuidSource` varchar(100) DEFAULT NULL,
|
|
`uuidTarget` varchar(100) DEFAULT NULL,
|
|
`status` varchar(100) DEFAULT NULL,
|
|
`favourite` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountfrienddata`
|
|
--
|
|
|
|
CREATE TABLE `accountfrienddata` (
|
|
`accountId` int(11) NOT NULL,
|
|
`status` int(11) NOT NULL,
|
|
`favourite` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountignore`
|
|
--
|
|
|
|
CREATE TABLE `accountignore` (
|
|
`uuidIgnorer` varchar(255) NOT NULL,
|
|
`uuidIgnored` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountkits`
|
|
--
|
|
|
|
CREATE TABLE `accountkits` (
|
|
`accountId` int(11) NOT NULL,
|
|
`kitId` int(11) NOT NULL,
|
|
`active` bit(1) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountkitstats`
|
|
--
|
|
|
|
CREATE TABLE `accountkitstats` (
|
|
`accountId` int(11) NOT NULL,
|
|
`kitId` int(11) NOT NULL,
|
|
`statId` int(11) NOT NULL,
|
|
`value` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountlevelreward`
|
|
--
|
|
|
|
CREATE TABLE `accountlevelreward` (
|
|
`accountId` int(11) NOT NULL,
|
|
`level` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountmissions`
|
|
--
|
|
|
|
CREATE TABLE `accountmissions` (
|
|
`accountId` int(11) NOT NULL,
|
|
`missionId` int(11) NOT NULL,
|
|
`length` int(11) NOT NULL,
|
|
`x` int(11) NOT NULL,
|
|
`y` int(11) NOT NULL,
|
|
`startTime` bigint(11) NOT NULL,
|
|
`progress` int(11) NOT NULL DEFAULT 0,
|
|
`complete` bit(1) NOT NULL DEFAULT b'0'
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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(1) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountpunishments`
|
|
--
|
|
|
|
CREATE TABLE `accountpunishments` (
|
|
`id` int(11) NOT NULL,
|
|
`target` varchar(20) NOT NULL,
|
|
`category` varchar(255) NOT NULL,
|
|
`sentence` varchar(255) NOT NULL,
|
|
`reason` varchar(255) NOT NULL,
|
|
`duration` double NOT NULL,
|
|
`admin` varchar(255) NOT NULL,
|
|
`severity` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountranks`
|
|
--
|
|
|
|
CREATE TABLE `accountranks` (
|
|
`id` int(11) NOT NULL,
|
|
`accountId` int(11) NOT NULL,
|
|
`rankIdentifier` varchar(40) DEFAULT 'PLAYER',
|
|
`primaryGroup` tinyint(1) DEFAULT 1
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accounts`
|
|
--
|
|
|
|
CREATE TABLE `accounts` (
|
|
`id` int(11) NOT NULL,
|
|
`uuid` varchar(100) DEFAULT NULL,
|
|
`name` varchar(40) DEFAULT NULL,
|
|
`gems` int(11) DEFAULT 0,
|
|
`coins` int(11) NOT NULL DEFAULT 0,
|
|
`lastLogin` mediumtext DEFAULT NULL,
|
|
`totalPlayTime` mediumtext DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountstatsalltime`
|
|
--
|
|
|
|
CREATE TABLE `accountstatsalltime` (
|
|
`accountId` int(11) NOT NULL,
|
|
`statId` int(11) NOT NULL,
|
|
`value` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accounttasks`
|
|
--
|
|
|
|
CREATE TABLE `accounttasks` (
|
|
`accountId` int(11) NOT NULL,
|
|
`taskId` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountteamspeak`
|
|
--
|
|
|
|
CREATE TABLE `accountteamspeak` (
|
|
`accountId` int(11) NOT NULL,
|
|
`teamspeakId` int(11) NOT NULL,
|
|
`linkDate` datetime NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountthanktransactions`
|
|
--
|
|
|
|
CREATE TABLE `accountthanktransactions` (
|
|
`receiverId` int(11) NOT NULL,
|
|
`senderId` int(11) NOT NULL,
|
|
`thankAmount` int(11) NOT NULL,
|
|
`reason` varchar(255) NOT NULL,
|
|
`ignoreCooldown` bit(1) NOT NULL,
|
|
`claimed` bit(1) NOT NULL,
|
|
`sentTime` time NOT NULL,
|
|
`claimTime` time NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accounttitle`
|
|
--
|
|
|
|
CREATE TABLE `accounttitle` (
|
|
`accountId` int(11) NOT NULL,
|
|
`trackName` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accountwinstreak`
|
|
--
|
|
|
|
CREATE TABLE `accountwinstreak` (
|
|
`accountId` int(11) NOT NULL,
|
|
`gameId` int(11) NOT NULL,
|
|
`value` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `bonus`
|
|
--
|
|
|
|
CREATE TABLE `bonus` (
|
|
`accountId` int(11) NOT NULL,
|
|
`dailytime` timestamp NULL DEFAULT NULL,
|
|
`clansdailytime` timestamp NULL DEFAULT NULL,
|
|
`ranktime` date DEFAULT NULL,
|
|
`votetime` date DEFAULT NULL,
|
|
`clansvotetime` date DEFAULT NULL,
|
|
`dailyStreak` int(11) NOT NULL,
|
|
`maxDailyStreak` int(11) NOT NULL,
|
|
`voteStreak` int(11) NOT NULL,
|
|
`maxVoteStreak` int(11) NOT NULL,
|
|
`tickets` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `botspam`
|
|
--
|
|
|
|
CREATE TABLE `botspam` (
|
|
`id` int(11) NOT NULL,
|
|
`text` varchar(200) NOT NULL,
|
|
`punishments` int(11) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`createdBy` varchar(100) NOT NULL,
|
|
`enabledBy` varchar(100) NOT NULL,
|
|
`disabledBy` varchar(100) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `communities`
|
|
--
|
|
|
|
CREATE TABLE `communities` (
|
|
`id` int(11) NOT NULL,
|
|
`name` varchar(15) NOT NULL,
|
|
`region` varchar(5) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `communityinvites`
|
|
--
|
|
|
|
CREATE TABLE `communityinvites` (
|
|
`accountId` int(11) NOT NULL,
|
|
`communityId` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `communityjoinrequests`
|
|
--
|
|
|
|
CREATE TABLE `communityjoinrequests` (
|
|
`accountId` int(11) NOT NULL,
|
|
`communityId` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `communitymembers`
|
|
--
|
|
|
|
CREATE TABLE `communitymembers` (
|
|
`accountId` int(11) NOT NULL,
|
|
`communityId` int(11) NOT NULL,
|
|
`communityRole` varchar(20) NOT NULL,
|
|
`readingChat` bit(1) NOT NULL DEFAULT b'1'
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `communitysettings`
|
|
--
|
|
|
|
CREATE TABLE `communitysettings` (
|
|
`settingId` int(11) NOT NULL,
|
|
`communityId` int(11) NOT NULL,
|
|
`settingValue` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `customdata`
|
|
--
|
|
|
|
CREATE TABLE `customdata` (
|
|
`id` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `elorating`
|
|
--
|
|
|
|
CREATE TABLE `elorating` (
|
|
`accountId` int(11) NOT NULL,
|
|
`gameType` int(11) NOT NULL,
|
|
`elo` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `eternalgiveaway`
|
|
--
|
|
|
|
CREATE TABLE `eternalgiveaway` (
|
|
`accountId` int(11) NOT NULL,
|
|
`uuid` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `forumlink`
|
|
--
|
|
|
|
CREATE TABLE `forumlink` (
|
|
`accountId` int(11) NOT NULL,
|
|
`userId` int(11) NOT NULL,
|
|
`powerPlayStatus` tinyint(1) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `hubnews`
|
|
--
|
|
|
|
CREATE TABLE `hubnews` (
|
|
`newsId` int(11) NOT NULL,
|
|
`newsValue` text NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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 `items`
|
|
--
|
|
|
|
CREATE TABLE `items` (
|
|
`id` int(11) NOT NULL,
|
|
`name` varchar(100) DEFAULT NULL,
|
|
`rarity` int(11) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `kitprogression`
|
|
--
|
|
|
|
CREATE TABLE `kitprogression` (
|
|
`uuid` varchar(255) NOT NULL,
|
|
`kitId` varchar(255) NOT NULL,
|
|
`xp` int(11) NOT NULL,
|
|
`level` int(11) NOT NULL,
|
|
`upgrade_level` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `newnpcsnew`
|
|
--
|
|
|
|
CREATE TABLE `newnpcsnew` (
|
|
`id` int(11) NOT NULL,
|
|
`entity_type` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`info` varchar(255) NOT NULL,
|
|
`world` varchar(255) NOT NULL,
|
|
`x` double NOT NULL,
|
|
`y` double NOT NULL,
|
|
`z` double NOT NULL,
|
|
`yaw` int(11) NOT NULL,
|
|
`pitch` int(11) NOT NULL,
|
|
`in_hand` varchar(255) NOT NULL,
|
|
`in_hand_data` bit(1) NOT NULL,
|
|
`helmet` varchar(255) NOT NULL,
|
|
`chestplate` varchar(255) NOT NULL,
|
|
`leggings` varchar(255) NOT NULL,
|
|
`boots` varchar(255) NOT NULL,
|
|
`metadata` varchar(255) NOT NULL,
|
|
`skin_value` varchar(255) NOT NULL,
|
|
`skin_signature` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `npcs`
|
|
--
|
|
|
|
CREATE TABLE `npcs` (
|
|
`id` int(11) NOT NULL,
|
|
`server` varchar(50) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`world` varchar(50) NOT NULL,
|
|
`x` float NOT NULL,
|
|
`y` float NOT NULL,
|
|
`z` float NOT NULL,
|
|
`yaw` float NOT NULL,
|
|
`pitch` float NOT NULL,
|
|
`radius` float NOT NULL,
|
|
`entityType` varchar(100) NOT NULL,
|
|
`entityMeta` varchar(100) NOT NULL,
|
|
`adult` bit(1) NOT NULL DEFAULT b'1',
|
|
`helmet` blob NOT NULL,
|
|
`chestplate` blob NOT NULL,
|
|
`leggings` blob NOT NULL,
|
|
`boots` blob NOT NULL,
|
|
`inHand` blob NOT NULL,
|
|
`info` blob NOT NULL,
|
|
`infoRadius` float NOT NULL,
|
|
`infoDelay` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `playermap`
|
|
--
|
|
|
|
CREATE TABLE `playermap` (
|
|
`accountId` int(11) NOT NULL,
|
|
`playerName` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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 DEFAULT 0
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `powerplayclaims`
|
|
--
|
|
|
|
CREATE TABLE `powerplayclaims` (
|
|
`accountId` int(11) NOT NULL,
|
|
`claimYear` int(11) NOT NULL,
|
|
`claimMonth` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `powerplaysubs`
|
|
--
|
|
|
|
CREATE TABLE `powerplaysubs` (
|
|
`accountId` int(11) NOT NULL,
|
|
`startDate` date NOT NULL,
|
|
`duration` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `preferences`
|
|
--
|
|
|
|
CREATE TABLE `preferences` (
|
|
`accountId` int(11) NOT NULL,
|
|
`preference` int(11) NOT NULL,
|
|
`value` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reporthandlers`
|
|
--
|
|
|
|
CREATE TABLE `reporthandlers` (
|
|
`reportId` bigint(20) NOT NULL,
|
|
`handlerId` int(11) NOT NULL,
|
|
`aborted` tinyint(1) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reportresults`
|
|
--
|
|
|
|
CREATE TABLE `reportresults` (
|
|
`reportId` bigint(20) NOT NULL,
|
|
`resultId` int(11) NOT NULL,
|
|
`reason` text NOT NULL,
|
|
`closedTime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reports`
|
|
--
|
|
|
|
CREATE TABLE `reports` (
|
|
`id` bigint(20) NOT NULL,
|
|
`suspectId` int(11) NOT NULL,
|
|
`categoryId` int(11) NOT NULL,
|
|
`snapshotId` int(11) NOT NULL,
|
|
`assignedTeam` int(11) NOT NULL,
|
|
`region` text NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `specificyoutube`
|
|
--
|
|
|
|
CREATE TABLE `specificyoutube` (
|
|
`accountId` int(11) NOT NULL,
|
|
`clicktime` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `stats`
|
|
--
|
|
|
|
CREATE TABLE `stats` (
|
|
`id` int(11) NOT NULL,
|
|
`name` varchar(100) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tasks`
|
|
--
|
|
|
|
CREATE TABLE `tasks` (
|
|
`id` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `twofactor`
|
|
--
|
|
|
|
CREATE TABLE `twofactor` (
|
|
`accountId` int(11) NOT NULL,
|
|
`secretKey` varchar(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `twofactor_history`
|
|
--
|
|
|
|
CREATE TABLE `twofactor_history` (
|
|
`accountId` int(11) NOT NULL,
|
|
`ip` int(11) NOT NULL,
|
|
`loginTime` datetime NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `youtube`
|
|
--
|
|
|
|
CREATE TABLE `youtube` (
|
|
`accountId` int(11) NOT NULL,
|
|
`clicktime` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `accountcrowns`
|
|
--
|
|
ALTER TABLE `accountcrowns`
|
|
ADD PRIMARY KEY (`accountId`);
|
|
|
|
--
|
|
-- Indexes for table `accountfriend`
|
|
--
|
|
ALTER TABLE `accountfriend`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `uuidIndex` (`uuidSource`,`uuidTarget`);
|
|
|
|
--
|
|
-- 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`),
|
|
ADD UNIQUE KEY `accountPollIndex` (`accountId`,`pollId`),
|
|
ADD KEY `pollId` (`pollId`);
|
|
|
|
--
|
|
-- 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`),
|
|
ADD UNIQUE KEY `uuidIndex` (`uuid`),
|
|
ADD UNIQUE KEY `nameIndex` (`name`);
|
|
|
|
--
|
|
-- Indexes for table `accountteamspeak`
|
|
--
|
|
ALTER TABLE `accountteamspeak`
|
|
ADD PRIMARY KEY (`accountId`);
|
|
|
|
--
|
|
-- Indexes for table `bonus`
|
|
--
|
|
ALTER TABLE `bonus`
|
|
ADD PRIMARY KEY (`accountId`);
|
|
|
|
--
|
|
-- Indexes for table `botspam`
|
|
--
|
|
ALTER TABLE `botspam`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `communities`
|
|
--
|
|
ALTER TABLE `communities`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `forumlink`
|
|
--
|
|
ALTER TABLE `forumlink`
|
|
ADD PRIMARY KEY (`accountId`);
|
|
|
|
--
|
|
-- Indexes for table `hubnews`
|
|
--
|
|
ALTER TABLE `hubnews`
|
|
ADD PRIMARY KEY (`newsId`);
|
|
|
|
--
|
|
-- Indexes for table `incognitostaff`
|
|
--
|
|
ALTER TABLE `incognitostaff`
|
|
ADD PRIMARY KEY (`accountId`);
|
|
|
|
--
|
|
-- Indexes for table `items`
|
|
--
|
|
ALTER TABLE `items`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `mameIndex` (`name`);
|
|
|
|
--
|
|
-- Indexes for table `polls`
|
|
--
|
|
ALTER TABLE `polls`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `rankbenefits`
|
|
--
|
|
ALTER TABLE `rankbenefits`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `accountId` (`accountId`);
|
|
|
|
--
|
|
-- Indexes for table `reports`
|
|
--
|
|
ALTER TABLE `reports`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `stats`
|
|
--
|
|
ALTER TABLE `stats`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `accountfriend`
|
|
--
|
|
ALTER TABLE `accountfriend`
|
|
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=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `accountpolls`
|
|
--
|
|
ALTER TABLE `accountpolls`
|
|
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=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `accounts`
|
|
--
|
|
ALTER TABLE `accounts`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `bonus`
|
|
--
|
|
ALTER TABLE `bonus`
|
|
MODIFY `accountId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `botspam`
|
|
--
|
|
ALTER TABLE `botspam`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `communities`
|
|
--
|
|
ALTER TABLE `communities`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `hubnews`
|
|
--
|
|
ALTER TABLE `hubnews`
|
|
MODIFY `newsId` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `items`
|
|
--
|
|
ALTER TABLE `items`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `polls`
|
|
--
|
|
ALTER TABLE `polls`
|
|
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 `reports`
|
|
--
|
|
ALTER TABLE `reports`
|
|
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `stats`
|
|
--
|
|
ALTER TABLE `stats`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- Constraints for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Constraints for table `accountcrowns`
|
|
--
|
|
ALTER TABLE `accountcrowns`
|
|
ADD CONSTRAINT `accountcrowns_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `accountinventory`
|
|
--
|
|
ALTER TABLE `accountinventory`
|
|
ADD CONSTRAINT `accountinventory_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`),
|
|
ADD CONSTRAINT `accountinventory_ibfk_2` FOREIGN KEY (`itemId`) REFERENCES `items` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `accountpolls`
|
|
--
|
|
ALTER TABLE `accountpolls`
|
|
ADD CONSTRAINT `accountpolls_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`),
|
|
ADD CONSTRAINT `accountpolls_ibfk_2` FOREIGN KEY (`pollId`) REFERENCES `polls` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `accountteamspeak`
|
|
--
|
|
ALTER TABLE `accountteamspeak`
|
|
ADD CONSTRAINT `accountTeamspeak_accounts_null_fk` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `bonus`
|
|
--
|
|
ALTER TABLE `bonus`
|
|
ADD CONSTRAINT `bonus_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `rankbenefits`
|
|
--
|
|
ALTER TABLE `rankbenefits`
|
|
ADD CONSTRAINT `rankbenefits_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 */; |