-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmybasket.sql
282 lines (240 loc) · 11.5 KB
/
mybasket.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
278
279
280
281
282
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 12, 2022 at 12:20 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 8.1.6
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: `mybasket`
--
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE `cart` (
`cart_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_name` varchar(50) NOT NULL,
`user_id` int(11) NOT NULL,
`product_price` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `cart`
--
INSERT INTO `cart` (`cart_id`, `product_id`, `product_name`, `user_id`, `product_price`) VALUES
(13, 1, 'Tata salt', 29, 163),
(25, 25, '2 piece SummerSuit(Men)', 35, 3699);
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`category_id` int(30) NOT NULL,
`category_name` varchar(50) NOT NULL,
`category_desc` varchar(400) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`category_id`, `category_name`, `category_desc`) VALUES
(1, 'mens_wear', 'Men\'s wear'),
(2, 'womens_wear', 'Women\'s wear'),
(3, 'electronics', 'Electronics'),
(4, 'kids_wear', 'Kid\'s wear'),
(5, 'grocery', 'Grocery'),
(6, 'beauty_products', 'Beauty products'),
(7, 'decoratives', 'Decoratives'),
(8, 'footwear', 'Foot wear');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`product_id` int(11) NOT NULL,
`product_name` varchar(100) NOT NULL,
`product_description` text NOT NULL,
`product_price` int(11) NOT NULL,
`product_cat_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`product_id`, `product_name`, `product_description`, `product_price`, `product_cat_id`) VALUES
(1, 'Tata salt', 'Tata Salt Iodized Crystal Salt is sourced from the sea. This pack contains 1kg.', 163, 5),
(2, 'Surf Excel', 'Buy Surf Excel easy wash detergent powder 1kg online at best price of Rs 144', 144, 5),
(3, 'Chocolate Horlicks', 'Horlicks is traditionally crafted using malted wheat and barley enriched with vitamins and minerals. This pack contains 500 grams', 207, 5),
(4, 'Lux soap', 'Rosa Gallica flower extract ,Jasminium flower extract.', 70, 5),
(5, 'Brand Face wash', 'Herbals Purifying Neem face wash', 100, 6),
(6, 'Vanesa body spray', 'Gives you a fresh scent that lasts long', 200, 6),
(7, 'Nivea body lotion', 'Moisturizing everyday can reduce the chance of developing extreme dryness or oilness.', 300, 6),
(8, 'Estee Lauder hair serum', 'Onion scalp serum with onion and Niacinamide for healthy hair growth', 500, 6),
(9, 'Peacock thread wall hanging', 'A large decorative piece of fabric to be hung on the wall.', 200, 7),
(10, 'Ceiling hanging', 'A large decorative piece of fabric to be \r\nhung from the ceiling.', 300, 7),
(11, 'Wall clock', 'Designed by using embroidery work', 400, 7),
(12, 'Flower vase', 'Attractive display throughout your event and it will help support blooms in best position. ', 2000, 7),
(13, 'Puma\'s Sneakers shaded in pink women\'s wear', 'Shoes with a rubber sole that is designed for people to wear while running, playing sports, etc.', 3000, 8),
(14, 'Women\'s heal sandals', 'A sole held to be the wearer\'s foot by straps going over the instep and around the ankle.', 1499, 8),
(15, 'Women\'s half shoe.', 'A half shoe of pink shade with flat heel', 900, 8),
(16, 'HyTech sandal', 'This footwear is intended to protect and comfort your foot.', 753, 8),
(17, 'Pure Cotton Denim Dungaree outfit(0-3 years)', 'Adjustable popper fastenings on the dungaree shoulder straps allow cotton spot-print bodysuit with long sleeves and poppers for easy on and off. ', 700, 4),
(18, 'Lehenga for kids(5-7 years)', 'A form of ankle-length skirt from the Indian subcontinent. Gota patti embroidery is often used for festivals and weddings.', 2000, 4),
(22, 'Colorado Winter ( Men)', 'Beige cardian is knitte from a blend of cotton, linen and silk ', 1435, 1),
(23, 'Formal Shirt ', 'formal shirt knitted with printed designmixed with red and blue ', 599, 1),
(24, 'Royal Suit ', 'Ethnic wear suit ,for big occasions designer ethnic wear', 3999, 1),
(25, '2 piece SummerSuit(Men)', 'Cool warm weather styles and fashion ideas.Pool party attire', 3699, 1),
(26, 'Crushed Tee shirt(Men)', 'Crafted for comfort. get ease of the movement with this premium quality Tee that is stitched to perfection', 549, 1),
(27, 'Blue Poly Georgette', 'A fusion of style and comfort, this blue poly georgette dress from Janasya will be an apt inclusion to your wardrobe. Featuring a keyhole neck, crepe lining, tie-up at waist with gathers, three quarter sleeves, this gathered hemline dress posseses a stunning taste.\r\n', 795, 2),
(28, 'White Digital Printed Anarkali Gown', 'Heavy Faux Georgette With Sleeve.\r\nFancy Digital Print With Fancy Lace Border Work (Front&Back Side Work)', 1799, 2),
(29, 'Blue Floral Belt dress', 'Best Quality Product, with imported bsy fabric...its good for summer use', 849, 2),
(30, 'Plus Cut And Sew Smock Dress IN', 'Round Neck Short Sleeve Color Block Ruffle Loose fitntunic trapeze swing,dress for summer', 3054, 2),
(31, 'Indya Hot Pink Foil Belted Maxi Kurta with Attached Dupatta', 'Hot pink maxi kurta crafted in georgette and mesh.\r\nLavished with lotus motif foil print.\r\nIt features an attached pleated dupatta and a belt with pearls & gold zari tassels.\r\nTailored sleeveless, it has a round neck and a button closure', 3550, 2),
(32, 'Vivo Bluetooth m-4', 'Black bluetooth,comfortable in ears ,long bluetooth and gripping to ears', 575, 3),
(33, 'Hot Selling G5S Tws Earphones Waterproof ', 'Headphones Headsets Power Banks Noise Cancelling Wireless Earbuds with Mic for Sport', 1500, 3),
(34, 'WTT140ABRT Voltas Semi Automatic Washing Machine, Red', 'The stainless steel net in the cassette filter collects lint, buttons and threads that are removed from the water after the clothes have been washed.', 16999, 3),
(35, 'Apple MacBook Pro (13\", 2018, Four Thunderbolt 3 ports', 'Touch Bar Intel i5 Dual Core, 16GB RAM, 512GB SSD, A1706 touchba', 69999, 3);
-- --------------------------------------------------------
--
-- Table structure for table `register`
--
CREATE TABLE `register` (
`id` int(11) NOT NULL,
`username` varchar(70) NOT NULL,
`email` varchar(70) NOT NULL,
`password` varchar(70) NOT NULL,
`registereddate` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `register`
--
INSERT INTO `register` (`id`, `username`, `email`, `password`, `registereddate`) VALUES
(1, 'mounika', '[email protected]', '456', '2022-10-23 09:52:33'),
(2, 'mounikaeqc', '[email protected]', '123', '2022-10-23 09:54:50'),
(3, 'rwv', '[email protected]', '1', '2022-10-23 09:58:47'),
(4, 'wvv', 'ryevw@wrv', '1', '2022-10-23 10:00:53'),
(5, 'wre', '[email protected]', '1', '2022-10-23 10:01:47'),
(6, 'wreyt', '[email protected]', '1', '2022-10-23 10:10:28'),
(7, 'mouni', '[email protected]', '1', '2022-10-23 10:11:24'),
(8, 'mouni', '[email protected]', '12', '2022-10-23 10:14:45'),
(9, 'mouni', '[email protected]', '12', '2022-10-23 10:15:52'),
(10, 'mouni', '[email protected]', '12', '2022-10-23 10:16:27'),
(11, 'mouni', '[email protected]', '12', '2022-10-23 10:17:20'),
(12, 'mouni', '[email protected]', '12', '2022-10-23 10:17:47'),
(13, 'mouni', '[email protected]', '12', '2022-10-23 10:18:13'),
(14, 'mouni', '[email protected]', '12', '2022-10-23 10:19:11'),
(15, '23423', '[email protected]', '123', '2022-10-23 10:19:30'),
(16, '23423', '[email protected]', '123', '2022-10-23 10:20:54'),
(17, '23423', '[email protected]', '123', '2022-10-23 10:21:29'),
(18, '23423', '[email protected]', '123', '2022-10-23 10:21:54'),
(19, '23423', '[email protected]', '123', '2022-10-23 10:22:24'),
(20, '23423', '[email protected]', '123', '2022-10-23 10:24:39'),
(21, '23423', '[email protected]', '123', '2022-10-23 10:25:20'),
(22, '23423', '[email protected]', '123', '2022-10-23 10:25:42'),
(23, '23423', '[email protected]', '123', '2022-10-23 10:26:02'),
(24, '23423', '[email protected]', '123', '2022-10-23 10:26:48'),
(25, '23423', '[email protected]', '123', '2022-10-23 10:27:04'),
(26, '23423', '[email protected]', '123', '2022-10-23 10:27:31'),
(27, 'wer', '[email protected]', '678', '2022-10-23 10:27:51'),
(28, 'mouni', '[email protected]', '123', '2022-10-23 10:46:30'),
(29, 'm', '[email protected]', '123', '2022-10-23 10:48:00'),
(30, 'mounika', '[email protected]', '123', '2022-10-24 16:23:15'),
(31, 'hriday', '[email protected]', '456', '2022-10-25 17:46:19'),
(32, 'pavan', '[email protected]', 'pavan', '2022-11-06 18:29:55'),
(33, 'hi', '[email protected]', 'hi', '2022-11-11 18:24:21'),
(34, 'hello', '[email protected]', 'hello', '2022-11-11 22:07:03'),
(35, 'tamal', '[email protected]', 'tamal', '2022-11-11 22:19:43');
-- --------------------------------------------------------
--
-- Table structure for table `wishlist`
--
CREATE TABLE `wishlist` (
`wishlist_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`product_name` varchar(300) NOT NULL,
`product_price` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `wishlist`
--
INSERT INTO `wishlist` (`wishlist_id`, `product_id`, `user_id`, `product_name`, `product_price`) VALUES
(62, 1, 29, 'Tata salt', 163),
(63, 2, 29, 'Surf Excel', 144),
(64, 3, 29, 'Chocolate Horlicks', 207),
(65, 22, 33, 'Colorado Winter ( Men)', 1435),
(66, 23, 33, 'Formal Shirt ', 599),
(67, 32, 35, 'Vivo Bluetooth m-4', 575),
(68, 33, 35, 'Hot Selling G5S Tws Earphones Waterproof ', 1500),
(69, 28, 35, 'White Digital Printed Anarkali Gown', 1799),
(70, 2, 35, 'Surf Excel', 144),
(71, 17, 35, 'Pure Cotton Denim Dungaree outfit(0-3 years)', 700),
(72, 9, 35, 'Peacock thread wall hanging', 200);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`cart_id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`category_id`),
ADD UNIQUE KEY `category_id` (`category_id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`product_id`);
--
-- Indexes for table `register`
--
ALTER TABLE `register`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `wishlist`
--
ALTER TABLE `wishlist`
ADD PRIMARY KEY (`wishlist_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cart`
--
ALTER TABLE `cart`
MODIFY `cart_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `category_id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `register`
--
ALTER TABLE `register`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `wishlist`
--
ALTER TABLE `wishlist`
MODIFY `wishlist_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73;
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 */;