diff --git a/sql_dumps/account #2 use this if the first one doesnt work.sql b/sql_dumps/account #2 use this if the first one doesnt work.sql deleted file mode 100644 index fb19596c..00000000 --- a/sql_dumps/account #2 use this if the first one doesnt work.sql +++ /dev/null @@ -1,814 +0,0 @@ --- phpMyAdmin SQL Dump --- version 5.1.1 --- https://www.phpmyadmin.net/ --- --- Máy chủ: 127.0.0.1 --- Thời gian đã tạo: Th5 19, 2023 lúc 09:04 AM --- Phiên bản máy phục vụ: 10.4.22-MariaDB --- Phiên bản PHP: 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 */; - --- --- Cơ sở dữ liệu: `account` --- - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountcrowns` --- - -CREATE TABLE `accountcrowns` ( - `accountId` int(11) NOT NULL, - `crownCount` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountcustomdata` --- - -CREATE TABLE `accountcustomdata` ( - `accountId` int(11) NOT NULL, - `customDataId` int(11) NOT NULL, - `data` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountfavouritenano` --- - -CREATE TABLE `accountfavouritenano` ( - `accountId` int(11) NOT NULL, - `gameId` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountfrienddata` --- - -CREATE TABLE `accountfrienddata` ( - `accountId` int(11) NOT NULL, - `status` int(11) NOT NULL, - `favourite` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountignore` --- - -CREATE TABLE `accountignore` ( - `uuidIgnorer` varchar(255) NOT NULL, - `uuidIgnored` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountkits` --- - -CREATE TABLE `accountkits` ( - `accountId` int(11) NOT NULL, - `kitId` int(11) NOT NULL, - `active` bit(1) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountlevelreward` --- - -CREATE TABLE `accountlevelreward` ( - `accountId` int(11) NOT NULL, - `level` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountstatsalltime` --- - -CREATE TABLE `accountstatsalltime` ( - `accountId` int(11) NOT NULL, - `statId` int(11) NOT NULL, - `value` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accounttasks` --- - -CREATE TABLE `accounttasks` ( - `accountId` int(11) NOT NULL, - `taskId` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accounttitle` --- - -CREATE TABLE `accounttitle` ( - `accountId` int(11) NOT NULL, - `trackName` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `accountwinstreak` --- - -CREATE TABLE `accountwinstreak` ( - `accountId` int(11) NOT NULL, - `gameId` int(11) NOT NULL, - `value` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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 -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `communities` --- - -CREATE TABLE `communities` ( - `id` int(11) NOT NULL, - `name` varchar(15) NOT NULL, - `region` varchar(5) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `communityinvites` --- - -CREATE TABLE `communityinvites` ( - `accountId` int(11) NOT NULL, - `communityId` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `communityjoinrequests` --- - -CREATE TABLE `communityjoinrequests` ( - `accountId` int(11) NOT NULL, - `communityId` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `communitysettings` --- - -CREATE TABLE `communitysettings` ( - `settingId` int(11) NOT NULL, - `communityId` int(11) NOT NULL, - `settingValue` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `customdata` --- - -CREATE TABLE `customdata` ( - `id` int(11) NOT NULL, - `name` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `elorating` --- - -CREATE TABLE `elorating` ( - `accountId` int(11) NOT NULL, - `gameType` int(11) NOT NULL, - `elo` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `eternalgiveaway` --- - -CREATE TABLE `eternalgiveaway` ( - `accountId` int(11) NOT NULL, - `uuid` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `incognitostaff` --- - -CREATE TABLE `incognitostaff` ( - `accountId` int(11) NOT NULL, - `status` tinyint(1) DEFAULT 0 -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `items` --- - -CREATE TABLE `items` ( - `id` int(11) NOT NULL, - `name` varchar(100) DEFAULT NULL, - `rarity` int(11) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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 DEFAULT current_timestamp(), - `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `playermap` --- - -CREATE TABLE `playermap` ( - `accountId` int(11) NOT NULL, - `playerName` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `powerplayclaims` --- - -CREATE TABLE `powerplayclaims` ( - `accountId` int(11) NOT NULL, - `claimYear` int(11) NOT NULL, - `claimMonth` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `powerplaysubs` --- - -CREATE TABLE `powerplaysubs` ( - `accountId` int(11) NOT NULL, - `startDate` date NOT NULL, - `duration` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `preferences` --- - -CREATE TABLE `preferences` ( - `accountId` int(11) NOT NULL, - `preference` int(11) NOT NULL, - `value` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `specificyoutube` --- - -CREATE TABLE `specificyoutube` ( - `accountId` int(11) NOT NULL, - `clicktime` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `stats` --- - -CREATE TABLE `stats` ( - `id` int(11) NOT NULL, - `name` varchar(100) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `tasks` --- - -CREATE TABLE `tasks` ( - `id` int(11) NOT NULL, - `name` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `twofactor` --- - -CREATE TABLE `twofactor` ( - `accountId` int(11) NOT NULL, - `secretKey` varchar(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `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; - --- -------------------------------------------------------- - --- --- Cấu trúc bảng cho bảng `youtube` --- - -CREATE TABLE `youtube` ( - `accountId` int(11) NOT NULL, - `clicktime` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- --- Chỉ mục cho các bảng đã đổ --- - --- --- Chỉ mục cho bảng `accountcrowns` --- -ALTER TABLE `accountcrowns` - ADD PRIMARY KEY (`accountId`); - --- --- Chỉ mục cho bảng `accountfriend` --- -ALTER TABLE `accountfriend` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `uuidIndex` (`uuidSource`,`uuidTarget`); - --- --- Chỉ mục cho bảng `accountinventory` --- -ALTER TABLE `accountinventory` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `accountItemIndex` (`accountId`,`itemId`), - ADD KEY `itemId` (`itemId`); - --- --- Chỉ mục cho bảng `accountpolls` --- -ALTER TABLE `accountpolls` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `accountPollIndex` (`accountId`,`pollId`), - ADD KEY `pollId` (`pollId`); - --- --- Chỉ mục cho bảng `accountpunishments` --- -ALTER TABLE `accountpunishments` - ADD PRIMARY KEY (`id`); - --- --- Chỉ mục cho bảng `accountranks` --- -ALTER TABLE `accountranks` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `additionalIndex` (`accountId`,`rankIdentifier`,`primaryGroup`), - ADD KEY `accountIndex` (`accountId`), - ADD KEY `rankIndex` (`rankIdentifier`); - --- --- Chỉ mục cho bảng `accounts` --- -ALTER TABLE `accounts` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `uuidIndex` (`uuid`), - ADD UNIQUE KEY `nameIndex` (`name`); - --- --- Chỉ mục cho bảng `bonus` --- -ALTER TABLE `bonus` - ADD PRIMARY KEY (`accountId`); - --- --- Chỉ mục cho bảng `communities` --- -ALTER TABLE `communities` - ADD PRIMARY KEY (`id`); - --- --- Chỉ mục cho bảng `incognitostaff` --- -ALTER TABLE `incognitostaff` - ADD PRIMARY KEY (`accountId`); - --- --- Chỉ mục cho bảng `items` --- -ALTER TABLE `items` - ADD PRIMARY KEY (`id`), - ADD KEY `mameIndex` (`name`); - --- --- Chỉ mục cho bảng `polls` --- -ALTER TABLE `polls` - ADD PRIMARY KEY (`id`); - --- --- Chỉ mục cho bảng `stats` --- -ALTER TABLE `stats` - ADD PRIMARY KEY (`id`); - --- --- AUTO_INCREMENT cho các bảng đã đổ --- - --- --- AUTO_INCREMENT cho bảng `accountfriend` --- -ALTER TABLE `accountfriend` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `accountinventory` --- -ALTER TABLE `accountinventory` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; - --- --- AUTO_INCREMENT cho bảng `accountpolls` --- -ALTER TABLE `accountpolls` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `accountpunishments` --- -ALTER TABLE `accountpunishments` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `accountranks` --- -ALTER TABLE `accountranks` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `accounts` --- -ALTER TABLE `accounts` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `bonus` --- -ALTER TABLE `bonus` - MODIFY `accountId` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `communities` --- -ALTER TABLE `communities` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `items` --- -ALTER TABLE `items` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `polls` --- -ALTER TABLE `polls` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT cho bảng `stats` --- -ALTER TABLE `stats` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- Các ràng buộc cho các bảng đã đổ --- - --- --- Các ràng buộc cho bảng `accountcrowns` --- -ALTER TABLE `accountcrowns` - ADD CONSTRAINT `accountcrowns_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`); - --- --- Các ràng buộc cho bảng `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`); - --- --- Các ràng buộc cho bảng `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`); - --- --- Các ràng buộc cho bảng `bonus` --- -ALTER TABLE `bonus` - ADD CONSTRAINT `bonus_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 */; diff --git a/sql_dumps/account.sql b/sql_dumps/account.sql index b82bce65..ac4d2ff4 100644 --- a/sql_dumps/account.sql +++ b/sql_dumps/account.sql @@ -2,10 +2,10 @@ -- version 5.1.1 -- https://www.phpmyadmin.net/ -- --- Máy chủ: 127.0.0.1 --- Thời gian đã tạo: Th5 20, 2023 lúc 08:13 AM --- Phiên bản máy phục vụ: 10.4.22-MariaDB --- Phiên bản PHP: 7.4.27 +-- Host: 127.0.0.1 +-- Generation Time: May 20, 2023 at 05:51 PM +-- Server version: 10.4.22-MariaDB +-- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; @@ -18,13 +18,13 @@ SET time_zone = "+00:00"; /*!40101 SET NAMES utf8mb4 */; -- --- Cơ sở dữ liệu: `account` +-- Database: `account` -- -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountcrowns` +-- Table structure for table `accountcrowns` -- CREATE TABLE `accountcrowns` ( @@ -35,7 +35,7 @@ CREATE TABLE `accountcrowns` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountcustomdata` +-- Table structure for table `accountcustomdata` -- CREATE TABLE `accountcustomdata` ( @@ -47,7 +47,7 @@ CREATE TABLE `accountcustomdata` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountfavouritenano` +-- Table structure for table `accountfavouritenano` -- CREATE TABLE `accountfavouritenano` ( @@ -58,7 +58,7 @@ CREATE TABLE `accountfavouritenano` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountfriend` +-- Table structure for table `accountfriend` -- CREATE TABLE `accountfriend` ( @@ -72,7 +72,7 @@ CREATE TABLE `accountfriend` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountfrienddata` +-- Table structure for table `accountfrienddata` -- CREATE TABLE `accountfrienddata` ( @@ -84,7 +84,7 @@ CREATE TABLE `accountfrienddata` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountignore` +-- Table structure for table `accountignore` -- CREATE TABLE `accountignore` ( @@ -95,7 +95,7 @@ CREATE TABLE `accountignore` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountinventory` +-- Table structure for table `accountinventory` -- CREATE TABLE `accountinventory` ( @@ -108,7 +108,7 @@ CREATE TABLE `accountinventory` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountkits` +-- Table structure for table `accountkits` -- CREATE TABLE `accountkits` ( @@ -120,7 +120,7 @@ CREATE TABLE `accountkits` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountkitstats` +-- Table structure for table `accountkitstats` -- CREATE TABLE `accountkitstats` ( @@ -133,7 +133,7 @@ CREATE TABLE `accountkitstats` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountlevelreward` +-- Table structure for table `accountlevelreward` -- CREATE TABLE `accountlevelreward` ( @@ -144,7 +144,7 @@ CREATE TABLE `accountlevelreward` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountmissions` +-- Table structure for table `accountmissions` -- CREATE TABLE `accountmissions` ( @@ -158,24 +158,10 @@ CREATE TABLE `accountmissions` ( `complete` bit(1) NOT NULL DEFAULT b'0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; --- --- Đang đổ dữ liệu cho bảng `accountmissions` --- - -INSERT INTO `accountmissions` (`accountId`, `missionId`, `length`, `x`, `y`, `startTime`, `progress`, `complete`) VALUES -(1, 702, 0, 3, 0, 1684561811286, 0, b'0'), -(1, 606, 0, 6, 0, 1684561811286, 0, b'0'), -(1, 802, 0, 3, 0, 1684561811286, 0, b'0'), -(1, 1102, 0, 13, 0, 1684561811286, 0, b'0'), -(1, 903, 0, 27, 0, 1684561811286, 0, b'0'), -(1, 6, 1, 1, 0, 1684561811287, 0, b'0'), -(1, 1201, 1, 40, 0, 1684561811287, 0, b'0'), -(1, 500, 1, 50, 0, 1684561811287, 0, b'0'); - -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountpolls` +-- Table structure for table `accountpolls` -- CREATE TABLE `accountpolls` ( @@ -188,7 +174,7 @@ CREATE TABLE `accountpolls` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountpunishments` +-- Table structure for table `accountpunishments` -- CREATE TABLE `accountpunishments` ( @@ -205,7 +191,7 @@ CREATE TABLE `accountpunishments` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountranks` +-- Table structure for table `accountranks` -- CREATE TABLE `accountranks` ( @@ -218,7 +204,7 @@ CREATE TABLE `accountranks` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accounts` +-- Table structure for table `accounts` -- CREATE TABLE `accounts` ( @@ -234,7 +220,7 @@ CREATE TABLE `accounts` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountstatsalltime` +-- Table structure for table `accountstatsalltime` -- CREATE TABLE `accountstatsalltime` ( @@ -246,7 +232,7 @@ CREATE TABLE `accountstatsalltime` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accounttasks` +-- Table structure for table `accounttasks` -- CREATE TABLE `accounttasks` ( @@ -257,7 +243,7 @@ CREATE TABLE `accounttasks` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountthanktransactions` +-- Table structure for table `accountthanktransactions` -- CREATE TABLE `accountthanktransactions` ( @@ -274,7 +260,7 @@ CREATE TABLE `accountthanktransactions` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accounttitle` +-- Table structure for table `accounttitle` -- CREATE TABLE `accounttitle` ( @@ -285,7 +271,7 @@ CREATE TABLE `accounttitle` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `accountwinstreak` +-- Table structure for table `accountwinstreak` -- CREATE TABLE `accountwinstreak` ( @@ -297,7 +283,7 @@ CREATE TABLE `accountwinstreak` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `bonus` +-- Table structure for table `bonus` -- CREATE TABLE `bonus` ( @@ -317,7 +303,7 @@ CREATE TABLE `bonus` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `communities` +-- Table structure for table `communities` -- CREATE TABLE `communities` ( @@ -329,7 +315,7 @@ CREATE TABLE `communities` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `communityinvites` +-- Table structure for table `communityinvites` -- CREATE TABLE `communityinvites` ( @@ -340,7 +326,7 @@ CREATE TABLE `communityinvites` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `communityjoinrequests` +-- Table structure for table `communityjoinrequests` -- CREATE TABLE `communityjoinrequests` ( @@ -351,7 +337,7 @@ CREATE TABLE `communityjoinrequests` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `communitymembers` +-- Table structure for table `communitymembers` -- CREATE TABLE `communitymembers` ( @@ -364,7 +350,7 @@ CREATE TABLE `communitymembers` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `communitysettings` +-- Table structure for table `communitysettings` -- CREATE TABLE `communitysettings` ( @@ -376,7 +362,7 @@ CREATE TABLE `communitysettings` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `customdata` +-- Table structure for table `customdata` -- CREATE TABLE `customdata` ( @@ -387,7 +373,7 @@ CREATE TABLE `customdata` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `elorating` +-- Table structure for table `elorating` -- CREATE TABLE `elorating` ( @@ -399,7 +385,7 @@ CREATE TABLE `elorating` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `eternalgiveaway` +-- Table structure for table `eternalgiveaway` -- CREATE TABLE `eternalgiveaway` ( @@ -410,7 +396,7 @@ CREATE TABLE `eternalgiveaway` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `forumlink` +-- Table structure for table `forumlink` -- CREATE TABLE `forumlink` ( @@ -422,7 +408,7 @@ CREATE TABLE `forumlink` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `incognitostaff` +-- Table structure for table `incognitostaff` -- CREATE TABLE `incognitostaff` ( @@ -433,7 +419,7 @@ CREATE TABLE `incognitostaff` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `items` +-- Table structure for table `items` -- CREATE TABLE `items` ( @@ -445,7 +431,7 @@ CREATE TABLE `items` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `kitprogression` +-- Table structure for table `kitprogression` -- CREATE TABLE `kitprogression` ( @@ -459,7 +445,7 @@ CREATE TABLE `kitprogression` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `newnpcsnew` +-- Table structure for table `newnpcsnew` -- CREATE TABLE `newnpcsnew` ( @@ -487,7 +473,7 @@ CREATE TABLE `newnpcsnew` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `npcs` +-- Table structure for table `npcs` -- CREATE TABLE `npcs` ( @@ -517,7 +503,7 @@ CREATE TABLE `npcs` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `playermap` +-- Table structure for table `playermap` -- CREATE TABLE `playermap` ( @@ -528,7 +514,7 @@ CREATE TABLE `playermap` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `polls` +-- Table structure for table `polls` -- CREATE TABLE `polls` ( @@ -546,7 +532,7 @@ CREATE TABLE `polls` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `powerplayclaims` +-- Table structure for table `powerplayclaims` -- CREATE TABLE `powerplayclaims` ( @@ -558,7 +544,7 @@ CREATE TABLE `powerplayclaims` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `powerplaysubs` +-- Table structure for table `powerplaysubs` -- CREATE TABLE `powerplaysubs` ( @@ -570,7 +556,7 @@ CREATE TABLE `powerplaysubs` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `preferences` +-- Table structure for table `preferences` -- CREATE TABLE `preferences` ( @@ -582,7 +568,7 @@ CREATE TABLE `preferences` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `reporthandlers` +-- Table structure for table `reporthandlers` -- CREATE TABLE `reporthandlers` ( @@ -594,7 +580,7 @@ CREATE TABLE `reporthandlers` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `reportresults` +-- Table structure for table `reportresults` -- CREATE TABLE `reportresults` ( @@ -607,7 +593,7 @@ CREATE TABLE `reportresults` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `reports` +-- Table structure for table `reports` -- CREATE TABLE `reports` ( @@ -622,7 +608,7 @@ CREATE TABLE `reports` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `specificyoutube` +-- Table structure for table `specificyoutube` -- CREATE TABLE `specificyoutube` ( @@ -633,7 +619,7 @@ CREATE TABLE `specificyoutube` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `stats` +-- Table structure for table `stats` -- CREATE TABLE `stats` ( @@ -641,17 +627,10 @@ CREATE TABLE `stats` ( `name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; --- --- Đang đổ dữ liệu cho bảng `stats` --- - -INSERT INTO `stats` (`id`, `name`) VALUES -(1, 'Global.TimeInGame'); - -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `tasks` +-- Table structure for table `tasks` -- CREATE TABLE `tasks` ( @@ -662,7 +641,7 @@ CREATE TABLE `tasks` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `twofactor` +-- Table structure for table `twofactor` -- CREATE TABLE `twofactor` ( @@ -673,7 +652,7 @@ CREATE TABLE `twofactor` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `twofactor_history` +-- Table structure for table `twofactor_history` -- CREATE TABLE `twofactor_history` ( @@ -685,7 +664,7 @@ CREATE TABLE `twofactor_history` ( -- -------------------------------------------------------- -- --- Cấu trúc bảng cho bảng `youtube` +-- Table structure for table `youtube` -- CREATE TABLE `youtube` ( @@ -694,24 +673,24 @@ CREATE TABLE `youtube` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- --- Chỉ mục cho các bảng đã đổ +-- Indexes for dumped tables -- -- --- Chỉ mục cho bảng `accountcrowns` +-- Indexes for table `accountcrowns` -- ALTER TABLE `accountcrowns` ADD PRIMARY KEY (`accountId`); -- --- Chỉ mục cho bảng `accountfriend` +-- Indexes for table `accountfriend` -- ALTER TABLE `accountfriend` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `uuidIndex` (`uuidSource`,`uuidTarget`); -- --- Chỉ mục cho bảng `accountinventory` +-- Indexes for table `accountinventory` -- ALTER TABLE `accountinventory` ADD PRIMARY KEY (`id`), @@ -719,7 +698,7 @@ ALTER TABLE `accountinventory` ADD KEY `itemId` (`itemId`); -- --- Chỉ mục cho bảng `accountpolls` +-- Indexes for table `accountpolls` -- ALTER TABLE `accountpolls` ADD PRIMARY KEY (`id`), @@ -727,13 +706,13 @@ ALTER TABLE `accountpolls` ADD KEY `pollId` (`pollId`); -- --- Chỉ mục cho bảng `accountpunishments` +-- Indexes for table `accountpunishments` -- ALTER TABLE `accountpunishments` ADD PRIMARY KEY (`id`); -- --- Chỉ mục cho bảng `accountranks` +-- Indexes for table `accountranks` -- ALTER TABLE `accountranks` ADD PRIMARY KEY (`id`), @@ -742,7 +721,7 @@ ALTER TABLE `accountranks` ADD KEY `rankIndex` (`rankIdentifier`); -- --- Chỉ mục cho bảng `accounts` +-- Indexes for table `accounts` -- ALTER TABLE `accounts` ADD PRIMARY KEY (`id`), @@ -750,156 +729,156 @@ ALTER TABLE `accounts` ADD UNIQUE KEY `nameIndex` (`name`); -- --- Chỉ mục cho bảng `bonus` +-- Indexes for table `bonus` -- ALTER TABLE `bonus` ADD PRIMARY KEY (`accountId`); -- --- Chỉ mục cho bảng `communities` +-- Indexes for table `communities` -- ALTER TABLE `communities` ADD PRIMARY KEY (`id`); -- --- Chỉ mục cho bảng `forumlink` +-- Indexes for table `forumlink` -- ALTER TABLE `forumlink` ADD PRIMARY KEY (`accountId`); -- --- Chỉ mục cho bảng `incognitostaff` +-- Indexes for table `incognitostaff` -- ALTER TABLE `incognitostaff` ADD PRIMARY KEY (`accountId`); -- --- Chỉ mục cho bảng `items` +-- Indexes for table `items` -- ALTER TABLE `items` ADD PRIMARY KEY (`id`), ADD KEY `mameIndex` (`name`); -- --- Chỉ mục cho bảng `polls` +-- Indexes for table `polls` -- ALTER TABLE `polls` ADD PRIMARY KEY (`id`); -- --- Chỉ mục cho bảng `reports` +-- Indexes for table `reports` -- ALTER TABLE `reports` ADD PRIMARY KEY (`id`); -- --- Chỉ mục cho bảng `stats` +-- Indexes for table `stats` -- ALTER TABLE `stats` ADD PRIMARY KEY (`id`); -- --- AUTO_INCREMENT cho các bảng đã đổ +-- AUTO_INCREMENT for dumped tables -- -- --- AUTO_INCREMENT cho bảng `accountfriend` +-- AUTO_INCREMENT for table `accountfriend` -- ALTER TABLE `accountfriend` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `accountinventory` +-- AUTO_INCREMENT for table `accountinventory` -- ALTER TABLE `accountinventory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT cho bảng `accountpolls` +-- AUTO_INCREMENT for table `accountpolls` -- ALTER TABLE `accountpolls` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `accountpunishments` +-- AUTO_INCREMENT for table `accountpunishments` -- ALTER TABLE `accountpunishments` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `accountranks` +-- AUTO_INCREMENT for table `accountranks` -- ALTER TABLE `accountranks` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `accounts` +-- AUTO_INCREMENT for table `accounts` -- ALTER TABLE `accounts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `bonus` +-- AUTO_INCREMENT for table `bonus` -- ALTER TABLE `bonus` MODIFY `accountId` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `communities` +-- AUTO_INCREMENT for table `communities` -- ALTER TABLE `communities` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `items` +-- AUTO_INCREMENT for table `items` -- ALTER TABLE `items` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `polls` +-- AUTO_INCREMENT for table `polls` -- ALTER TABLE `polls` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `reports` +-- AUTO_INCREMENT for table `reports` -- ALTER TABLE `reports` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT cho bảng `stats` +-- AUTO_INCREMENT for table `stats` -- ALTER TABLE `stats` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- Các ràng buộc cho các bảng đã đổ +-- Constraints for dumped tables -- -- --- Các ràng buộc cho bảng `accountcrowns` +-- Constraints for table `accountcrowns` -- ALTER TABLE `accountcrowns` ADD CONSTRAINT `accountcrowns_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`); -- --- Các ràng buộc cho bảng `accountinventory` +-- 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`); -- --- Các ràng buộc cho bảng `accountpolls` +-- 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`); -- --- Các ràng buộc cho bảng `bonus` +-- Constraints for table `bonus` -- ALTER TABLE `bonus` ADD CONSTRAINT `bonus_ibfk_1` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`); @@ -907,4 +886,4 @@ 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 */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file