-
Notifications
You must be signed in to change notification settings - Fork 13
/
kshop.sql
277 lines (227 loc) · 12.1 KB
/
kshop.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
-- phpMyAdmin SQL Dump
-- version 4.0.10.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 22, 2015 at 07:34 PM
-- Server version: 5.5.41-cll-lve
-- PHP Version: 5.4.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Database: `kshop`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE IF NOT EXISTS `admins` (
`admin_id` int(10) NOT NULL AUTO_INCREMENT,
`admin_email` varchar(100) NOT NULL,
`admin_pass` varchar(100) NOT NULL,
PRIMARY KEY (`admin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`admin_id`, `admin_email`, `admin_pass`) VALUES
(1, 'fortune', '$chunkingz'),
(2, 'kenneth', '$kentolala');
-- --------------------------------------------------------
--
-- Table structure for table `brands`
--
CREATE TABLE IF NOT EXISTS `brands` (
`brand_id` int(10) NOT NULL AUTO_INCREMENT,
`brand_title` text NOT NULL,
PRIMARY KEY (`brand_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `brands`
--
INSERT INTO `brands` (`brand_id`, `brand_title`) VALUES
(1, 'HP'),
(2, 'Dell'),
(3, 'Nokia'),
(5, 'Samsung'),
(6, 'Sony'),
(7, 'Apple'),
(8, 'Lenovo');
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE IF NOT EXISTS `cart` (
`p_id` int(10) NOT NULL,
`ip_add` varchar(255) NOT NULL,
`qty` int(10) NOT NULL,
PRIMARY KEY (`p_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `cart`
--
INSERT INTO `cart` (`p_id`, `ip_add`, `qty`) VALUES
(11, '193.1.57.4', 1);
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`cat_id` int(10) NOT NULL AUTO_INCREMENT,
`cat_title` text NOT NULL,
PRIMARY KEY (`cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`cat_id`, `cat_title`) VALUES
(1, 'Laptops'),
(2, 'Computers'),
(3, 'Mobiles'),
(4, 'Cameras'),
(5, 'Tablets'),
(6, 'E-Books'),
(7, 'TVs');
-- --------------------------------------------------------
--
-- Table structure for table `customers`
--
CREATE TABLE IF NOT EXISTS `customers` (
`customer_id` int(10) NOT NULL AUTO_INCREMENT,
`customer_name` varchar(100) NOT NULL,
`customer_email` varchar(100) NOT NULL,
`customer_pass` varchar(25) NOT NULL,
`customer_country` text NOT NULL,
`customer_city` text NOT NULL,
`customer_contact` int(30) NOT NULL,
`customer_address` text NOT NULL,
`customer_image` text NOT NULL,
`customer_ip` varchar(255) NOT NULL,
PRIMARY KEY (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;
--
-- Dumping data for table `customers`
--
INSERT INTO `customers` (`customer_id`, `customer_name`, `customer_email`, `customer_pass`, `customer_country`, `customer_city`, `customer_contact`, `customer_address`, `customer_image`, `customer_ip`) VALUES
(1, 'Gmira Aboribo', '[email protected]', '1234', 'Nigeria', 'Lagos', 092472254, 'Ajao', '42z556.jpg', '79.97.223.49'),
(2, 'Igwe Ndubuisi', '[email protected]', 'test', 'Nigeria', 'Abia', 831311321, 'Aba', 'Penguins.jpg', '193.1.57.1'),
(3, 'Emmanuel Adegor', '[email protected]', '1337', 'Nigeria', 'Kaduna', 2147483647, 'muazu', 'AWLogo.png', '79.97.223.49'),
(4, 'Obaro Sohwo', '[email protected]', 'l33t', 'Nigeria', 'Delta', 2147483647, 'Sapele', 'IMG_20150321_144348.jpg', '79.97.223.49');
-- --------------------------------------------------------
--
-- Table structure for table `customer_orders`
--
CREATE TABLE IF NOT EXISTS `customer_orders` (
`order_id` int(10) NOT NULL AUTO_INCREMENT,
`customer_id` int(10) NOT NULL,
`due_amount` int(100) NOT NULL,
`invoice_no` int(100) NOT NULL,
`total_products` int(100) NOT NULL,
`order_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`order_status` text NOT NULL,
PRIMARY KEY (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=72 ;
--
-- Dumping data for table `customer_orders`
--
INSERT INTO `customer_orders` (`order_id`, `customer_id`, `due_amount`, `invoice_no`, `total_products`, `order_date`, `order_status`) VALUES
(1, 1, 2000, 969228141, 2, '2015-04-21 22:21:02', 'completed'),
(2, 2, 4150, 1893651699, 6, '2015-04-22 23:23:53', 'completed'),
(3, 3, 3750, 294795033, 4, '2015-04-23 23:24:57', 'Pending'),
(4, 4, 850, 2105935466, 2, '2015-04-24 23:26:57', 'Pending');
-- --------------------------------------------------------
--
-- Table structure for table `payments`
--
CREATE TABLE IF NOT EXISTS `payments` (
`payment_id` int(10) NOT NULL AUTO_INCREMENT,
`invoice_no` int(10) NOT NULL,
`amount` int(10) NOT NULL,
`payment_mode` text NOT NULL,
`ref_no` int(10) NOT NULL,
`payment_date` text NOT NULL,
PRIMARY KEY (`payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
--
-- Dumping data for table `payments`
--
INSERT INTO `payments` (`payment_id`, `invoice_no`, `amount`, `payment_mode`, `ref_no`, `payment_date`) VALUES
(1, 33399371, 1500, 'Paypal', 1524, '19/04/2015'),
(2, 133443901, 2500, 'Paypal', 2500, '000'),
(3, 54654, 0, 'Select Payment', 43, '43'),
(4, 670505132, 2500, 'Paypal', 1450, '09042015'),
(5, 1078745022, 2000, 'Paypal', 2588, '20/04/2015'),
(6, 843811679, 2889, 'Bank Transfer', 101020, '20/04/2015'),
(7, 2004643434, 2220, 'Bank Transfer', 12345, '21/04/2015'),
(8, 1929597582, 3550, 'Bank Transfer', 2147483647, '10/14/1255'),
(9, 969228141, 5000, 'Western Uniton', 1542, '22/04/2015'),
(10, 1893651699, 4150, 'Western Uniton', 1258, '23/04/2015');
-- --------------------------------------------------------
--
-- Table structure for table `pending_orders`
--
CREATE TABLE IF NOT EXISTS `pending_orders` (
`order_id` int(10) NOT NULL AUTO_INCREMENT,
`customer_id` int(10) NOT NULL,
`invoice_no` int(10) NOT NULL,
`product_id` int(10) NOT NULL,
`qty` int(10) NOT NULL,
`order_status` text NOT NULL,
PRIMARY KEY (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=159 ;
--
-- Dumping data for table `pending_orders`
--
INSERT INTO `pending_orders` (`order_id`, `customer_id`, `invoice_no`, `product_id`, `qty`, `order_status`) VALUES
(145, 1, 969228141, 8, 1, 'completed'),
(146, 2, 969228141, 13, 1, 'completed'),
(147, 3, 1893651699, 5, 3, 'completed'),
(148, 4, 1893651699, 7, 1, 'completed'),
(149, 3, 1893651699, 8, 1, 'completed'),
(150, 3, 1893651699, 12, 1, 'completed'),
(151, 2, 1893651699, 13, 1, 'completed'),
(152, 1, 1893651699, 14, 1, 'completed'),
(153, 4, 294795033, 5, 2, 'Pending'),
(154, 1, 294795033, 6, 1, 'Pending'),
(155, 2, 294795033, 7, 1, 'Pending'),
(156, 3, 294795033, 8, 1, 'Pending'),
(157, 3, 2105935466, 13, 1, 'Pending'),
(158, 1, 2105935466, 14, 1, 'Pending');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE IF NOT EXISTS `products` (
`product_id` int(10) NOT NULL AUTO_INCREMENT,
`cat_id` int(10) NOT NULL,
`brand_id` int(10) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`product_title` text NOT NULL,
`product_img1` text NOT NULL,
`product_img2` text NOT NULL,
`product_img3` text NOT NULL,
`product_price` int(10) NOT NULL,
`product_desc` text NOT NULL,
`product_keywords` text NOT NULL,
`status` text NOT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`product_id`, `cat_id`, `brand_id`, `date`, `product_title`, `product_img1`, `product_img2`, `product_img3`, `product_price`, `product_desc`, `product_keywords`, `status`) VALUES
(1, 1, 1, '2015-02-08 01:10:48', 'HP Laptops', 'hp-laptops-pavilion-dv7.jpg', '', '', 450, '<p>This is a very good laptop for all kinds of use</p>', 'HP, hp, laptops', 'on'),
(2, 2, 5, '2015-02-08 01:11:27', 'Samsung Desktop', 'samsung-all-in-one-lead.jpg', '', '', 850, '<p>All-in-one Samsung computer. High-end graphics</p>', 'samsung, desktops, pcs, computer', 'on'),
(3, 4, 6, '2015-02-08 01:23:11', 'Sony Video Camera', 'sony_videocamera.jpg', '', '', 1050, '<p>Brand New high definition video camera</p>', 'video camera, sony, cameras', 'on'),
(4, 7, 5, '2015-02-08 01:12:59', 'Samsung TV', 'samsung_SmartTV.jpg', '', '', 1400, '<p>Samsung smart TV. Maic remote control</p>', 'tv, smart tv, samsung', 'on'),
(5, 3, 3, '2015-02-08 01:13:32', 'Nokia Phone', '1020_Nokia.jpg', '', '', 720, '<p>Brand new Nokia Lumnia 1020. High definition.</p>', 'mobile phones, nokia, lumnia', 'on'),
(6, 1, 8, '2015-04-22 14:46:56', 'Lenovo', 'lenovo.jpg', 'Lenovo 2.jpg', 'Lenovo 3.jpg', 400, '<p><strong style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">-</strong><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;"> Great value laptop for all your daily activities</span><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- Compact dimensions make it ideal for computing on the go - great for lectures</span><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- AccuType keyboard provides comfortable and precise computing</span><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- VeriFace Pro face recognition makes unlocking your PC safe and simple</span></p>', '', 'on'),
(7, 1, 10, '0000-00-00 00:00:00', ' Alienware', 'AlienWare 3.jpg', 'alienware 2.jpg', 'Alienware.jpg', 600, '<p><span style="color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.3999996185303px;">The Graphics Amplifier enables an Alienware laptop to run a full secondary desktop GPU</span></p>', 'Alienware, alien, ware', 'on'),
(8, 1, 11, '0000-00-00 00:00:00', ' ASUS', 'ASUS 3.jpg', 'Asus.png', 'ASUS 2.jpg', 250, '<p><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- Great all-round laptop for working on the go</span><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- 14” screen gives you the ideal combination of portability and visibility</span><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- Intel Celeron processor gives you all the speed you need for browsing the web and typing documents</span><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><br style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" /><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">- Instant On resumes from sleep in just 2 seconds, so you can get to work much faster</span></p>', 'Asus, sus, Asus, X453MA 14', 'on');
/*!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 */;