-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcar_store.sql
920 lines (741 loc) · 38 KB
/
car_store.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
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 06, 2023 at 01:49 PM
-- Server version: 10.4.27-MariaDB
-- PHP Version: 8.2.0
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: `mobile_store_db`
--
CREATE DATABASE IF NOT EXISTS `mobile_store_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `mobile_store_db`;
-- --------------------------------------------------------
--
-- Table structure for table `brands`
--
CREATE TABLE `brands` (
`id` int(30) NOT NULL,
`name` varchar(250) NOT NULL,
`description` text DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `brands`
--
INSERT INTO `brands` (`id`, `name`, `description`, `status`, `date_created`) VALUES
(1, 'Jaguar', 'Jaguar Company', 1, '2021-08-30 10:33:53'),
(2, 'Honda', 'Honda Company', 1, '2021-08-30 10:34:12'),
(3, 'Lexus', 'Lexus Company', 1, '2021-08-30 10:34:22'),
(4, 'BMW', 'BMW Company', 1, '2021-08-30 10:34:38'),
(5, 'Audi', 'Audi Company', 1, '2021-08-30 10:35:00'),
(6, 'Kia', 'Kia Company', 1, '2021-08-30 10:35:26'),
(7, 'Volkswagen', 'Volkswagen Company', 1, '2021-08-30 10:35:43');
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE `cart` (
`id` int(30) NOT NULL,
`client_id` int(30) NOT NULL,
`inventory_id` int(30) NOT NULL,
`price` double NOT NULL,
`quantity` int(30) NOT NULL,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(30) NOT NULL,
`category` varchar(250) NOT NULL,
`description` text DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `category`, `description`, `status`, `date_created`) VALUES
(1, 'Automobiles', 'Automotive Cars', 1, '2021-08-30 10:52:25'),
(2, 'Accessories', 'Phone Accessories', 1, '2021-08-30 10:52:49'),
(3, 'Automobile Hardware', 'Automotive Hardware products', 1, '2021-08-30 10:53:31'),
(4, 'External Storage', 'External Storage Products', 1, '2021-08-30 10:54:34');
-- --------------------------------------------------------
--
-- Table structure for table `clients`
--
CREATE TABLE `clients` (
`id` int(30) NOT NULL,
`firstname` varchar(250) NOT NULL,
`lastname` varchar(250) NOT NULL,
`gender` varchar(20) NOT NULL,
`contact` varchar(15) NOT NULL,
`email` varchar(250) NOT NULL,
`password` text NOT NULL,
`default_delivery_address` text NOT NULL,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `clients`
--
INSERT INTO `clients` (`id`, `firstname`, `lastname`, `gender`, `contact`, `email`, `password`, `default_delivery_address`, `date_created`) VALUES
(1, 'Claire', 'Blake', 'Female', '09123456789', '[email protected]', 'cd74fae0a3adf459f73bbf187607ccea', 'Sample Address', '2021-08-30 15:32:20');
-- --------------------------------------------------------
--
-- Table structure for table `inventory`
--
CREATE TABLE `inventory` (
`id` int(30) NOT NULL,
`product_id` int(30) NOT NULL,
`quantity` double NOT NULL,
`price` float NOT NULL,
`date_created` datetime NOT NULL DEFAULT current_timestamp(),
`date_updated` datetime DEFAULT NULL ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `inventory`
--
INSERT INTO `inventory` (`id`, `product_id`, `quantity`, `price`, `date_created`, `date_updated`) VALUES
(1, 1, 15, 15301000, '2021-08-30 13:24:01', '2023-04-06 17:10:34'),
(2, 2, 20, 7000990, '2021-08-30 13:27:26', '2023-04-06 17:10:50'),
(3, 3, 25, 350, '2021-08-30 15:42:20', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(30) NOT NULL,
`client_id` int(30) NOT NULL,
`delivery_address` text NOT NULL,
`payment_method` varchar(100) NOT NULL,
`order_type` tinyint(1) NOT NULL COMMENT '1= pickup,2= deliver',
`amount` double NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT 0,
`paid` tinyint(1) NOT NULL DEFAULT 0,
`date_created` datetime NOT NULL DEFAULT current_timestamp(),
`date_updated` datetime DEFAULT NULL ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `client_id`, `delivery_address`, `payment_method`, `order_type`, `amount`, `status`, `paid`, `date_created`, `date_updated`) VALUES
(1, 1, 'Sample Address', 'Online Payment', 1, 75340, 1, 1, '2021-08-30 15:57:01', '2021-08-30 16:06:19');
-- --------------------------------------------------------
--
-- Table structure for table `order_list`
--
CREATE TABLE `order_list` (
`id` int(30) NOT NULL,
`order_id` int(30) NOT NULL,
`product_id` int(30) NOT NULL,
`quantity` int(30) NOT NULL,
`price` double NOT NULL,
`total` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `order_list`
--
INSERT INTO `order_list` (`id`, `order_id`, `product_id`, `quantity`, `price`, `total`) VALUES
(1, 1, 1, 1, 15300000, 15300000),
(2, 1, 3, 1, 350, 350);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(30) NOT NULL,
`brand_id` int(30) NOT NULL,
`category_id` int(30) NOT NULL,
`sub_category_id` int(30) NOT NULL,
`name` varchar(250) NOT NULL,
`specs` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `brand_id`, `category_id`, `sub_category_id`, `name`, `specs`, `status`, `date_created`) VALUES
(1, 1, 1, 0, 'Jaguar F-Pace', '<ul class=\\\"techspecs-list\\\" role=\\\"list\\\" style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; list-style: none;\\\">\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0px; padding: 0px;\\\">2 seater SuperCar</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding:\r\n 0px;\\\">Automatic Transmission</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Mileage\r\n - 9.4 to 12.3 kmpl</li>\r\n</ul>\r\n<p class=\\\"typography-caption model-caption\\\" style=\\\"margin: 0.8em 0px 0px; padding: 0px; line-height: 1.33337;\\\">\r\n\r\nJaguar F-Type price ranges between ₹ 98.13 Lakh - ₹ 1.53 Crore depending on the variant selected.\r\n\r\nVariants:\r\n\r\nIt is offered in three variants – 2.0-litre coupe R-Dynamic, 5.0-litre V8 coupe R-Dynamic, and 5.0-litre V8 convertible R-Dynamic.\r\n\r\nEngine and transmission:\r\n\r\nThe F-Type is available with two powertrains; a 2.0-litre, four-cylinder turbocharged with two outputs - 444bhp/580Nm and 567bhp/700Nm. The more powerful V8 powers the R variants and is exclusively available with an AWD drivetrain. All engines are paired to a ZF-sourced eight-speed automatic transmission.\r\n\r\nExterior:\r\n\r\nThe F-Type loses the feline design penned by Ian Callum for a more generic ‘always angry’ design philosophy. The sleek headlamps, new grille, massive air intakes and air vents on the engine cover are part of the new design theme being adopted by all new Jaguar cars. Apart from some new upholstery and trim materials, the interior design has been left untouched.\r\n\r\nInterior:\r\n\r\nThe most noticeable equipment change is the addition of the 12.3-inch all-digital instrument cluster and the improved touchscreen infotainment system.\r\n\r\nSafety and features:\r\n\r\nIt gets launch control, stability control, front and side impact airbags, overhead airbags, and ABS. \r\n\r\nSeating capacity:\r\n\r\nIt has a seating capacity for two occupants. \r\n\r\nColours:\r\n\r\nThe Jaguar F-type is available in 23 different colours – Indus Silver, Flux Silver, Amethyst Grey Purple, Eiger Grey, Carpathian Grey, Ice White, Silicon Silver, Bluefire Blue, Sorrento Yellow, Fuji White, Santorini Black, Desire Deep Red, Caldera Red, Ligurian Black, British Racing Green, Sunset Glow, Petroiix Blue, Portofino Blue, Yulong White, Dynamic Black, Tourmaline Brown, Sanguinello Orange, and Firenze Red.\r\n\r\nRivals:\r\n\r\nThe F-Type takes on the very capable Porsche 718 Cayman and Boxster models, Ford Mustang, BMW Z4, Mercedes-AMG C 43, and BMW M2 competition. \r\n\r\n</p>\r\n<p style=\\\"margin: 0.8em 0px 0px; padding: 0px; line-height: 1.33337;\\\"><br></p>\r\n<ul class=\\\"techspecs-list\\\" role=\\\"list\\\" style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; list-style: none;\\\">\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0px; padding: 0px;\\\">HDR display</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">True Tone</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Wide color (P3)</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Haptic Touch</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">2,000,000:1 contrast ratio (typical)</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">800 nits max brightness (typical); 1,200 nits max brightness (HDR)</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Fingerprint-resistant oleophobic coating</li>\r\n <li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Support for display of multiple languages and characters simultaneously</li>\r\n</ul>\r\n', 1, '2021-08-30 12:19:22'),
(2, 3, 1, 0, 'Lexus', '<p>\r\n<p></p>\r\n<p style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding:\r\n 0px; vertical-align: top; line-height: 1.25; text-align:\r\n center;\\\"><span class=\\\"c_model_unit-type1\\\" style=\\\"text-align:\r\n left; margin: 0px; padding: 0px; vertical-align: top;\r\n display: block; line-height: 1.3;\\\">Lexus Supercar</span></p>\r\n<p style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding:\r\n 0px; vertical-align: top; line-height: 1.25;\\\">250hp engine</p>\r\n<dl style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; vertical-align: top; line-height: 1.25; text-align: center;\\\">\r\n <dt class=\\\"c_model_unit-type3\\\" style=\\\"text-align: left; margin: 40px 0px 0px; padding: 0px; vertical-align: top; line-height: 1.25;\\\">Dimensions:</dt>\r\n <dd style=\\\"text-align: left; margin-top: 10px; margin-right: 0px;\r\n margin-bottom: 0px; padding: 0px; vertical-align:\r\n top;\\\">75.6x165.1x8.9dm</dd>\r\n <dt class=\\\"c_model_unit-type3\\\" style=\\\"text-align: left; margin: 40px 0px 0px; padding: 0px; vertical-align: top; line-height: 1.25;\\\">Weight:</dt>\r\n <dd style=\\\"text-align: left; margin-top: 10px; margin-right: 0px;\r\n margin-bottom: 0px; padding: 0px; vertical-align: top;\\\">2\r\n tonnes</dd>\r\n <dt class=\\\"c_model_unit-type3\\\" style=\\\"text-align: left; margin: 40px 0px 0px; padding: 0px; vertical-align: top; line-height: 1.25;\\\">Biometric Authentication:</dt>\r\n</dl>\r\n<p></p>\r\n<p></p>\r\n<dl style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; vertical-align: top; line-height: 1.25; text-align: center;\\\">\r\n <dt class=\\\"c_model_unit-type3\\\" style=\\\"text-align: left; margin: 40px 0px\r\n 0px; padding: 0px; vertical-align: top; line-height: 1.25;\\\">5\r\n year\r\n Warranty</dt>\r\n</dl>\r\n</p>\r\n<h3 class=\\\"c_model_title-type1\\\" style=\\\"margin-right: 0px; margin-bottom: 0px;\r\n margin-left: 0px; padding: 0px; vertical-align: top;\\\">Super Smooth\r\nDrive</h3>\r\n<p>\r\n<p></p>\r\n</p>\r\n<dl style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; vertical-align: top; line-height: 1.25; text-align: center;\\\">\r\n <dt class=\\\"c_model_unit-type3\\\" style=\\\"text-align: left; margin: 40px 0px 0px; padding: 0px; vertical-align: top; line-height: 1.25;\\\">\r\n <p class=\\\"c_model_desc-type1\\\" style=\\\"margin: 8px 0px 0px; padding:\r\n 0px; vertical-align: top;\\\">Our smoothest engine screen keeps\r\n up with all your power hungry\r\n driving.</p>\r\n <h3 class=\\\"c_model_title-type1\\\" style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; vertical-align: top;\\\">Durability</h3>\r\n <p class=\\\"c_model_desc-type1\\\" style=\\\"margin: 8px 0px 0px; padding:\r\n 0px; vertical-align: top;\\\">Luxurious and\r\n Comfortable<span\r\n style=\\\"line-height: 1.2;\r\n position: relative; top:\r\n 0px; margin: 0px; padding:\r\n 0px; vertical-align:\r\n top;\\\"></span></p>\r\n </dt>\r\n</dl>\r\n', 1, '2021-08-30 13:15:11'),
(3, 1, 2, 2, 'Jaguar Mat Cover', '<p style=\\\"margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px; text-align: justify; color: rgb(0, 0, 0); font-family: "Open Sans", Arial, sans-serif;\\\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur rhoncus posuere accumsan. Maecenas eget aliquam odio, ac vehicula leo. Praesent magna erat, consectetur elementum leo nec, ornare congue dolor. Sed tristique magna non lorem tristique, vitae dictum velit posuere. Aliquam in tempor dui, nec scelerisque mi. Interdum et malesuada fames ac ante ipsum primis in faucibus. Curabitur venenatis urna justo, eu dapibus diam venenatis vel. Proin tincidunt leo a elit mollis, in sollicitudin est iaculis. In metus urna, cursus non ullamcorper sed, cursus id velit. Nullam dui justo, gravida sit amet sollicitudin vel, tempor ac diam. Phasellus egestas quis metus in condimentum. Pellentesque non dapibus eros, eu facilisis ipsum. Cras suscipit metus iaculis, varius est eu, blandit metus. Mauris sed diam eros. Curabitur gravida pulvinar metus a euismod. Cras consequat metus eros, id tincidunt massa aliquam ut.</p><p style=\\\"margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px; text-align: justify; color: rgb(0, 0, 0); font-family: "Open Sans", Arial, sans-serif;\\\">Sed sit amet eleifend nisl. Aliquam ullamcorper nisl sed eros commodo cursus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin leo metus, malesuada ac viverra quis, placerat in magna. Morbi suscipit justo vitae tincidunt venenatis. Aliquam ex odio, sagittis quis tincidunt id, semper ut orci. Cras consequat dui vel vestibulum volutpat. Maecenas dapibus purus quis magna consectetur placerat. Donec porttitor massa eu lacus aliquet bibendum.</p><p style=\\\"margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px; text-align: justify; color: rgb(0, 0, 0); font-family: "Open Sans", Arial, sans-serif;\\\">Sed ut ex sed elit blandit ultrices. Curabitur non suscipit purus, eu facilisis felis. Proin ac nisl commodo, efficitur tortor mattis, elementum velit. Duis vel mattis justo. Pellentesque sodales, enim vel blandit vulputate, nunc nunc pretium dolor, vitae cursus massa erat consectetur ex. Donec varius tristique dui vitae semper. Quisque dictum volutpat vulputate. Morbi dui enim, auctor vel velit vel, sollicitudin scelerisque metus. Duis in turpis a elit luctus vestibulum.</p>', 1, '2021-08-30 15:42:08');
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE `sales` (
`id` int(30) NOT NULL,
`order_id` int(30) NOT NULL,
`total_amount` double NOT NULL,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `sales`
--
INSERT INTO `sales` (`id`, `order_id`, `total_amount`, `date_created`) VALUES
(1, 1, 75340, '2021-08-30 15:57:01');
-- --------------------------------------------------------
--
-- Table structure for table `sub_categories`
--
CREATE TABLE `sub_categories` (
`id` int(30) NOT NULL,
`parent_id` int(30) NOT NULL,
`sub_category` varchar(250) NOT NULL,
`description` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `sub_categories`
--
INSERT INTO `sub_categories` (`id`, `parent_id`, `sub_category`, `description`, `status`, `date_created`) VALUES
(1, 3, 'Mats', 'Car Mats', 1, '2021-08-30 11:28:40'),
(2, 2, 'Mats', 'Mats for Trunk', 1, '2021-08-30 11:29:15'),
(3, 4, 'Micro SD Card', 'Micro SD Cards', 1, '2021-08-30 11:29:40');
-- --------------------------------------------------------
--
-- Table structure for table `system_info`
--
CREATE TABLE `system_info` (
`id` int(30) NOT NULL,
`meta_field` text NOT NULL,
`meta_value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `system_info`
--
INSERT INTO `system_info` (`id`, `meta_field`, `meta_value`) VALUES
(1, 'name', 'Automobile Ordering System'),
(6, 'short_name', 'AOS'),
(11, 'logo', 'uploads/1630289100_mobile.jpg'),
(13, 'user_avatar', 'uploads/user_avatar.jpg'),
(14, 'cover', 'uploads/1630289280_wallpaper.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(50) NOT NULL,
`firstname` varchar(250) NOT NULL,
`lastname` varchar(250) NOT NULL,
`username` text NOT NULL,
`password` text NOT NULL,
`avatar` text DEFAULT NULL,
`last_login` datetime DEFAULT NULL,
`type` tinyint(1) NOT NULL DEFAULT 0,
`date_added` datetime NOT NULL DEFAULT current_timestamp(),
`date_updated` datetime DEFAULT NULL ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `firstname`, `lastname`, `username`, `password`, `avatar`, `last_login`, `type`, `date_added`, `date_updated`) VALUES
(1, 'Adminstrator', 'Admin', 'admin', '0192023a7bbd73250516f069df18b500', 'uploads/1624240500_avatar.png', NULL, 1, '2021-01-20 14:02:37', '2021-06-21 09:55:07');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `inventory`
--
ALTER TABLE `inventory`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `order_list`
--
ALTER TABLE `order_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sales`
--
ALTER TABLE `sales`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sub_categories`
--
ALTER TABLE `sub_categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `system_info`
--
ALTER TABLE `system_info`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `cart`
--
ALTER TABLE `cart`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `inventory`
--
ALTER TABLE `inventory`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `order_list`
--
ALTER TABLE `order_list`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sales`
--
ALTER TABLE `sales`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `sub_categories`
--
ALTER TABLE `sub_categories`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `system_info`
--
ALTER TABLE `system_info`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Database: `phpmyadmin`
--
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
USE `phpmyadmin`;
-- --------------------------------------------------------
--
-- Table structure for table `pma__bookmark`
--
CREATE TABLE `pma__bookmark` (
`id` int(11) NOT NULL,
`dbase` varchar(255) NOT NULL DEFAULT '',
`user` varchar(255) NOT NULL DEFAULT '',
`label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`query` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks';
-- --------------------------------------------------------
--
-- Table structure for table `pma__central_columns`
--
CREATE TABLE `pma__central_columns` (
`db_name` varchar(64) NOT NULL,
`col_name` varchar(64) NOT NULL,
`col_type` varchar(64) NOT NULL,
`col_length` text DEFAULT NULL,
`col_collation` varchar(64) NOT NULL,
`col_isNull` tinyint(1) NOT NULL,
`col_extra` varchar(255) DEFAULT '',
`col_default` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Central list of columns';
-- --------------------------------------------------------
--
-- Table structure for table `pma__column_info`
--
CREATE TABLE `pma__column_info` (
`id` int(5) UNSIGNED NOT NULL,
`db_name` varchar(64) NOT NULL DEFAULT '',
`table_name` varchar(64) NOT NULL DEFAULT '',
`column_name` varchar(64) NOT NULL DEFAULT '',
`comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`mimetype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`transformation` varchar(255) NOT NULL DEFAULT '',
`transformation_options` varchar(255) NOT NULL DEFAULT '',
`input_transformation` varchar(255) NOT NULL DEFAULT '',
`input_transformation_options` varchar(255) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin';
-- --------------------------------------------------------
--
-- Table structure for table `pma__designer_settings`
--
CREATE TABLE `pma__designer_settings` (
`username` varchar(64) NOT NULL,
`settings_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Settings related to Designer';
-- --------------------------------------------------------
--
-- Table structure for table `pma__export_templates`
--
CREATE TABLE `pma__export_templates` (
`id` int(5) UNSIGNED NOT NULL,
`username` varchar(64) NOT NULL,
`export_type` varchar(10) NOT NULL,
`template_name` varchar(64) NOT NULL,
`template_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved export templates';
--
-- Dumping data for table `pma__export_templates`
--
INSERT INTO `pma__export_templates` (`id`, `username`, `export_type`, `template_name`, `template_data`) VALUES
(1, 'root', 'server', 'car_store', '{\"quick_or_custom\":\"quick\",\"what\":\"sql\",\"db_select[]\":[\"mobile_store_db\",\"phpmyadmin\",\"test\"],\"aliases_new\":\"\",\"output_format\":\"sendit\",\"filename_template\":\"@SERVER@\",\"remember_template\":\"on\",\"charset\":\"utf-8\",\"compression\":\"none\",\"maxsize\":\"\",\"codegen_structure_or_data\":\"data\",\"codegen_format\":\"0\",\"csv_separator\":\",\",\"csv_enclosed\":\"\\\"\",\"csv_escaped\":\"\\\"\",\"csv_terminated\":\"AUTO\",\"csv_null\":\"NULL\",\"csv_structure_or_data\":\"data\",\"excel_null\":\"NULL\",\"excel_columns\":\"something\",\"excel_edition\":\"win\",\"excel_structure_or_data\":\"data\",\"json_structure_or_data\":\"data\",\"json_unicode\":\"something\",\"latex_caption\":\"something\",\"latex_structure_or_data\":\"structure_and_data\",\"latex_structure_caption\":\"Structure of table @TABLE@\",\"latex_structure_continued_caption\":\"Structure of table @TABLE@ (continued)\",\"latex_structure_label\":\"tab:@TABLE@-structure\",\"latex_relation\":\"something\",\"latex_comments\":\"something\",\"latex_mime\":\"something\",\"latex_columns\":\"something\",\"latex_data_caption\":\"Content of table @TABLE@\",\"latex_data_continued_caption\":\"Content of table @TABLE@ (continued)\",\"latex_data_label\":\"tab:@TABLE@-data\",\"latex_null\":\"\\\\textit{NULL}\",\"mediawiki_structure_or_data\":\"data\",\"mediawiki_caption\":\"something\",\"mediawiki_headers\":\"something\",\"htmlword_structure_or_data\":\"structure_and_data\",\"htmlword_null\":\"NULL\",\"ods_null\":\"NULL\",\"ods_structure_or_data\":\"data\",\"odt_structure_or_data\":\"structure_and_data\",\"odt_relation\":\"something\",\"odt_comments\":\"something\",\"odt_mime\":\"something\",\"odt_columns\":\"something\",\"odt_null\":\"NULL\",\"pdf_report_title\":\"\",\"pdf_structure_or_data\":\"data\",\"phparray_structure_or_data\":\"data\",\"sql_include_comments\":\"something\",\"sql_header_comment\":\"\",\"sql_use_transaction\":\"something\",\"sql_compatibility\":\"NONE\",\"sql_structure_or_data\":\"structure_and_data\",\"sql_create_table\":\"something\",\"sql_auto_increment\":\"something\",\"sql_create_view\":\"something\",\"sql_create_trigger\":\"something\",\"sql_backquotes\":\"something\",\"sql_type\":\"INSERT\",\"sql_insert_syntax\":\"both\",\"sql_max_query_size\":\"50000\",\"sql_hex_for_binary\":\"something\",\"sql_utc_time\":\"something\",\"texytext_structure_or_data\":\"structure_and_data\",\"texytext_null\":\"NULL\",\"yaml_structure_or_data\":\"data\",\"\":null,\"as_separate_files\":null,\"csv_removeCRLF\":null,\"csv_columns\":null,\"excel_removeCRLF\":null,\"json_pretty_print\":null,\"htmlword_columns\":null,\"ods_columns\":null,\"sql_dates\":null,\"sql_relation\":null,\"sql_mime\":null,\"sql_disable_fk\":null,\"sql_views_as_tables\":null,\"sql_metadata\":null,\"sql_drop_database\":null,\"sql_drop_table\":null,\"sql_if_not_exists\":null,\"sql_simple_view_export\":null,\"sql_view_current_user\":null,\"sql_or_replace_view\":null,\"sql_procedure_function\":null,\"sql_truncate\":null,\"sql_delayed\":null,\"sql_ignore\":null,\"texytext_columns\":null}');
-- --------------------------------------------------------
--
-- Table structure for table `pma__favorite`
--
CREATE TABLE `pma__favorite` (
`username` varchar(64) NOT NULL,
`tables` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Favorite tables';
-- --------------------------------------------------------
--
-- Table structure for table `pma__history`
--
CREATE TABLE `pma__history` (
`id` bigint(20) UNSIGNED NOT NULL,
`username` varchar(64) NOT NULL DEFAULT '',
`db` varchar(64) NOT NULL DEFAULT '',
`table` varchar(64) NOT NULL DEFAULT '',
`timevalue` timestamp NOT NULL DEFAULT current_timestamp(),
`sqlquery` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin';
-- --------------------------------------------------------
--
-- Table structure for table `pma__navigationhiding`
--
CREATE TABLE `pma__navigationhiding` (
`username` varchar(64) NOT NULL,
`item_name` varchar(64) NOT NULL,
`item_type` varchar(64) NOT NULL,
`db_name` varchar(64) NOT NULL,
`table_name` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Hidden items of navigation tree';
-- --------------------------------------------------------
--
-- Table structure for table `pma__pdf_pages`
--
CREATE TABLE `pma__pdf_pages` (
`db_name` varchar(64) NOT NULL DEFAULT '',
`page_nr` int(10) UNSIGNED NOT NULL,
`page_descr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin';
-- --------------------------------------------------------
--
-- Table structure for table `pma__recent`
--
CREATE TABLE `pma__recent` (
`username` varchar(64) NOT NULL,
`tables` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Recently accessed tables';
--
-- Dumping data for table `pma__recent`
--
INSERT INTO `pma__recent` (`username`, `tables`) VALUES
('root', '[{\"db\":\"mobile_store_db\",\"table\":\"products\"},{\"db\":\"mobile_store_db\",\"table\":\"inventory\"},{\"db\":\"mobile_store_db\",\"table\":\"categories\"},{\"db\":\"mobile_store_db\",\"table\":\"clients\"},{\"db\":\"mobile_store_db\",\"table\":\"orders\"},{\"db\":\"mobile_store_db\",\"table\":\"order_list\"},{\"db\":\"mobile_store_db\",\"table\":\"sales\"},{\"db\":\"mobile_store_db\",\"table\":\"sub_categories\"},{\"db\":\"mobile_store_db\",\"table\":\"system_info\"},{\"db\":\"mobile_store_db\",\"table\":\"users\"}]');
-- --------------------------------------------------------
--
-- Table structure for table `pma__relation`
--
CREATE TABLE `pma__relation` (
`master_db` varchar(64) NOT NULL DEFAULT '',
`master_table` varchar(64) NOT NULL DEFAULT '',
`master_field` varchar(64) NOT NULL DEFAULT '',
`foreign_db` varchar(64) NOT NULL DEFAULT '',
`foreign_table` varchar(64) NOT NULL DEFAULT '',
`foreign_field` varchar(64) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Relation table';
-- --------------------------------------------------------
--
-- Table structure for table `pma__savedsearches`
--
CREATE TABLE `pma__savedsearches` (
`id` int(5) UNSIGNED NOT NULL,
`username` varchar(64) NOT NULL DEFAULT '',
`db_name` varchar(64) NOT NULL DEFAULT '',
`search_name` varchar(64) NOT NULL DEFAULT '',
`search_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved searches';
-- --------------------------------------------------------
--
-- Table structure for table `pma__table_coords`
--
CREATE TABLE `pma__table_coords` (
`db_name` varchar(64) NOT NULL DEFAULT '',
`table_name` varchar(64) NOT NULL DEFAULT '',
`pdf_page_number` int(11) NOT NULL DEFAULT 0,
`x` float UNSIGNED NOT NULL DEFAULT 0,
`y` float UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output';
-- --------------------------------------------------------
--
-- Table structure for table `pma__table_info`
--
CREATE TABLE `pma__table_info` (
`db_name` varchar(64) NOT NULL DEFAULT '',
`table_name` varchar(64) NOT NULL DEFAULT '',
`display_field` varchar(64) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin';
-- --------------------------------------------------------
--
-- Table structure for table `pma__table_uiprefs`
--
CREATE TABLE `pma__table_uiprefs` (
`username` varchar(64) NOT NULL,
`db_name` varchar(64) NOT NULL,
`table_name` varchar(64) NOT NULL,
`prefs` text NOT NULL,
`last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Tables'' UI preferences';
-- --------------------------------------------------------
--
-- Table structure for table `pma__tracking`
--
CREATE TABLE `pma__tracking` (
`db_name` varchar(64) NOT NULL,
`table_name` varchar(64) NOT NULL,
`version` int(10) UNSIGNED NOT NULL,
`date_created` datetime NOT NULL,
`date_updated` datetime NOT NULL,
`schema_snapshot` text NOT NULL,
`schema_sql` text DEFAULT NULL,
`data_sql` longtext DEFAULT NULL,
`tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') DEFAULT NULL,
`tracking_active` int(1) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database changes tracking for phpMyAdmin';
-- --------------------------------------------------------
--
-- Table structure for table `pma__userconfig`
--
CREATE TABLE `pma__userconfig` (
`username` varchar(64) NOT NULL,
`timevalue` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`config_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin';
--
-- Dumping data for table `pma__userconfig`
--
INSERT INTO `pma__userconfig` (`username`, `timevalue`, `config_data`) VALUES
('root', '2023-04-06 08:51:27', '{\"Console\\/Mode\":\"collapse\"}');
-- --------------------------------------------------------
--
-- Table structure for table `pma__usergroups`
--
CREATE TABLE `pma__usergroups` (
`usergroup` varchar(64) NOT NULL,
`tab` varchar(64) NOT NULL,
`allowed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User groups with configured menu items';
-- --------------------------------------------------------
--
-- Table structure for table `pma__users`
--
CREATE TABLE `pma__users` (
`username` varchar(64) NOT NULL,
`usergroup` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and their assignments to user groups';
--
-- Indexes for dumped tables
--
--
-- Indexes for table `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pma__central_columns`
--
ALTER TABLE `pma__central_columns`
ADD PRIMARY KEY (`db_name`,`col_name`);
--
-- Indexes for table `pma__column_info`
--
ALTER TABLE `pma__column_info`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`);
--
-- Indexes for table `pma__designer_settings`
--
ALTER TABLE `pma__designer_settings`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`);
--
-- Indexes for table `pma__favorite`
--
ALTER TABLE `pma__favorite`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `pma__history`
--
ALTER TABLE `pma__history`
ADD PRIMARY KEY (`id`),
ADD KEY `username` (`username`,`db`,`table`,`timevalue`);
--
-- Indexes for table `pma__navigationhiding`
--
ALTER TABLE `pma__navigationhiding`
ADD PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`);
--
-- Indexes for table `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
ADD PRIMARY KEY (`page_nr`),
ADD KEY `db_name` (`db_name`);
--
-- Indexes for table `pma__recent`
--
ALTER TABLE `pma__recent`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `pma__relation`
--
ALTER TABLE `pma__relation`
ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`),
ADD KEY `foreign_field` (`foreign_db`,`foreign_table`);
--
-- Indexes for table `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`);
--
-- Indexes for table `pma__table_coords`
--
ALTER TABLE `pma__table_coords`
ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`);
--
-- Indexes for table `pma__table_info`
--
ALTER TABLE `pma__table_info`
ADD PRIMARY KEY (`db_name`,`table_name`);
--
-- Indexes for table `pma__table_uiprefs`
--
ALTER TABLE `pma__table_uiprefs`
ADD PRIMARY KEY (`username`,`db_name`,`table_name`);
--
-- Indexes for table `pma__tracking`
--
ALTER TABLE `pma__tracking`
ADD PRIMARY KEY (`db_name`,`table_name`,`version`);
--
-- Indexes for table `pma__userconfig`
--
ALTER TABLE `pma__userconfig`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `pma__usergroups`
--
ALTER TABLE `pma__usergroups`
ADD PRIMARY KEY (`usergroup`,`tab`,`allowed`);
--
-- Indexes for table `pma__users`
--
ALTER TABLE `pma__users`
ADD PRIMARY KEY (`username`,`usergroup`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pma__column_info`
--
ALTER TABLE `pma__column_info`
MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `pma__history`
--
ALTER TABLE `pma__history`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
MODIFY `page_nr` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Database: `test`
--
CREATE DATABASE IF NOT EXISTS `test` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `test`;
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 */;