forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecommerce.sql
4875 lines (4264 loc) · 279 KB
/
ecommerce.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
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- MySQL dump 10.13 Distrib 5.6.47, for Linux (x86_64)
--
-- Host: localhost Database: ecommerce
-- ------------------------------------------------------
-- Server version 5.6.47
/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;
--
-- Current Database: `ecommerce`
--
/*!40000 DROP DATABASE IF EXISTS `ecommerce`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `ecommerce` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `ecommerce`;
--
-- Table structure for table `address_country`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `address_country` (
`iso_3166_1_a2` varchar(2) NOT NULL,
`iso_3166_1_a3` varchar(3) NOT NULL,
`iso_3166_1_numeric` varchar(3) NOT NULL,
`printable_name` varchar(128) NOT NULL,
`name` varchar(128) NOT NULL,
`display_order` smallint(5) unsigned NOT NULL,
`is_shipping_country` tinyint(1) NOT NULL,
PRIMARY KEY (`iso_3166_1_a2`),
KEY `address_country_display_order_dc88cde8` (`display_order`),
KEY `address_country_is_shipping_country_f7b6c461` (`is_shipping_country`),
KEY `address_country_printable_name_450b016c` (`printable_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `address_country`
--
LOCK TABLES `address_country` WRITE;
/*!40000 ALTER TABLE `address_country` DISABLE KEYS */;
INSERT INTO `address_country` VALUES ('AD','AND','020','Andorra','Principality of Andorra',0,1),('AE','ARE','784','United Arab Emirates','',0,1),('AF','AFG','004','Afghanistan','Islamic Republic of Afghanistan',0,1),('AG','ATG','028','Antigua and Barbuda','',0,1),('AI','AIA','660','Anguilla','',0,1),('AL','ALB','008','Albania','Republic of Albania',0,1),('AM','ARM','051','Armenia','Republic of Armenia',0,1),('AO','AGO','024','Angola','Republic of Angola',0,1),('AQ','ATA','010','Antarctica','',0,1),('AR','ARG','032','Argentina','Argentine Republic',0,1),('AS','ASM','016','American Samoa','',0,1),('AT','AUT','040','Austria','Republic of Austria',0,1),('AU','AUS','036','Australia','',0,1),('AW','ABW','533','Aruba','',0,1),('AX','ALA','248','Åland Islands','',0,1),('AZ','AZE','031','Azerbaijan','Republic of Azerbaijan',0,1),('BA','BIH','070','Bosnia and Herzegovina','Republic of Bosnia and Herzegovina',0,1),('BB','BRB','052','Barbados','',0,1),('BD','BGD','050','Bangladesh','People\'s Republic of Bangladesh',0,1),('BE','BEL','056','Belgium','Kingdom of Belgium',0,1),('BF','BFA','854','Burkina Faso','',0,1),('BG','BGR','100','Bulgaria','Republic of Bulgaria',0,1),('BH','BHR','048','Bahrain','Kingdom of Bahrain',0,1),('BI','BDI','108','Burundi','Republic of Burundi',0,1),('BJ','BEN','204','Benin','Republic of Benin',0,1),('BL','BLM','652','Saint Barthélemy','',0,1),('BM','BMU','060','Bermuda','',0,1),('BN','BRN','096','Brunei Darussalam','',0,1),('BO','BOL','068','Bolivia, Plurinational State of','Plurinational State of Bolivia',0,1),('BQ','BES','535','Bonaire, Sint Eustatius and Saba','Bonaire, Sint Eustatius and Saba',0,1),('BR','BRA','076','Brazil','Federative Republic of Brazil',0,1),('BS','BHS','044','Bahamas','Commonwealth of the Bahamas',0,1),('BT','BTN','064','Bhutan','Kingdom of Bhutan',0,1),('BV','BVT','074','Bouvet Island','',0,1),('BW','BWA','072','Botswana','Republic of Botswana',0,1),('BY','BLR','112','Belarus','Republic of Belarus',0,1),('BZ','BLZ','084','Belize','',0,1),('CA','CAN','124','Canada','',0,1),('CC','CCK','166','Cocos (Keeling) Islands','',0,1),('CD','COD','180','Congo, The Democratic Republic of the','',0,1),('CF','CAF','140','Central African Republic','',0,1),('CG','COG','178','Congo','Republic of the Congo',0,1),('CH','CHE','756','Switzerland','Swiss Confederation',0,1),('CI','CIV','384','Côte d\'Ivoire','Republic of Côte d\'Ivoire',0,1),('CK','COK','184','Cook Islands','',0,1),('CL','CHL','152','Chile','Republic of Chile',0,1),('CM','CMR','120','Cameroon','Republic of Cameroon',0,1),('CN','CHN','156','China','People\'s Republic of China',0,1),('CO','COL','170','Colombia','Republic of Colombia',0,1),('CR','CRI','188','Costa Rica','Republic of Costa Rica',0,1),('CU','CUB','192','Cuba','Republic of Cuba',0,1),('CV','CPV','132','Cabo Verde','Republic of Cabo Verde',0,1),('CW','CUW','531','Curaçao','Curaçao',0,1),('CX','CXR','162','Christmas Island','',0,1),('CY','CYP','196','Cyprus','Republic of Cyprus',0,1),('CZ','CZE','203','Czechia','Czech Republic',0,1),('DE','DEU','276','Germany','Federal Republic of Germany',0,1),('DJ','DJI','262','Djibouti','Republic of Djibouti',0,1),('DK','DNK','208','Denmark','Kingdom of Denmark',0,1),('DM','DMA','212','Dominica','Commonwealth of Dominica',0,1),('DO','DOM','214','Dominican Republic','',0,1),('DZ','DZA','012','Algeria','People\'s Democratic Republic of Algeria',0,1),('EC','ECU','218','Ecuador','Republic of Ecuador',0,1),('EE','EST','233','Estonia','Republic of Estonia',0,1),('EG','EGY','818','Egypt','Arab Republic of Egypt',0,1),('EH','ESH','732','Western Sahara','',0,1),('ER','ERI','232','Eritrea','the State of Eritrea',0,1),('ES','ESP','724','Spain','Kingdom of Spain',0,1),('ET','ETH','231','Ethiopia','Federal Democratic Republic of Ethiopia',0,1),('FI','FIN','246','Finland','Republic of Finland',0,1),('FJ','FJI','242','Fiji','Republic of Fiji',0,1),('FK','FLK','238','Falkland Islands (Malvinas)','',0,1),('FM','FSM','583','Micronesia, Federated States of','Federated States of Micronesia',0,1),('FO','FRO','234','Faroe Islands','',0,1),('FR','FRA','250','France','French Republic',0,1),('GA','GAB','266','Gabon','Gabonese Republic',0,1),('GB','GBR','826','United Kingdom','United Kingdom of Great Britain and Northern Ireland',0,1),('GD','GRD','308','Grenada','',0,1),('GE','GEO','268','Georgia','',0,1),('GF','GUF','254','French Guiana','',0,1),('GG','GGY','831','Guernsey','',0,1),('GH','GHA','288','Ghana','Republic of Ghana',0,1),('GI','GIB','292','Gibraltar','',0,1),('GL','GRL','304','Greenland','',0,1),('GM','GMB','270','Gambia','Islamic Republic of the Gambia',0,1),('GN','GIN','324','Guinea','Republic of Guinea',0,1),('GP','GLP','312','Guadeloupe','',0,1),('GQ','GNQ','226','Equatorial Guinea','Republic of Equatorial Guinea',0,1),('GR','GRC','300','Greece','Hellenic Republic',0,1),('GS','SGS','239','South Georgia and the South Sandwich Islands','',0,1),('GT','GTM','320','Guatemala','Republic of Guatemala',0,1),('GU','GUM','316','Guam','',0,1),('GW','GNB','624','Guinea-Bissau','Republic of Guinea-Bissau',0,1),('GY','GUY','328','Guyana','Republic of Guyana',0,1),('HK','HKG','344','Hong Kong','Hong Kong Special Administrative Region of China',0,1),('HM','HMD','334','Heard Island and McDonald Islands','',0,1),('HN','HND','340','Honduras','Republic of Honduras',0,1),('HR','HRV','191','Croatia','Republic of Croatia',0,1),('HT','HTI','332','Haiti','Republic of Haiti',0,1),('HU','HUN','348','Hungary','Hungary',0,1),('ID','IDN','360','Indonesia','Republic of Indonesia',0,1),('IE','IRL','372','Ireland','',0,1),('IL','ISR','376','Israel','State of Israel',0,1),('IM','IMN','833','Isle of Man','',0,1),('IN','IND','356','India','Republic of India',0,1),('IO','IOT','086','British Indian Ocean Territory','',0,1),('IQ','IRQ','368','Iraq','Republic of Iraq',0,1),('IR','IRN','364','Iran, Islamic Republic of','Islamic Republic of Iran',0,1),('IS','ISL','352','Iceland','Republic of Iceland',0,1),('IT','ITA','380','Italy','Italian Republic',0,1),('JE','JEY','832','Jersey','',0,1),('JM','JAM','388','Jamaica','',0,1),('JO','JOR','400','Jordan','Hashemite Kingdom of Jordan',0,1),('JP','JPN','392','Japan','',0,1),('KE','KEN','404','Kenya','Republic of Kenya',0,1),('KG','KGZ','417','Kyrgyzstan','Kyrgyz Republic',0,1),('KH','KHM','116','Cambodia','Kingdom of Cambodia',0,1),('KI','KIR','296','Kiribati','Republic of Kiribati',0,1),('KM','COM','174','Comoros','Union of the Comoros',0,1),('KN','KNA','659','Saint Kitts and Nevis','',0,1),('KP','PRK','408','Korea, Democratic People\'s Republic of','Democratic People\'s Republic of Korea',0,1),('KR','KOR','410','Korea, Republic of','',0,1),('KW','KWT','414','Kuwait','State of Kuwait',0,1),('KY','CYM','136','Cayman Islands','',0,1),('KZ','KAZ','398','Kazakhstan','Republic of Kazakhstan',0,1),('LA','LAO','418','Lao People\'s Democratic Republic','',0,1),('LB','LBN','422','Lebanon','Lebanese Republic',0,1),('LC','LCA','662','Saint Lucia','',0,1),('LI','LIE','438','Liechtenstein','Principality of Liechtenstein',0,1),('LK','LKA','144','Sri Lanka','Democratic Socialist Republic of Sri Lanka',0,1),('LR','LBR','430','Liberia','Republic of Liberia',0,1),('LS','LSO','426','Lesotho','Kingdom of Lesotho',0,1),('LT','LTU','440','Lithuania','Republic of Lithuania',0,1),('LU','LUX','442','Luxembourg','Grand Duchy of Luxembourg',0,1),('LV','LVA','428','Latvia','Republic of Latvia',0,1),('LY','LBY','434','Libya','Libya',0,1),('MA','MAR','504','Morocco','Kingdom of Morocco',0,1),('MC','MCO','492','Monaco','Principality of Monaco',0,1),('MD','MDA','498','Moldova, Republic of','Republic of Moldova',0,1),('ME','MNE','499','Montenegro','Montenegro',0,1),('MF','MAF','663','Saint Martin (French part)','',0,1),('MG','MDG','450','Madagascar','Republic of Madagascar',0,1),('MH','MHL','584','Marshall Islands','Republic of the Marshall Islands',0,1),('MK','MKD','807','Macedonia, Republic of','The Former Yugoslav Republic of Macedonia',0,1),('ML','MLI','466','Mali','Republic of Mali',0,1),('MM','MMR','104','Myanmar','Republic of Myanmar',0,1),('MN','MNG','496','Mongolia','',0,1),('MO','MAC','446','Macao','Macao Special Administrative Region of China',0,1),('MP','MNP','580','Northern Mariana Islands','Commonwealth of the Northern Mariana Islands',0,1),('MQ','MTQ','474','Martinique','',0,1),('MR','MRT','478','Mauritania','Islamic Republic of Mauritania',0,1),('MS','MSR','500','Montserrat','',0,1),('MT','MLT','470','Malta','Republic of Malta',0,1),('MU','MUS','480','Mauritius','Republic of Mauritius',0,1),('MV','MDV','462','Maldives','Republic of Maldives',0,1),('MW','MWI','454','Malawi','Republic of Malawi',0,1),('MX','MEX','484','Mexico','United Mexican States',0,1),('MY','MYS','458','Malaysia','',0,1),('MZ','MOZ','508','Mozambique','Republic of Mozambique',0,1),('NA','NAM','516','Namibia','Republic of Namibia',0,1),('NC','NCL','540','New Caledonia','',0,1),('NE','NER','562','Niger','Republic of the Niger',0,1),('NF','NFK','574','Norfolk Island','',0,1),('NG','NGA','566','Nigeria','Federal Republic of Nigeria',0,1),('NI','NIC','558','Nicaragua','Republic of Nicaragua',0,1),('NL','NLD','528','Netherlands','Kingdom of the Netherlands',0,1),('NO','NOR','578','Norway','Kingdom of Norway',0,1),('NP','NPL','524','Nepal','Federal Democratic Republic of Nepal',0,1),('NR','NRU','520','Nauru','Republic of Nauru',0,1),('NU','NIU','570','Niue','Niue',0,1),('NZ','NZL','554','New Zealand','',0,1),('OM','OMN','512','Oman','Sultanate of Oman',0,1),('PA','PAN','591','Panama','Republic of Panama',0,1),('PE','PER','604','Peru','Republic of Peru',0,1),('PF','PYF','258','French Polynesia','',0,1),('PG','PNG','598','Papua New Guinea','Independent State of Papua New Guinea',0,1),('PH','PHL','608','Philippines','Republic of the Philippines',0,1),('PK','PAK','586','Pakistan','Islamic Republic of Pakistan',0,1),('PL','POL','616','Poland','Republic of Poland',0,1),('PM','SPM','666','Saint Pierre and Miquelon','',0,1),('PN','PCN','612','Pitcairn','',0,1),('PR','PRI','630','Puerto Rico','',0,1),('PS','PSE','275','Palestine, State of','the State of Palestine',0,1),('PT','PRT','620','Portugal','Portuguese Republic',0,1),('PW','PLW','585','Palau','Republic of Palau',0,1),('PY','PRY','600','Paraguay','Republic of Paraguay',0,1),('QA','QAT','634','Qatar','State of Qatar',0,1),('RE','REU','638','Réunion','',0,1),('RO','ROU','642','Romania','',0,1),('RS','SRB','688','Serbia','Republic of Serbia',0,1),('RU','RUS','643','Russian Federation','',0,1),('RW','RWA','646','Rwanda','Rwandese Republic',0,1),('SA','SAU','682','Saudi Arabia','Kingdom of Saudi Arabia',0,1),('SB','SLB','090','Solomon Islands','',0,1),('SC','SYC','690','Seychelles','Republic of Seychelles',0,1),('SD','SDN','729','Sudan','Republic of the Sudan',0,1),('SE','SWE','752','Sweden','Kingdom of Sweden',0,1),('SG','SGP','702','Singapore','Republic of Singapore',0,1),('SH','SHN','654','Saint Helena, Ascension and Tristan da Cunha','',0,1),('SI','SVN','705','Slovenia','Republic of Slovenia',0,1),('SJ','SJM','744','Svalbard and Jan Mayen','',0,1),('SK','SVK','703','Slovakia','Slovak Republic',0,1),('SL','SLE','694','Sierra Leone','Republic of Sierra Leone',0,1),('SM','SMR','674','San Marino','Republic of San Marino',0,1),('SN','SEN','686','Senegal','Republic of Senegal',0,1),('SO','SOM','706','Somalia','Federal Republic of Somalia',0,1),('SR','SUR','740','Suriname','Republic of Suriname',0,1),('SS','SSD','728','South Sudan','Republic of South Sudan',0,1),('ST','STP','678','Sao Tome and Principe','Democratic Republic of Sao Tome and Principe',0,1),('SV','SLV','222','El Salvador','Republic of El Salvador',0,1),('SX','SXM','534','Sint Maarten (Dutch part)','Sint Maarten (Dutch part)',0,1),('SY','SYR','760','Syrian Arab Republic','',0,1),('SZ','SWZ','748','Swaziland','Kingdom of Swaziland',0,1),('TC','TCA','796','Turks and Caicos Islands','',0,1),('TD','TCD','148','Chad','Republic of Chad',0,1),('TF','ATF','260','French Southern Territories','',0,1),('TG','TGO','768','Togo','Togolese Republic',0,1),('TH','THA','764','Thailand','Kingdom of Thailand',0,1),('TJ','TJK','762','Tajikistan','Republic of Tajikistan',0,1),('TK','TKL','772','Tokelau','',0,1),('TL','TLS','626','Timor-Leste','Democratic Republic of Timor-Leste',0,1),('TM','TKM','795','Turkmenistan','',0,1),('TN','TUN','788','Tunisia','Republic of Tunisia',0,1),('TO','TON','776','Tonga','Kingdom of Tonga',0,1),('TR','TUR','792','Turkey','Republic of Turkey',0,1),('TT','TTO','780','Trinidad and Tobago','Republic of Trinidad and Tobago',0,1),('TV','TUV','798','Tuvalu','',0,1),('TW','TWN','158','Taiwan, Province of China','Taiwan, Province of China',0,1),('TZ','TZA','834','Tanzania, United Republic of','United Republic of Tanzania',0,1),('UA','UKR','804','Ukraine','',0,1),('UG','UGA','800','Uganda','Republic of Uganda',0,1),('UM','UMI','581','United States Minor Outlying Islands','',0,1),('US','USA','840','United States','United States of America',0,1),('UY','URY','858','Uruguay','Eastern Republic of Uruguay',0,1),('UZ','UZB','860','Uzbekistan','Republic of Uzbekistan',0,1),('VA','VAT','336','Holy See (Vatican City State)','',0,1),('VC','VCT','670','Saint Vincent and the Grenadines','',0,1),('VE','VEN','862','Venezuela, Bolivarian Republic of','Bolivarian Republic of Venezuela',0,1),('VG','VGB','092','Virgin Islands, British','British Virgin Islands',0,1),('VI','VIR','850','Virgin Islands, U.S.','Virgin Islands of the United States',0,1),('VN','VNM','704','Viet Nam','Socialist Republic of Viet Nam',0,1),('VU','VUT','548','Vanuatu','Republic of Vanuatu',0,1),('WF','WLF','876','Wallis and Futuna','',0,1),('WS','WSM','882','Samoa','Independent State of Samoa',0,1),('YE','YEM','887','Yemen','Republic of Yemen',0,1),('YT','MYT','175','Mayotte','',0,1),('ZA','ZAF','710','South Africa','Republic of South Africa',0,1),('ZM','ZMB','894','Zambia','Republic of Zambia',0,1),('ZW','ZWE','716','Zimbabwe','Republic of Zimbabwe',0,1);
/*!40000 ALTER TABLE `address_country` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `address_useraddress`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `address_useraddress` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(64) NOT NULL,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`line1` varchar(255) NOT NULL,
`line2` varchar(255) NOT NULL,
`line3` varchar(255) NOT NULL,
`line4` varchar(255) NOT NULL,
`state` varchar(255) NOT NULL,
`postcode` varchar(64) NOT NULL,
`search_text` longtext NOT NULL,
`phone_number` varchar(128) NOT NULL,
`notes` longtext NOT NULL,
`is_default_for_shipping` tinyint(1) NOT NULL,
`is_default_for_billing` tinyint(1) NOT NULL,
`num_orders_as_shipping_address` int(10) unsigned NOT NULL,
`hash` varchar(255) NOT NULL,
`date_created` datetime(6) NOT NULL,
`country_id` varchar(2) NOT NULL,
`user_id` int(11) NOT NULL,
`num_orders_as_billing_address` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `address_useraddress_user_id_hash_9d1738c7_uniq` (`user_id`,`hash`),
KEY `address_useraddress_country_id_fa26a249_fk_address_c` (`country_id`),
KEY `address_useraddress_hash_e0a6b290` (`hash`),
CONSTRAINT `address_useraddress_country_id_fa26a249_fk_address_c` FOREIGN KEY (`country_id`) REFERENCES `address_country` (`iso_3166_1_a2`),
CONSTRAINT `address_useraddress_user_id_6edf0244_fk_ecommerce_user_id` FOREIGN KEY (`user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `address_useraddress`
--
LOCK TABLES `address_useraddress` WRITE;
/*!40000 ALTER TABLE `address_useraddress` DISABLE KEYS */;
/*!40000 ALTER TABLE `address_useraddress` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `analytics_productrecord`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `analytics_productrecord` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`num_views` int(10) unsigned NOT NULL,
`num_basket_additions` int(10) unsigned NOT NULL,
`num_purchases` int(10) unsigned NOT NULL,
`score` double NOT NULL,
`product_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `product_id` (`product_id`),
KEY `analytics_productrecord_num_purchases_405301a0` (`num_purchases`),
CONSTRAINT `analytics_productrec_product_id_dad3a871_fk_catalogue` FOREIGN KEY (`product_id`) REFERENCES `catalogue_product` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `analytics_productrecord`
--
LOCK TABLES `analytics_productrecord` WRITE;
/*!40000 ALTER TABLE `analytics_productrecord` DISABLE KEYS */;
/*!40000 ALTER TABLE `analytics_productrecord` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `analytics_userproductview`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `analytics_userproductview` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date_created` datetime(6) NOT NULL,
`product_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `analytics_userproduc_product_id_a55b87ad_fk_catalogue` (`product_id`),
KEY `analytics_userproductview_user_id_5e49a8b1_fk_ecommerce_user_id` (`user_id`),
CONSTRAINT `analytics_userproduc_product_id_a55b87ad_fk_catalogue` FOREIGN KEY (`product_id`) REFERENCES `catalogue_product` (`id`),
CONSTRAINT `analytics_userproductview_user_id_5e49a8b1_fk_ecommerce_user_id` FOREIGN KEY (`user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `analytics_userproductview`
--
LOCK TABLES `analytics_userproductview` WRITE;
/*!40000 ALTER TABLE `analytics_userproductview` DISABLE KEYS */;
/*!40000 ALTER TABLE `analytics_userproductview` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `analytics_userrecord`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `analytics_userrecord` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`num_product_views` int(10) unsigned NOT NULL,
`num_basket_additions` int(10) unsigned NOT NULL,
`num_orders` int(10) unsigned NOT NULL,
`num_order_lines` int(10) unsigned NOT NULL,
`num_order_items` int(10) unsigned NOT NULL,
`total_spent` decimal(12,2) NOT NULL,
`date_last_order` datetime(6) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
KEY `analytics_userrecord_num_orders_b352ffd1` (`num_orders`),
KEY `analytics_userrecord_num_order_lines_97cc087f` (`num_order_lines`),
KEY `analytics_userrecord_num_order_items_fb2a8304` (`num_order_items`),
CONSTRAINT `analytics_userrecord_user_id_702cff4c_fk_ecommerce_user_id` FOREIGN KEY (`user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `analytics_userrecord`
--
LOCK TABLES `analytics_userrecord` WRITE;
/*!40000 ALTER TABLE `analytics_userrecord` DISABLE KEYS */;
/*!40000 ALTER TABLE `analytics_userrecord` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `analytics_usersearch`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `analytics_usersearch` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`query` varchar(255) NOT NULL,
`date_created` datetime(6) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `analytics_usersearch_user_id_1775992d_fk_ecommerce_user_id` (`user_id`),
KEY `analytics_usersearch_query_ad36478b` (`query`),
CONSTRAINT `analytics_usersearch_user_id_1775992d_fk_ecommerce_user_id` FOREIGN KEY (`user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `analytics_usersearch`
--
LOCK TABLES `analytics_usersearch` WRITE;
/*!40000 ALTER TABLE `analytics_usersearch` DISABLE KEYS */;
/*!40000 ALTER TABLE `analytics_usersearch` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group`
--
LOCK TABLES `auth_group` WRITE;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group_permissions`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group_permissions`
--
LOCK TABLES `auth_group_permissions` WRITE;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_permission`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=569 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_permission`
--
LOCK TABLES `auth_permission` WRITE;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` VALUES (1,'Can add Country',1,'add_country'),(2,'Can change Country',1,'change_country'),(3,'Can delete Country',1,'delete_country'),(4,'Can view Country',1,'view_country'),(5,'Can add User address',2,'add_useraddress'),(6,'Can change User address',2,'change_useraddress'),(7,'Can delete User address',2,'delete_useraddress'),(8,'Can view User address',2,'view_useraddress'),(9,'Can add log entry',3,'add_logentry'),(10,'Can change log entry',3,'change_logentry'),(11,'Can delete log entry',3,'delete_logentry'),(12,'Can view log entry',3,'view_logentry'),(13,'Can add User product view',6,'add_userproductview'),(14,'Can change User product view',6,'change_userproductview'),(15,'Can delete User product view',6,'delete_userproductview'),(16,'Can view User product view',6,'view_userproductview'),(17,'Can add User record',5,'add_userrecord'),(18,'Can change User record',5,'change_userrecord'),(19,'Can delete User record',5,'delete_userrecord'),(20,'Can view User record',5,'view_userrecord'),(21,'Can add User search query',4,'add_usersearch'),(22,'Can change User search query',4,'change_usersearch'),(23,'Can delete User search query',4,'delete_usersearch'),(24,'Can view User search query',4,'view_usersearch'),(25,'Can add Product record',7,'add_productrecord'),(26,'Can change Product record',7,'change_productrecord'),(27,'Can delete Product record',7,'delete_productrecord'),(28,'Can view Product record',7,'view_productrecord'),(29,'Can add group',9,'add_group'),(30,'Can change group',9,'change_group'),(31,'Can delete group',9,'delete_group'),(32,'Can view group',9,'view_group'),(33,'Can add permission',8,'add_permission'),(34,'Can change permission',8,'change_permission'),(35,'Can delete permission',8,'delete_permission'),(36,'Can view permission',8,'view_permission'),(37,'Can add Basket',13,'add_basket'),(38,'Can change Basket',13,'change_basket'),(39,'Can delete Basket',13,'delete_basket'),(40,'Can view Basket',13,'view_basket'),(41,'Can add Line attribute',12,'add_lineattribute'),(42,'Can change Line attribute',12,'change_lineattribute'),(43,'Can delete Line attribute',12,'delete_lineattribute'),(44,'Can view Line attribute',12,'view_lineattribute'),(45,'Can add Basket line',14,'add_line'),(46,'Can change Basket line',14,'change_line'),(47,'Can delete Basket line',14,'delete_line'),(48,'Can view Basket line',14,'view_line'),(49,'Can add basket attribute type',11,'add_basketattributetype'),(50,'Can change basket attribute type',11,'change_basketattributetype'),(51,'Can delete basket attribute type',11,'delete_basketattributetype'),(52,'Can view basket attribute type',11,'view_basketattributetype'),(53,'Can add basket attribute',10,'add_basketattribute'),(54,'Can change basket attribute',10,'change_basketattribute'),(55,'Can delete basket attribute',10,'delete_basketattribute'),(56,'Can view basket attribute',10,'view_basketattribute'),(57,'Can add Attribute option group',31,'add_attributeoptiongroup'),(58,'Can change Attribute option group',31,'change_attributeoptiongroup'),(59,'Can delete Attribute option group',31,'delete_attributeoptiongroup'),(60,'Can view Attribute option group',31,'view_attributeoptiongroup'),(61,'Can add Product',33,'add_product'),(62,'Can change Product',33,'change_product'),(63,'Can delete Product',33,'delete_product'),(64,'Can view Product',33,'view_product'),(65,'Can add Product category',18,'add_productcategory'),(66,'Can change Product category',18,'change_productcategory'),(67,'Can delete Product category',18,'delete_productcategory'),(68,'Can view Product category',18,'view_productcategory'),(69,'Can add historical Product',30,'add_historicalproduct'),(70,'Can change historical Product',30,'change_historicalproduct'),(71,'Can delete historical Product',30,'delete_historicalproduct'),(72,'Can view historical Product',30,'view_historicalproduct'),(73,'Can add Product attribute',15,'add_productattribute'),(74,'Can change Product attribute',15,'change_productattribute'),(75,'Can delete Product attribute',15,'delete_productattribute'),(76,'Can view Product attribute',15,'view_productattribute'),(77,'Can add Product image',27,'add_productimage'),(78,'Can change Product image',27,'change_productimage'),(79,'Can delete Product image',27,'delete_productimage'),(80,'Can view Product image',27,'view_productimage'),(81,'Can add historical Product attribute',32,'add_historicalproductattribute'),(82,'Can change historical Product attribute',32,'change_historicalproductattribute'),(83,'Can delete historical Product attribute',32,'delete_historicalproductattribute'),(84,'Can view historical Product attribute',32,'view_historicalproductattribute'),(85,'Can add Product recommendation',26,'add_productrecommendation'),(86,'Can change Product recommendation',26,'change_productrecommendation'),(87,'Can delete Product recommendation',26,'delete_productrecommendation'),(88,'Can view Product recommendation',26,'view_productrecommendation'),(89,'Can add Category',29,'add_category'),(90,'Can change Category',29,'change_category'),(91,'Can delete Category',29,'delete_category'),(92,'Can view Category',29,'view_category'),(93,'Can add historical Product class',24,'add_historicalproductclass'),(94,'Can change historical Product class',24,'change_historicalproductclass'),(95,'Can delete historical Product class',24,'delete_historicalproductclass'),(96,'Can view historical Product class',24,'view_historicalproductclass'),(97,'Can add Attribute option',19,'add_attributeoption'),(98,'Can change Attribute option',19,'change_attributeoption'),(99,'Can delete Attribute option',19,'delete_attributeoption'),(100,'Can view Attribute option',19,'view_attributeoption'),(101,'Can add historical Product attribute value',22,'add_historicalproductattributevalue'),(102,'Can change historical Product attribute value',22,'change_historicalproductattributevalue'),(103,'Can delete historical Product attribute value',22,'delete_historicalproductattributevalue'),(104,'Can view historical Product attribute value',22,'view_historicalproductattributevalue'),(105,'Can add catalog',16,'add_catalog'),(106,'Can change catalog',16,'change_catalog'),(107,'Can delete catalog',16,'delete_catalog'),(108,'Can view catalog',16,'view_catalog'),(109,'Can add historical Product category',21,'add_historicalproductcategory'),(110,'Can change historical Product category',21,'change_historicalproductcategory'),(111,'Can delete historical Product category',21,'delete_historicalproductcategory'),(112,'Can view historical Product category',21,'view_historicalproductcategory'),(113,'Can add Option',20,'add_option'),(114,'Can change Option',20,'change_option'),(115,'Can delete Option',20,'delete_option'),(116,'Can view Option',20,'view_option'),(117,'Can add Product class',28,'add_productclass'),(118,'Can change Product class',28,'change_productclass'),(119,'Can delete Product class',28,'delete_productclass'),(120,'Can view Product class',28,'view_productclass'),(121,'Can add historical Category',23,'add_historicalcategory'),(122,'Can change historical Category',23,'change_historicalcategory'),(123,'Can delete historical Category',23,'delete_historicalcategory'),(124,'Can view historical Category',23,'view_historicalcategory'),(125,'Can add historical Option',17,'add_historicaloption'),(126,'Can change historical Option',17,'change_historicaloption'),(127,'Can delete historical Option',17,'delete_historicaloption'),(128,'Can view historical Option',17,'view_historicaloption'),(129,'Can add Product attribute value',25,'add_productattributevalue'),(130,'Can change Product attribute value',25,'change_productattributevalue'),(131,'Can delete Product attribute value',25,'delete_productattributevalue'),(132,'Can view Product attribute value',25,'view_productattributevalue'),(133,'Can add content type',34,'add_contenttype'),(134,'Can change content type',34,'change_contenttype'),(135,'Can delete content type',34,'delete_contenttype'),(136,'Can view content type',34,'view_contenttype'),(137,'Can add site configuration',36,'add_siteconfiguration'),(138,'Can change site configuration',36,'change_siteconfiguration'),(139,'Can delete site configuration',36,'delete_siteconfiguration'),(140,'Can view site configuration',36,'view_siteconfiguration'),(141,'Can add user',37,'add_user'),(142,'Can change user',37,'change_user'),(143,'Can delete user',37,'delete_user'),(144,'Can view user',37,'view_user'),(145,'Can add user',35,'add_client'),(146,'Can change user',35,'change_client'),(147,'Can delete user',35,'delete_client'),(148,'Can view user',35,'view_client'),(149,'Can add course',38,'add_course'),(150,'Can change course',38,'change_course'),(151,'Can delete course',38,'delete_course'),(152,'Can view course',38,'view_course'),(153,'Can add Communication event type',42,'add_communicationeventtype'),(154,'Can change Communication event type',42,'change_communicationeventtype'),(155,'Can delete Communication event type',42,'delete_communicationeventtype'),(156,'Can view Communication event type',42,'view_communicationeventtype'),(157,'Can add Email',40,'add_email'),(158,'Can change Email',40,'change_email'),(159,'Can delete Email',40,'delete_email'),(160,'Can view Email',40,'view_email'),(161,'Can add Product alert',39,'add_productalert'),(162,'Can change Product alert',39,'change_productalert'),(163,'Can delete Product alert',39,'delete_productalert'),(164,'Can view Product alert',39,'view_productalert'),(165,'Can add Notification',41,'add_notification'),(166,'Can change Notification',41,'change_notification'),(167,'Can delete Notification',41,'delete_notification'),(168,'Can view Notification',41,'view_notification'),(169,'Can add Range Product Uploaded File',43,'add_rangeproductfileupload'),(170,'Can change Range Product Uploaded File',43,'change_rangeproductfileupload'),(171,'Can delete Range Product Uploaded File',43,'delete_rangeproductfileupload'),(172,'Can view Range Product Uploaded File',43,'view_rangeproductfileupload'),(173,'Can add Benefit',44,'add_benefit'),(174,'Can change Benefit',44,'change_benefit'),(175,'Can delete Benefit',44,'delete_benefit'),(176,'Can view Benefit',44,'view_benefit'),(177,'Can add Range',49,'add_range'),(178,'Can change Range',49,'change_range'),(179,'Can delete Range',49,'delete_range'),(180,'Can view Range',49,'view_range'),(181,'Can add Conditional offer',52,'add_conditionaloffer'),(182,'Can change Conditional offer',52,'change_conditionaloffer'),(183,'Can delete Conditional offer',52,'delete_conditionaloffer'),(184,'Can view Conditional offer',52,'view_conditionaloffer'),(185,'Can add Percentage discount benefit',46,'add_percentagediscountbenefit'),(186,'Can change Percentage discount benefit',46,'change_percentagediscountbenefit'),(187,'Can delete Percentage discount benefit',46,'delete_percentagediscountbenefit'),(188,'Can view Percentage discount benefit',46,'view_percentagediscountbenefit'),(189,'Can add Multibuy discount benefit',59,'add_multibuydiscountbenefit'),(190,'Can change Multibuy discount benefit',59,'change_multibuydiscountbenefit'),(191,'Can delete Multibuy discount benefit',59,'delete_multibuydiscountbenefit'),(192,'Can view Multibuy discount benefit',59,'view_multibuydiscountbenefit'),(193,'Can add Fixed price benefit',50,'add_fixedpricebenefit'),(194,'Can change Fixed price benefit',50,'change_fixedpricebenefit'),(195,'Can delete Fixed price benefit',50,'delete_fixedpricebenefit'),(196,'Can view Fixed price benefit',50,'view_fixedpricebenefit'),(197,'Can add Condition',45,'add_condition'),(198,'Can change Condition',45,'change_condition'),(199,'Can delete Condition',45,'delete_condition'),(200,'Can view Condition',45,'view_condition'),(201,'Can add range product',57,'add_rangeproduct'),(202,'Can change range product',57,'change_rangeproduct'),(203,'Can delete range product',57,'delete_rangeproduct'),(204,'Can view range product',57,'view_rangeproduct'),(205,'Can add Coverage Condition',54,'add_coveragecondition'),(206,'Can change Coverage Condition',54,'change_coveragecondition'),(207,'Can delete Coverage Condition',54,'delete_coveragecondition'),(208,'Can view Coverage Condition',54,'view_coveragecondition'),(209,'Can add Absolute discount benefit',48,'add_absolutediscountbenefit'),(210,'Can change Absolute discount benefit',48,'change_absolutediscountbenefit'),(211,'Can delete Absolute discount benefit',48,'delete_absolutediscountbenefit'),(212,'Can view Absolute discount benefit',48,'view_absolutediscountbenefit'),(213,'Can add Value condition',53,'add_valuecondition'),(214,'Can change Value condition',53,'change_valuecondition'),(215,'Can delete Value condition',53,'delete_valuecondition'),(216,'Can view Value condition',53,'view_valuecondition'),(217,'Can add shipping benefit',56,'add_shippingbenefit'),(218,'Can change shipping benefit',56,'change_shippingbenefit'),(219,'Can delete shipping benefit',56,'delete_shippingbenefit'),(220,'Can view shipping benefit',56,'view_shippingbenefit'),(221,'Can add Count condition',58,'add_countcondition'),(222,'Can change Count condition',58,'change_countcondition'),(223,'Can delete Count condition',58,'delete_countcondition'),(224,'Can view Count condition',58,'view_countcondition'),(225,'Can add Shipping percentage discount benefit',47,'add_shippingpercentagediscountbenefit'),(226,'Can change Shipping percentage discount benefit',47,'change_shippingpercentagediscountbenefit'),(227,'Can delete Shipping percentage discount benefit',47,'delete_shippingpercentagediscountbenefit'),(228,'Can view Shipping percentage discount benefit',47,'view_shippingpercentagediscountbenefit'),(229,'Can add Shipping absolute discount benefit',55,'add_shippingabsolutediscountbenefit'),(230,'Can change Shipping absolute discount benefit',55,'change_shippingabsolutediscountbenefit'),(231,'Can delete Shipping absolute discount benefit',55,'delete_shippingabsolutediscountbenefit'),(232,'Can view Shipping absolute discount benefit',55,'view_shippingabsolutediscountbenefit'),(233,'Can add Fixed price shipping benefit',51,'add_shippingfixedpricebenefit'),(234,'Can change Fixed price shipping benefit',51,'change_shippingfixedpricebenefit'),(235,'Can delete Fixed price shipping benefit',51,'delete_shippingfixedpricebenefit'),(236,'Can view Fixed price shipping benefit',51,'view_shippingfixedpricebenefit'),(237,'Can add Shipping Event Quantity',62,'add_shippingeventquantity'),(238,'Can change Shipping Event Quantity',62,'change_shippingeventquantity'),(239,'Can delete Shipping Event Quantity',62,'delete_shippingeventquantity'),(240,'Can view Shipping Event Quantity',62,'view_shippingeventquantity'),(241,'Can add Line Attribute',73,'add_lineattribute'),(242,'Can change Line Attribute',73,'change_lineattribute'),(243,'Can delete Line Attribute',73,'delete_lineattribute'),(244,'Can view Line Attribute',73,'view_lineattribute'),(245,'Can add Payment Event Quantity',66,'add_paymenteventquantity'),(246,'Can change Payment Event Quantity',66,'change_paymenteventquantity'),(247,'Can delete Payment Event Quantity',66,'delete_paymenteventquantity'),(248,'Can view Payment Event Quantity',66,'view_paymenteventquantity'),(249,'Can add Payment Event',71,'add_paymentevent'),(250,'Can change Payment Event',71,'change_paymentevent'),(251,'Can delete Payment Event',71,'delete_paymentevent'),(252,'Can view Payment Event',71,'view_paymentevent'),(253,'Can add Shipping address',67,'add_shippingaddress'),(254,'Can change Shipping address',67,'change_shippingaddress'),(255,'Can delete Shipping address',67,'delete_shippingaddress'),(256,'Can view Shipping address',67,'view_shippingaddress'),(257,'Can add Order Note',69,'add_ordernote'),(258,'Can change Order Note',69,'change_ordernote'),(259,'Can delete Order Note',69,'delete_ordernote'),(260,'Can view Order Note',69,'view_ordernote'),(261,'Can add Communication Event',68,'add_communicationevent'),(262,'Can change Communication Event',68,'change_communicationevent'),(263,'Can delete Communication Event',68,'delete_communicationevent'),(264,'Can view Communication Event',68,'view_communicationevent'),(265,'Can add Billing address',74,'add_billingaddress'),(266,'Can change Billing address',74,'change_billingaddress'),(267,'Can delete Billing address',74,'delete_billingaddress'),(268,'Can view Billing address',74,'view_billingaddress'),(269,'Can add Shipping Event Type',61,'add_shippingeventtype'),(270,'Can change Shipping Event Type',61,'change_shippingeventtype'),(271,'Can delete Shipping Event Type',61,'delete_shippingeventtype'),(272,'Can view Shipping Event Type',61,'view_shippingeventtype'),(273,'Can add Shipping Event',65,'add_shippingevent'),(274,'Can change Shipping Event',65,'change_shippingevent'),(275,'Can delete Shipping Event',65,'delete_shippingevent'),(276,'Can view Shipping Event',65,'view_shippingevent'),(277,'Can add Payment Event Type',70,'add_paymenteventtype'),(278,'Can change Payment Event Type',70,'change_paymenteventtype'),(279,'Can delete Payment Event Type',70,'delete_paymenteventtype'),(280,'Can view Payment Event Type',70,'view_paymenteventtype'),(281,'Can add Line Price',60,'add_lineprice'),(282,'Can change Line Price',60,'change_lineprice'),(283,'Can delete Line Price',60,'delete_lineprice'),(284,'Can view Line Price',60,'view_lineprice'),(285,'Can add Order Discount',63,'add_orderdiscount'),(286,'Can change Order Discount',63,'change_orderdiscount'),(287,'Can delete Order Discount',63,'delete_orderdiscount'),(288,'Can view Order Discount',63,'view_orderdiscount'),(289,'Can add Order Line',64,'add_line'),(290,'Can change Order Line',64,'change_line'),(291,'Can delete Order Line',64,'delete_line'),(292,'Can view Order Line',64,'view_line'),(293,'Can add Order',72,'add_order'),(294,'Can change Order',72,'change_order'),(295,'Can delete Order',72,'delete_order'),(296,'Can view Order',72,'view_order'),(297,'Can add Stock record',78,'add_stockrecord'),(298,'Can change Stock record',78,'change_stockrecord'),(299,'Can delete Stock record',78,'delete_stockrecord'),(300,'Can view Stock record',78,'view_stockrecord'),(301,'Can add Partner address',76,'add_partneraddress'),(302,'Can change Partner address',76,'change_partneraddress'),(303,'Can delete Partner address',76,'delete_partneraddress'),(304,'Can view Partner address',76,'view_partneraddress'),(305,'Can add Partner',77,'add_partner'),(306,'Can change Partner',77,'change_partner'),(307,'Can delete Partner',77,'delete_partner'),(308,'Can view Partner',77,'view_partner'),(309,'Can add Stock alert',75,'add_stockalert'),(310,'Can change Stock alert',75,'change_stockalert'),(311,'Can delete Stock alert',75,'delete_stockalert'),(312,'Can view Stock alert',75,'view_stockalert'),(313,'Can add site',79,'add_site'),(314,'Can change site',79,'change_site'),(315,'Can delete site',79,'delete_site'),(316,'Can view site',79,'view_site'),(317,'Can add Voucher',81,'add_voucher'),(318,'Can change Voucher',81,'change_voucher'),(319,'Can delete Voucher',81,'delete_voucher'),(320,'Can view Voucher',81,'view_voucher'),(321,'Can add Voucher Application',80,'add_voucherapplication'),(322,'Can change Voucher Application',80,'change_voucherapplication'),(323,'Can delete Voucher Application',80,'delete_voucherapplication'),(324,'Can view Voucher Application',80,'view_voucherapplication'),(325,'Can add switch',82,'add_switch'),(326,'Can change switch',82,'change_switch'),(327,'Can delete switch',82,'delete_switch'),(328,'Can view switch',82,'view_switch'),(329,'Can add sample',84,'add_sample'),(330,'Can change sample',84,'change_sample'),(331,'Can delete sample',84,'delete_sample'),(332,'Can view sample',84,'view_sample'),(333,'Can add flag',83,'add_flag'),(334,'Can change flag',83,'change_flag'),(335,'Can delete flag',83,'delete_flag'),(336,'Can view flag',83,'view_flag'),(337,'Can add flat page',85,'add_flatpage'),(338,'Can change flat page',85,'change_flatpage'),(339,'Can delete flat page',85,'delete_flatpage'),(340,'Can view flat page',85,'view_flatpage'),(341,'Can add session',86,'add_session'),(342,'Can change session',86,'change_session'),(343,'Can delete session',86,'delete_session'),(344,'Can view session',86,'view_session'),(345,'Can add partial',91,'add_partial'),(346,'Can change partial',91,'change_partial'),(347,'Can delete partial',91,'delete_partial'),(348,'Can view partial',91,'view_partial'),(349,'Can add code',88,'add_code'),(350,'Can change code',88,'change_code'),(351,'Can delete code',88,'delete_code'),(352,'Can view code',88,'view_code'),(353,'Can add user social auth',90,'add_usersocialauth'),(354,'Can change user social auth',90,'change_usersocialauth'),(355,'Can delete user social auth',90,'delete_usersocialauth'),(356,'Can view user social auth',90,'view_usersocialauth'),(357,'Can add association',87,'add_association'),(358,'Can change association',87,'change_association'),(359,'Can delete association',87,'delete_association'),(360,'Can view association',87,'view_association'),(361,'Can add nonce',89,'add_nonce'),(362,'Can change nonce',89,'change_nonce'),(363,'Can delete nonce',89,'delete_nonce'),(364,'Can view nonce',89,'view_nonce'),(365,'Can add historical business client',94,'add_historicalbusinessclient'),(366,'Can change historical business client',94,'change_historicalbusinessclient'),(367,'Can delete historical business client',94,'delete_historicalbusinessclient'),(368,'Can view historical business client',94,'view_historicalbusinessclient'),(369,'Can add business client',93,'add_businessclient'),(370,'Can change business client',93,'change_businessclient'),(371,'Can delete business client',93,'delete_businessclient'),(372,'Can view business client',93,'view_businessclient'),(373,'Can add ecommerce feature role',92,'add_ecommercefeaturerole'),(374,'Can change ecommerce feature role',92,'change_ecommercefeaturerole'),(375,'Can delete ecommerce feature role',92,'delete_ecommercefeaturerole'),(376,'Can view ecommerce feature role',92,'view_ecommercefeaturerole'),(377,'Can add ecommerce feature role assignment',95,'add_ecommercefeatureroleassignment'),(378,'Can change ecommerce feature role assignment',95,'change_ecommercefeatureroleassignment'),(379,'Can delete ecommerce feature role assignment',95,'delete_ecommercefeatureroleassignment'),(380,'Can view ecommerce feature role assignment',95,'view_ecommercefeatureroleassignment'),(381,'Can add historical course',96,'add_historicalcourse'),(382,'Can change historical course',96,'change_historicalcourse'),(383,'Can delete historical course',96,'delete_historicalcourse'),(384,'Can view historical course',96,'view_historicalcourse'),(385,'Can add invoice',97,'add_invoice'),(386,'Can change invoice',97,'change_invoice'),(387,'Can delete invoice',97,'delete_invoice'),(388,'Can view invoice',97,'view_invoice'),(389,'Can add historical invoice',98,'add_historicalinvoice'),(390,'Can change historical invoice',98,'change_historicalinvoice'),(391,'Can delete historical invoice',98,'delete_historicalinvoice'),(392,'Can view historical invoice',98,'view_historicalinvoice'),(393,'Can add referral',99,'add_referral'),(394,'Can change referral',99,'change_referral'),(395,'Can delete referral',99,'delete_referral'),(396,'Can view referral',99,'view_referral'),(397,'Can add site theme',100,'add_sitetheme'),(398,'Can change site theme',100,'change_sitetheme'),(399,'Can delete site theme',100,'delete_sitetheme'),(400,'Can view site theme',100,'view_sitetheme'),(401,'Can add Order and Item Charge',102,'add_orderanditemcharges'),(402,'Can change Order and Item Charge',102,'change_orderanditemcharges'),(403,'Can delete Order and Item Charge',102,'delete_orderanditemcharges'),(404,'Can view Order and Item Charge',102,'view_orderanditemcharges'),(405,'Can add Weight Band',103,'add_weightband'),(406,'Can change Weight Band',103,'change_weightband'),(407,'Can delete Weight Band',103,'delete_weightband'),(408,'Can view Weight Band',103,'view_weightband'),(409,'Can add Weight-based Shipping Method',101,'add_weightbased'),(410,'Can change Weight-based Shipping Method',101,'change_weightbased'),(411,'Can delete Weight-based Shipping Method',101,'delete_weightbased'),(412,'Can view Weight-based Shipping Method',101,'view_weightbased'),(413,'Can add Product review',105,'add_productreview'),(414,'Can change Product review',105,'change_productreview'),(415,'Can delete Product review',105,'delete_productreview'),(416,'Can view Product review',105,'view_productreview'),(417,'Can add Vote',104,'add_vote'),(418,'Can change Vote',104,'change_vote'),(419,'Can delete Vote',104,'delete_vote'),(420,'Can view Vote',104,'view_vote'),(421,'Can add Wish List',106,'add_wishlist'),(422,'Can change Wish List',106,'change_wishlist'),(423,'Can delete Wish List',106,'delete_wishlist'),(424,'Can view Wish List',106,'view_wishlist'),(425,'Can add Wish list line',107,'add_line'),(426,'Can change Wish list line',107,'change_line'),(427,'Can delete Wish list line',107,'delete_line'),(428,'Can view Wish list line',107,'view_line'),(429,'Can add historical refund line',110,'add_historicalrefundline'),(430,'Can change historical refund line',110,'change_historicalrefundline'),(431,'Can delete historical refund line',110,'delete_historicalrefundline'),(432,'Can view historical refund line',110,'view_historicalrefundline'),(433,'Can add refund line',109,'add_refundline'),(434,'Can change refund line',109,'change_refundline'),(435,'Can delete refund line',109,'delete_refundline'),(436,'Can view refund line',109,'view_refundline'),(437,'Can add historical refund',111,'add_historicalrefund'),(438,'Can change historical refund',111,'change_historicalrefund'),(439,'Can delete historical refund',111,'delete_historicalrefund'),(440,'Can view historical refund',111,'view_historicalrefund'),(441,'Can add refund',108,'add_refund'),(442,'Can change refund',108,'change_refund'),(443,'Can delete refund',108,'delete_refund'),(444,'Can view refund',108,'view_refund'),(445,'Can add historical offer assignment',119,'add_historicalofferassignment'),(446,'Can change historical offer assignment',119,'change_historicalofferassignment'),(447,'Can delete historical offer assignment',119,'delete_historicalofferassignment'),(448,'Can view historical offer assignment',119,'view_historicalofferassignment'),(449,'Can add historical range product',117,'add_historicalrangeproduct'),(450,'Can change historical range product',117,'change_historicalrangeproduct'),(451,'Can delete historical range product',117,'delete_historicalrangeproduct'),(452,'Can view historical range product',117,'view_historicalrangeproduct'),(453,'Can add historical Condition',116,'add_historicalcondition'),(454,'Can change historical Condition',116,'change_historicalcondition'),(455,'Can delete historical Condition',116,'delete_historicalcondition'),(456,'Can view historical Condition',116,'view_historicalcondition'),(457,'Can add historical Benefit',115,'add_historicalbenefit'),(458,'Can change historical Benefit',115,'change_historicalbenefit'),(459,'Can delete historical Benefit',115,'delete_historicalbenefit'),(460,'Can view historical Benefit',115,'view_historicalbenefit'),(461,'Can add offer assignment email templates',114,'add_offerassignmentemailtemplates'),(462,'Can change offer assignment email templates',114,'change_offerassignmentemailtemplates'),(463,'Can delete offer assignment email templates',114,'delete_offerassignmentemailtemplates'),(464,'Can view offer assignment email templates',114,'view_offerassignmentemailtemplates'),(465,'Can add historical Conditional offer',113,'add_historicalconditionaloffer'),(466,'Can change historical Conditional offer',113,'change_historicalconditionaloffer'),(467,'Can delete historical Conditional offer',113,'delete_historicalconditionaloffer'),(468,'Can view historical Conditional offer',113,'view_historicalconditionaloffer'),(469,'Can add historical Range',112,'add_historicalrange'),(470,'Can change historical Range',112,'change_historicalrange'),(471,'Can delete historical Range',112,'delete_historicalrange'),(472,'Can view historical Range',112,'view_historicalrange'),(473,'Can add offer assignment',118,'add_offerassignment'),(474,'Can change offer assignment',118,'change_offerassignment'),(475,'Can delete offer assignment',118,'delete_offerassignment'),(476,'Can view offer assignment',118,'view_offerassignment'),(477,'Can add offer assignment email attempt',120,'add_offerassignmentemailattempt'),(478,'Can change offer assignment email attempt',120,'change_offerassignmentemailattempt'),(479,'Can delete offer assignment email attempt',120,'delete_offerassignmentemailattempt'),(480,'Can view offer assignment email attempt',120,'view_offerassignmentemailattempt'),(481,'Can add historical Order',125,'add_historicalorder'),(482,'Can change historical Order',125,'change_historicalorder'),(483,'Can delete historical Order',125,'delete_historicalorder'),(484,'Can view historical Order',125,'view_historicalorder'),(485,'Can add historical Order Line',122,'add_historicalline'),(486,'Can change historical Order Line',122,'change_historicalline'),(487,'Can delete historical Order Line',122,'delete_historicalline'),(488,'Can view historical Order Line',122,'view_historicalline'),(489,'Can add manual enrollment order discount benefit',126,'add_manualenrollmentorderdiscountbenefit'),(490,'Can change manual enrollment order discount benefit',126,'change_manualenrollmentorderdiscountbenefit'),(491,'Can delete manual enrollment order discount benefit',126,'delete_manualenrollmentorderdiscountbenefit'),(492,'Can view manual enrollment order discount benefit',126,'view_manualenrollmentorderdiscountbenefit'),(493,'Can add Order Status Change',124,'add_orderstatuschange'),(494,'Can change Order Status Change',124,'change_orderstatuschange'),(495,'Can delete Order Status Change',124,'delete_orderstatuschange'),(496,'Can view Order Status Change',124,'view_orderstatuschange'),(497,'Can add historical Order Discount',121,'add_historicalorderdiscount'),(498,'Can change historical Order Discount',121,'change_historicalorderdiscount'),(499,'Can delete historical Order Discount',121,'delete_historicalorderdiscount'),(500,'Can view historical Order Discount',121,'view_historicalorderdiscount'),(501,'Can add manual enrollment order discount condition',123,'add_manualenrollmentorderdiscountcondition'),(502,'Can change manual enrollment order discount condition',123,'change_manualenrollmentorderdiscountcondition'),(503,'Can delete manual enrollment order discount condition',123,'delete_manualenrollmentorderdiscountcondition'),(504,'Can view manual enrollment order discount condition',123,'view_manualenrollmentorderdiscountcondition'),(505,'Can add historical Stock record',128,'add_historicalstockrecord'),(506,'Can change historical Stock record',128,'change_historicalstockrecord'),(507,'Can delete historical Stock record',128,'delete_historicalstockrecord'),(508,'Can view historical Stock record',128,'view_historicalstockrecord'),(509,'Can add historical Partner',127,'add_historicalpartner'),(510,'Can change historical Partner',127,'change_historicalpartner'),(511,'Can delete historical Partner',127,'delete_historicalpartner'),(512,'Can view historical Partner',127,'view_historicalpartner'),(513,'Can add Payment Processor Response',135,'add_paymentprocessorresponse'),(514,'Can change Payment Processor Response',135,'change_paymentprocessorresponse'),(515,'Can delete Payment Processor Response',135,'delete_paymentprocessorresponse'),(516,'Can view Payment Processor Response',135,'view_paymentprocessorresponse'),(517,'Can add paypal web profile',133,'add_paypalwebprofile'),(518,'Can change paypal web profile',133,'change_paypalwebprofile'),(519,'Can delete paypal web profile',133,'delete_paypalwebprofile'),(520,'Can view paypal web profile',133,'view_paypalwebprofile'),(521,'Can add SDN Check Failure',132,'add_sdncheckfailure'),(522,'Can change SDN Check Failure',132,'change_sdncheckfailure'),(523,'Can delete SDN Check Failure',132,'delete_sdncheckfailure'),(524,'Can view SDN Check Failure',132,'view_sdncheckfailure'),(525,'Can add enterprise contract metadata',136,'add_enterprisecontractmetadata'),(526,'Can change enterprise contract metadata',136,'change_enterprisecontractmetadata'),(527,'Can delete enterprise contract metadata',136,'delete_enterprisecontractmetadata'),(528,'Can view enterprise contract metadata',136,'view_enterprisecontractmetadata'),(529,'Can add Source',137,'add_source'),(530,'Can change Source',137,'change_source'),(531,'Can delete Source',137,'delete_source'),(532,'Can view Source',137,'view_source'),(533,'Can add Bankcard',131,'add_bankcard'),(534,'Can change Bankcard',131,'change_bankcard'),(535,'Can delete Bankcard',131,'delete_bankcard'),(536,'Can view Bankcard',131,'view_bankcard'),(537,'Can add Transaction',130,'add_transaction'),(538,'Can change Transaction',130,'change_transaction'),(539,'Can delete Transaction',130,'delete_transaction'),(540,'Can view Transaction',130,'view_transaction'),(541,'Can add Source Type',129,'add_sourcetype'),(542,'Can change Source Type',129,'change_sourcetype'),(543,'Can delete Source Type',129,'delete_sourcetype'),(544,'Can view Source Type',129,'view_sourcetype'),(545,'Can add Paypal Processor Configuration',134,'add_paypalprocessorconfiguration'),(546,'Can change Paypal Processor Configuration',134,'change_paypalprocessorconfiguration'),(547,'Can delete Paypal Processor Configuration',134,'delete_paypalprocessorconfiguration'),(548,'Can view Paypal Processor Configuration',134,'view_paypalprocessorconfiguration'),(549,'Can add historical Voucher Application',141,'add_historicalvoucherapplication'),(550,'Can change historical Voucher Application',141,'change_historicalvoucherapplication'),(551,'Can delete historical Voucher Application',141,'delete_historicalvoucherapplication'),(552,'Can view historical Voucher Application',141,'view_historicalvoucherapplication'),(553,'Can add coupon vouchers',140,'add_couponvouchers'),(554,'Can change coupon vouchers',140,'change_couponvouchers'),(555,'Can delete coupon vouchers',140,'delete_couponvouchers'),(556,'Can view coupon vouchers',140,'view_couponvouchers'),(557,'Can add order line vouchers',139,'add_orderlinevouchers'),(558,'Can change order line vouchers',139,'change_orderlinevouchers'),(559,'Can delete order line vouchers',139,'delete_orderlinevouchers'),(560,'Can view order line vouchers',139,'view_orderlinevouchers'),(561,'Can add VoucherSet',138,'add_voucherset'),(562,'Can change VoucherSet',138,'change_voucherset'),(563,'Can delete VoucherSet',138,'delete_voucherset'),(564,'Can view VoucherSet',138,'view_voucherset'),(565,'Can add kv store',142,'add_kvstore'),(566,'Can change kv store',142,'change_kvstore'),(567,'Can delete kv store',142,'delete_kvstore'),(568,'Can view kv store',142,'view_kvstore');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `basket_basket`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `basket_basket` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` varchar(128) NOT NULL,
`date_created` datetime(6) NOT NULL,
`date_merged` datetime(6) DEFAULT NULL,
`date_submitted` datetime(6) DEFAULT NULL,
`owner_id` int(11) DEFAULT NULL,
`site_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `basket_basket_owner_id_3a018de5_fk_ecommerce_user_id` (`owner_id`),
KEY `basket_basket_site_id_c45bd035_fk_django_site_id` (`site_id`),
CONSTRAINT `basket_basket_owner_id_3a018de5_fk_ecommerce_user_id` FOREIGN KEY (`owner_id`) REFERENCES `ecommerce_user` (`id`),
CONSTRAINT `basket_basket_site_id_c45bd035_fk_django_site_id` FOREIGN KEY (`site_id`) REFERENCES `django_site` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `basket_basket`
--
LOCK TABLES `basket_basket` WRITE;
/*!40000 ALTER TABLE `basket_basket` DISABLE KEYS */;
/*!40000 ALTER TABLE `basket_basket` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `basket_basket_vouchers`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `basket_basket_vouchers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`basket_id` int(11) NOT NULL,
`voucher_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `basket_basket_vouchers_basket_id_voucher_id_0731eee2_uniq` (`basket_id`,`voucher_id`),
KEY `basket_basket_vouchers_voucher_id_c2b66981_fk_voucher_voucher_id` (`voucher_id`),
CONSTRAINT `basket_basket_vouchers_basket_id_f857c2f8_fk_basket_basket_id` FOREIGN KEY (`basket_id`) REFERENCES `basket_basket` (`id`),
CONSTRAINT `basket_basket_vouchers_voucher_id_c2b66981_fk_voucher_voucher_id` FOREIGN KEY (`voucher_id`) REFERENCES `voucher_voucher` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `basket_basket_vouchers`
--
LOCK TABLES `basket_basket_vouchers` WRITE;
/*!40000 ALTER TABLE `basket_basket_vouchers` DISABLE KEYS */;
/*!40000 ALTER TABLE `basket_basket_vouchers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `basket_basketattribute`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `basket_basketattribute` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value_text` longtext NOT NULL,
`attribute_type_id` int(11) NOT NULL,
`basket_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `basket_basketattribute_basket_id_attribute_type_id_a6c168f8_uniq` (`basket_id`,`attribute_type_id`),
KEY `basket_basketattribu_attribute_type_id_822adc5d_fk_basket_ba` (`attribute_type_id`),
CONSTRAINT `basket_basketattribu_attribute_type_id_822adc5d_fk_basket_ba` FOREIGN KEY (`attribute_type_id`) REFERENCES `basket_basketattributetype` (`id`),
CONSTRAINT `basket_basketattribute_basket_id_55c452f8_fk_basket_basket_id` FOREIGN KEY (`basket_id`) REFERENCES `basket_basket` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `basket_basketattribute`
--
LOCK TABLES `basket_basketattribute` WRITE;
/*!40000 ALTER TABLE `basket_basketattribute` DISABLE KEYS */;
/*!40000 ALTER TABLE `basket_basketattribute` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `basket_basketattributetype`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `basket_basketattributetype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `basket_basketattributetype`
--
LOCK TABLES `basket_basketattributetype` WRITE;
/*!40000 ALTER TABLE `basket_basketattributetype` DISABLE KEYS */;
INSERT INTO `basket_basketattributetype` VALUES (3,'bundle_identifier'),(1,'email_opt_in'),(2,'purchased_for_organization'),(4,'sailthru_bid');
/*!40000 ALTER TABLE `basket_basketattributetype` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `basket_line`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `basket_line` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`line_reference` varchar(128) NOT NULL,
`quantity` int(10) unsigned NOT NULL,
`price_currency` varchar(12) NOT NULL,
`price_excl_tax` decimal(12,2) DEFAULT NULL,
`price_incl_tax` decimal(12,2) DEFAULT NULL,
`date_created` datetime(6) NOT NULL,
`basket_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`stockrecord_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `basket_line_basket_id_line_reference_8977e974_uniq` (`basket_id`,`line_reference`),
KEY `basket_line_line_reference_08e91113` (`line_reference`),
KEY `basket_line_product_id_303d743e_fk_catalogue_product_id` (`product_id`),
KEY `basket_line_stockrecord_id_7039d8a4_fk_partner_stockrecord_id` (`stockrecord_id`),
KEY `basket_line_date_created_eb0dfb1b` (`date_created`),
CONSTRAINT `basket_line_basket_id_b615c905_fk_basket_basket_id` FOREIGN KEY (`basket_id`) REFERENCES `basket_basket` (`id`),
CONSTRAINT `basket_line_product_id_303d743e_fk_catalogue_product_id` FOREIGN KEY (`product_id`) REFERENCES `catalogue_product` (`id`),
CONSTRAINT `basket_line_stockrecord_id_7039d8a4_fk_partner_stockrecord_id` FOREIGN KEY (`stockrecord_id`) REFERENCES `partner_stockrecord` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `basket_line`
--
LOCK TABLES `basket_line` WRITE;
/*!40000 ALTER TABLE `basket_line` DISABLE KEYS */;
/*!40000 ALTER TABLE `basket_line` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `basket_lineattribute`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `basket_lineattribute` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(255) NOT NULL,
`line_id` int(11) NOT NULL,
`option_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `basket_lineattribute_line_id_c41e0cdf_fk_basket_line_id` (`line_id`),
KEY `basket_lineattribute_option_id_9387a3f7_fk_catalogue_option_id` (`option_id`),
CONSTRAINT `basket_lineattribute_line_id_c41e0cdf_fk_basket_line_id` FOREIGN KEY (`line_id`) REFERENCES `basket_line` (`id`),
CONSTRAINT `basket_lineattribute_option_id_9387a3f7_fk_catalogue_option_id` FOREIGN KEY (`option_id`) REFERENCES `catalogue_option` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `basket_lineattribute`
--
LOCK TABLES `basket_lineattribute` WRITE;
/*!40000 ALTER TABLE `basket_lineattribute` DISABLE KEYS */;
/*!40000 ALTER TABLE `basket_lineattribute` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_attributeoption`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_attributeoption` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`option` varchar(255) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `catalogue_attributeoption_group_id_option_7a8f6c11_uniq` (`group_id`,`option`),
CONSTRAINT `catalogue_attributeo_group_id_3d4a5e24_fk_catalogue` FOREIGN KEY (`group_id`) REFERENCES `catalogue_attributeoptiongroup` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_attributeoption`
--
LOCK TABLES `catalogue_attributeoption` WRITE;
/*!40000 ALTER TABLE `catalogue_attributeoption` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_attributeoption` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_attributeoptiongroup`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_attributeoptiongroup` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_attributeoptiongroup`
--
LOCK TABLES `catalogue_attributeoptiongroup` WRITE;
/*!40000 ALTER TABLE `catalogue_attributeoptiongroup` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_attributeoptiongroup` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_catalog`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_catalog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`partner_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `catalogue_catalog_partner_id_eeba0b62_fk_partner_partner_id` (`partner_id`),
CONSTRAINT `catalogue_catalog_partner_id_eeba0b62_fk_partner_partner_id` FOREIGN KEY (`partner_id`) REFERENCES `partner_partner` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_catalog`
--
LOCK TABLES `catalogue_catalog` WRITE;
/*!40000 ALTER TABLE `catalogue_catalog` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_catalog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_catalog_stock_records`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_catalog_stock_records` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`catalog_id` int(11) NOT NULL,
`stockrecord_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `catalogue_catalog_stock__catalog_id_stockrecord_i_f363d53b_uniq` (`catalog_id`,`stockrecord_id`),
KEY `catalogue_catalog_st_stockrecord_id_e480f401_fk_partner_s` (`stockrecord_id`),
CONSTRAINT `catalogue_catalog_st_catalog_id_8fa6c918_fk_catalogue` FOREIGN KEY (`catalog_id`) REFERENCES `catalogue_catalog` (`id`),
CONSTRAINT `catalogue_catalog_st_stockrecord_id_e480f401_fk_partner_s` FOREIGN KEY (`stockrecord_id`) REFERENCES `partner_stockrecord` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_catalog_stock_records`
--
LOCK TABLES `catalogue_catalog_stock_records` WRITE;
/*!40000 ALTER TABLE `catalogue_catalog_stock_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_catalog_stock_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_category`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`path` varchar(255) NOT NULL,
`depth` int(10) unsigned NOT NULL,
`numchild` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` longtext NOT NULL,
`image` varchar(255) DEFAULT NULL,
`slug` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `path` (`path`),
KEY `catalogue_category_name_1f342ac2` (`name`),
KEY `catalogue_category_slug_9635febd` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_category`
--
LOCK TABLES `catalogue_category` WRITE;
/*!40000 ALTER TABLE `catalogue_category` DISABLE KEYS */;
INSERT INTO `catalogue_category` VALUES (1,'0001',1,1,'Seats','All course seats','','seats'),(2,'0002',1,23,'Coupons','All Coupons','','coupons'),(3,'00020001',2,0,'Affiliate Promotion','','','affiliate-promotion'),(4,'00020002',2,0,'Bulk Enrollment','','','bulk-enrollment'),(5,'00020003',2,0,'ConnectEd','','','connected'),(6,'00020004',2,0,'Course Promotion','','','course-promotion'),(7,'00020005',2,0,'Customer Service','','','customer-service'),(8,'00020006',2,0,'Financial Assistance','','','financial-assistance'),(9,'00020007',2,0,'Geography Promotion','','','geography-promotion'),(10,'00020008',2,0,'Marketing Partner Promotion','','','marketing-partner-promotion'),(11,'00020009',2,0,'Marketing-Other','','','marketing-other'),(12,'0002000A',2,0,'Paid Cohort','','','paid-cohort'),(13,'0002000B',2,0,'Other','','','other'),(14,'0002000C',2,0,'Retention Promotion','','','retention-promotion'),(15,'0002000D',2,0,'Services-Other','','','services-other'),(16,'0002000E',2,0,'Support-Other','','','support-other'),(17,'0002000F',2,0,'Upsell Promotion','','','upsell-promotion'),(18,'0003',1,0,'Course Entitlements','All course entitlements','','course_entitlements'),(19,'0004',1,0,'Donations','All donations','','donations'),(20,'0005',1,0,'Journals','All journals','','journals'),(21,'0002000G',2,0,'Bulk Enrollment - Prepay','','','bulk-enrollment-prepay'),(22,'0002000H',2,0,'Bulk Enrollment - Upon Redemption','','','bulk-enrollment-upon-redemption'),(23,'0002000I',2,0,'Bulk Enrollment - Integration','','','bulk-enrollment-integration'),(24,'0002000J',2,0,'On-Campus Learners','','','on-campus-learners'),(25,'0002000K',2,0,'Partner No Rev - Prepay','','','partner-no-rev-prepay'),(26,'0002000L',2,0,'Partner No Rev - Upon Redemption','','','partner-no-rev-upon-redemption'),(27,'0002000M',2,0,'Security Disclosure Reward','','','security-disclosure-reward'),(28,'0002000N',2,0,'edX Employee Request','','','edx-employee-request');
/*!40000 ALTER TABLE `catalogue_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicalcategory`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicalcategory` (
`id` int(11) NOT NULL,
`path` varchar(255) NOT NULL,
`depth` int(10) unsigned NOT NULL,
`numchild` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` longtext NOT NULL,
`image` longtext,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`history_user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_584e44e9_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicalcategory_id_c46b902a` (`id`),
KEY `catalogue_historicalcategory_path_aacdec55` (`path`),
KEY `catalogue_historicalcategory_name_dfd7cbbe` (`name`),
CONSTRAINT `catalogue_historical_history_user_id_584e44e9_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicalcategory`
--
LOCK TABLES `catalogue_historicalcategory` WRITE;
/*!40000 ALTER TABLE `catalogue_historicalcategory` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_historicalcategory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicaloption`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicaloption` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`type` varchar(128) NOT NULL,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`history_user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_38090a96_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicaloption_id_d1fe6cd6` (`id`),
CONSTRAINT `catalogue_historical_history_user_id_38090a96_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicaloption`
--
LOCK TABLES `catalogue_historicaloption` WRITE;
/*!40000 ALTER TABLE `catalogue_historicaloption` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_historicaloption` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicalproduct`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicalproduct` (
`id` int(11) NOT NULL,
`structure` varchar(10) NOT NULL,
`upc` varchar(64) DEFAULT NULL,
`title` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`description` longtext NOT NULL,
`rating` double DEFAULT NULL,
`date_created` datetime(6) NOT NULL,
`date_updated` datetime(6) NOT NULL,
`is_discountable` tinyint(1) NOT NULL,
`expires` datetime(6) DEFAULT NULL,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`course_id` varchar(255) DEFAULT NULL,
`history_user_id` int(11) DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`product_class_id` int(11) DEFAULT NULL,
`is_public` tinyint(1) NOT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_4ea2c15a_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicalproduct_id_06ee7e8f` (`id`),
KEY `catalogue_historicalproduct_upc_db26d500` (`upc`),
KEY `catalogue_historicalproduct_slug_11827938` (`slug`),
KEY `catalogue_historicalproduct_date_updated_3b1e9108` (`date_updated`),
KEY `catalogue_historicalproduct_course_id_f51a879f` (`course_id`),
KEY `catalogue_historicalproduct_parent_id_9895554d` (`parent_id`),
KEY `catalogue_historicalproduct_product_class_id_1210a16e` (`product_class_id`),
KEY `catalogue_historicalproduct_date_created_236cc17e` (`date_created`),
CONSTRAINT `catalogue_historical_history_user_id_4ea2c15a_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicalproduct`
--
LOCK TABLES `catalogue_historicalproduct` WRITE;
/*!40000 ALTER TABLE `catalogue_historicalproduct` DISABLE KEYS */;
INSERT INTO `catalogue_historicalproduct` VALUES (1,'parent',NULL,'','','',NULL,'2020-04-07 13:55:47.179382','2020-04-07 13:55:47.179425',1,NULL,1,'2020-04-07 13:55:47.180000',NULL,'+','course-v1:edX+DemoX+Demo_Course',NULL,NULL,1,1),(1,'parent',NULL,'Seat in edX Demonstration Course','seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.179382','2020-04-07 13:55:47.188267',1,NULL,2,'2020-04-07 13:55:47.189245',NULL,'~','course-v1:edX+DemoX+Demo_Course',NULL,NULL,1,1),(2,'child',NULL,'Seat in edX Demonstration Course','seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.328040','2020-04-07 13:55:47.328124',1,NULL,3,'2020-04-07 13:55:47.329127',NULL,'+','course-v1:edX+DemoX+Demo_Course',NULL,1,NULL,1),(3,'child',NULL,'Seat in edX Demonstration Course with verified certificate (and ID verification)','seat-in-edx-demonstration-course-with-verified-certificate-and-id-verification','',NULL,'2020-04-07 13:55:47.484738','2020-04-07 13:55:47.484798',1,'2021-04-07 13:55:47.130174',4,'2020-04-07 13:55:47.485341',NULL,'+','course-v1:edX+DemoX+Demo_Course',NULL,1,NULL,1),(4,'standalone',NULL,'Enrollment code for verified seat in edX Demonstration Course','enrollment-code-for-verified-seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.577382','2020-04-07 13:55:47.577504',1,'2021-04-07 13:55:47.130174',5,'2020-04-07 13:55:47.579115',NULL,'+','course-v1:edX+DemoX+Demo_Course',NULL,NULL,3,1),(1,'parent',NULL,'Seat in edX Demonstration Course','seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.179382','2020-04-07 14:54:29.270780',1,NULL,6,'2020-04-07 14:54:29.303587',NULL,'~','course-v1:edX+DemoX+Demo_Course',NULL,NULL,1,1),(2,'child',NULL,'Seat in edX Demonstration Course','seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.328040','2020-04-07 14:54:29.424194',1,NULL,7,'2020-04-07 14:54:29.425101',NULL,'~','course-v1:edX+DemoX+Demo_Course',NULL,1,NULL,1),(3,'child',NULL,'Seat in edX Demonstration Course with verified certificate (and ID verification)','seat-in-edx-demonstration-course-with-verified-certificate-and-id-verification','',NULL,'2020-04-07 13:55:47.484738','2020-04-07 14:54:29.693722',1,'2021-04-07 14:54:29.160654',8,'2020-04-07 14:54:29.696327',NULL,'~','course-v1:edX+DemoX+Demo_Course',NULL,1,NULL,1),(4,'standalone',NULL,'Enrollment code for verified seat in edX Demonstration Course','enrollment-code-for-verified-seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.577382','2020-04-07 14:54:29.728450',1,'2021-04-07 13:55:47.130174',9,'2020-04-07 14:54:29.729415',NULL,'~','course-v1:edX+DemoX+Demo_Course',NULL,NULL,3,1);
/*!40000 ALTER TABLE `catalogue_historicalproduct` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicalproductattribute`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicalproductattribute` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`code` varchar(128) NOT NULL,
`type` varchar(20) NOT NULL,
`required` tinyint(1) NOT NULL,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`history_user_id` int(11) DEFAULT NULL,
`option_group_id` int(11) DEFAULT NULL,
`product_class_id` int(11) DEFAULT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_6aab3050_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicalproductattribute_id_4708da5b` (`id`),
KEY `catalogue_historicalproductattribute_code_972c7779` (`code`),
KEY `catalogue_historicalproductattribute_option_group_id_be14add3` (`option_group_id`),
KEY `catalogue_historicalproductattribute_product_class_id_af241c79` (`product_class_id`),
CONSTRAINT `catalogue_historical_history_user_id_6aab3050_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicalproductattribute`
--
LOCK TABLES `catalogue_historicalproductattribute` WRITE;
/*!40000 ALTER TABLE `catalogue_historicalproductattribute` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_historicalproductattribute` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicalproductattributevalue`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicalproductattributevalue` (
`id` int(11) NOT NULL,
`value_text` longtext,
`value_integer` int(11) DEFAULT NULL,
`value_boolean` tinyint(1) DEFAULT NULL,
`value_float` double DEFAULT NULL,
`value_richtext` longtext,
`value_date` date DEFAULT NULL,
`value_datetime` datetime(6) DEFAULT NULL,
`value_file` longtext,
`value_image` longtext,
`entity_object_id` int(10) unsigned DEFAULT NULL,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`attribute_id` int(11) DEFAULT NULL,
`entity_content_type_id` int(11) DEFAULT NULL,
`history_user_id` int(11) DEFAULT NULL,
`product_id` int(11) DEFAULT NULL,
`value_option_id` int(11) DEFAULT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_34610f3f_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicalproductattributevalue_id_a19c2a60` (`id`),
KEY `catalogue_historicalproductattributevalue_attribute_id_c5781bb7` (`attribute_id`),
KEY `catalogue_historicalproduct_entity_content_type_id_ad5d20d5` (`entity_content_type_id`),
KEY `catalogue_historicalproductattributevalue_product_id_2903d7cb` (`product_id`),
KEY `catalogue_historicalproduct_value_option_id_99818585` (`value_option_id`),
KEY `catalogue_historicalproductattributevalue_value_boolean_79128283` (`value_boolean`),
KEY `catalogue_historicalproductattributevalue_value_date_aad9b6b2` (`value_date`),
KEY `catalogue_historicalproduct_value_datetime_e61e4058` (`value_datetime`),
KEY `catalogue_historicalproductattributevalue_value_float_79557818` (`value_float`),
KEY `catalogue_historicalproductattributevalue_value_integer_5e216649` (`value_integer`),
CONSTRAINT `catalogue_historical_history_user_id_34610f3f_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicalproductattributevalue`
--
LOCK TABLES `catalogue_historicalproductattributevalue` WRITE;
/*!40000 ALTER TABLE `catalogue_historicalproductattributevalue` DISABLE KEYS */;
INSERT INTO `catalogue_historicalproductattributevalue` VALUES (1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,1,'2020-04-07 13:55:47.254652',NULL,'+',1,NULL,NULL,1,NULL),(1,'course-v1:edX+DemoX+Demo_Course',NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,2,'2020-04-07 13:55:47.261779',NULL,'~',1,NULL,NULL,1,NULL),(2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,3,'2020-04-07 13:55:47.341451',NULL,'+',1,NULL,NULL,2,NULL),(2,'course-v1:edX+DemoX+Demo_Course',NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,4,'2020-04-07 13:55:47.412958',NULL,'~',1,NULL,NULL,2,NULL),(3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,5,'2020-04-07 13:55:47.422391',NULL,'+',2,NULL,NULL,2,NULL),(3,NULL,NULL,0,NULL,NULL,NULL,NULL,'','',NULL,6,'2020-04-07 13:55:47.427548',NULL,'~',2,NULL,NULL,2,NULL),(4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,7,'2020-04-07 13:55:47.590338',NULL,'+',8,NULL,NULL,4,NULL),(4,'course-v1:edX+DemoX+Demo_Course',NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,8,'2020-04-07 13:55:47.593543',NULL,'~',8,NULL,NULL,4,NULL),(5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,9,'2020-04-07 13:55:47.687533',NULL,'+',10,NULL,NULL,4,NULL),(5,NULL,NULL,1,NULL,NULL,NULL,NULL,'','',NULL,10,'2020-04-07 13:55:47.690568',NULL,'~',10,NULL,NULL,4,NULL),(6,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,11,'2020-04-07 13:55:47.695642',NULL,'+',9,NULL,NULL,4,NULL),(6,'verified',NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,12,'2020-04-07 13:55:47.698504',NULL,'~',9,NULL,NULL,4,NULL),(7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,13,'2020-04-07 13:55:47.715689',NULL,'+',3,NULL,NULL,3,NULL),(7,'verified',NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,14,'2020-04-07 13:55:47.718531',NULL,'~',3,NULL,NULL,3,NULL),(8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,15,'2020-04-07 13:55:47.724260',NULL,'+',1,NULL,NULL,3,NULL),(8,'course-v1:edX+DemoX+Demo_Course',NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,16,'2020-04-07 13:55:47.727452',NULL,'~',1,NULL,NULL,3,NULL),(9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,17,'2020-04-07 13:55:47.733865',NULL,'+',2,NULL,NULL,3,NULL),(9,NULL,NULL,1,NULL,NULL,NULL,NULL,'','',NULL,18,'2020-04-07 13:55:47.737337',NULL,'~',2,NULL,NULL,3,NULL);
/*!40000 ALTER TABLE `catalogue_historicalproductattributevalue` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicalproductcategory`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicalproductcategory` (
`id` int(11) NOT NULL,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`category_id` int(11) DEFAULT NULL,
`history_user_id` int(11) DEFAULT NULL,
`product_id` int(11) DEFAULT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_b2a38081_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicalproductcategory_id_61c44723` (`id`),
KEY `catalogue_historicalproductcategory_category_id_806ddb2d` (`category_id`),
KEY `catalogue_historicalproductcategory_product_id_98bbd24d` (`product_id`),
CONSTRAINT `catalogue_historical_history_user_id_b2a38081_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicalproductcategory`
--
LOCK TABLES `catalogue_historicalproductcategory` WRITE;
/*!40000 ALTER TABLE `catalogue_historicalproductcategory` DISABLE KEYS */;
INSERT INTO `catalogue_historicalproductcategory` VALUES (1,1,'2020-04-07 13:55:47.186955',NULL,'+',1,NULL,1);
/*!40000 ALTER TABLE `catalogue_historicalproductcategory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_historicalproductclass`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_historicalproductclass` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`requires_shipping` tinyint(1) NOT NULL,
`track_stock` tinyint(1) NOT NULL,
`history_id` int(11) NOT NULL AUTO_INCREMENT,
`history_date` datetime(6) NOT NULL,
`history_change_reason` varchar(100) DEFAULT NULL,
`history_type` varchar(1) NOT NULL,
`history_user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`history_id`),
KEY `catalogue_historical_history_user_id_6e1db4c7_fk_ecommerce` (`history_user_id`),
KEY `catalogue_historicalproductclass_id_6f7b6d39` (`id`),
CONSTRAINT `catalogue_historical_history_user_id_6e1db4c7_fk_ecommerce` FOREIGN KEY (`history_user_id`) REFERENCES `ecommerce_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_historicalproductclass`
--
LOCK TABLES `catalogue_historicalproductclass` WRITE;
/*!40000 ALTER TABLE `catalogue_historicalproductclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_historicalproductclass` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_option`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_option` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`code` varchar(128) NOT NULL,
`type` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_option`
--
LOCK TABLES `catalogue_option` WRITE;
/*!40000 ALTER TABLE `catalogue_option` DISABLE KEYS */;
INSERT INTO `catalogue_option` VALUES (1,'Course Entitlement','course_entitlement','Optional');
/*!40000 ALTER TABLE `catalogue_option` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_product`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`structure` varchar(10) NOT NULL,
`upc` varchar(64) DEFAULT NULL,
`title` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`description` longtext NOT NULL,
`rating` double DEFAULT NULL,
`date_created` datetime(6) NOT NULL,
`date_updated` datetime(6) NOT NULL,
`is_discountable` tinyint(1) NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`product_class_id` int(11) DEFAULT NULL,
`course_id` varchar(255) DEFAULT NULL,
`expires` datetime(6) DEFAULT NULL,
`is_public` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `upc` (`upc`),
KEY `catalogue_product_slug_c8e2e2b9` (`slug`),
KEY `catalogue_product_date_updated_d3a1785d` (`date_updated`),
KEY `catalogue_product_parent_id_9bfd2382_fk_catalogue_product_id` (`parent_id`),
KEY `catalogue_product_course_id_1918bc6b_fk_courses_course_id` (`course_id`),
KEY `catalogue_product_product_class_id_0c6c5b54_fk_catalogue` (`product_class_id`),
KEY `catalogue_product_date_created_d66f485a` (`date_created`),
CONSTRAINT `catalogue_product_course_id_1918bc6b_fk_courses_course_id` FOREIGN KEY (`course_id`) REFERENCES `courses_course` (`id`),
CONSTRAINT `catalogue_product_parent_id_9bfd2382_fk_catalogue_product_id` FOREIGN KEY (`parent_id`) REFERENCES `catalogue_product` (`id`),
CONSTRAINT `catalogue_product_product_class_id_0c6c5b54_fk_catalogue` FOREIGN KEY (`product_class_id`) REFERENCES `catalogue_productclass` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_product`
--
LOCK TABLES `catalogue_product` WRITE;
/*!40000 ALTER TABLE `catalogue_product` DISABLE KEYS */;
INSERT INTO `catalogue_product` VALUES (1,'parent',NULL,'Seat in edX Demonstration Course','seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.179382','2020-04-07 14:54:29.270780',1,NULL,1,'course-v1:edX+DemoX+Demo_Course',NULL,1),(2,'child',NULL,'Seat in edX Demonstration Course','seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.328040','2020-04-07 14:54:29.424194',1,1,NULL,'course-v1:edX+DemoX+Demo_Course',NULL,1),(3,'child',NULL,'Seat in edX Demonstration Course with verified certificate (and ID verification)','seat-in-edx-demonstration-course-with-verified-certificate-and-id-verification','',NULL,'2020-04-07 13:55:47.484738','2020-04-07 14:54:29.693722',1,1,NULL,'course-v1:edX+DemoX+Demo_Course','2021-04-07 14:54:29.160654',1),(4,'standalone',NULL,'Enrollment code for verified seat in edX Demonstration Course','enrollment-code-for-verified-seat-in-edx-demonstration-course','',NULL,'2020-04-07 13:55:47.577382','2020-04-07 14:54:29.728450',1,NULL,3,'course-v1:edX+DemoX+Demo_Course','2021-04-07 13:55:47.130174',1);
/*!40000 ALTER TABLE `catalogue_product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_product_product_options`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_product_product_options` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`option_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `catalogue_product_produc_product_id_option_id_9b3abb31_uniq` (`product_id`,`option_id`),
KEY `catalogue_product_pr_option_id_ff470e13_fk_catalogue` (`option_id`),
CONSTRAINT `catalogue_product_pr_option_id_ff470e13_fk_catalogue` FOREIGN KEY (`option_id`) REFERENCES `catalogue_option` (`id`),
CONSTRAINT `catalogue_product_pr_product_id_ad2b46bd_fk_catalogue` FOREIGN KEY (`product_id`) REFERENCES `catalogue_product` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `catalogue_product_product_options`
--
LOCK TABLES `catalogue_product_product_options` WRITE;
/*!40000 ALTER TABLE `catalogue_product_product_options` DISABLE KEYS */;
/*!40000 ALTER TABLE `catalogue_product_product_options` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `catalogue_productattribute`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `catalogue_productattribute` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`code` varchar(128) NOT NULL,
`type` varchar(20) NOT NULL,
`required` tinyint(1) NOT NULL,
`option_group_id` int(11) DEFAULT NULL,
`product_class_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `catalogue_productattribute_code_9ffea293` (`code`),
KEY `catalogue_productatt_product_class_id_7af808ec_fk_catalogue` (`product_class_id`),
KEY `catalogue_productatt_option_group_id_6b422dc2_fk_catalogue` (`option_group_id`),
CONSTRAINT `catalogue_productatt_option_group_id_6b422dc2_fk_catalogue` FOREIGN KEY (`option_group_id`) REFERENCES `catalogue_attributeoptiongroup` (`id`),