new db for catalog

This commit is contained in:
nolanwhy 2023-02-05 10:11:03 +01:00
parent 9b1bd1ff83
commit 480c4b2931
1 changed files with 34 additions and 3 deletions

View File

@ -1,10 +1,11 @@
-- nolanwhy
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 04, 2023 at 10:58 PM
-- Generation Time: Feb 05, 2023 at 10:10 AM
-- Server version: 10.4.27-MariaDB
-- PHP Version: 8.0.25
@ -18,6 +19,23 @@ SET time_zone = "+00:00";
-- --------------------------------------------------------
--
-- 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,
`thumbnail` mediumtext NOT NULL,
`date` datetime NOT NULL DEFAULT current_timestamp(),
`lastupdated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `games`
--
@ -28,7 +46,8 @@ CREATE TABLE `games` (
`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()
`updateddate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`thumbnail` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
@ -51,6 +70,12 @@ CREATE TABLE `users` (
-- Indexes for dumped tables
--
--
-- Indexes for table `catalog`
--
ALTER TABLE `catalog`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `games`
--
@ -67,6 +92,12 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `catalog`
--
ALTER TABLE `catalog`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `games`
--
@ -78,4 +109,4 @@ ALTER TABLE `games`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;
COMMIT;