1
0
Files
mineplex-crepe/sql_dumps/account.sql

995 lines
23 KiB
MySQL
Raw Normal View History

2023-05-19 13:58:59 +07:00
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
2023-05-20 22:52:16 +07:00
-- Host: 127.0.0.1
-- Generation Time: May 21, 2023 at 09:35 AM
2023-05-20 22:52:16 +07:00
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
2023-05-19 13:58:59 +07:00
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 */;
--
2023-05-20 22:52:16 +07:00
-- Database: `account`
2023-05-19 13:58:59 +07:00
--
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountcrowns`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountcrowns` (
`accountId` int(11) NOT NULL,
`crownCount` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountcustomdata`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountcustomdata` (
`accountId` int(11) NOT NULL,
`customDataId` int(11) NOT NULL,
`data` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountfavouritenano`
--
CREATE TABLE `accountfavouritenano` (
`accountId` int(11) NOT NULL,
`gameId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountfriend`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountfrienddata`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountfrienddata` (
`accountId` int(11) NOT NULL,
`status` int(11) NOT NULL,
`favourite` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountignore`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountignore` (
`uuidIgnorer` varchar(255) NOT NULL,
`uuidIgnored` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountinventory`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountkits`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountkits` (
`accountId` int(11) NOT NULL,
`kitId` int(11) NOT NULL,
`active` bit(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountkitstats`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountlevelreward`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountlevelreward` (
`accountId` int(11) NOT NULL,
`level` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountmissions`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountpolls`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountpunishments`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountranks`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountranks` (
`id` int(11) NOT NULL,
`accountId` int(11) NOT NULL,
`rankIdentifier` varchar(40) DEFAULT 'PLAYER',
`primaryGroup` tinyint(1) DEFAULT 1
2023-05-19 13:58:59 +07:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accounts`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountstatsalltime`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountstatsalltime` (
`accountId` int(11) NOT NULL,
`statId` int(11) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accounttasks`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountthanktransactions`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accounttitle`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accounttitle` (
`accountId` int(11) NOT NULL,
`trackName` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `accountwinstreak`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `accountwinstreak` (
`accountId` int(11) NOT NULL,
`gameId` int(11) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `bonus`
2023-05-19 13:58:59 +07:00
--
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
2023-05-19 13:58:59 +07:00
) 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;
-- --------------------------------------------------------
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `communities`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `communities` (
`id` int(11) NOT NULL,
`name` varchar(15) NOT NULL,
`region` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `communityinvites`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `communityinvites` (
`accountId` int(11) NOT NULL,
`communityId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `communityjoinrequests`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `communityjoinrequests` (
`accountId` int(11) NOT NULL,
`communityId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `communitymembers`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `communitysettings`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `communitysettings` (
`settingId` int(11) NOT NULL,
`communityId` int(11) NOT NULL,
`settingValue` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `customdata`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `customdata` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `elorating`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `elorating` (
`accountId` int(11) NOT NULL,
`gameType` int(11) NOT NULL,
`elo` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `eternalgiveaway`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `eternalgiveaway` (
`accountId` int(11) NOT NULL,
`uuid` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- 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;
-- --------------------------------------------------------
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `incognitostaff`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `incognitostaff` (
`accountId` int(11) NOT NULL,
`status` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `items`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `items` (
`id` int(11) NOT NULL,
`name` varchar(100) DEFAULT NULL,
`rarity` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `kitprogression`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `newnpcsnew`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- 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',
2023-05-20 23:15:51 +07:00
`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;
-- --------------------------------------------------------
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `playermap`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `playermap` (
`accountId` int(11) NOT NULL,
`playerName` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `polls`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `powerplayclaims`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `powerplayclaims` (
`accountId` int(11) NOT NULL,
`claimYear` int(11) NOT NULL,
`claimMonth` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `powerplaysubs`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `powerplaysubs` (
`accountId` int(11) NOT NULL,
`startDate` date NOT NULL,
`duration` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `preferences`
2023-05-19 13:58:59 +07:00
--
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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- 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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- 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;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- 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
2023-05-19 13:58:59 +07:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `specificyoutube`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `specificyoutube` (
`accountId` int(11) NOT NULL,
`clicktime` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `stats`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `stats` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `tasks`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `tasks` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `twofactor`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `twofactor` (
`accountId` int(11) NOT NULL,
`secretKey` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `twofactor_history`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `twofactor_history` (
`accountId` int(11) NOT NULL,
`ip` int(11) NOT NULL,
`loginTime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
2023-05-20 22:52:16 +07:00
-- Table structure for table `youtube`
2023-05-19 13:58:59 +07:00
--
CREATE TABLE `youtube` (
`accountId` int(11) NOT NULL,
`clicktime` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
2023-05-20 22:52:16 +07:00
-- Indexes for dumped tables
2023-05-19 13:58:59 +07:00
--
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accountcrowns`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountcrowns`
ADD PRIMARY KEY (`accountId`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accountfriend`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountfriend`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `uuidIndex` (`uuidSource`,`uuidTarget`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accountinventory`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountinventory`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `accountItemIndex` (`accountId`,`itemId`),
ADD KEY `itemId` (`itemId`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accountpolls`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountpolls`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `accountPollIndex` (`accountId`,`pollId`),
ADD KEY `pollId` (`pollId`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accountpunishments`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountpunishments`
ADD PRIMARY KEY (`id`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accountranks`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountranks`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `additionalIndex` (`accountId`,`rankIdentifier`,`primaryGroup`),
ADD KEY `accountIndex` (`accountId`),
ADD KEY `rankIndex` (`rankIdentifier`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `accounts`
2023-05-19 13:58:59 +07:00
--
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`);
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `bonus`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `bonus`
ADD PRIMARY KEY (`accountId`);
--
-- Indexes for table `botspam`
--
ALTER TABLE `botspam`
ADD PRIMARY KEY (`id`);
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `communities`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `communities`
ADD PRIMARY KEY (`id`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `forumlink`
--
ALTER TABLE `forumlink`
ADD PRIMARY KEY (`accountId`);
--
-- Indexes for table `hubnews`
--
ALTER TABLE `hubnews`
ADD PRIMARY KEY (`newsId`);
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `incognitostaff`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `incognitostaff`
ADD PRIMARY KEY (`accountId`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `items`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `items`
ADD PRIMARY KEY (`id`),
ADD KEY `mameIndex` (`name`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `polls`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `polls`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `rankbenefits`
--
ALTER TABLE `rankbenefits`
ADD PRIMARY KEY (`id`),
ADD KEY `accountId` (`accountId`);
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `reports`
--
ALTER TABLE `reports`
ADD PRIMARY KEY (`id`);
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Indexes for table `stats`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `stats`
ADD PRIMARY KEY (`id`);
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for dumped tables
2023-05-19 13:58:59 +07:00
--
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `accountfriend`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountfriend`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `accountinventory`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountinventory`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `accountpolls`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountpolls`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `accountpunishments`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountpunishments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `accountranks`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountranks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `accounts`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `bonus`
2023-05-19 13:58:59 +07:00
--
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;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `communities`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `communities`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2023-05-19 13:58:59 +07:00
--
-- AUTO_INCREMENT for table `hubnews`
--
ALTER TABLE `hubnews`
MODIFY `newsId` int(11) NOT NULL AUTO_INCREMENT;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `items`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `polls`
2023-05-19 13:58:59 +07:00
--
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;
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `reports`
--
ALTER TABLE `reports`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- AUTO_INCREMENT for table `stats`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `stats`
2023-05-20 22:52:16 +07:00
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Constraints for dumped tables
2023-05-19 13:58:59 +07:00
--
--
2023-05-20 22:52:16 +07:00
-- Constraints for table `accountcrowns`
2023-05-19 13:58:59 +07:00
--
ALTER TABLE `accountcrowns`
ADD CONSTRAINT `accountcrowns_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`);
--
2023-05-20 22:52:16 +07:00
-- Constraints for table `accountinventory`
2023-05-19 13:58:59 +07:00
--
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`);
--
2023-05-20 22:52:16 +07:00
-- Constraints for table `accountpolls`
2023-05-19 13:58:59 +07:00
--
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`);
2023-05-19 13:58:59 +07:00
--
2023-05-20 22:52:16 +07:00
-- Constraints for table `bonus`
2023-05-19 13:58:59 +07:00
--
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`);
2023-05-19 13:58:59 +07:00
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
2023-05-20 22:52:16 +07:00
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;