Update grublox.sql

This commit is contained in:
nolanwhy 2023-02-04 22:59:15 +01:00
parent f351e92704
commit 5d6ec8d9a1
1 changed files with 35 additions and 17 deletions

View File

@ -1,28 +1,38 @@
-- nolanwhy
-- phpMyAdmin SQL Dump -- phpMyAdmin SQL Dump
-- version 5.2.0 -- version 5.2.0
-- https://www.phpmyadmin.net/ -- https://www.phpmyadmin.net/
-- --
-- Host: 127.0.0.1 -- Host: 127.0.0.1
-- Generation Time: Jan 24, 2023 at 08:45 PM -- Generation Time: Feb 04, 2023 at 10:58 PM
-- Server version: 10.4.24-MariaDB -- Server version: 10.4.27-MariaDB
-- PHP Version: 7.4.29 -- PHP Version: 8.0.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION; START TRANSACTION;
SET time_zone = "+00:00"; 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` -- Database: `grublox`
-- --
-- -------------------------------------------------------- -- --------------------------------------------------------
--
-- 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,
`date` datetime NOT NULL DEFAULT current_timestamp(),
`updateddate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
-- --
-- Table structure for table `users` -- Table structure for table `users`
-- --
@ -30,17 +40,23 @@ SET time_zone = "+00:00";
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(500) 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.', `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 0 `money` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --
-- Indexes for dumped tables -- Indexes for dumped tables
-- --
--
-- Indexes for table `games`
--
ALTER TABLE `games`
ADD PRIMARY KEY (`id`);
-- --
-- Indexes for table `users` -- Indexes for table `users`
-- --
@ -51,13 +67,15 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for dumped tables -- AUTO_INCREMENT for dumped tables
-- --
--
-- AUTO_INCREMENT for table `games`
--
ALTER TABLE `games`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
-- --
-- AUTO_INCREMENT for table `users` -- AUTO_INCREMENT for table `users`
-- --
ALTER TABLE `users` ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT; 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 */;