From 66d48c15530b46fa22e3afeacd3c0801dc7a4bf8 Mon Sep 17 00:00:00 2001 From: ui0ppk Date: Sun, 12 Feb 2023 22:54:57 +0200 Subject: [PATCH] true --- grublox.sql | 59 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/grublox.sql b/grublox.sql index 736e7d1..4c7f279 100644 --- a/grublox.sql +++ b/grublox.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: localhost --- Generation Time: Feb 12, 2023 at 10:52 AM +-- Generation Time: Feb 12, 2023 at 08:53 PM -- Server version: 10.4.21-MariaDB-log -- PHP Version: 8.0.27 @@ -39,9 +39,18 @@ CREATE TABLE `catalog` ( `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 + `stock` int(11) NOT NULL DEFAULT 0, + `state` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +-- +-- Dumping data for table `catalog` +-- + +INSERT 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'); + -- -------------------------------------------------------- -- @@ -57,6 +66,26 @@ CREATE TABLE `comments` ( -- -------------------------------------------------------- +-- +-- Table structure for table `friends` +-- + +CREATE TABLE `friends` ( + `id` int(11) NOT NULL, + `user` int(11) NOT NULL, + `state` varchar(50) NOT NULL DEFAULT 'pending', + `friend` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `friends` +-- + +INSERT INTO `friends` (`id`, `user`, `state`, `friend`) VALUES +(1, 1, 'approved', 1); + +-- -------------------------------------------------------- + -- -- Table structure for table `games` -- @@ -67,6 +96,7 @@ CREATE TABLE `games` ( `description` varchar(255) NOT NULL, `creator` int(11) 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 @@ -86,10 +116,17 @@ CREATE TABLE `users` ( `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` timestamp NULL DEFAULT NULL, + `lastPaid` varchar(30) DEFAULT current_timestamp(), `admin` int(1) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +-- +-- Dumping data for table `users` +-- + +INSERT INTO `users` (`id`, `username`, `password`, `date`, `token`, `description`, `money`, `lastPaid`, `admin`) VALUES +(1, 'qzip', '$2y$10$AS751CiLVhlbLKo.T9CSVuc81sk8OxC2aWCJzhXac/m8m.J3.pezi', '2023-02-05 18:52:48', NULL, NULL, 2460, '1676646382', 1); + -- -- Indexes for dumped tables -- @@ -106,6 +143,12 @@ ALTER TABLE `catalog` ALTER TABLE `comments` ADD PRIMARY KEY (`id`); +-- +-- Indexes for table `friends` +-- +ALTER TABLE `friends` + ADD PRIMARY KEY (`id`); + -- -- Indexes for table `games` -- @@ -126,7 +169,7 @@ ALTER TABLE `users` -- AUTO_INCREMENT for table `catalog` -- ALTER TABLE `catalog` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `comments` @@ -134,6 +177,12 @@ ALTER TABLE `catalog` 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` -- @@ -144,7 +193,7 @@ ALTER TABLE `games` -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;