This commit is contained in:
ui0ppk 2023-02-16 11:29:09 +02:00
parent fee771db7d
commit 0bcab091c7
1 changed files with 36 additions and 148 deletions

View File

@ -2,10 +2,10 @@
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 13, 2023 at 08:22 PM
-- Server version: 10.4.25-MariaDB
-- PHP Version: 8.1.10
-- Host: localhost
-- Generation Time: Feb 16, 2023 at 09:28 AM
-- Server version: 10.4.21-MariaDB-log
-- PHP Version: 8.0.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
@ -20,6 +20,8 @@ SET time_zone = "+00:00";
--
-- Database: `grublox`
--
CREATE DATABASE IF NOT EXISTS `grublox` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `grublox`;
-- --------------------------------------------------------
@ -27,8 +29,8 @@ SET time_zone = "+00:00";
-- Table structure for table `catalog`
--
CREATE TABLE IF NOT EXISTS `catalog` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `catalog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`description` varchar(255) NOT NULL,
`creator` int(11) NOT NULL,
@ -40,28 +42,22 @@ CREATE TABLE IF NOT EXISTS `catalog` (
`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
`state` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `catalog`
--
REPLACE INTO `catalog` (`id`, `name`, `description`, `creator`, `price`, `type`, `sales`, `thumbnail`, `date`, `lastupdated`, `limited`, `stock`, `state`) VALUES
(11, 'qzip', 'qzip for sale im bein sold psl help', 1, 1, 'hats', 2, 'https://qzip.lol/assets/img/qzip.png', '2023-02-12 13:25:34', '2023-02-12 13:25:34', 0, 0, 'approved'),
(12, 'gzip', 'osdfdssdjs', 1, 1, 'pants', 2231, 'https://cdn-icons-png.flaticon.com/512/29/29505.png', '2023-02-12 13:25:34', '2023-02-12 13:25:34', 1, 0, 'approved');
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`type` varchar(250) NOT NULL,
`text` varchar(500) NOT NULL
`text` varchar(500) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
@ -70,58 +66,47 @@ CREATE TABLE IF NOT EXISTS `comments` (
-- Table structure for table `friends`
--
CREATE TABLE IF NOT EXISTS `friends` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `friends` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`state` varchar(50) NOT NULL DEFAULT 'pending',
`friend` int(11) NOT NULL
`friend` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `friends`
--
REPLACE INTO `friends` (`id`, `user`, `state`, `friend`) VALUES
(1, 1, 'approved', 1);
-- --------------------------------------------------------
--
-- Table structure for table `games`
--
CREATE TABLE IF NOT EXISTS `games` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `games` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`description` varchar(255) NOT NULL,
`creator` int(11) NOT NULL,
`players` int(2) NOT NULL,
`accessKey` varchar(250) NOT NULL COMMENT 'NEVER SHARE THIS WITH ANYONE! ONLY RCC.',
`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
`thumbnail` mediumtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `games`
--
REPLACE INTO `games` (`id`, `name`, `description`, `creator`, `accessKey`, `state`, `date`, `updateddate`, `thumbnail`) VALUES
(1818, 'Crossroads', 'The classic ROBLOX level is back!', 1, '69', '', '2023-02-13 10:38:28', '2023-02-13 10:38:28', '');
-- --------------------------------------------------------
--
-- Table structure for table `jobs`
--
CREATE TABLE IF NOT EXISTS `jobs` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `jobs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`jobid` varchar(50) NOT NULL,
`placeid` int(11) NOT NULL,
`port` int(11) NOT NULL,
`ip` varchar(50) NOT NULL,
`isonline` int(11) NOT NULL DEFAULT 1
`name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
@ -130,13 +115,14 @@ CREATE TABLE IF NOT EXISTS `jobs` (
-- Table structure for table `tokens`
--
CREATE TABLE IF NOT EXISTS `tokens` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `tokens` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`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
`passedjoinscript` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
@ -145,116 +131,18 @@ CREATE TABLE IF NOT EXISTS `tokens` (
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL,
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`password` varchar(450) NOT NULL,
`date` datetime NOT NULL DEFAULT current_timestamp(),
`token` varchar(25) DEFAULT NULL COMMENT 'Token for joining. Useful to secure joining to prevent unauthorized users to use other names.',
`description` varchar(250) DEFAULT NULL,
`money` int(11) NOT NULL DEFAULT 10,
`lastPaid` varchar(30) DEFAULT current_timestamp(),
`admin` int(1) NOT NULL DEFAULT 0
`admin` int(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
REPLACE INTO `users` (`id`, `username`, `password`, `date`, `description`, `money`, `lastPaid`, `admin`) VALUES
(1, 'qzip', '$2y$10$AS751CiLVhlbLKo.T9CSVuc81sk8OxC2aWCJzhXac/m8m.J3.pezi', '2023-02-05 18:52:48', NULL, 2460, '1676646382', 1),
(2, 'Mario', '$2y$10$JP1R1NHQtObxxpUH86/LuO8uSi6T.4SoTlk2TGFIpuyAFYkZMgQpu', '2023-02-13 10:15:34', NULL, 35, '1676276134', 0);
--
-- Indexes for dumped tables
--
--
-- 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 `friends`
--
ALTER TABLE `friends`
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 `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 `catalog`
--
ALTER TABLE `catalog`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `friends`
--
ALTER TABLE `friends`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- 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 `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=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;