Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CakeStore/cakestore.sql
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
146 lines (120 sloc)
5.5 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 5.1.0 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Apr 28, 2021 at 10:52 AM | |
-- Server version: 10.4.18-MariaDB | |
-- PHP Version: 7.3.20 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
START TRANSACTION; | |
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: `cakestore` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `orders` | |
-- | |
CREATE TABLE `orders` ( | |
`order_id` varchar(10) NOT NULL, | |
`customer_id` varchar(10) NOT NULL, | |
`product_id` varchar(10) NOT NULL, | |
`quantity` int(11) NOT NULL, | |
`status` varchar(50) NOT NULL, | |
`date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
-- | |
-- Dumping data for table `orders` | |
-- | |
INSERT INTO `orders` (`order_id`, `customer_id`, `product_id`, `quantity`, `status`, `date`) VALUES | |
('xbkqNqGLxT', 'ahEACMM46j', 'd9nzw5WLrL', 1, 'Shipped', '2021-04-28 08:07:13'), | |
('xbkqNqGLxT', 'ahEACMM46j', 'PLHqlibhVl', 1, 'Shipped', '2021-04-28 08:07:13'), | |
('xbkqNqGLxT', 'ahEACMM46j', 'PZv4vhEapU', 1, 'Shipped', '2021-04-28 08:07:13'), | |
('xbkqNqGLxT', 'ahEACMM46j', 'oraMbf9H51', 1, 'Shipped', '2021-04-28 08:07:13'), | |
('4NESFozyPA', 'ahEACMM46j', 'd9nzw5WLrL', 2, 'Shipped', '2021-04-28 08:07:35'), | |
('4NESFozyPA', 'ahEACMM46j', 'PLHqlibhVl', 2, 'Shipped', '2021-04-28 08:07:35'), | |
('4NESFozyPA', 'ahEACMM46j', 'GVSLcD23FG', 4, 'Shipped', '2021-04-28 08:07:35'), | |
('4NESFozyPA', 'ahEACMM46j', 'oraMbf9H51', 5, 'Shipped', '2021-04-28 08:07:35'), | |
('65UvPV1cBd', 'ahEACMM46j', 'GVSLcD23FG', 1, 'Pending', '2021-04-28 08:06:29'), | |
('65UvPV1cBd', 'ahEACMM46j', 'd9nzw5WLrL', 1, 'Pending', '2021-04-28 08:06:29'), | |
('65UvPV1cBd', 'ahEACMM46j', 'oraMbf9H51', 1, 'Pending', '2021-04-28 08:06:29'); | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `products` | |
-- | |
CREATE TABLE `products` ( | |
`id` int(11) NOT NULL, | |
`product_name` varchar(200) NOT NULL, | |
`product_id` varchar(10) NOT NULL, | |
`category` varchar(300) NOT NULL, | |
`quantity` int(11) NOT NULL, | |
`price` int(11) NOT NULL, | |
`description` varchar(1000) NOT NULL, | |
`image_url` varchar(50) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
-- | |
-- Dumping data for table `products` | |
-- | |
INSERT INTO `products` (`id`, `product_name`, `product_id`, `category`, `quantity`, `price`, `description`, `image_url`) VALUES | |
(57, 'Biscoff ', 'd9nzw5WLrL', 'Cake', 96, 45, 'Biscoff is a famous flavor and because of a tremendous interest we have chosen to add this excellent Biscoff cake to our reach. Finished off with Lotus bread rolls and bread rolls inside the margarine cream this is the ideal cake for anybody that loves Biscoff!', 'cM51AyBZyN'), | |
(58, 'Puff Pastry', 'PLHqlibhVl', 'Pastry', 37, 20, 'Home made Puff Pastry, delicious ', 'c5Tnw8Yznc'), | |
(59, 'Pink berry Puff Pastry', 'GVSLcD23FG', 'Pastry', 41, 29, 'Home made Puff Pastry, delicious', 'RcaqFpVAwk'), | |
(61, 'RED VELVET SPONGE CAKE', 'PZv4vhEapU', 'Cake', 33, 30, 'A delicate 6\" red velvet wipe cake with three layers of vanilla buttercream filling and an entirely smooth vanilla buttercream outside, showered with eatable sprinkles, brilliant vanilla buttercream whirls and dull chocolate catches on top, hand-painted in gold', 'gOx2hAnE57'), | |
(62, 'SPONGE CAKE', 'oraMbf9H51', 'Cake', 38, 38, 'A delicate 6\" red velvet wipe cake with three layers of vanilla buttercream filling and an entirely smooth vanilla buttercream outside, showered with eatable sprinkles, brilliant vanilla buttercream whirls and dull chocolate catches on top, hand-painted in gold', 'AcmeWYRO4B'); | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `users` | |
-- | |
CREATE TABLE `users` ( | |
`id` int(11) NOT NULL, | |
`customer_id` varchar(10) NOT NULL, | |
`role` varchar(15) NOT NULL, | |
`username` varchar(50) NOT NULL, | |
`password` varchar(300) NOT NULL, | |
`phone_number` varchar(11) NOT NULL, | |
`address` varchar(300) NOT NULL, | |
`date_created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
-- | |
-- Dumping data for table `users` | |
-- | |
INSERT INTO `users` (`id`, `customer_id`, `role`, `username`, `password`, `phone_number`, `address`, `date_created`) VALUES | |
(2, 'xxx', 'Admin', 'admin123', 'admin', '44234890', 'Coventry Raod', '2021-07-30 19:46:00'), | |
(11, 'vdwuiQKaGp', 'Customer', 'miracle123', 'user1234', '44402341', 'No 21, Coventry Road.', '2021-08-13 15:55:29'), | |
(12, '1hv24ubtLh', 'Admin', 'Miracle', 'aaa', '1234', 'aaa@aaa.com', '2021-04-28 07:15:26'), | |
(13, 'ahEACMM46j', 'Customer', 'John', 'bbb', '123', 'bbb@bbb.com', '2021-04-28 07:57:58'); | |
-- | |
-- Indexes for dumped tables | |
-- | |
-- | |
-- Indexes for table `products` | |
-- | |
ALTER TABLE `products` | |
ADD PRIMARY KEY (`id`); | |
-- | |
-- Indexes for table `users` | |
-- | |
ALTER TABLE `users` | |
ADD PRIMARY KEY (`id`); | |
-- | |
-- AUTO_INCREMENT for dumped tables | |
-- | |
-- | |
-- AUTO_INCREMENT for table `products` | |
-- | |
ALTER TABLE `products` | |
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63; | |
-- | |
-- AUTO_INCREMENT for table `users` | |
-- | |
ALTER TABLE `users` | |
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; | |
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 */; |