-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe_shop.sql
611 lines (500 loc) · 34.1 KB
/
e_shop.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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
/*
SQLyog Community v12.4.2 (64 bit)
MySQL - 10.4.22-MariaDB : Database - e_shop
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`e_shop` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `e_shop`;
/*Table structure for table `banners` */
DROP TABLE IF EXISTS `banners`;
CREATE TABLE `banners` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'inactive',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `banners_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `banners` */
insert into `banners`(`id`,`title`,`slug`,`photo`,`description`,`status`,`created_at`,`updated_at`) values
(1,'Lorem Ipsum is','lorem-ipsum-is','/storage/photos/1/Banner/banner-01.jpg','<h2><span style=\"font-weight: bold; color: rgb(99, 99, 99);\">Up to 10%</span></h2>','inactive','2020-08-13 21:47:38','2024-11-23 02:04:07'),
(2,'Lorem Ipsum','lorem-ipsum','/storage/photos/1/Banner/banner-07.jpg','<p>Up to 90%</p>','inactive','2020-08-13 21:50:23','2024-11-23 02:04:14'),
(4,'Banner','banner','/storage/photos/1/Banner/banner-06.jpg','<h2><span style=\"color: rgb(156, 0, 255); font-size: 2rem; font-weight: bold;\">Up to 40%</span><br></h2><h2><span style=\"color: rgb(156, 0, 255);\"></span></h2>','inactive','2020-08-17 16:46:59','2024-11-23 02:04:27'),
(5,'banner','banner-2411230516-240','/storage/photos/1/Banner/banner.png','<p> this banner is</p>','active','2024-11-23 02:05:16','2024-11-23 02:05:16');
/*Table structure for table `base` */
DROP TABLE IF EXISTS `base`;
CREATE TABLE `base` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cityname` varchar(255) NOT NULL,
`latitude` decimal(10,7) NOT NULL,
`longitude` decimal(10,7) NOT NULL,
`status` enum('active','inactive') NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
/*Data for the table `base` */
insert into `base`(`id`,`cityname`,`latitude`,`longitude`,`status`,`created_at`,`updated_at`) values
(1,'Dalas',1.4534500,103.8667787,'active','2024-11-24 08:11:10','2024-11-24 08:11:10');
/*Table structure for table `brands` */
DROP TABLE IF EXISTS `brands`;
CREATE TABLE `brands` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `brands_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `brands` */
/*Table structure for table `carts` */
DROP TABLE IF EXISTS `carts`;
CREATE TABLE `carts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) unsigned NOT NULL,
`order_id` bigint(20) unsigned DEFAULT NULL,
`user_id` bigint(20) unsigned DEFAULT NULL,
`price` double(8,2) NOT NULL,
`status` enum('new','progress','delivered','cancel') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'new',
`quantity` int(11) NOT NULL,
`amount` double(8,2) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `carts_product_id_foreign` (`product_id`),
KEY `carts_user_id_foreign` (`user_id`),
KEY `carts_order_id_foreign` (`order_id`),
CONSTRAINT `carts_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE SET NULL,
CONSTRAINT `carts_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
CONSTRAINT `carts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `carts` */
insert into `carts`(`id`,`product_id`,`order_id`,`user_id`,`price`,`status`,`quantity`,`amount`,`created_at`,`updated_at`) values
(12,11,NULL,30,110.70,'new',1,110.70,'2024-11-23 12:48:05','2024-11-23 12:48:05');
/*Table structure for table `categories` */
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_parent` tinyint(1) NOT NULL DEFAULT 1,
`parent_id` bigint(20) unsigned DEFAULT NULL,
`added_by` bigint(20) unsigned DEFAULT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'inactive',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `categories_slug_unique` (`slug`),
KEY `categories_parent_id_foreign` (`parent_id`),
KEY `categories_added_by_foreign` (`added_by`),
CONSTRAINT `categories_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `categories` */
insert into `categories`(`id`,`title`,`slug`,`summary`,`photo`,`is_parent`,`parent_id`,`added_by`,`status`,`created_at`,`updated_at`) values
(12,'20fit Used Container','container','Wooden Floor, Wind & watertight, ISO certified ','/storage/photos/1/container/20fit.png',1,NULL,NULL,'active','2024-11-23 01:30:45','2024-11-23 02:26:31'),
(13,'40ft Used Container','40ft-used-container','<p>Wooden floor,Wind&watertight,ISO certified</p>','/storage/photos/1/container/40fit.png',1,NULL,NULL,'active','2024-11-23 02:22:42','2024-11-23 02:22:42'),
(14,'40fit Used High Cube Container','40fit-used-high-cube-container','<p>Wooden floor, Wind & watertight, ISO certified</p>','/storage/photos/1/container/40fit-high.png',1,NULL,NULL,'active','2024-11-23 02:30:03','2024-11-23 02:30:03');
/*Table structure for table `coupons` */
DROP TABLE IF EXISTS `coupons`;
CREATE TABLE `coupons` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` enum('fixed','percent') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed',
`value` decimal(20,2) NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'inactive',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `coupons_code_unique` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `coupons` */
insert into `coupons`(`id`,`code`,`type`,`value`,`status`,`created_at`,`updated_at`) values
(1,'abc123','fixed',300.00,'active',NULL,NULL),
(2,'111111','percent',10.00,'active',NULL,NULL),
(5,'abcd','fixed',250.00,'active','2020-08-17 16:54:58','2020-08-17 16:54:58');
/*Table structure for table `failed_jobs` */
DROP TABLE IF EXISTS `failed_jobs`;
CREATE TABLE `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `failed_jobs` */
/*Table structure for table `messages` */
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`subject` text COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `messages` */
insert into `messages`(`id`,`name`,`subject`,`email`,`photo`,`phone`,`message`,`read_at`,`created_at`,`updated_at`) values
(1,'Prajwal Rai','About price','prajwal.iar@gmail.com',NULL,'9807009999','Hello sir i am from kathmandu nepal.','2020-08-14 04:25:46','2020-08-14 04:00:01','2020-08-14 04:25:46'),
(2,'Prajwal Rai','About Price','prajwal.iar@gmail.com',NULL,'9800099000','Hello i am Prajwal Rai','2020-08-17 23:04:15','2020-08-15 03:52:39','2020-08-17 23:04:16'),
(3,'Prajwal Rai','lorem ipsum','prajwal.iar@gmail.com',NULL,'1200990009','hello sir sdfdfd dfdjf ;dfjd fd ldkfd','2024-11-23 01:29:05','2020-08-17 17:15:12','2024-11-23 01:29:05');
/*Table structure for table `migrations` */
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `migrations` */
insert into `migrations`(`id`,`migration`,`batch`) values
(1,'2014_10_12_000000_create_users_table',1),
(2,'2014_10_12_100000_create_password_resets_table',1),
(3,'2019_08_19_000000_create_failed_jobs_table',1),
(4,'2020_07_10_021010_create_brands_table',1),
(5,'2020_07_10_025334_create_banners_table',1),
(6,'2020_07_10_112147_create_categories_table',1),
(7,'2020_07_11_063857_create_products_table',1),
(8,'2020_07_12_073132_create_post_categories_table',1),
(9,'2020_07_12_073701_create_post_tags_table',1),
(10,'2020_07_12_083638_create_posts_table',1),
(11,'2020_07_13_151329_create_messages_table',1),
(12,'2020_07_14_023748_create_shippings_table',1),
(13,'2020_07_15_054356_create_orders_table',1),
(14,'2020_07_15_102626_create_carts_table',1),
(15,'2020_07_16_041623_create_notifications_table',1),
(16,'2020_07_16_053240_create_coupons_table',1),
(17,'2020_07_23_143757_create_wishlists_table',1),
(18,'2020_07_24_074930_create_product_reviews_table',1),
(19,'2020_07_24_131727_create_post_comments_table',1),
(20,'2020_08_01_143408_create_settings_table',1);
/*Table structure for table `notifications` */
DROP TABLE IF EXISTS `notifications`;
CREATE TABLE `notifications` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_id` bigint(20) unsigned NOT NULL,
`data` text COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `notifications` */
insert into `notifications`(`id`,`type`,`notifiable_type`,`notifiable_id`,`data`,`read_at`,`created_at`,`updated_at`) values
('5e91e603-024e-45c5-b22f-36931fef0d90','App\\Notifications\\StatusNotification','App\\User',1,'{\"title\":\"New Product Rating!\",\"actionURL\":\"http:\\/\\/localhost:8000\\/product-detail\\/white-sports-casual-t\",\"fas\":\"fa-star\"}','2024-11-23 09:42:26','2020-08-15 03:44:07','2024-11-23 09:42:26'),
('a6ec5643-748c-4128-92e2-9a9f293f53b5','App\\Notifications\\StatusNotification','App\\User',1,'{\"title\":\"New order created\",\"actionURL\":\"http:\\/\\/localhost:8000\\/admin\\/order\\/5\",\"fas\":\"fa-file-alt\"}','2024-11-23 09:32:44','2020-08-17 17:17:03','2024-11-23 09:32:44');
/*Table structure for table `orders` */
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`order_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) unsigned DEFAULT NULL,
`sub_total` double(8,2) NOT NULL,
`shipping_id` bigint(20) unsigned DEFAULT NULL,
`coupon` double(8,2) DEFAULT NULL,
`total_amount` double(8,2) NOT NULL,
`quantity` int(11) NOT NULL,
`payment_method` enum('cod','paypal') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cod',
`payment_status` enum('paid','unpaid') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unpaid',
`status` enum('new','process','delivered','cancel') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'new',
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`post_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address1` text COLLATE utf8mb4_unicode_ci NOT NULL,
`address2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `orders_order_number_unique` (`order_number`),
KEY `orders_user_id_foreign` (`user_id`),
KEY `orders_shipping_id_foreign` (`shipping_id`),
CONSTRAINT `orders_shipping_id_foreign` FOREIGN KEY (`shipping_id`) REFERENCES `shippings` (`id`) ON DELETE SET NULL,
CONSTRAINT `orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `orders` */
insert into `orders`(`id`,`order_number`,`user_id`,`sub_total`,`shipping_id`,`coupon`,`total_amount`,`quantity`,`payment_method`,`payment_status`,`status`,`first_name`,`last_name`,`email`,`phone`,`country`,`post_code`,`address1`,`address2`,`created_at`,`updated_at`) values
(1,'ORD-PMIQF5MYPK',3,14399.00,1,573.90,13925.10,6,'cod','unpaid','delivered','Prajwal','Rai','prajwal.iar@gmail.com','9800887778','NP','44600','Koteshwor','Kathmandu','2020-08-14 03:20:44','2020-08-14 05:37:37'),
(2,'ORD-YFF8BF0YBK',2,1939.03,1,NULL,2039.03,1,'cod','unpaid','delivered','Sandhya','Rai','user@gmail.com','90000000990','NP',NULL,'Lalitpur',NULL,'2020-08-14 18:14:49','2020-08-14 18:15:19'),
(3,'ORD-1CKWRWTTIK',3,200.00,1,NULL,300.00,1,'paypal','paid','process','Prajwal','Rai','prajwal.iar@gmail.com','9807009999','NP','44600','Kathmandu','Kadaghari','2020-08-15 02:40:49','2020-08-17 16:52:40'),
(4,'ORD-HVO0KX0YHW',3,23660.00,3,150.00,23910.00,6,'paypal','paid','new','Prajwal','Rai','prajwal.iar@gmail.com','9800098878','NP','44600','Pokhara',NULL,'2020-08-15 03:54:52','2020-08-15 03:54:52');
/*Table structure for table `password_resets` */
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `password_resets` */
/*Table structure for table `post_categories` */
DROP TABLE IF EXISTS `post_categories`;
CREATE TABLE `post_categories` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `post_categories_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `post_categories` */
insert into `post_categories`(`id`,`title`,`slug`,`status`,`created_at`,`updated_at`) values
(1,'Travel','contrary','active','2020-08-13 21:51:03','2020-08-13 21:51:39'),
(2,'Electronics','richard','active','2020-08-13 21:51:22','2020-08-13 21:52:00'),
(3,'Cloths','cloths','active','2020-08-13 21:52:22','2020-08-13 21:52:22'),
(4,'enjoy','enjoy','active','2020-08-13 23:16:10','2020-08-13 23:16:10'),
(5,'Post Category','post-category','active','2020-08-15 02:59:04','2020-08-15 02:59:04');
/*Table structure for table `post_comments` */
DROP TABLE IF EXISTS `post_comments`;
CREATE TABLE `post_comments` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned DEFAULT NULL,
`post_id` bigint(20) unsigned DEFAULT NULL,
`comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`replied_comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_id` bigint(20) unsigned DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `post_comments_user_id_foreign` (`user_id`),
KEY `post_comments_post_id_foreign` (`post_id`),
CONSTRAINT `post_comments_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`) ON DELETE SET NULL,
CONSTRAINT `post_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `post_comments` */
insert into `post_comments`(`id`,`user_id`,`post_id`,`comment`,`status`,`replied_comment`,`parent_id`,`created_at`,`updated_at`) values
(1,1,NULL,'Testing comment edited','active',NULL,NULL,'2020-08-14 03:08:42','2020-08-15 02:59:58'),
(2,3,NULL,'testing 2','active',NULL,1,'2020-08-14 03:11:03','2020-08-14 03:11:03'),
(3,2,NULL,'That\'s cool','active',NULL,2,'2020-08-14 03:12:27','2020-08-14 03:12:27'),
(4,1,NULL,'nice','active',NULL,NULL,'2020-08-15 03:31:19','2020-08-15 03:31:19'),
(5,3,NULL,'nice blog','active',NULL,NULL,'2020-08-15 03:51:01','2020-08-15 03:51:01'),
(6,2,NULL,'nice','active',NULL,NULL,'2020-08-17 17:13:29','2020-08-17 17:13:29'),
(7,2,NULL,'really','active',NULL,6,'2020-08-17 17:13:51','2020-08-17 17:13:51');
/*Table structure for table `post_tags` */
DROP TABLE IF EXISTS `post_tags`;
CREATE TABLE `post_tags` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `post_tags_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `post_tags` */
insert into `post_tags`(`id`,`title`,`slug`,`status`,`created_at`,`updated_at`) values
(1,'Enjoy','enjoy','active','2020-08-13 21:53:52','2020-08-13 21:53:52'),
(2,'2020','2020','active','2020-08-13 21:54:09','2020-08-13 21:54:09'),
(3,'Visit nepal 2020','visit-nepal-2020','active','2020-08-13 21:54:33','2020-08-13 21:54:33'),
(4,'Tag','tag','active','2020-08-15 02:59:31','2020-08-15 02:59:31');
/*Table structure for table `posts` */
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci NOT NULL,
`description` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quote` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tags` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`post_cat_id` bigint(20) unsigned DEFAULT NULL,
`post_tag_id` bigint(20) unsigned DEFAULT NULL,
`added_by` bigint(20) unsigned DEFAULT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `posts_slug_unique` (`slug`),
KEY `posts_post_cat_id_foreign` (`post_cat_id`),
KEY `posts_post_tag_id_foreign` (`post_tag_id`),
KEY `posts_added_by_foreign` (`added_by`),
CONSTRAINT `posts_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
CONSTRAINT `posts_post_cat_id_foreign` FOREIGN KEY (`post_cat_id`) REFERENCES `post_categories` (`id`) ON DELETE SET NULL,
CONSTRAINT `posts_post_tag_id_foreign` FOREIGN KEY (`post_tag_id`) REFERENCES `post_tags` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `posts` */
/*Table structure for table `product_reviews` */
DROP TABLE IF EXISTS `product_reviews`;
CREATE TABLE `product_reviews` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned DEFAULT NULL,
`product_id` bigint(20) unsigned DEFAULT NULL,
`rate` tinyint(4) NOT NULL DEFAULT 0,
`review` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `product_reviews_user_id_foreign` (`user_id`),
KEY `product_reviews_product_id_foreign` (`product_id`),
CONSTRAINT `product_reviews_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL,
CONSTRAINT `product_reviews_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `product_reviews` */
insert into `product_reviews`(`id`,`user_id`,`product_id`,`rate`,`review`,`status`,`created_at`,`updated_at`) values
(1,3,NULL,5,'nice product','active','2020-08-15 03:44:05','2020-08-15 03:44:05'),
(2,2,NULL,5,'nice','active','2020-08-17 17:08:14','2020-08-17 17:18:31');
/*Table structure for table `products` */
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci NOT NULL,
`description` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo` text COLLATE utf8mb4_unicode_ci NOT NULL,
`stock` int(11) NOT NULL DEFAULT 1,
`size` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'M',
`condition` enum('default','new','hot') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'inactive',
`price` double(8,2) NOT NULL,
`discount` double(8,2) NOT NULL,
`is_featured` tinyint(1) NOT NULL,
`cat_id` bigint(20) unsigned DEFAULT NULL,
`child_cat_id` bigint(20) unsigned DEFAULT NULL,
`brand_id` bigint(20) unsigned DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `products_slug_unique` (`slug`),
KEY `products_brand_id_foreign` (`brand_id`),
KEY `products_cat_id_foreign` (`cat_id`),
KEY `products_child_cat_id_foreign` (`child_cat_id`),
CONSTRAINT `products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE SET NULL,
CONSTRAINT `products_cat_id_foreign` FOREIGN KEY (`cat_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL,
CONSTRAINT `products_child_cat_id_foreign` FOREIGN KEY (`child_cat_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `products` */
insert into `products`(`id`,`title`,`slug`,`summary`,`description`,`photo`,`stock`,`size`,`condition`,`status`,`price`,`discount`,`is_featured`,`cat_id`,`child_cat_id`,`brand_id`,`created_at`,`updated_at`) values
(11,'con1','con1','<p>this is con1</p>','<p>this is con1</p>','/storage/photos/1/container/avif_large_20ft_hapag_784e4f65ad.jpg',10,'XL','new','active',123.00,10.00,1,12,NULL,NULL,'2024-11-23 01:34:54','2024-11-23 01:34:54'),
(12,'con2','con2','<p>this is con2</p>','<p>this con2 is</p>','/storage/photos/1/container/avif_large_20ft_hapag_d41a2fc032.jpg',10,'','new','active',220.00,10.00,1,12,NULL,NULL,'2024-11-23 02:32:03','2024-11-23 02:32:03');
/*Table structure for table `settings` */
DROP TABLE IF EXISTS `settings`;
CREATE TABLE `settings` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`short_des` text COLLATE utf8mb4_unicode_ci NOT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `settings` */
insert into `settings`(`id`,`description`,`short_des`,`logo`,`photo`,`address`,`phone`,`email`,`created_at`,`updated_at`) values
(1,'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. sed ut perspiciatis unde sunt in culpa qui officia deserunt mollit anim id est laborum. sed ut perspiciatis unde omnis iste natus error sit voluptatem Excepteu\r\n\r\n sunt in culpa qui officia deserunt mollit anim id est laborum. sed ut perspiciatis Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. sed ut perspi deserunt mollit anim id est laborum. sed ut perspi.','Praesent dapibus, neque id cursus ucibus, tortor neque egestas augue, magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.','/storage/photos/1/logo.png','/storage/photos/1/blog3.jpg','NO. 342 - London Oxford Street, 012 United Kingdom','+060 (800) 801-582','eshop@gmail.com',NULL,'2020-08-13 21:49:09');
/*Table structure for table `shippings` */
DROP TABLE IF EXISTS `shippings`;
CREATE TABLE `shippings` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`price` decimal(8,2) NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `shippings` */
insert into `shippings`(`id`,`type`,`price`,`status`,`created_at`,`updated_at`) values
(1,'Kahtmandu',100.00,'active','2020-08-14 00:22:17','2020-08-14 00:22:17'),
(2,'Out of valley',300.00,'active','2020-08-14 00:22:41','2020-08-14 00:22:41'),
(3,'Pokhara',400.00,'active','2020-08-15 02:54:04','2020-08-15 02:54:04'),
(4,'Dharan',400.00,'active','2020-08-17 16:50:48','2020-08-17 16:50:48');
/*Table structure for table `users` */
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`role` enum('admin','user') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user',
`provider` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `users` */
insert into `users`(`id`,`name`,`email`,`email_verified_at`,`password`,`photo`,`role`,`provider`,`provider_id`,`status`,`remember_token`,`created_at`,`updated_at`) values
(1,'Prajwal Rai','admin@gmail.com',NULL,'$2y$10$GOGIJdzJydYJ5nAZ42iZNO3IL1fdvXoSPdUOH3Ajy5hRmi0xBmTzm','/storage/photos/1/users/user1.jpg','admin',NULL,NULL,'active','Zrz60s2QisM8DncbXyeto1il0NOrXTv377ekrcvyGLWput1oojNcoL0tDJGx',NULL,'2020-08-15 02:47:13'),
(2,'User','user@gmail.com',NULL,'$2y$10$10jB2lupSfvAUfocjguzSeN95LkwgZJUM7aQBdb2Op7XzJ.BhNoHq','/storage/photos/1/users/user2.jpg','user',NULL,NULL,'active',NULL,NULL,'2020-08-15 03:30:07'),
(3,'Prajwal Rai','prajwal.iar@gmail.com',NULL,'$2y$10$15ZVMgH040v4Ukf9KSAFiucPJcfDwmeRKCaguVJBXplTs93m48F1G','/storage/photos/1/users/user3.jpg','user',NULL,NULL,'active',NULL,'2020-08-11 00:20:58','2020-08-15 03:56:58'),
(4,'Cynthia Beier','ernestina.wehner@example.net','2020-08-14 17:18:52','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','fzmQDfEoaP','2020-08-14 17:18:52','2020-08-14 17:18:52'),
(5,'Prof. Maybell Zulauf','wolf.harvey@example.org','2020-08-14 17:18:52','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','B8cYq4huyT','2020-08-14 17:18:54','2020-08-14 17:18:54'),
(6,'Diego Lind II','schroeder.emile@example.net','2020-08-14 17:18:52','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','xLUaF26dE1','2020-08-14 17:18:54','2020-08-14 17:18:54'),
(7,'Ian Macejkovic','ashlee16@example.com','2020-08-14 17:18:52','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','i2ZIKbiM9O','2020-08-12 17:18:54','2020-08-14 17:18:54'),
(8,'Perry McClure DDS','mayer.ashlynn@example.org','2020-08-14 17:18:52','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','VD1MlsvW3I','2020-08-14 17:18:55','2020-08-14 17:18:55'),
(9,'Juana Yost','carter47@example.net','2020-08-14 17:19:50','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','kARxoay0FT','2020-08-11 17:19:50','2020-08-14 17:19:50'),
(10,'Louvenia Will DDS','lowell06@example.net','2020-08-14 17:19:50','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','QkbNNnO7ZG','2020-08-10 17:19:50','2020-08-14 17:19:50'),
(11,'Miss Layla McClure','dcummings@example.com','2020-08-14 17:19:50','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','DFnCS0bKFa','2020-08-08 17:19:51','2020-08-14 17:19:51'),
(12,'Mrs. Taya Ziemann','anderson.luz@example.net','2020-08-14 17:19:50','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','4Xgvb1HnFT','2020-08-09 17:19:51','2020-08-14 17:19:51'),
(13,'Porter Olson','jaden24@example.com','2020-08-14 17:19:50','$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',NULL,'user',NULL,NULL,'active','gFX2w4WaMj','2020-08-14 17:19:51','2020-08-14 17:19:51'),
(29,'Prajwal Rai','rae.prajwal@gmail.com',NULL,NULL,NULL,'user','google','110717103019405487938','active',NULL,'2020-08-15 03:36:29','2020-08-15 03:36:29'),
(30,'qwe','qwe@gmail.com',NULL,'$2y$10$y.cYWy5a19QIhS0YsQgBNOsxrhFpluomXMjPFh6CLu/dU4Jso6znu',NULL,'user',NULL,NULL,'active',NULL,'2024-11-23 09:47:03','2024-11-23 09:47:03'),
(31,'asd','asd@asd.com',NULL,'$2y$10$sNdB674yTxNz2f4VqNATkO6nSRvtuQQK0maxu25D3keRjGqhhHZz6','https://befb-50-7-159-34.ngrok-free.app/storage/photos/31/images (2).jpeg','admin',NULL,NULL,'active',NULL,'2024-11-23 20:43:41','2024-11-23 22:35:33');
/*Table structure for table `wishlists` */
DROP TABLE IF EXISTS `wishlists`;
CREATE TABLE `wishlists` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) unsigned NOT NULL,
`cart_id` bigint(20) unsigned DEFAULT NULL,
`user_id` bigint(20) unsigned DEFAULT NULL,
`price` double(8,2) NOT NULL,
`quantity` int(11) NOT NULL,
`amount` double(8,2) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `wishlists_product_id_foreign` (`product_id`),
KEY `wishlists_user_id_foreign` (`user_id`),
KEY `wishlists_cart_id_foreign` (`cart_id`),
CONSTRAINT `wishlists_cart_id_foreign` FOREIGN KEY (`cart_id`) REFERENCES `carts` (`id`) ON DELETE SET NULL,
CONSTRAINT `wishlists_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
CONSTRAINT `wishlists_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `wishlists` */
insert into `wishlists`(`id`,`product_id`,`cart_id`,`user_id`,`price`,`quantity`,`amount`,`created_at`,`updated_at`) values
(3,11,12,30,110.70,1,110.70,'2024-11-23 12:47:25','2024-11-23 12:48:05');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;