11-- phpMyAdmin SQL Dump
2- -- version 4.5.2
3- -- http ://www.phpmyadmin.net
2+ -- version 4.8.1
3+ -- https ://www.phpmyadmin.net/
44--
55-- Host: localhost
6- -- Generation Time: Nov 08, 2017 at 06:41 PM
7- -- Server version: 10.1.16-MariaDB
8- -- PHP Version: 5.6.24
6+ -- Generation Time: Oct 17, 2018 at 08:43 PM
7+ -- Server version: 8.0.11
8+ -- PHP Version: 7.2.10
99
1010SET SQL_MODE = " NO_AUTO_VALUE_ON_ZERO" ;
11+ SET AUTOCOMMIT = 0 ;
12+ START TRANSACTION ;
1113SET time_zone = " +00:00" ;
1214
1315
@@ -19,38 +21,46 @@ SET time_zone = "+00:00";
1921--
2022-- Database: `ecomphp`
2123--
24+ CREATE DATABASE IF NOT EXISTS ` ecomphp` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
25+ USE ` ecomphp` ;
2226
2327-- --------------------------------------------------------
2428
2529--
2630-- Table structure for table `admin`
2731--
32+ -- Creation: Oct 16, 2018 at 07:58 PM
33+ --
2834
35+ DROP TABLE IF EXISTS ` admin` ;
2936CREATE TABLE `admin ` (
3037 ` id` int (11 ) NOT NULL ,
3138 ` firstname` varchar (255 ) NOT NULL ,
3239 ` lastname` varchar (255 ) NOT NULL ,
3340 ` email` varchar (255 ) NOT NULL ,
3441 ` password` varchar (255 ) NOT NULL
35- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
42+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
3643
3744--
3845-- Dumping data for table `admin`
3946--
4047
4148INSERT INTO ` admin` (` id` , ` firstname` , ` lastname` , ` email` , ` password` ) VALUES
42- (1 , ' Vivek ' , ' Vengala ' , ' vivek@codingcyber.com ' , ' 26e0eca228b42a520565415246513c0d' );
49+ (1 , ' Justin ' , ' Hartman ' , ' justin@hartman.me ' , ' 26e0eca228b42a520565415246513c0d' );
4350
4451-- --------------------------------------------------------
4552
4653--
4754-- Table structure for table `category`
4855--
56+ -- Creation: Oct 16, 2018 at 07:58 PM
57+ --
4958
59+ DROP TABLE IF EXISTS ` category` ;
5060CREATE TABLE `category ` (
5161 ` id` int (11 ) NOT NULL ,
5262 ` name` varchar (255 ) NOT NULL
53- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
63+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
5464
5565--
5666-- Dumping data for table `category`
@@ -66,14 +76,18 @@ INSERT INTO `category` (`id`, `name`) VALUES
6676--
6777-- Table structure for table `orderitems`
6878--
79+ -- Creation: Oct 16, 2018 at 07:58 PM
80+ -- Last update: Oct 16, 2018 at 09:12 PM
81+ --
6982
83+ DROP TABLE IF EXISTS ` orderitems` ;
7084CREATE TABLE `orderitems ` (
7185 ` id` int (11 ) NOT NULL ,
7286 ` pid` int (11 ) NOT NULL ,
7387 ` pquantity` varchar (255 ) NOT NULL ,
7488 ` orderid` int (11 ) NOT NULL ,
7589 ` productprice` varchar (255 ) NOT NULL
76- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
90+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
7791
7892--
7993-- Dumping data for table `orderitems`
@@ -88,71 +102,86 @@ INSERT INTO `orderitems` (`id`, `pid`, `pquantity`, `orderid`, `productprice`) V
88102(6 , 18 , ' 1' , 4 , ' 12890' ),
89103(7 , 21 , ' 1' , 4 , ' 75' ),
90104(8 , 2 , ' 1' , 5 , ' 7590' ),
91- (9 , 19 , ' 10' , 5 , ' 16' );
105+ (9 , 19 , ' 10' , 5 , ' 16' ),
106+ (10 , 19 , ' 1' , 7 , ' 16' ),
107+ (11 , 21 , ' 1' , 7 , ' 75' ),
108+ (12 , 20 , ' 2' , 7 , ' 99' );
92109
93110-- --------------------------------------------------------
94111
95112--
96113-- Table structure for table `orders`
97114--
115+ -- Creation: Oct 16, 2018 at 07:58 PM
116+ -- Last update: Oct 16, 2018 at 09:12 PM
117+ --
98118
119+ DROP TABLE IF EXISTS ` orders` ;
99120CREATE TABLE `orders ` (
100121 ` id` int (11 ) NOT NULL ,
101122 ` uid` int (11 ) NOT NULL ,
102123 ` totalprice` varchar (255 ) NOT NULL ,
103124 ` orderstatus` varchar (255 ) NOT NULL ,
104125 ` paymentmode` varchar (255 ) NOT NULL ,
105126 ` timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
106- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
127+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
107128
108129--
109130-- Dumping data for table `orders`
110131--
111132
112133INSERT INTO ` orders` (` id` , ` uid` , ` totalprice` , ` orderstatus` , ` paymentmode` , ` timestamp` ) VALUES
113- (1 , 2 , ' 80' , ' Order Placed' , ' cod' , ' 2017-10-28 12:22:36' ),
114- (2 , 2 , ' 42060' , ' Order Placed' , ' cod' , ' 2017-10-28 12:27:16' ),
115- (3 , 6 , ' 21980' , ' Cancelled' , ' cod' , ' 2017-10-28 14:25:23' ),
116- (4 , 6 , ' 12965' , ' In Progress' , ' cod' , ' 2017-10-28 14:28:29' ),
117- (5 , 6 , ' 7750' , ' In Progress' , ' cod' , ' 2017-11-06 19:40:34' );
134+ (1 , 2 , ' 80' , ' Order Placed' , ' cod' , ' 2018-10-16 12:22:36' ),
135+ (2 , 2 , ' 42060' , ' Order Placed' , ' cod' , ' 2018-10-16 12:27:16' ),
136+ (3 , 6 , ' 21980' , ' Cancelled' , ' cod' , ' 2018-10-16 14:25:23' ),
137+ (4 , 6 , ' 12965' , ' In Progress' , ' cod' , ' 2018-10-16 14:28:29' ),
138+ (5 , 6 , ' 7750' , ' In Progress' , ' cod' , ' 2018-10-16 19:40:34' ),
139+ (7 , 7 , ' 289' , ' Order Placed' , ' on' , ' 2018-10-16 23:12:18' );
118140
119141-- --------------------------------------------------------
120142
121143--
122144-- Table structure for table `ordertracking`
123145--
146+ -- Creation: Oct 16, 2018 at 07:58 PM
147+ -- Last update: Oct 16, 2018 at 09:00 PM
148+ --
124149
150+ DROP TABLE IF EXISTS ` ordertracking` ;
125151CREATE TABLE `ordertracking ` (
126152 ` id` int (11 ) NOT NULL ,
127153 ` orderid` int (11 ) NOT NULL ,
128154 ` status` varchar (255 ) NOT NULL ,
129155 ` message` text NOT NULL ,
130156 ` timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
131- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
157+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
132158
133159--
134160-- Dumping data for table `ordertracking`
135161--
136162
137163INSERT INTO ` ordertracking` (` id` , ` orderid` , ` status` , ` message` , ` timestamp` ) VALUES
138- (3 , 3 , ' Cancelled' , ' I don't want this item now.' , ' 2017 -10-28 17:54:18' ),
139- (5 , 4 , ' In Progress' , ' Order is in Progress' , ' 2017 -10-30 13:31:08' ),
140- (6 , 5 , ' In Progress' , ' Order is in Progress' , ' 2017-11-06 19:45:11' );
164+ (3 , 3 , ' Cancelled' , ' I do not want this item now.' , ' 2018 -10-16 17:54:18' ),
165+ (5 , 4 , ' In Progress' , ' Order is in Progress' , ' 2018 -10-16 13:31:08' ),
166+ (6 , 5 , ' In Progress' , ' Order is in Progress' , ' 2018-10-16 19:45:11' );
141167
142168-- --------------------------------------------------------
143169
144170--
145171-- Table structure for table `products`
146172--
173+ -- Creation: Oct 16, 2018 at 07:58 PM
174+ --
147175
176+ DROP TABLE IF EXISTS ` products` ;
148177CREATE TABLE `products ` (
149178 ` id` int (11 ) NOT NULL ,
150179 ` name` varchar (255 ) NOT NULL ,
151180 ` catid` int (11 ) NOT NULL ,
152181 ` price` varchar (255 ) NOT NULL ,
153182 ` thumb` varchar (255 ) NOT NULL ,
154183 ` description` varchar (255 ) NOT NULL
155- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
184+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
156185
157186--
158187-- Dumping data for table `products`
@@ -163,58 +192,70 @@ INSERT INTO `products` (`id`, `name`, `catid`, `price`, `thumb`, `description`)
163192(2 , ' Sony DSC W830 Cyber-shot 20.1 MP Point and Shoot Camera (Black) with 8x Optical Zoom, Memory Card and Camera Case' , 2 , ' 7590' , ' uploads/Sony Alpha a6000 Mirrorless Digital.jpg' , ' The Sony DSC W830 Cyber-shot 20.1 MP Point and Shoot Camera (Black) with 8x Optical Zoom is a powerful camera full of features that put it at par with any professional DSLR. It is packed with a super HAD CCD sensor that comes with 20.1 effective megapixel' ),
164193(18 , ' Sony Cyber-shot DSC-H300/BC E32 point & Shoot Digital camera ' , 2 , ' 12890' , ' uploads/Sony Alpha ILCA-77M2Q 24 3MP.jpg' , ' The High zoom camera Sony Cyber-shot H300, with a powerful 35x optical zoom, brings your subject to you for beautiful, precise pictures. A 20.1MP sensor, HD video and creative features, let you capture detailed images and movies with ease. A DSLR-style bo' ),
165194(19 , ' General Knowledge 2018' , 3 , ' 16' , ' uploads/General Knowledge 2018.jpg' , ' An editorial team of highly skilled professionals at Arihant, works hand in glove to ensure that the students receive the best and accurate content through our books. From inception till the book comes out from print, the whole team comprising of authors,' ),
166- (20 , ' The Power of your Subconscious Mind' , 3 , ' 99' , ' uploads/The Power of your Subconscious Mind.jpg' , ' It' ' s a very good n very useful book n it should be read by each n every one ...to knw the things that are not aware and know about the mind power .. Super duper book --ByAmazon Customeron 19 March 2017 ' ),
167- (21 , ' Think and Grow Rich' , 3 , ' 75' , ' uploads/Think and Grow Rich.jpg' , ' An American journalist, lecturer and author, Napoleon Hill is one of the earliest producers of ' ' personal-success literature . As an author of self-help books, Hill has always abided by and promoted principle of intense and burning passion being the sole k' );
195+ (20 , ' The Power of your Subconscious Mind' , 3 , ' 99' , ' uploads/The Power of your Subconscious Mind.jpg' , ' It\' s a very good n very useful book n it should be read by each n every one ...to knw the things that are not aware and know about the mind power .. Super duper book --ByAmazon Customeron 19 March 2018 ' ),
196+ (21 , ' Think and Grow Rich' , 3 , ' 75' , ' uploads/Think and Grow Rich.jpg' , ' An American journalist, lecturer and author, Napoleon Hill is one of the earliest producers of \ ' personal-success literature . As an author of self-help books, Hill has always abided by and promoted principle of intense and burning passion being the sole k' );
168197
169198-- --------------------------------------------------------
170199
171200--
172201-- Table structure for table `reviews`
173202--
203+ -- Creation: Oct 16, 2018 at 07:58 PM
204+ --
174205
206+ DROP TABLE IF EXISTS ` reviews` ;
175207CREATE TABLE `reviews ` (
176208 ` id` int (11 ) NOT NULL ,
177209 ` pid` int (11 ) NOT NULL ,
178210 ` uid` int (11 ) NOT NULL ,
179211 ` review` text NOT NULL ,
180212 ` timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
181- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
213+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
182214
183215--
184216-- Dumping data for table `reviews`
185217--
186218
187219INSERT INTO ` reviews` (` id` , ` pid` , ` uid` , ` review` , ` timestamp` ) VALUES
188- (1 , 1 , 6 , ' It's an awesome Product... ' , ' 2017 -10-30 15:18:42' );
220+ (1 , 1 , 6 , ' It is an awesome Product! ' , ' 2018 -10-16 15:18:42' );
189221
190222-- --------------------------------------------------------
191223
192224--
193225-- Table structure for table `users`
194226--
227+ -- Creation: Oct 16, 2018 at 07:58 PM
228+ -- Last update: Oct 16, 2018 at 08:18 PM
229+ --
195230
231+ DROP TABLE IF EXISTS ` users` ;
196232CREATE TABLE `users ` (
197233 ` id` int (11 ) NOT NULL ,
198234 ` email` varchar (255 ) NOT NULL ,
199235 ` password` varchar (255 ) NOT NULL ,
200236 ` timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
201- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
237+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
202238
203239--
204240-- Dumping data for table `users`
205241--
206242
207243INSERT INTO ` users` (` id` , ` email` , ` password` , ` timestamp` ) VALUES
208- (1 , ' vivek@codingcyber.com' , ' 26e0eca228b42a520565415246513c0d' , ' 2017-10-27 12:05:10' ),
209- (2 , ' vivek1@codingcyber.com' , ' $2y$10$cMzHNUFGKma96MywHmVMbekuJZb1tSNLsevHzLnSRbcRicQVhEC6a' , ' 2017-10-27 12:24:25' ),
210- (6 , ' vivek2@codingcyber.com' , ' $2y$10$apI7l.1wAS5pgbG4YfMrN.jNd5T3XmhecFuSV2M6UNdoUHImPXNxm' , ' 2017-10-27 12:28:20' );
244+ (1 , ' justin@hartman.me' , ' 26e0eca228b42a520565415246513c0d' , ' 2018-10-15 12:05:10' ),
245+ (2 , ' iamjustinhartman@gmail.com' , ' $2y$10$cMzHNUFGKma96MywHmVMbekuJZb1tSNLsevHzLnSRbcRicQVhEC6a' , ' 2018-10-15 12:24:25' ),
246+ (6 , ' jjhartman@gmail.com' , ' $2y$10$apI7l.1wAS5pgbG4YfMrN.jNd5T3XmhecFuSV2M6UNdoUHImPXNxm' , ' 2018-10-15 12:28:20' ),
247+ (7 , ' justin@22digital.co.za' , ' $2y$10$.eu/GvIuz58XRl/KIlOZl.xO0cH0TH./KmGfoxn/VXAZ5XVTmd.sa' , ' 2018-10-16 22:18:12' );
211248
212249-- --------------------------------------------------------
213250
214251--
215252-- Table structure for table `usersmeta`
216253--
254+ -- Creation: Oct 16, 2018 at 07:58 PM
255+ -- Last update: Oct 16, 2018 at 08:53 PM
256+ --
217257
258+ DROP TABLE IF EXISTS ` usersmeta` ;
218259CREATE TABLE `usersmeta ` (
219260 ` id` int (11 ) NOT NULL ,
220261 ` uid` int (11 ) NOT NULL ,
@@ -228,37 +269,43 @@ CREATE TABLE `usersmeta` (
228269 ` country` varchar (255 ) NOT NULL ,
229270 ` zip` varchar (255 ) NOT NULL ,
230271 ` mobile` varchar (255 ) NOT NULL
231- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
272+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
232273
233274--
234275-- Dumping data for table `usersmeta`
235276--
236277
237278INSERT INTO ` usersmeta` (` id` , ` uid` , ` firstname` , ` lastname` , ` company` , ` address1` , ` address2` , ` city` , ` state` , ` country` , ` zip` , ` mobile` ) VALUES
238- (1 , 2 , ' Vivek' , ' V' , ' Coding Cyber' , ' Hyd' , ' Hyd' , ' Hyderabad' , ' Telangana' , ' ' , ' 500060' , ' ' ),
239- (2 , 6 , ' Vivek' , ' Vengala' , ' Coding Cyber' , ' #201' , ' DSNR' , ' Hyderabad' , ' Telangana' , ' ' , ' 500060' , ' 9876543211' );
279+ (1 , 2 , ' Justin' , ' Hartman' , ' 22 Digital' , ' 7 Lancaster Road' , ' Kenilworth' , ' Cape Town' , ' Western Cape' , ' ZA' , ' 7708' , ' 0722290848' ),
280+ (2 , 6 , ' Justin' , ' Hartman' , ' 22 Digital' , ' 47A Woodgate Road' , ' Plumstead' , ' Cape Town' , ' Western Cape' , ' ZA' , ' 7708' , ' 0722290848' ),
281+ (3 , 7 , ' Justin' , ' Hartman' , ' 22 Digital' , ' 47a woodgate road' , ' Plumstead' , ' Cape Town' , ' Western Cape' , ' ZA' , ' 8000' , ' +27722290848' );
240282
241283-- --------------------------------------------------------
242284
243285--
244286-- Table structure for table `wishlist`
245287--
288+ -- Creation: Oct 16, 2018 at 07:58 PM
289+ -- Last update: Oct 16, 2018 at 08:52 PM
290+ --
246291
292+ DROP TABLE IF EXISTS ` wishlist` ;
247293CREATE TABLE `wishlist ` (
248294 ` id` int (11 ) NOT NULL ,
249295 ` pid` int (11 ) NOT NULL ,
250296 ` uid` int (11 ) NOT NULL ,
251297 ` timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
252- ) ENGINE= InnoDB DEFAULT CHARSET= latin1 ;
298+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 ;
253299
254300--
255301-- Dumping data for table `wishlist`
256302--
257303
258304INSERT INTO ` wishlist` (` id` , ` pid` , ` uid` , ` timestamp` ) VALUES
259- (1 , 1 , 6 , ' 2017-10-30 16:36:45' ),
260- (2 , 2 , 6 , ' 2017-10-30 16:38:07' ),
261- (3 , 21 , 6 , ' 2017-11-06 19:42:35' );
305+ (1 , 1 , 6 , ' 2018-10-16 16:36:45' ),
306+ (2 , 2 , 6 , ' 2018-10-16 16:38:07' ),
307+ (3 , 21 , 6 , ' 2018-10-16 19:42:35' ),
308+ (4 , 1 , 7 , ' 2018-10-16 22:52:23' );
262309
263310--
264311-- Indexes for dumped tables
@@ -334,51 +381,62 @@ ALTER TABLE `wishlist`
334381--
335382ALTER TABLE ` admin`
336383 MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 2 ;
384+
337385--
338386-- AUTO_INCREMENT for table `category`
339387--
340388ALTER TABLE ` category`
341389 MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 4 ;
390+
342391--
343392-- AUTO_INCREMENT for table `orderitems`
344393--
345394ALTER TABLE ` orderitems`
346- MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 10 ;
395+ MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 13 ;
396+
347397--
348398-- AUTO_INCREMENT for table `orders`
349399--
350400ALTER TABLE ` orders`
351- MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 6 ;
401+ MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 8 ;
402+
352403--
353404-- AUTO_INCREMENT for table `ordertracking`
354405--
355406ALTER TABLE ` ordertracking`
356- MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 7 ;
407+ MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 8 ;
408+
357409--
358410-- AUTO_INCREMENT for table `products`
359411--
360412ALTER TABLE ` products`
361413 MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 22 ;
414+
362415--
363416-- AUTO_INCREMENT for table `reviews`
364417--
365418ALTER TABLE ` reviews`
366419 MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 2 ;
420+
367421--
368422-- AUTO_INCREMENT for table `users`
369423--
370424ALTER TABLE ` users`
371- MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 7 ;
425+ MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 8 ;
426+
372427--
373428-- AUTO_INCREMENT for table `usersmeta`
374429--
375430ALTER TABLE ` usersmeta`
376- MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 3 ;
431+ MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 4 ;
432+
377433--
378434-- AUTO_INCREMENT for table `wishlist`
379435--
380436ALTER TABLE ` wishlist`
381- MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 4 ;
437+ MODIFY ` id` int (11 ) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT= 5 ;
438+ COMMIT ;
439+
382440/* !40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ;
383441/* !40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */ ;
384442/* !40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
0 commit comments