-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2023 at 02:45 PM -- Server version: 10.4.27-MariaDB -- PHP Version: 8.2.0 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: `grublox` -- -- -------------------------------------------------------- -- -- Table structure for table `accesstokens` -- CREATE TABLE `accesstokens` ( `id` int(11) NOT NULL, `ip` varchar(50) NOT NULL, `accesstoken` varchar(500) NOT NULL, `placeid` int(11) NOT NULL, `hasgrabbedplace` int(11) NOT NULL DEFAULT 0, `hasbeeninvalidated` int(11) NOT NULL DEFAULT 0, `jobid` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `assets` -- CREATE TABLE `assets` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `isplace` int(11) NOT NULL DEFAULT 0, `placeid` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `bans` -- CREATE TABLE `bans` ( `id` int(11) NOT NULL, `user` int(11) NOT NULL, `moderator` int(11) NOT NULL, `type` int(11) NOT NULL, `reason` varchar(250) NOT NULL, `note` varchar(500) NOT NULL, `viewed` int(11) NOT NULL, `time` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `catalog` -- CREATE TABLE `catalog` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `description` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `price` int(11) NOT NULL, `type` varchar(100) DEFAULT 'hats', `sales` int(11) NOT NULL DEFAULT 0, `thumbnail` mediumtext NOT NULL, `date` datetime NOT NULL DEFAULT current_timestamp(), `lastupdated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `limited` int(1) DEFAULT 0, `stock` int(11) NOT NULL DEFAULT 0, `state` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE `comments` ( `id` int(11) NOT NULL, `user` int(11) NOT NULL, `type` varchar(250) NOT NULL, `text` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `friendships` -- CREATE TABLE `friendships` ( `id` int(11) NOT NULL, `user1` int(11) NOT NULL, `user2` int(11) NOT NULL, `isAccepted` int(11) NOT NULL DEFAULT 0, `date` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `games` -- CREATE TABLE `games` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `description` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `players` int(2) NOT NULL, `state` varchar(50) NOT NULL, `date` datetime NOT NULL DEFAULT current_timestamp(), `updateddate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `thumbnail` mediumtext NOT NULL DEFAULT '/assets/placeholder2.png', `playercount` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `games` -- INSERT INTO `games` (`id`, `name`, `description`, `creator`, `players`, `state`, `date`, `updateddate`, `thumbnail`, `playercount`) VALUES (1818, 'Crossroads', 'The classic ROBLOX level is back!', 1, 0, '', '2023-02-27 21:44:29', '2023-06-04 15:39:25', '/assets/placeholder2.png', 250); -- -------------------------------------------------------- -- -- Table structure for table `jobs` -- CREATE TABLE `jobs` ( `id` int(11) NOT NULL, `jobid` varchar(50) NOT NULL, `placeid` int(11) NOT NULL, `port` int(11) NOT NULL, `ip` varchar(50) NOT NULL, `hasended` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `owned` -- CREATE TABLE `owned` ( `id` int(11) NOT NULL, `user` int(11) NOT NULL, `item` int(11) NOT NULL, `date` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `tokens` -- CREATE TABLE `tokens` ( `id` int(11) NOT NULL, `token` varchar(500) NOT NULL, `placeid` int(11) NOT NULL, `userid` int(11) NOT NULL, `passedplacelauncher` int(11) NOT NULL DEFAULT 0, `passedjoinscript` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(450) NOT NULL, `date` datetime NOT NULL DEFAULT current_timestamp(), `description` varchar(250) DEFAULT 'Hello, I''m new to GRUBLOX!', `status` varchar(50) NOT NULL DEFAULT 'Status!', `money` int(11) NOT NULL DEFAULT 10, `lastPaid` varchar(30) DEFAULT current_timestamp(), `admin` int(1) NOT NULL DEFAULT 0, `ip` varchar(512) NOT NULL COMMENT 'ip, but hashed..', `thumbnail` mediumtext NOT NULL, `headshot` mediumtext NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`, `date`, `description`, `status`, `money`, `lastPaid`, `admin`, `ip`, `thumbnail`, `headshot`) VALUES (1, 'Administrator', '$2y$10$fcG4VepUNZgspPjRrlI6y.Gg09.nwEZ5JF.SuFsax3KHBo90JywmO', '2023-05-06 09:41:58', 'Hello, I\'m new to GRUBLOX!', 'Status!', 35, '1683358919', 0, '', '', ''); -- -- Indexes for dumped tables -- -- -- Indexes for table `accesstokens` -- ALTER TABLE `accesstokens` ADD PRIMARY KEY (`id`); -- -- Indexes for table `assets` -- ALTER TABLE `assets` ADD PRIMARY KEY (`id`); -- -- Indexes for table `bans` -- ALTER TABLE `bans` ADD PRIMARY KEY (`id`); -- -- Indexes for table `catalog` -- ALTER TABLE `catalog` ADD PRIMARY KEY (`id`); -- -- Indexes for table `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`id`); -- -- Indexes for table `friendships` -- ALTER TABLE `friendships` ADD PRIMARY KEY (`id`); -- -- Indexes for table `games` -- ALTER TABLE `games` ADD PRIMARY KEY (`id`); -- -- Indexes for table `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `owned` -- ALTER TABLE `owned` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tokens` -- ALTER TABLE `tokens` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `accesstokens` -- ALTER TABLE `accesstokens` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `assets` -- ALTER TABLE `assets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `bans` -- ALTER TABLE `bans` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `catalog` -- ALTER TABLE `catalog` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `comments` -- ALTER TABLE `comments` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `friendships` -- ALTER TABLE `friendships` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `games` -- ALTER TABLE `games` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1819; -- -- AUTO_INCREMENT for table `jobs` -- ALTER TABLE `jobs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `owned` -- ALTER TABLE `owned` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tokens` -- ALTER TABLE `tokens` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 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 */;