Update grublox.sql
This commit is contained in:
parent
898114647c
commit
912d88adb5
58
grublox.sql
58
grublox.sql
|
|
@ -2,10 +2,10 @@
|
||||||
-- version 5.2.0
|
-- version 5.2.0
|
||||||
-- https://www.phpmyadmin.net/
|
-- https://www.phpmyadmin.net/
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- Host: 127.0.0.1
|
||||||
-- Generation Time: Feb 18, 2023 at 03:40 PM
|
-- Generation Time: Feb 26, 2023 at 11:13 PM
|
||||||
-- Server version: 10.4.21-MariaDB-log
|
-- Server version: 10.4.25-MariaDB
|
||||||
-- PHP Version: 8.0.27
|
-- PHP Version: 8.1.10
|
||||||
|
|
||||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
|
|
@ -20,8 +20,19 @@ SET time_zone = "+00:00";
|
||||||
--
|
--
|
||||||
-- Database: `grublox`
|
-- Database: `grublox`
|
||||||
--
|
--
|
||||||
CREATE DATABASE IF NOT EXISTS `grublox` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
|
||||||
USE `grublox`;
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `accesstokens`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `accesstokens` (
|
||||||
|
`id` int(11) NOT NULL,
|
||||||
|
`ip` int(50) NOT NULL,
|
||||||
|
`accesstoken` varchar(500) NOT NULL,
|
||||||
|
`placeid` int(11) NOT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -29,7 +40,6 @@ USE `grublox`;
|
||||||
-- Table structure for table `catalog`
|
-- Table structure for table `catalog`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `catalog`;
|
|
||||||
CREATE TABLE `catalog` (
|
CREATE TABLE `catalog` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`name` varchar(50) NOT NULL,
|
`name` varchar(50) NOT NULL,
|
||||||
|
|
@ -52,7 +62,6 @@ CREATE TABLE `catalog` (
|
||||||
-- Table structure for table `comments`
|
-- Table structure for table `comments`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `comments`;
|
|
||||||
CREATE TABLE `comments` (
|
CREATE TABLE `comments` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`user` int(11) NOT NULL,
|
`user` int(11) NOT NULL,
|
||||||
|
|
@ -66,7 +75,6 @@ CREATE TABLE `comments` (
|
||||||
-- Table structure for table `friendships`
|
-- Table structure for table `friendships`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `friendships`;
|
|
||||||
CREATE TABLE `friendships` (
|
CREATE TABLE `friendships` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`user1` int(11) NOT NULL,
|
`user1` int(11) NOT NULL,
|
||||||
|
|
@ -81,33 +89,39 @@ CREATE TABLE `friendships` (
|
||||||
-- Table structure for table `games`
|
-- Table structure for table `games`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `games`;
|
|
||||||
CREATE TABLE `games` (
|
CREATE TABLE `games` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`name` varchar(50) NOT NULL,
|
`name` varchar(50) NOT NULL,
|
||||||
`description` varchar(255) NOT NULL,
|
`description` varchar(255) NOT NULL,
|
||||||
`creator` int(11) NOT NULL,
|
`creator` int(11) NOT NULL,
|
||||||
`players` int(2) 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,
|
`state` varchar(50) NOT NULL,
|
||||||
`date` datetime NOT NULL DEFAULT current_timestamp(),
|
`date` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
`updateddate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
`updateddate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||||
`thumbnail` mediumtext NOT NULL DEFAULT '/assets/placeholder2.png'
|
`thumbnail` mediumtext NOT NULL DEFAULT '/assets/placeholder2.png'
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `games`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `games` (`id`, `name`, `description`, `creator`, `players`, `state`, `date`, `updateddate`, `thumbnail`) VALUES
|
||||||
|
(1818, 'Crossroads', 'The Classic ROBLOX Level is back!', 1, 100, 'D.C.', '2023-02-26 22:28:59', '2023-02-26 22:28:59', '/assets/placeholder2.png');
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `jobs`
|
-- Table structure for table `jobs`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `jobs`;
|
|
||||||
CREATE TABLE `jobs` (
|
CREATE TABLE `jobs` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`jobid` varchar(50) NOT NULL,
|
`jobid` varchar(50) NOT NULL,
|
||||||
|
`ip` int(50) NOT NULL,
|
||||||
`placeid` int(11) NOT NULL,
|
`placeid` int(11) NOT NULL,
|
||||||
`port` int(11) NOT NULL,
|
`port` int(11) NOT NULL,
|
||||||
`name` varchar(50) NOT NULL
|
`name` varchar(50) NOT NULL,
|
||||||
|
`isonline` int(11) NOT NULL DEFAULT 1
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
@ -116,7 +130,6 @@ CREATE TABLE `jobs` (
|
||||||
-- Table structure for table `owned`
|
-- Table structure for table `owned`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `owned`;
|
|
||||||
CREATE TABLE `owned` (
|
CREATE TABLE `owned` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`user` int(11) NOT NULL,
|
`user` int(11) NOT NULL,
|
||||||
|
|
@ -130,7 +143,6 @@ CREATE TABLE `owned` (
|
||||||
-- Table structure for table `tokens`
|
-- Table structure for table `tokens`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `tokens`;
|
|
||||||
CREATE TABLE `tokens` (
|
CREATE TABLE `tokens` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`token` varchar(500) NOT NULL,
|
`token` varchar(500) NOT NULL,
|
||||||
|
|
@ -146,13 +158,11 @@ CREATE TABLE `tokens` (
|
||||||
-- Table structure for table `users`
|
-- Table structure for table `users`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `users`;
|
|
||||||
CREATE TABLE `users` (
|
CREATE TABLE `users` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`username` varchar(20) NOT NULL,
|
`username` varchar(20) NOT NULL,
|
||||||
`password` varchar(450) NOT NULL,
|
`password` varchar(450) NOT NULL,
|
||||||
`date` datetime NOT NULL DEFAULT current_timestamp(),
|
`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,
|
`description` varchar(250) DEFAULT NULL,
|
||||||
`money` int(11) NOT NULL DEFAULT 10,
|
`money` int(11) NOT NULL DEFAULT 10,
|
||||||
`lastPaid` varchar(30) DEFAULT current_timestamp(),
|
`lastPaid` varchar(30) DEFAULT current_timestamp(),
|
||||||
|
|
@ -163,6 +173,12 @@ CREATE TABLE `users` (
|
||||||
-- Indexes for dumped tables
|
-- Indexes for dumped tables
|
||||||
--
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indexes for table `accesstokens`
|
||||||
|
--
|
||||||
|
ALTER TABLE `accesstokens`
|
||||||
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for table `catalog`
|
-- Indexes for table `catalog`
|
||||||
--
|
--
|
||||||
|
|
@ -215,6 +231,12 @@ ALTER TABLE `users`
|
||||||
-- AUTO_INCREMENT for dumped tables
|
-- 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 `catalog`
|
-- AUTO_INCREMENT for table `catalog`
|
||||||
--
|
--
|
||||||
|
|
@ -237,7 +259,7 @@ ALTER TABLE `friendships`
|
||||||
-- AUTO_INCREMENT for table `games`
|
-- AUTO_INCREMENT for table `games`
|
||||||
--
|
--
|
||||||
ALTER TABLE `games`
|
ALTER TABLE `games`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1819;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `jobs`
|
-- AUTO_INCREMENT for table `jobs`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue