Commit 73eeabe3 authored by Maneesha Fernando's avatar Maneesha Fernando Committed by GitHub

Merge pull request #2 from SManeesha99/bolt-new-phpmyadmin.sql

update bolt-new-phpmyadmin.sql
parents debe8cfe 1a15318e
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00"; SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
...@@ -22,12 +21,8 @@ SET time_zone = "+00:00"; ...@@ -22,12 +21,8 @@ SET time_zone = "+00:00";
CREATE DATABASE IF NOT EXISTS `bolt` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; CREATE DATABASE IF NOT EXISTS `bolt` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `bolt`; USE `bolt`;
-- --------------------------------------------------------
--
-- Table structure for table `orders` -- Table structure for table `orders`
-- --
CREATE TABLE IF NOT EXISTS `orders` ( CREATE TABLE IF NOT EXISTS `orders` (
`id` int(15) NOT NULL AUTO_INCREMENT, `id` int(15) NOT NULL AUTO_INCREMENT,
`product_code` varchar(255) NOT NULL, `product_code` varchar(255) NOT NULL,
...@@ -39,14 +34,10 @@ CREATE TABLE IF NOT EXISTS `orders` ( ...@@ -39,14 +34,10 @@ CREATE TABLE IF NOT EXISTS `orders` (
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`email` varchar(255) NOT NULL, `email` varchar(255) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ; ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12;
-- --------------------------------------------------------
--
-- Table structure for table `products` -- Table structure for table `products`
-- --
CREATE TABLE IF NOT EXISTS `products` ( CREATE TABLE IF NOT EXISTS `products` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`product_code` varchar(60) NOT NULL, `product_code` varchar(60) NOT NULL,
...@@ -57,23 +48,17 @@ CREATE TABLE IF NOT EXISTS `products` ( ...@@ -57,23 +48,17 @@ CREATE TABLE IF NOT EXISTS `products` (
`price` decimal(10,2) NOT NULL, `price` decimal(10,2) NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `product_code` (`product_code`) UNIQUE KEY `product_code` (`product_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4;
--
-- Dumping data for table `products` -- Dumping data for table `products`
-- --
INSERT INTO `products` (`id`, `product_code`, `product_name`, `product_desc`, `product_img_name`, `qty`, `price`) VALUES INSERT INTO `products` (`id`, `product_code`, `product_name`, `product_desc`, `product_img_name`, `qty`, `price`) VALUES
(1, 'BOLT1', 'Sports Shoes', 'With a clean vamp, tonal stitch details throughout, and a unique formstripe finish, the all new sports shoes fits the needs of multiple running consumers by offering an athletic and a lifestyle look.', 'sports_shoes.jpg', 26, '5000.00'), (1, 'BOLT1', 'Sports Shoes', 'With a clean vamp, tonal stitch details throughout, and a unique formstripe finish, the all new sports shoes fits the needs of multiple running consumers by offering an athletic and a lifestyle look.', 'sports_shoes.jpg', 26, '5000.00'),
(2, 'BOLT2', 'Cap', 'A sleek, tonal stitched cap for runners. The plain texture and unique design will help runners to concentrate more on running and less on their hair. The combbination of casual and formal look is just brilliant.', 'cap.jpg', 7, '200.00'), (2, 'BOLT2', 'Cap', 'A sleek, tonal stitched cap for runners. The plain texture and unique design will help runners to concentrate more on running and less on their hair. The combination of casual and formal look is just brilliant.', 'cap.jpg', 7, '200.00'),
(3, 'BOLT3', 'Sports Band', 'The Sports Band collection features highly polished stainless steel and space black stainless steel cases. The display is protected by sapphire crystal. And there is a choice of three different leather bands.', 'sports_band.jpg', 34, '1000.00'); (3, 'BOLT3', 'Sports Band', 'The Sports Band collection features highly polished stainless steel and space black stainless steel cases. The display is protected by sapphire crystal. And there is a choice of three different leather bands.', 'sports_band.jpg', 34, '1000.00');
-- --------------------------------------------------------
--
-- Table structure for table `users` -- Table structure for table `users`
-- --
CREATE TABLE IF NOT EXISTS `users` ( CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`fname` varchar(255) NOT NULL, `fname` varchar(255) NOT NULL,
...@@ -86,16 +71,13 @@ CREATE TABLE IF NOT EXISTS `users` ( ...@@ -86,16 +71,13 @@ CREATE TABLE IF NOT EXISTS `users` (
`type` varchar(20) NOT NULL DEFAULT 'user', `type` varchar(20) NOT NULL DEFAULT 'user',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`) UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3;
--
-- Dumping data for table `users` -- Dumping data for table `users`
-- --
INSERT INTO `users` (`id`, `fname`, `lname`, `address`, `city`, `pin`, `email`, `password`, `type`) VALUES INSERT INTO `users` (`id`, `fname`, `lname`, `address`, `city`, `pin`, `email`, `password`, `type`) VALUES
(1, 'Steve', 'Jobs', 'Infinite Loop', 'California', 95014, 'sjobs@apple.com', 'steve', 'admin'); (1, 'Steve', 'Jobs', 'Infinite Loop', 'California', 95014, 'sjobs@apple.com', 'steve', 'admin');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment