true
This commit is contained in:
parent
1ec64cf1c9
commit
66d48c1553
59
grublox.sql
59
grublox.sql
|
|
@ -3,7 +3,7 @@
|
||||||
-- https://www.phpmyadmin.net/
|
-- https://www.phpmyadmin.net/
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- 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
|
-- Server version: 10.4.21-MariaDB-log
|
||||||
-- PHP Version: 8.0.27
|
-- PHP Version: 8.0.27
|
||||||
|
|
||||||
|
|
@ -39,9 +39,18 @@ CREATE TABLE `catalog` (
|
||||||
`date` datetime NOT NULL DEFAULT current_timestamp(),
|
`date` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
`lastupdated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
`lastupdated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||||
`limited` int(1) DEFAULT 0,
|
`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;
|
) 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`
|
-- Table structure for table `games`
|
||||||
--
|
--
|
||||||
|
|
@ -67,6 +96,7 @@ CREATE TABLE `games` (
|
||||||
`description` varchar(255) NOT NULL,
|
`description` varchar(255) NOT NULL,
|
||||||
`creator` int(11) NOT NULL,
|
`creator` int(11) NOT NULL,
|
||||||
`accessKey` varchar(250) NOT NULL COMMENT 'NEVER SHARE THIS WITH ANYONE! ONLY RCC.',
|
`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(),
|
`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
|
`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.',
|
`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` timestamp NULL DEFAULT NULL,
|
`lastPaid` varchar(30) DEFAULT current_timestamp(),
|
||||||
`admin` int(1) NOT NULL DEFAULT 0
|
`admin` int(1) NOT NULL DEFAULT 0
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) 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
|
-- Indexes for dumped tables
|
||||||
--
|
--
|
||||||
|
|
@ -106,6 +143,12 @@ ALTER TABLE `catalog`
|
||||||
ALTER TABLE `comments`
|
ALTER TABLE `comments`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indexes for table `friends`
|
||||||
|
--
|
||||||
|
ALTER TABLE `friends`
|
||||||
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for table `games`
|
-- Indexes for table `games`
|
||||||
--
|
--
|
||||||
|
|
@ -126,7 +169,7 @@ ALTER TABLE `users`
|
||||||
-- AUTO_INCREMENT for table `catalog`
|
-- AUTO_INCREMENT for table `catalog`
|
||||||
--
|
--
|
||||||
ALTER 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`
|
-- AUTO_INCREMENT for table `comments`
|
||||||
|
|
@ -134,6 +177,12 @@ ALTER TABLE `catalog`
|
||||||
ALTER TABLE `comments`
|
ALTER TABLE `comments`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
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`
|
-- AUTO_INCREMENT for table `games`
|
||||||
--
|
--
|
||||||
|
|
@ -144,7 +193,7 @@ ALTER TABLE `games`
|
||||||
-- 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=2;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue