INSERT INTO `mg_eav_attribute_option_value` (`value_id`, `option_id`, `store_id`, `value`) VALUES
(4308, 4275, 0, 'Software > Computer Software > Multimedia & Design Software > Sound Editing Software'),
(4309, 4276, 0, 'Software > Computer Software > Multimedia & Design Software > Video Editing Software'),
(4310, 4277, 0, 'Software > Computer Software > Multimedia & Design Software > Web Design Software'),
(4311, 4278, 0, 'Software > Computer Software > Network Software'),
(4312, 4279, 0, 'Software > Computer Software > Office Application Software'),
(4313, 4280, 0, 'Software > Computer Software > Operating Systems'),
(4314, 4281, 0, 'Software > Computer Software > Restore Disks'),
(4315, 4282, 0, 'Software > Digital Goods & Currency'),
(4316, 4283, 0, 'Software > Digital Goods & Currency > Computer Icons'),
(4317, 4284, 0, 'Software > Digital Goods & Currency > Desktop Wallpaper'),
(4318, 4285, 0, 'Software > Digital Goods & Currency > Digital Artwork'),
(4319, 4286, 0, 'Software > Digital Goods & Currency > Document Templates'),
(4320, 4287, 0, 'Software > Digital Goods & Currency > Fonts'),
(4321, 4288, 0, 'Software > Digital Goods & Currency > Stock Photographs & Video Footage'),
(4322, 4289, 0, 'Software > Digital Goods & Currency > Virtual Currency'),
(4323, 4290, 0, 'Software > Video Game Software'),
(4324, 4291, 0, 'Sporting Goods'),
(4325, 4292, 0, 'Sporting Goods > Athletics'),
(4326, 4293, 0, 'Sporting Goods > Athletics > Baseball & Softball'),
(4327, 4294, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Bases & Plates'),
(4328, 4295, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Batting Gloves'),
(4329, 4296, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Gloves & Mitts'),
(4330, 4297, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Pitching Mats'),
(4331, 4298, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Pitching Mounds'),
(4332, 4299, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Protective Gear'),
(4333, 4300, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Protective Gear > Baseball & Softball Batting Helmets'),
(4334, 4301, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Protective Gear > Baseball & Softball Chest Protectors'),
(4335, 4302, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Protective Gear > Baseball & Softball Leg Guards'),
(4336, 4303, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Protective Gear > Catchers Equipment Sets'),
(4337, 4304, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball & Softball Protective Gear > Catchers Helmets & Masks'),
(4338, 4305, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseball Bats'),
(4339, 4306, 0, 'Sporting Goods > Athletics > Baseball & Softball > Baseballs'),
(4340, 4307, 0, 'Sporting Goods > Athletics > Baseball & Softball > Pitching Machines'),
(4341, 4308, 0, 'Sporting Goods > Athletics > Baseball & Softball > Softball Bats'),
(4342, 4309, 0, 'Sporting Goods > Athletics > Baseball & Softball > Softballs'),
(4343, 4310, 0, 'Sporting Goods > Athletics > Basketball'),
(4344, 4311, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoop Parts & Accessories'),
(4345, 4312, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoop Parts & Accessories > Basketball Backboards'),
(4346, 4313, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoop Parts & Accessories > Basketball Hoop Padding'),
(4347, 4314, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoop Parts & Accessories > Basketball Hoop Posts'),
(4348, 4315, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoop Parts & Accessories > Basketball Nets'),
(4349, 4316, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoop Parts & Accessories > Basketball Rims'),
(4350, 4317, 0, 'Sporting Goods > Athletics > Basketball > Basketball Hoops'),
(4351, 4318, 0, 'Sporting Goods > Athletics > Basketball > Basketball Training Aids'),
(4352, 4319, 0, 'Sporting Goods > Athletics > Basketball > Basketballs'),
(4353, 4320, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts'),
(4354, 4321, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear'),
(4355, 4322, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear > Boxing & MMA Hand Wraps'),
(4356, 4323, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear > Boxing & Martial Arts Arm Guards'),
(4357, 4324, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear > Boxing & Martial Arts Body Protectors'),
(4358, 4325, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear > Boxing & Martial Arts Headgear'),
(4359, 4326, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear > Boxing Gloves & Mitts'),
(4360, 4327, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Protective Gear > MMA Shin Guards'),
(4361, 4328, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment'),
(4362, 4329, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment > Boxing & MMA Punch Mitts'),
(4363, 4330, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment > Grappling Dummies'),
(4364, 4331, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment > Punching & Training Bag Accessories'),
(4365, 4332, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment > Punching & Training Bags'),
(4366, 4333, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment > Strike Shields'),
(4367, 4334, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing Ring Parts'),
(4368, 4335, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Boxing Rings'),
(4369, 4336, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Martial Arts Belts'),
(4370, 4337, 0, 'Sporting Goods > Athletics > Boxing & Martial Arts > Martial Arts Weapons'),
(4371, 4338, 0, 'Sporting Goods > Athletics > Broomball Equipment'),
(4372, 4339, 0, 'Sporting Goods > Athletics > Cheerleading'),
(4373, 4340, 0, 'Sporting Goods > Athletics > Cheerleading > Cheerleading Pom Poms'),
(4374, 4341, 0, 'Sporting Goods > Athletics > Coaching & Officiating'),
(4375, 4342, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Captains Armbands'),
(4376, 4343, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Field & Court Boundary Markers'),
(4377, 4344, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Flip Coins & Discs'),
(4378, 4345, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Linesman Flags'),
(4379, 4346, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Penalty Cards & Flags'),
(4380, 4347, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Pitch Counters'),
(4381, 4348, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Referee Stands & Chairs'),
(4382, 4349, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Referee Wallets'),
(4383, 4350, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Scoreboards'),
(4384, 4351, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Sport & Safety Whistles'),
(4385, 4352, 0, 'Sporting Goods > Athletics > Coaching & Officiating > Umpire Indicators'),
(4386, 4353, 0, 'Sporting Goods > Athletics > Cricket'),
(4387, 4354, 0, 'Sporting Goods > Athletics > Cricket > Cricket Balls'),
(4388, 4355, 0, 'Sporting Goods > Athletics > Cricket > Cricket Bat Accessories'),
(4389, 4356, 0, 'Sporting Goods > Athletics > Cricket > Cricket Bat Accessories > Cricket Bat Grips'),
(4390, 4357, 0, 'Sporting Goods > Athletics > Cricket > Cricket Bats'),
(4391, 4358, 0, 'Sporting Goods > Athletics > Cricket > Cricket Equipment Sets'),
(4392, 4359, 0, 'Sporting Goods > Athletics > Cricket > Cricket Protective Gear'),
(4393, 4360, 0, 'Sporting Goods > Athletics > Cricket > Cricket Protective Gear > Cricket Gloves'),
(4394, 4361, 0, 'Sporting Goods > Athletics > Cricket > Cricket Protective Gear > Cricket Helmets'),
(4395, 4362, 0, 'Sporting Goods > Athletics > Cricket > Cricket Protective Gear > Cricket Leg Guards'),
(4396, 4363, 0, 'Sporting Goods > Athletics > Cricket > Cricket Stumps'),
(4397, 4364, 0, 'Sporting Goods > Athletics > Dancing'),
(4398, 4365, 0, 'Sporting Goods > Athletics > Dancing > Ballet Barres'),
(4399, 4366, 0, 'Sporting Goods > Athletics > Fencing'),
(4400, 4367, 0, 'Sporting Goods > Athletics > Fencing > Fencing Protective Gear'),
(4401, 4368, 0, 'Sporting Goods > Athletics > Fencing > Fencing Protective Gear > Fencing Gloves & Cuffs'),
(4402, 4369, 0, 'Sporting Goods > Athletics > Fencing > Fencing Protective Gear > Fencing Jackets & Lamés'),
(4403, 4370, 0, 'Sporting Goods > Athletics > Fencing > Fencing Protective Gear > Fencing Masks'),
(4404, 4371, 0, 'Sporting Goods > Athletics > Fencing > Fencing Weapons'),
(4405, 4372, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse'),
(4406, 4373, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey & Lacrosse Protective Gear'),
(4407, 4374, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey & Lacrosse Protective Gear > Field Hockey & Lacrosse Gloves'),
(4408, 4375, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey & Lacrosse Protective Gear > Field Hockey & Lacrosse Helmets'),
(4409, 4376, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey & Lacrosse Protective Gear > Field Hockey & Lacrosse Masks & Goggles'),
(4410, 4377, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey & Lacrosse Protective Gear > Field Hockey & Lacrosse Pads'),
(4411, 4378, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey Balls'),
(4412, 4379, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey Goals'),
(4413, 4380, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Field Hockey Sticks'),
(4414, 4381, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Balls'),
(4415, 4382, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Equipment Sets'),
(4416, 4383, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Goals'),
(4417, 4384, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Stick Parts'),
(4418, 4385, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Stick Parts > Lacrosse Mesh & String'),
(4419, 4386, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Stick Parts > Lacrosse Stick Heads'),
(4420, 4387, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Stick Parts > Lacrosse Stick Shafts'),
(4421, 4388, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Sticks'),
(4422, 4389, 0, 'Sporting Goods > Athletics > Field Hockey & Lacrosse > Lacrosse Training Aids'),
(4423, 4390, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey'),
(4424, 4391, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Balls & Pucks'),
(4425, 4392, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Goals'),
(4426, 4393, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear'),
(4427, 4394, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Elbow Pads'),
(4428, 4395, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Gloves'),
(4429, 4396, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Goalie Equipment Sets'),
(4430, 4397, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Helmets'),
(4431, 4398, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Pants'),
(4432, 4399, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Shin Guards & Leg Pads'),
(4433, 4400, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Shoulder Pads & Chest Protectors'),
(4434, 4401, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Protective Gear > Hockey Suspenders & Belts'),
(4435, 4402, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Sledges'),
(4436, 4403, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Stick Care'),
(4437, 4404, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Stick Parts'),
(4438, 4405, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Stick Parts > Hockey Stick Blades'),
(4439, 4406, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Stick Parts > Hockey Stick Shafts'),
(4440, 4407, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Sticks'),
(4441, 4408, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skate Parts & Accessories'),
(4442, 4409, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skate Parts & Accessories > Figure Skate Boots'),
(4443, 4410, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skate Parts & Accessories > Ice Skate Blades'),
(4444, 4411, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skate Parts & Accessories > Ice Skate Sharpeners'),
(4445, 4412, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skate Parts & Accessories > Skate Blade Guards'),
(4446, 4413, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skate Parts & Accessories > Skate Lace Tighteners'),
(4447, 4414, 0, 'Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skates'),
(4448, 4415, 0, 'Sporting Goods > Athletics > Football'),
(4449, 4416, 0, 'Sporting Goods > Athletics > Football > Football Gloves'),
(4450, 4417, 0, 'Sporting Goods > Athletics > Football > Football Goal Posts'),
(4451, 4418, 0, 'Sporting Goods > Athletics > Football > Football Kicking Tees & Holders'),
(4452, 4419, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear'),
(4453, 4420, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Girdles'),
(4454, 4421, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Helmet Accessories'),
(4455, 4422, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Helmet Accessories > Football Chin Straps'),
(4456, 4423, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Helmet Accessories > Football Face Masks'),
(4457, 4424, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Helmet Accessories > Football Helmet Padding'),
(4458, 4425, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Helmet Accessories > Football Helmet Visors'),
(4459, 4426, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Helmets'),
(4460, 4427, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Neck Rolls'),
(4461, 4428, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Rib Protection Shirts & Vests'),
(4462, 4429, 0, 'Sporting Goods > Athletics > Football > Football Protective Gear > Football Shoulder Pads'),
(4463, 4430, 0, 'Sporting Goods > Athletics > Football > Football Training Equipment'),
(4464, 4431, 0, 'Sporting Goods > Athletics > Football > Football Training Equipment > Football Dummies & Sleds'),
(4465, 4432, 0, 'Sporting Goods > Athletics > Football > Footballs'),
(4466, 4433, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment'),
(4467, 4434, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Altitude Training Masks'),
(4468, 4435, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Athletic Cups'),
(4469, 4436, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Ball Carrying Bags & Carts'),
(4470, 4437, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Ball Pump Accessories'),
(4471, 4438, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Ball Pump Accessories > Ball Pump Needles'),
(4472, 4439, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Ball Pumps'),
(4473, 4440, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Exercise & Gym Mat Storage Racks & Carts'),
(4474, 4441, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Grip Spray & Chalk'),
(4475, 4442, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Gym Mats'),
(4476, 4443, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Practice Nets & Screens'),
(4477, 4444, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Speed & Agility Ladders & Hurdles'),
(4478, 4445, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Sports & Agility Cones'),
(4479, 4446, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Sports Megaphones'),
(4480, 4447, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Sports Mouthguards'),
(4481, 4448, 0, 'Sporting Goods > Athletics > General Purpose Athletic Equipment > Stadium Seats & Cushions'),
(4482, 4449, 0, 'Sporting Goods > Athletics > Gymnastics'),
(4483, 4450, 0, 'Sporting Goods > Athletics > Gymnastics > Gymnastics Bars & Balance Beams'),
(4484, 4451, 0, 'Sporting Goods > Athletics > Gymnastics > Gymnastics Protective Gear'),
(4485, 4452, 0, 'Sporting Goods > Athletics > Gymnastics > Gymnastics Protective Gear > Gymnastics Grips'),
(4486, 4453, 0, 'Sporting Goods > Athletics > Gymnastics > Gymnastics Rings'),
(4487, 4454, 0, 'Sporting Goods > Athletics > Gymnastics > Gymnastics Springboards'),
(4488, 4455, 0, 'Sporting Goods > Athletics > Gymnastics > Pommel Horses'),
(4489, 4456, 0, 'Sporting Goods > Athletics > Gymnastics > Vaulting Horses'),
(4490, 4457, 0, 'Sporting Goods > Athletics > Racquetball & Squash'),
(4491, 4458, 0, 'Sporting Goods > Athletics > Racquetball & Squash > Racquetball & Squash Balls'),
(4492, 4459, 0, 'Sporting Goods > Athletics > Racquetball & Squash > Racquetball & Squash Eyewear'),
(4493, 4460, 0, 'Sporting Goods > Athletics > Racquetball & Squash > Racquetball & Squash Gloves'),
(4494, 4461, 0, 'Sporting Goods > Athletics > Racquetball & Squash > Racquetball Racquets'),
(4495, 4462, 0, 'Sporting Goods > Athletics > Racquetball & Squash > Squash Racquets'),
(4496, 4463, 0, 'Sporting Goods > Athletics > Rounders'),
(4497, 4464, 0, 'Sporting Goods > Athletics > Rounders > Rounders Bats'),
(4498, 4465, 0, 'Sporting Goods > Athletics > Rounders > Rounders Gloves'),
(4499, 4466, 0, 'Sporting Goods > Athletics > Rugby'),
(4500, 4467, 0, 'Sporting Goods > Athletics > Rugby > Rugby Balls'),
(4501, 4468, 0, 'Sporting Goods > Athletics > Rugby > Rugby Gloves'),
(4502, 4469, 0, 'Sporting Goods > Athletics > Rugby > Rugby Posts'),
(4503, 4470, 0, 'Sporting Goods > Athletics > Rugby > Rugby Protective Gear'),
(4504, 4471, 0, 'Sporting Goods > Athletics > Rugby > Rugby Protective Gear > Rugby Headgear'),
(4505, 4472, 0, 'Sporting Goods > Athletics > Rugby > Rugby Training Aids'),
(4506, 4473, 0, 'Sporting Goods > Athletics > Soccer'),
(4507, 4474, 0, 'Sporting Goods > Athletics > Soccer > Soccer Balls'),
(4508, 4475, 0, 'Sporting Goods > Athletics > Soccer > Soccer Corner Flags'),
(4509, 4476, 0, 'Sporting Goods > Athletics > Soccer > Soccer Gloves'),
(4510, 4477, 0, 'Sporting Goods > Athletics > Soccer > Soccer Goal Accessories'),
(4511, 4478, 0, 'Sporting Goods > Athletics > Soccer > Soccer Goals'),
(4512, 4479, 0, 'Sporting Goods > Athletics > Soccer > Soccer Protective Gear'),
(4513, 4480, 0, 'Sporting Goods > Athletics > Soccer > Soccer Protective Gear > Soccer Shin Guards'),
(4514, 4481, 0, 'Sporting Goods > Athletics > Team Handball'),
(4515, 4482, 0, 'Sporting Goods > Athletics > Team Handball > Handballs'),
(4516, 4483, 0, 'Sporting Goods > Athletics > Tennis'),
(4517, 4484, 0, 'Sporting Goods > Athletics > Tennis > Tennis Ball Hoppers & Carts'),
(4518, 4485, 0, 'Sporting Goods > Athletics > Tennis > Tennis Ball Machines'),
(4519, 4486, 0, 'Sporting Goods > Athletics > Tennis > Tennis Ball Savers'),
(4520, 4487, 0, 'Sporting Goods > Athletics > Tennis > Tennis Balls'),
(4521, 4488, 0, 'Sporting Goods > Athletics > Tennis > Tennis Nets'),
(4522, 4489, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquet Accessories'),
(4523, 4490, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquet Accessories > Racquet Vibration Dampeners'),
(4524, 4491, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquet Accessories > Tennis Racquet Bags'),
(4525, 4492, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquet Accessories > Tennis Racquet Grips & Tape'),
(4526, 4493, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquet Accessories > Tennis Racquet Grommets'),
(4527, 4494, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquet Accessories > Tennis Racquet String'),
(4528, 4495, 0, 'Sporting Goods > Athletics > Tennis > Tennis Racquets'),
(4529, 4496, 0, 'Sporting Goods > Athletics > Track & Field'),
(4530, 4497, 0, 'Sporting Goods > Athletics > Track & Field > Discus'),
(4531, 4498, 0, 'Sporting Goods > Athletics > Track & Field > High Jump Crossbars'),
(4532, 4499, 0, 'Sporting Goods > Athletics > Track & Field > High Jump Pits'),
(4533, 4500, 0, 'Sporting Goods > Athletics > Track & Field > Javelins'),
(4534, 4501, 0, 'Sporting Goods > Athletics > Track & Field > Pole Vault Pits'),
(4535, 4502, 0, 'Sporting Goods > Athletics > Track & Field > Relay Batons'),
(4536, 4503, 0, 'Sporting Goods > Athletics > Track & Field > Shot Puts'),
(4537, 4504, 0, 'Sporting Goods > Athletics > Track & Field > Starter Pistols'),
(4538, 4505, 0, 'Sporting Goods > Athletics > Track & Field > Throwing Hammers'),
(4539, 4506, 0, 'Sporting Goods > Athletics > Track & Field > Track Hurdles'),
(4540, 4507, 0, 'Sporting Goods > Athletics > Track & Field > Track Starting Blocks'),
(4541, 4508, 0, 'Sporting Goods > Athletics > Track & Field > Vaulting Poles'),
(4542, 4509, 0, 'Sporting Goods > Athletics > Volleyball'),
(4543, 4510, 0, 'Sporting Goods > Athletics > Volleyball > Volleyball Nets'),
(4544, 4511, 0, 'Sporting Goods > Athletics > Volleyball > Volleyball Protective Gear'),
(4545, 4512, 0, 'Sporting Goods > Athletics > Volleyball > Volleyball Protective Gear > Volleyball Knee Pads'),
(4546, 4513, 0, 'Sporting Goods > Athletics > Volleyball > Volleyball Training Aids'),
(4547, 4514, 0, 'Sporting Goods > Athletics > Volleyball > Volleyballs'),
(4548, 4515, 0, 'Sporting Goods > Athletics > Wallyball Equipment'),
(4549, 4516, 0, 'Sporting Goods > Athletics > Water Polo'),
(4550, 4517, 0, 'Sporting Goods > Athletics > Water Polo > Water Polo Balls'),
(4551, 4518, 0, 'Sporting Goods > Athletics > Water Polo > Water Polo Caps'),
(4552, 4519, 0, 'Sporting Goods > Athletics > Water Polo > Water Polo Goals'),
(4553, 4520, 0, 'Sporting Goods > Athletics > Wrestling'),
(4554, 4521, 0, 'Sporting Goods > Athletics > Wrestling > Wrestling Protective Gear'),
(4555, 4522, 0, 'Sporting Goods > Athletics > Wrestling > Wrestling Protective Gear > Wrestling Headgear'),
(4556, 4523, 0, 'Sporting Goods > Athletics > Wrestling > Wrestling Protective Gear > Wrestling Knee Pads'),
(4557, 4524, 0, 'Sporting Goods > Exercise & Fitness'),
(4558, 4525, 0, 'Sporting Goods > Exercise & Fitness > Ab Wheels & Rollers'),
(4559, 4526, 0, 'Sporting Goods > Exercise & Fitness > Aerobic Steps'),
(4560, 4527, 0, 'Sporting Goods > Exercise & Fitness > Balance Trainers'),
(4561, 4528, 0, 'Sporting Goods > Exercise & Fitness > Cardio'),
(4562, 4529, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machine Accessories'),
(4563, 4530, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machine Accessories > Elliptical Trainer Accessories'),
(4564, 4531, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machine Accessories > Exercise Bike Accessories'),
(4565, 4532, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machine Accessories > Rowing Machine Accessories'),
(4566, 4533, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machine Accessories > Stair Climber & Stepper Accessories'),
(4567, 4534, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machine Accessories > Treadmill Accessories'),
(4568, 4535, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machines'),
(4569, 4536, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machines > Elliptical Trainers'),
(4570, 4537, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machines > Exercise Bikes'),
(4571, 4538, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machines > Rowing Machines'),
(4572, 4539, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machines > Stair Climbers & Steppers'),
(4573, 4540, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Cardio Machines > Treadmills'),
(4574, 4541, 0, 'Sporting Goods > Exercise & Fitness > Cardio > Jump Ropes'),
(4575, 4542, 0, 'Sporting Goods > Exercise & Fitness > Exercise Balls'),
(4576, 4543, 0, 'Sporting Goods > Exercise & Fitness > Exercise Bands'),
(4577, 4544, 0, 'Sporting Goods > Exercise & Fitness > Exercise Benches'),
(4578, 4545, 0, 'Sporting Goods > Exercise & Fitness > Exercise Equipment Mats'),
(4579, 4546, 0, 'Sporting Goods > Exercise & Fitness > Exercise Machine & Equipment Sets'),
(4580, 4547, 0, 'Sporting Goods > Exercise & Fitness > Exercise Wedges'),
(4581, 4548, 0, 'Sporting Goods > Exercise & Fitness > Foam Roller Accessories'),
(4582, 4549, 0, 'Sporting Goods > Exercise & Fitness > Foam Roller Accessories > Foam Roller Storage Bags'),
(4583, 4550, 0, 'Sporting Goods > Exercise & Fitness > Foam Rollers'),
(4584, 4551, 0, 'Sporting Goods > Exercise & Fitness > Hand Exercisers'),
(4585, 4552, 0, 'Sporting Goods > Exercise & Fitness > Inversion Tables & Systems'),
(4586, 4553, 0, 'Sporting Goods > Exercise & Fitness > Medicine Balls'),
(4587, 4554, 0, 'Sporting Goods > Exercise & Fitness > Power Towers'),
(4588, 4555, 0, 'Sporting Goods > Exercise & Fitness > Push Up & Pull Up Bars'),
(4589, 4556, 0, 'Sporting Goods > Exercise & Fitness > Reaction Balls'),
(4590, 4557, 0, 'Sporting Goods > Exercise & Fitness > Speed & Resistance Parachutes'),
(4591, 4558, 0, 'Sporting Goods > Exercise & Fitness > Sport Safety Lights & Reflectors'),
(4592, 4559, 0, 'Sporting Goods > Exercise & Fitness > Stopwatches'),
(4593, 4560, 0, 'Sporting Goods > Exercise & Fitness > Suspension Trainers'),
(4594, 4561, 0, 'Sporting Goods > Exercise & Fitness > Vibration Exercise Machines'),
(4595, 4562, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting'),
(4596, 4563, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Free Weight Accessories'),
(4597, 4564, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Free Weight Accessories > Free Weight Storage Racks'),
(4598, 4565, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Free Weight Accessories > Weight Bar Collars'),
(4599, 4566, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Free Weight Accessories > Weight Bars'),
(4600, 4567, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Free Weights'),
(4601, 4568, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Weight Lifting Belts'),
(4602, 4569, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Weight Lifting Gloves & Hand Supports'),
(4603, 4570, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Weight Lifting Machine & Exercise Bench Accessories'),
(4604, 4571, 0, 'Sporting Goods > Exercise & Fitness > Weight Lifting > Weight Lifting Machines & Racks'),
(4605, 4572, 0, 'Sporting Goods > Exercise & Fitness > Weighted Clothing'),
(4606, 4573, 0, 'Sporting Goods > Exercise & Fitness > Yoga & Pilates'),
(4607, 4574, 0, 'Sporting Goods > Exercise & Fitness > Yoga & Pilates > Pilates Machines'),
(4608, 4575, 0, 'Sporting Goods > Exercise & Fitness > Yoga & Pilates > Yoga & Pilates Blocks'),
(4609, 4576, 0, 'Sporting Goods > Exercise & Fitness > Yoga & Pilates > Yoga & Pilates Mats'),
(4610, 4577, 0, 'Sporting Goods > Exercise & Fitness > Yoga & Pilates > Yoga & Pilates Towels'),
(4611, 4578, 0, 'Sporting Goods > Exercise & Fitness > Yoga & Pilates > Yoga Mat Bags & Straps'),
(4612, 4579, 0, 'Sporting Goods > Indoor Games'),
(4613, 4580, 0, 'Sporting Goods > Indoor Games > Air Hockey'),
(4614, 4581, 0, 'Sporting Goods > Indoor Games > Air Hockey > Air Hockey Equipment'),
(4615, 4582, 0, 'Sporting Goods > Indoor Games > Air Hockey > Air Hockey Table Parts'),
(4616, 4583, 0, 'Sporting Goods > Indoor Games > Air Hockey > Air Hockey Tables'),
(4617, 4584, 0, 'Sporting Goods > Indoor Games > Billiards'),
(4618, 4585, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Ball Racks'),
(4619, 4586, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Balls'),
(4620, 4587, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Cue Accessories'),
(4621, 4588, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Cue Accessories > Billiard Cue Cases'),
(4622, 4589, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Cue Accessories > Billiard Cue Chalk'),
(4623, 4590, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Cue Accessories > Billiard Cue Racks'),
(4624, 4591, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Cues & Bridges'),
(4625, 4592, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Gloves'),
(4626, 4593, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Table Lights'),
(4627, 4594, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Table Parts & Accessories'),
(4628, 4595, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Table Parts & Accessories > Billiard Pockets'),
(4629, 4596, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Table Parts & Accessories > Billiard Table Brushes'),
(4630, 4597, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Table Parts & Accessories > Billiard Table Cloth'),
(4631, 4598, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Table Parts & Accessories > Billiard Table Covers'),
(4632, 4599, 0, 'Sporting Goods > Indoor Games > Billiards > Billiard Tables'),
(4633, 4600, 0, 'Sporting Goods > Indoor Games > Bowling'),
(4634, 4601, 0, 'Sporting Goods > Indoor Games > Bowling > Bowling Ball Bags'),
(4635, 4602, 0, 'Sporting Goods > Indoor Games > Bowling > Bowling Balls'),
(4636, 4603, 0, 'Sporting Goods > Indoor Games > Bowling > Bowling Gloves'),
(4637, 4604, 0, 'Sporting Goods > Indoor Games > Bowling > Bowling Pins'),
(4638, 4605, 0, 'Sporting Goods > Indoor Games > Bowling > Bowling Wrist Supports'),
(4639, 4606, 0, 'Sporting Goods > Indoor Games > Foosball'),
(4640, 4607, 0, 'Sporting Goods > Indoor Games > Foosball > Foosball Balls'),
(4641, 4608, 0, 'Sporting Goods > Indoor Games > Foosball > Foosball Table Parts & Accessories'),
(4642, 4609, 0, 'Sporting Goods > Indoor Games > Foosball > Foosball Tables'),
(4643, 4610, 0, 'Sporting Goods > Indoor Games > Multi-Game Tables'),
(4644, 4611, 0, 'Sporting Goods > Indoor Games > Ping Pong'),
(4645, 4612, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Balls'),
(4646, 4613, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Nets & Posts'),
(4647, 4614, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Paddle Accessories'),
(4648, 4615, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Paddles & Sets'),
(4649, 4616, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Robot Accessories'),
(4650, 4617, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Robots'),
(4651, 4618, 0, 'Sporting Goods > Indoor Games > Ping Pong > Ping Pong Tables'),
(4652, 4619, 0, 'Sporting Goods > Indoor Games > Table Shuffleboard'),
(4653, 4620, 0, 'Sporting Goods > Indoor Games > Table Shuffleboard > Shuffleboard Tables'),
(4654, 4621, 0, 'Sporting Goods > Indoor Games > Table Shuffleboard > Table Shuffleboard Powder'),
(4655, 4622, 0, 'Sporting Goods > Indoor Games > Table Shuffleboard > Table Shuffleboard Pucks'),
(4656, 4623, 0, 'Sporting Goods > Indoor Games > Throwing Darts'),
(4657, 4624, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Dart Backboards'),
(4658, 4625, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Dart Parts'),
(4659, 4626, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Dart Parts > Dart Flights'),
(4660, 4627, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Dart Parts > Dart Shafts'),
(4661, 4628, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Dart Parts > Dart Tips'),
(4662, 4629, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Dartboards'),
(4663, 4630, 0, 'Sporting Goods > Indoor Games > Throwing Darts > Darts'),
(4664, 4631, 0, 'Sporting Goods > Outdoor Recreation'),
(4665, 4632, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports'),
(4666, 4633, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting'),
(4667, 4634, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Boating Gloves'),
(4668, 4635, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Canoe Accessories'),
(4669, 4636, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Canoes'),
(4670, 4637, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Kayak Accessories'),
(4671, 4638, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Kayaks'),
(4672, 4639, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Paddle Leashes'),
(4673, 4640, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Paddles & Oars'),
(4674, 4641, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Pedal Boats'),
(4675, 4642, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Row Boats'),
(4676, 4643, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Rafting > Whitewater Rafts'),
(4677, 4644, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel'),
(4678, 4645, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Drysuits'),
(4679, 4646, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Life Jacket Accessories'),
(4680, 4647, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Life Jackets'),
(4681, 4648, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Rash Guards & Swim Shirts'),
(4682, 4649, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Water Sport Helmets'),
(4683, 4650, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Wetsuit Pieces'),
(4684, 4651, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Wetsuit Pieces > Wetsuit Bottoms'),
(4685, 4652, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Wetsuit Pieces > Wetsuit Hoods, Gloves & Boots'),
(4686, 4653, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Wetsuit Pieces > Wetsuit Tops'),
(4687, 4654, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Boating & Water Sport Apparel > Wetsuits'),
(4688, 4655, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling'),
(4689, 4656, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Buoyancy Compensators'),
(4690, 4657, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Dive Computers'),
(4691, 4658, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Diving & Snorkeling Equipment Sets'),
(4692, 4659, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Diving & Snorkeling Fins'),
(4693, 4660, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Diving & Snorkeling Masks'),
(4694, 4661, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Diving Belts'),
(4695, 4662, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Diving Knives & Shears'),
(4696, 4663, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Diving Regulators'),
(4697, 4664, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Diving & Snorkeling > Snorkels'),
(4698, 4665, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Kitesurfing'),
(4699, 4666, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Kitesurfing > Kiteboard Cases'),
(4700, 4667, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Kitesurfing > Kiteboard Parts'),
(4701, 4668, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Kitesurfing > Kiteboards'),
(4702, 4669, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Kitesurfing > Kitesurfing & Windsurfing Harnesses'),
(4703, 4670, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Kitesurfing > Kitesurfing Kites'),
(4704, 4671, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing'),
(4705, 4672, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Bodyboards'),
(4706, 4673, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Paddleboards'),
(4707, 4674, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Skimboards'),
(4708, 4675, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surf Leashes'),
(4709, 4676, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surfboard Cases & Bags'),
(4710, 4677, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surfboard Fins'),
(4711, 4678, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surfboard Wax'),
(4712, 4679, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surfboards'),
(4713, 4680, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surfing Gloves'),
(4714, 4681, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Surfing > Surfing Tail Pads'),
(4715, 4682, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming'),
(4716, 4683, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Child Swimming Aids'),
(4717, 4684, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Hand Paddles'),
(4718, 4685, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Kickboards'),
(4719, 4686, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Pull Buoys'),
(4720, 4687, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swim Belts'),
(4721, 4688, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swim Caps'),
(4722, 4689, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swim Gloves'),
(4723, 4690, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swim Goggle & Mask Accessories'),
(4724, 4691, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swim Goggles & Masks'),
(4725, 4692, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swim Weights'),
(4726, 4693, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swimming Fins'),
(4727, 4694, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swimming Fins > Monofins'),
(4728, 4695, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swimming Fins > Training Fins'),
(4729, 4696, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swimming Machines'),
(4730, 4697, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Swimming > Swimming Nose Clips'),
(4731, 4698, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports'),
(4732, 4699, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Kneeboarding'),
(4733, 4700, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Kneeboarding > Kneeboards'),
(4734, 4701, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Towable Rafts & Tubes'),
(4735, 4702, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Towed Water Sport Gloves'),
(4736, 4703, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Wakeboarding'),
(4737, 4704, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Wakeboarding > Kiteboard & Wakeboard Bindings'),
(4738, 4705, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Wakeboarding > Wakeboard Parts'),
(4739, 4706, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Wakeboarding > Wakeboards'),
(4740, 4707, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Water Skiing'),
(4741, 4708, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Water Skiing > Sit-Down Hydrofoils'),
(4742, 4709, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Water Skiing > Water Ski Bindings'),
(4743, 4710, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Water Skiing > Water Ski Cases & Bags'),
(4744, 4711, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Water Skiing > Water Skis'),
(4745, 4712, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Water Sport Tow Cables'),
(4746, 4713, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Watercraft Storage Racks'),
(4747, 4714, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Watercraft Storage Racks > Boat Storage Racks'),
(4748, 4715, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Watercraft Storage Racks > Water Sport Board Storage Racks'),
(4749, 4716, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Windsurfing'),
(4750, 4717, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Windsurfing > Windsurfing Board Parts'),
(4751, 4718, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Windsurfing > Windsurfing Board Parts > Windsurfing Board Fins'),
(4752, 4719, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Windsurfing > Windsurfing Board Parts > Windsurfing Board Masts'),
(4753, 4720, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Windsurfing > Windsurfing Boards'),
(4754, 4721, 0, 'Sporting Goods > Outdoor Recreation > Boating & Water Sports > Windsurfing > Windsurfing Sails'),
(4755, 4722, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking'),
(4756, 4723, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camp Furniture'),
(4757, 4724, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camp Furniture > Air Mattress & Sleeping Pad Accessories'),
(4758, 4725, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camp Furniture > Air Mattresses'),
(4759, 4726, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camp Furniture > Cots'),
(4760, 4727, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Cookware & Dinnerware'),
(4761, 4728, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Lights & Lanterns'),
(4762, 4729, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Tools'),
(4763, 4730, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Tools > Hunting & Survival Knives'),
(4764, 4731, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Tools > Multifunction Tools & Knives'),
(4765, 4732, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Chemical Hand Warmers'),
(4766, 4733, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Compression Sacks'),
(4767, 4734, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Hiking Pole Accessories'),
(4768, 4735, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Hiking Poles'),
(4769, 4736, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Mosquito Nets & Insect Screens'),
(4770, 4737, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Navigational Compasses'),
(4771, 4738, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Portable Toilets & Showers'),
(4772, 4739, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Portable Toilets & Showers > Portable Showers & Privacy Enclosures'),
(4773, 4740, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Portable Toilets & Showers > Portable Toilets & Urination Devices'),
(4774, 4741, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Portable Water Filters & Purifiers'),
(4775, 4742, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Sleeping Bag Liners'),
(4776, 4743, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Sleeping Bags'),
(4777, 4744, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Sleeping Pads'),
(4778, 4745, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Tent Accessories'),
(4779, 4746, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Tent Accessories > Inner Tents'),
(4780, 4747, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Tent Accessories > Tent Footprints'),
(4781, 4748, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Tent Accessories > Tent Poles & Stakes'),
(4782, 4749, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Tent Accessories > Tent Vestibules'),
(4783, 4750, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Tents'),
(4784, 4751, 0, 'Sporting Goods > Outdoor Recreation > Camping & Hiking > Windbreaks'),
(4785, 4752, 0, 'Sporting Goods > Outdoor Recreation > Climbing'),
(4786, 4753, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Belay Devices'),
(4787, 4754, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Carabiners'),
(4788, 4755, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Apparel & Accessories'),
(4789, 4756, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Apparel & Accessories > Climbing Gloves'),
(4790, 4757, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Apparel & Accessories > Climbing Helmets'),
(4791, 4758, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Apparel & Accessories > Crampons'),
(4792, 4759, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Ascenders & Descenders'),
(4793, 4760, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Chalk Bags'),
(4794, 4761, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Crash Pads'),
(4795, 4762, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Harnesses'),
(4796, 4763, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Protection Devices'),
(4797, 4764, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Rope'),
(4798, 4765, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Rope Bags'),
(4799, 4766, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Climbing Webbing'),
(4800, 4767, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Ice Climbing Tools'),
(4801, 4768, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Ice Screws'),
(4802, 4769, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Indoor Climbing Holds'),
(4803, 4770, 0, 'Sporting Goods > Outdoor Recreation > Climbing > Quickdraws'),
(4804, 4771, 0, 'Sporting Goods > Outdoor Recreation > Cycling'),
(4805, 4772, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories'),
(4806, 4773, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Bags & Panniers'),
(4807, 4774, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Baskets'),
(4808, 4775, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Bells & Horns'),
(4809, 4776, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Cages'),
(4810, 4777, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Child Seat Accessories'),
(4811, 4778, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Child Seats'),
(4812, 4779, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Computer Accessories'),
(4813, 4780, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Computers'),
(4814, 4781, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Covers'),
(4815, 4782, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Fenders'),
(4816, 4783, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Front & Rear Racks'),
(4817, 4784, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Handlebar Grips & Decor'),
(4818, 4785, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Locks'),
(4819, 4786, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Mirrors'),
(4820, 4787, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Pumps'),
(4821, 4788, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Saddle Pads & Seat Covers'),
(4822, 4789, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Shock Pumps');
INSERT INTO `mg_eav_attribute_option_value` (`value_id`, `option_id`, `store_id`, `value`) VALUES
(4823, 4790, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Spoke Beads'),
(4824, 4791, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Stands & Storage'),
(4825, 4792, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Tire Repair Supplies & Kits'),
(4826, 4793, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Toe Straps & Clips'),
(4827, 4794, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Tools'),
(4828, 4795, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Trailers'),
(4829, 4796, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Trainers'),
(4830, 4797, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Training Wheels'),
(4831, 4798, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Transport Bags & Cases'),
(4832, 4799, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Water Sport Board Racks'),
(4833, 4800, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Electric Bicycle Conversion Kits'),
(4834, 4801, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts'),
(4835, 4802, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts'),
(4836, 4803, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Calipers'),
(4837, 4804, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Levers'),
(4838, 4805, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Rotors'),
(4839, 4806, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Sets'),
(4840, 4807, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Cable Housings'),
(4841, 4808, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Cables'),
(4842, 4809, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts'),
(4843, 4810, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Bottom Brackets'),
(4844, 4811, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Cassettes & Freewheels'),
(4845, 4812, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Chainrings'),
(4846, 4813, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Chains'),
(4847, 4814, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Cranks'),
(4848, 4815, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Derailleurs'),
(4849, 4816, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Pedals'),
(4850, 4817, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Shifters'),
(4851, 4818, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Forks'),
(4852, 4819, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Frames'),
(4853, 4820, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Groupsets'),
(4854, 4821, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Handlebar Extensions'),
(4855, 4822, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Handlebars'),
(4856, 4823, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Headset Parts'),
(4857, 4824, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Headset Parts > Bicycle Headset Bearings'),
(4858, 4825, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Headset Parts > Bicycle Headset Spacers'),
(4859, 4826, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Headsets'),
(4860, 4827, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Kickstands'),
(4861, 4828, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Saddles'),
(4862, 4829, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Seatpost Clamps'),
(4863, 4830, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Seatposts'),
(4864, 4831, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Small Parts'),
(4865, 4832, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Stems'),
(4866, 4833, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Tire Valve Adapters'),
(4867, 4834, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Tire Valve Caps'),
(4868, 4835, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Tire Valves'),
(4869, 4836, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Tires'),
(4870, 4837, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Tubes'),
(4871, 4838, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts'),
(4872, 4839, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Foot Pegs'),
(4873, 4840, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Hub Parts'),
(4874, 4841, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Hubs'),
(4875, 4842, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Rim Strips'),
(4876, 4843, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Spokes'),
(4877, 4844, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Wheel Axles & Skewers'),
(4878, 4845, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Wheel Nipples'),
(4879, 4846, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheel Parts > Bicycle Wheel Rims'),
(4880, 4847, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Wheels'),
(4881, 4848, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Bicycles'),
(4882, 4849, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories'),
(4883, 4850, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Cleat Accessories'),
(4884, 4851, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Cleat Accessories > Bicycle Cleat Bolts'),
(4885, 4852, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Cleat Accessories > Bicycle Cleat Covers'),
(4886, 4853, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Cleat Accessories > Bicycle Cleat Shims & Wedges'),
(4887, 4854, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Cleats'),
(4888, 4855, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Gloves'),
(4889, 4856, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Helmet Parts & Accessories'),
(4890, 4857, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Helmets'),
(4891, 4858, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Protective Pads'),
(4892, 4859, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Cycling Apparel & Accessories > Bicycle Shoe Covers'),
(4893, 4860, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Tricycle Accessories'),
(4894, 4861, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Tricycles'),
(4895, 4862, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Unicycle Accessories'),
(4896, 4863, 0, 'Sporting Goods > Outdoor Recreation > Cycling > Unicycles'),
(4897, 4864, 0, 'Sporting Goods > Outdoor Recreation > Equestrian'),
(4898, 4865, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care'),
(4899, 4866, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Blankets & Sheets'),
(4900, 4867, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Boots & Leg Wraps'),
(4901, 4868, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Feed'),
(4902, 4869, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Fly Masks'),
(4903, 4870, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Grooming'),
(4904, 4871, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Grooming > Horse Clippers & Trimmers'),
(4905, 4872, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Grooming > Horse Grooming Combs, Brushes & Mitts'),
(4906, 4873, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Treats'),
(4907, 4874, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Vitamins & Supplements'),
(4908, 4875, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Wormers'),
(4909, 4876, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack'),
(4910, 4877, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Bridle Bits'),
(4911, 4878, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Bridles'),
(4912, 4879, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Cinches'),
(4913, 4880, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Horse Halters'),
(4914, 4881, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Horse Harnesses'),
(4915, 4882, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Horse Leads'),
(4916, 4883, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Reins'),
(4917, 4884, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Saddles'),
(4918, 4885, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack > Stirrups'),
(4919, 4886, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories'),
(4920, 4887, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories > Horse Tack Boxes'),
(4921, 4888, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories > Saddle Accessories'),
(4922, 4889, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories > Saddle Accessories > Saddle Bags & Panniers'),
(4923, 4890, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories > Saddle Accessories > Saddle Covers & Cases'),
(4924, 4891, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories > Saddle Accessories > Saddle Pads & Blankets'),
(4925, 4892, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Horse Tack Accessories > Saddle Accessories > Saddle Racks'),
(4926, 4893, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Riding Apparel & Accessories'),
(4927, 4894, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Riding Apparel & Accessories > Equestrian Gloves'),
(4928, 4895, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Riding Apparel & Accessories > Equestrian Helmets'),
(4929, 4896, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Riding Apparel & Accessories > Riding Crops & Whips'),
(4930, 4897, 0, 'Sporting Goods > Outdoor Recreation > Equestrian > Riding Apparel & Accessories > Riding Pants'),
(4931, 4898, 0, 'Sporting Goods > Outdoor Recreation > Fishing'),
(4932, 4899, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Bite Alarms'),
(4933, 4900, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing & Hunting Waders'),
(4934, 4901, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Bait & Chum Containers'),
(4935, 4902, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Gaffs'),
(4936, 4903, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Hook Removal Tools'),
(4937, 4904, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Lines & Leaders'),
(4938, 4905, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Nets'),
(4939, 4906, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Reel Accessories'),
(4940, 4907, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Reel Accessories > Fishing Reel Bags & Cases'),
(4941, 4908, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Reel Accessories > Fishing Reel Lubricants'),
(4942, 4909, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Reel Accessories > Fishing Reel Replacement Spools'),
(4943, 4910, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Reels'),
(4944, 4911, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories'),
(4945, 4912, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Bags & Cases'),
(4946, 4913, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Holders & Storage Racks'),
(4947, 4914, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Rods'),
(4948, 4915, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Spears'),
(4949, 4916, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Tackle'),
(4950, 4917, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Tackle > Fishing Baits & Lures'),
(4951, 4918, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Tackle > Fishing Floats'),
(4952, 4919, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Tackle > Fishing Hooks'),
(4953, 4920, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Tackle > Fishing Sinkers'),
(4954, 4921, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Tackle > Fishing Snaps & Swivels'),
(4955, 4922, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fishing Traps'),
(4956, 4923, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fly Tying Materials'),
(4957, 4924, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fly Tying Materials > Fishing Beads'),
(4958, 4925, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Fly Tying Materials > Fishing Yarn'),
(4959, 4926, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Live Bait'),
(4960, 4927, 0, 'Sporting Goods > Outdoor Recreation > Fishing > Tackle Bags & Boxes'),
(4961, 4928, 0, 'Sporting Goods > Outdoor Recreation > Golf'),
(4962, 4929, 0, 'Sporting Goods > Outdoor Recreation > Golf > Divot Tools'),
(4963, 4930, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Accessory Sets'),
(4964, 4931, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Bag Accessories'),
(4965, 4932, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Bag Accessories > Golf Bag Carts'),
(4966, 4933, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Bag Accessories > Golf Bag Covers & Cases'),
(4967, 4934, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Bags'),
(4968, 4935, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Ball Markers'),
(4969, 4936, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Balls'),
(4970, 4937, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Club Parts & Accessories'),
(4971, 4938, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Club Parts & Accessories > Golf Club Grips'),
(4972, 4939, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Club Parts & Accessories > Golf Club Headcovers'),
(4973, 4940, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Club Parts & Accessories > Golf Club Shafts'),
(4974, 4941, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Clubs'),
(4975, 4942, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Flags'),
(4976, 4943, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Gloves'),
(4977, 4944, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Tees'),
(4978, 4945, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Towels'),
(4979, 4946, 0, 'Sporting Goods > Outdoor Recreation > Golf > Golf Training Aids'),
(4980, 4947, 0, 'Sporting Goods > Outdoor Recreation > Hang Gliding & Skydiving'),
(4981, 4948, 0, 'Sporting Goods > Outdoor Recreation > Hang Gliding & Skydiving > Air Suits'),
(4982, 4949, 0, 'Sporting Goods > Outdoor Recreation > Hang Gliding & Skydiving > Hang Gliders'),
(4983, 4950, 0, 'Sporting Goods > Outdoor Recreation > Hang Gliding & Skydiving > Parachutes'),
(4984, 4951, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting'),
(4985, 4952, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery'),
(4986, 4953, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Archery Armguards'),
(4987, 4954, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Archery Gloves & Releases'),
(4988, 4955, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Archery Targets'),
(4989, 4956, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Arrow Parts & Accessories'),
(4990, 4957, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Arrow Parts & Accessories > Arrow Fletchings'),
(4991, 4958, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Arrow Parts & Accessories > Arrow Nocks'),
(4992, 4959, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Arrow Parts & Accessories > Broadheads & Field Points'),
(4993, 4960, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Arrows & Bolts'),
(4994, 4961, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Bow & Crossbow Accessories'),
(4995, 4962, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Bows & Crossbows'),
(4996, 4963, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Bows & Crossbows > Compound Bows'),
(4997, 4964, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Bows & Crossbows > Crossbows'),
(4998, 4965, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Bows & Crossbows > Recurve & Longbows'),
(4999, 4966, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Archery > Quivers'),
(5000, 4967, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Clay Pigeon Shooting'),
(5001, 4968, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Clay Pigeon Shooting > Clay Pigeon Throwers'),
(5002, 4969, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Clay Pigeon Shooting > Clay Pigeons'),
(5003, 4970, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting'),
(5004, 4971, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting & Shooting Protective Gear'),
(5005, 4972, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting & Shooting Protective Gear > Hunting & Shooting Gloves'),
(5006, 4973, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting & Shooting Protective Gear > Hunting & Shooting Jackets'),
(5007, 4974, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Animal Traps'),
(5008, 4975, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Hearing Enhancers'),
(5009, 4976, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Hunting Blinds & Screens'),
(5010, 4977, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Hunting Dog Equipment'),
(5011, 4978, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Tree Stands'),
(5012, 4979, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Wild Game Feeders'),
(5013, 4980, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Wildlife Attractants'),
(5014, 4981, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Wildlife Attractants > Cover Scents & Scent Attractants'),
(5015, 4982, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Wildlife Attractants > Hunting & Wildlife Calls'),
(5016, 4983, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Wildlife Attractants > Hunting & Wildlife Decoys'),
(5017, 4984, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Wildlife Attractants > Wildlife Bait, Feed & Minerals'),
(5018, 4985, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft'),
(5019, 4986, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Airsoft'),
(5020, 4987, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Airsoft > Airsoft Gun Parts & Accessories'),
(5021, 4988, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Airsoft > Airsoft Gun Parts & Accessories > Airsoft Gun Batteries'),
(5022, 4989, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Airsoft > Airsoft Guns'),
(5023, 4990, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Airsoft > Airsoft Pellets'),
(5024, 4991, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball'),
(5025, 4992, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball & Airsoft Protective Gear'),
(5026, 4993, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball & Airsoft Protective Gear > Paintball & Airsoft Gloves'),
(5027, 4994, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball & Airsoft Protective Gear > Paintball & Airsoft Goggles & Masks'),
(5028, 4995, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball & Airsoft Protective Gear > Paintball & Airsoft Pads'),
(5029, 4996, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball & Airsoft Protective Gear > Paintball & Airsoft Vests'),
(5030, 4997, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Grenade Launchers'),
(5031, 4998, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Grenades'),
(5032, 4999, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Gun Parts & Accessories'),
(5033, 5000, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Gun Parts & Accessories > Paintball Air Tanks'),
(5034, 5001, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Gun Parts & Accessories > Paintball Gun Barrels'),
(5035, 5002, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Gun Parts & Accessories > Paintball Gun Drop Forwards'),
(5036, 5003, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Gun Parts & Accessories > Paintball Hoppers'),
(5037, 5004, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Guns'),
(5038, 5005, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintball Harnesses & Packs'),
(5039, 5006, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Paintball & Airsoft > Paintball > Paintballs'),
(5040, 5007, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Shooting & Range Accessories'),
(5041, 5008, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Shooting & Range Accessories > Shooting Rests'),
(5042, 5009, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Shooting & Range Accessories > Shooting Sticks & Bipods'),
(5043, 5010, 0, 'Sporting Goods > Outdoor Recreation > Hunting & Shooting > Shooting & Range Accessories > Shooting Targets'),
(5044, 5011, 0, 'Sporting Goods > Outdoor Recreation > Hydration System Accessories'),
(5045, 5012, 0, 'Sporting Goods > Outdoor Recreation > Hydration Systems'),
(5046, 5013, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating'),
(5047, 5014, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Inline & Roller Skating Protective Gear'),
(5048, 5015, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Inline & Roller Skating Protective Gear > Roller Skating Pads'),
(5049, 5016, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Inline Skate Parts'),
(5050, 5017, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Inline Skates'),
(5051, 5018, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Roller Skate Parts'),
(5052, 5019, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Roller Skates'),
(5053, 5020, 0, 'Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Roller Skis'),
(5054, 5021, 0, 'Sporting Goods > Outdoor Recreation > Kite Buggying'),
(5055, 5022, 0, 'Sporting Goods > Outdoor Recreation > Kite Buggying > Kite Buggies'),
(5056, 5023, 0, 'Sporting Goods > Outdoor Recreation > Kite Buggying > Kite Buggy Accessories'),
(5057, 5024, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games'),
(5058, 5025, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Badminton'),
(5059, 5026, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Badminton > Badminton Nets'),
(5060, 5027, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Badminton > Badminton Racquets & Sets'),
(5061, 5028, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Badminton > Shuttlecocks'),
(5062, 5029, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Deck Shuffleboard'),
(5063, 5030, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Deck Shuffleboard > Deck Shuffleboard Cues'),
(5064, 5031, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Deck Shuffleboard > Deck Shuffleboard Pucks'),
(5065, 5032, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Disc Golf'),
(5066, 5033, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Disc Golf > Disc Golf Bags'),
(5067, 5034, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Disc Golf > Disc Golf Baskets'),
(5068, 5035, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Lawn Games'),
(5069, 5036, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Paddle Ball Sets'),
(5070, 5037, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Pickleball'),
(5071, 5038, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Pickleball > Pickleball Paddles'),
(5072, 5039, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Pickleball > Pickleballs'),
(5073, 5040, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Platform & Paddle Tennis'),
(5074, 5041, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Platform & Paddle Tennis > Platform & Paddle Tennis Paddles'),
(5075, 5042, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Platform & Paddle Tennis > Platform Tennis Balls'),
(5076, 5043, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Tetherball'),
(5077, 5044, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Tetherball > Tetherball Poles'),
(5078, 5045, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Tetherball > Tetherball Sets'),
(5079, 5046, 0, 'Sporting Goods > Outdoor Recreation > Outdoor Games > Tetherball > Tetherballs'),
(5080, 5047, 0, 'Sporting Goods > Outdoor Recreation > Riding Scooters'),
(5081, 5048, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding'),
(5082, 5049, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skate Rails'),
(5083, 5050, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skate Ramps'),
(5084, 5051, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts'),
(5085, 5052, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts > Skateboard Decks'),
(5086, 5053, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts > Skateboard Small Parts'),
(5087, 5054, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts > Skateboard Trucks'),
(5088, 5055, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts > Skateboard Wheels'),
(5089, 5056, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboarding Protective Gear'),
(5090, 5057, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboarding Protective Gear > Skate Helmets'),
(5091, 5058, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboarding Protective Gear > Skateboarding Gloves'),
(5092, 5059, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboarding Protective Gear > Skateboarding Pads'),
(5093, 5060, 0, 'Sporting Goods > Outdoor Recreation > Skateboarding > Skateboards'),
(5094, 5061, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities'),
(5095, 5062, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Avalanche Safety'),
(5096, 5063, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Avalanche Safety > Avalanche Probes'),
(5097, 5064, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Avalanche Safety > Avalanche Safety Airbags'),
(5098, 5065, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding'),
(5099, 5066, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Bags'),
(5100, 5067, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Goggle Accessories'),
(5101, 5068, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Goggle Accessories > Ski & Snowboard Goggle Lenses'),
(5102, 5069, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Goggles'),
(5103, 5070, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Helmets'),
(5104, 5071, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Leashes'),
(5105, 5072, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Storage Racks'),
(5106, 5073, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Tuning Tools'),
(5107, 5074, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski & Snowboard Wax'),
(5108, 5075, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski Binding Parts'),
(5109, 5076, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski Bindings'),
(5110, 5077, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski Boots'),
(5111, 5078, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Ski Poles'),
(5112, 5079, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Skis'),
(5113, 5080, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Skis > Cross-Country Skis'),
(5114, 5081, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Skis > Downhill Skis'),
(5115, 5082, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Snowboard Binding Parts'),
(5116, 5083, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Snowboard Bindings'),
(5117, 5084, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Snowboard Boots'),
(5118, 5085, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Skiing & Snowboarding > Snowboards'),
(5119, 5086, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Sleds'),
(5120, 5087, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Snowshoeing'),
(5121, 5088, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Snowshoeing > Snowshoe Bindings'),
(5122, 5089, 0, 'Sporting Goods > Outdoor Recreation > Winter Sports & Activities > Snowshoeing > Snowshoes'),
(5123, 5090, 0, 'Toys & Games'),
(5124, 5091, 0, 'Toys & Games > Game Timers'),
(5125, 5092, 0, 'Toys & Games > Games'),
(5126, 5093, 0, 'Toys & Games > Games > Battle Top Accessories'),
(5127, 5094, 0, 'Toys & Games > Games > Battle Tops'),
(5128, 5095, 0, 'Toys & Games > Games > Bingo Sets'),
(5129, 5096, 0, 'Toys & Games > Games > Blackjack & Craps Sets'),
(5130, 5097, 0, 'Toys & Games > Games > Board Games'),
(5131, 5098, 0, 'Toys & Games > Games > Card Game Accessories'),
(5132, 5099, 0, 'Toys & Games > Games > Card Games'),
(5133, 5100, 0, 'Toys & Games > Games > Dexterity Games'),
(5134, 5101, 0, 'Toys & Games > Games > Dice Sets & Games'),
(5135, 5102, 0, 'Toys & Games > Games > Poker Chip Accessories'),
(5136, 5103, 0, 'Toys & Games > Games > Poker Chip Accessories > Poker Chip Carriers & Trays'),
(5137, 5104, 0, 'Toys & Games > Games > Poker Chips & Sets'),
(5138, 5105, 0, 'Toys & Games > Games > Portable Electronic Games'),
(5139, 5106, 0, 'Toys & Games > Games > Roulette Wheels & Sets'),
(5140, 5107, 0, 'Toys & Games > Games > Slot Machines'),
(5141, 5108, 0, 'Toys & Games > Games > Tile Games'),
(5142, 5109, 0, 'Toys & Games > Outdoor Play Equipment'),
(5143, 5110, 0, 'Toys & Games > Outdoor Play Equipment > Inflatable Bouncer Accessories'),
(5144, 5111, 0, 'Toys & Games > Outdoor Play Equipment > Inflatable Bouncers'),
(5145, 5112, 0, 'Toys & Games > Outdoor Play Equipment > Play Swings'),
(5146, 5113, 0, 'Toys & Games > Outdoor Play Equipment > Play Tents & Tunnels'),
(5147, 5114, 0, 'Toys & Games > Outdoor Play Equipment > Playhouses'),
(5148, 5115, 0, 'Toys & Games > Outdoor Play Equipment > Pogo Sticks'),
(5149, 5116, 0, 'Toys & Games > Outdoor Play Equipment > Sandboxes'),
(5150, 5117, 0, 'Toys & Games > Outdoor Play Equipment > See Saws'),
(5151, 5118, 0, 'Toys & Games > Outdoor Play Equipment > Slides'),
(5152, 5119, 0, 'Toys & Games > Outdoor Play Equipment > Stilts'),
(5153, 5120, 0, 'Toys & Games > Outdoor Play Equipment > Swing Set & Playset Accessories'),
(5154, 5121, 0, 'Toys & Games > Outdoor Play Equipment > Swing Sets & Playsets'),
(5155, 5122, 0, 'Toys & Games > Outdoor Play Equipment > Trampoline Accessories'),
(5156, 5123, 0, 'Toys & Games > Outdoor Play Equipment > Trampolines'),
(5157, 5124, 0, 'Toys & Games > Outdoor Play Equipment > Water Play Equipment'),
(5158, 5125, 0, 'Toys & Games > Outdoor Play Equipment > Water Play Equipment > Play Sprinkers'),
(5159, 5126, 0, 'Toys & Games > Outdoor Play Equipment > Water Play Equipment > Water Parks & Slides'),
(5160, 5127, 0, 'Toys & Games > Outdoor Play Equipment > Water Play Equipment > Water Tables'),
(5161, 5128, 0, 'Toys & Games > Puzzles'),
(5162, 5129, 0, 'Toys & Games > Puzzles > Jigsaw Puzzle Accessories'),
(5163, 5130, 0, 'Toys & Games > Puzzles > Jigsaw Puzzles'),
(5164, 5131, 0, 'Toys & Games > Puzzles > Mechanical Puzzles'),
(5165, 5132, 0, 'Toys & Games > Puzzles > Wooden & Pegged Puzzles'),
(5166, 5133, 0, 'Toys & Games > Toys'),
(5167, 5134, 0, 'Toys & Games > Toys > Activity Toys'),
(5168, 5135, 0, 'Toys & Games > Toys > Activity Toys > Ball & Cup Games'),
(5169, 5136, 0, 'Toys & Games > Toys > Activity Toys > Bouncy Balls'),
(5170, 5137, 0, 'Toys & Games > Toys > Activity Toys > Bubble Blowing Solution'),
(5171, 5138, 0, 'Toys & Games > Toys > Activity Toys > Bubble Blowing Toys'),
(5172, 5139, 0, 'Toys & Games > Toys > Activity Toys > Coiled Spring Toys'),
(5173, 5140, 0, 'Toys & Games > Toys > Activity Toys > Marbles'),
(5174, 5141, 0, 'Toys & Games > Toys > Activity Toys > Paddle Ball Toys'),
(5175, 5142, 0, 'Toys & Games > Toys > Activity Toys > Ribbon & Streamer Toys'),
(5176, 5143, 0, 'Toys & Games > Toys > Activity Toys > Spinning Tops'),
(5177, 5144, 0, 'Toys & Games > Toys > Activity Toys > Toy Jacks'),
(5178, 5145, 0, 'Toys & Games > Toys > Activity Toys > Yo-Yo Parts & Accessories'),
(5179, 5146, 0, 'Toys & Games > Toys > Activity Toys > Yo-Yos'),
(5180, 5147, 0, 'Toys & Games > Toys > Art & Drawing Toys'),
(5181, 5148, 0, 'Toys & Games > Toys > Art & Drawing Toys > Play Dough & Putty'),
(5182, 5149, 0, 'Toys & Games > Toys > Art & Drawing Toys > Toy Drawing Tablets'),
(5183, 5150, 0, 'Toys & Games > Toys > Ball Pit Accessories'),
(5184, 5151, 0, 'Toys & Games > Toys > Ball Pit Accessories > Ball Pit Balls'),
(5185, 5152, 0, 'Toys & Games > Toys > Ball Pits'),
(5186, 5153, 0, 'Toys & Games > Toys > Bath Toys'),
(5187, 5154, 0, 'Toys & Games > Toys > Beach & Sand Toys'),
(5188, 5155, 0, 'Toys & Games > Toys > Building Toys'),
(5189, 5156, 0, 'Toys & Games > Toys > Building Toys > Construction Set Toys'),
(5190, 5157, 0, 'Toys & Games > Toys > Building Toys > Foam Blocks'),
(5191, 5158, 0, 'Toys & Games > Toys > Building Toys > Interlocking Blocks'),
(5192, 5159, 0, 'Toys & Games > Toys > Building Toys > Marble Track Sets'),
(5193, 5160, 0, 'Toys & Games > Toys > Building Toys > Wooden Blocks'),
(5194, 5161, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures'),
(5195, 5162, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Action & Toy Figures'),
(5196, 5163, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Bobblehead Figures'),
(5197, 5164, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Doll & Action Figure Accessories'),
(5198, 5165, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Dollhouse Accessories'),
(5199, 5166, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Dollhouses'),
(5200, 5167, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Dolls'),
(5201, 5168, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Paper & Magnetic Dolls'),
(5202, 5169, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet & Puppet Theater Accessories'),
(5203, 5170, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet Theaters'),
(5204, 5171, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppets & Marionettes'),
(5205, 5172, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Stuffed Animals'),
(5206, 5173, 0, 'Toys & Games > Toys > Dolls, Playsets & Toy Figures > Toy Playsets'),
(5207, 5174, 0, 'Toys & Games > Toys > Educational Toys'),
(5208, 5175, 0, 'Toys & Games > Toys > Educational Toys > Ant Farms'),
(5209, 5176, 0, 'Toys & Games > Toys > Educational Toys > Astronomy Toys & Models'),
(5210, 5177, 0, 'Toys & Games > Toys > Educational Toys > Bug Collecting Kits'),
(5211, 5178, 0, 'Toys & Games > Toys > Educational Toys > Educational Flash Cards'),
(5212, 5179, 0, 'Toys & Games > Toys > Educational Toys > Reading Toys'),
(5213, 5180, 0, 'Toys & Games > Toys > Educational Toys > Science & Exploration Sets'),
(5214, 5181, 0, 'Toys & Games > Toys > Educational Toys > Toy Abacuses'),
(5215, 5182, 0, 'Toys & Games > Toys > Executive Toys'),
(5216, 5183, 0, 'Toys & Games > Toys > Executive Toys > Magnet Toys'),
(5217, 5184, 0, 'Toys & Games > Toys > Flying Toy Accessories'),
(5218, 5185, 0, 'Toys & Games > Toys > Flying Toy Accessories > Kite Accessories'),
(5219, 5186, 0, 'Toys & Games > Toys > Flying Toy Accessories > Kite Accessories > Kite Line Reels & Winders'),
(5220, 5187, 0, 'Toys & Games > Toys > Flying Toys'),
(5221, 5188, 0, 'Toys & Games > Toys > Flying Toys > Air & Water Rockets'),
(5222, 5189, 0, 'Toys & Games > Toys > Flying Toys > Kites'),
(5223, 5190, 0, 'Toys & Games > Toys > Flying Toys > Toy Gliders'),
(5224, 5191, 0, 'Toys & Games > Toys > Flying Toys > Toy Parachutes'),
(5225, 5192, 0, 'Toys & Games > Toys > Musical Toys'),
(5226, 5193, 0, 'Toys & Games > Toys > Musical Toys > Toy Instruments'),
(5227, 5194, 0, 'Toys & Games > Toys > Play Vehicle Accessories'),
(5228, 5195, 0, 'Toys & Games > Toys > Play Vehicle Accessories > Toy Race Car & Track Accessories'),
(5229, 5196, 0, 'Toys & Games > Toys > Play Vehicle Accessories > Toy Train Accessories'),
(5230, 5197, 0, 'Toys & Games > Toys > Play Vehicles'),
(5231, 5198, 0, 'Toys & Games > Toys > Play Vehicles > Toy Airplanes'),
(5232, 5199, 0, 'Toys & Games > Toys > Play Vehicles > Toy Boats'),
(5233, 5200, 0, 'Toys & Games > Toys > Play Vehicles > Toy Cars'),
(5234, 5201, 0, 'Toys & Games > Toys > Play Vehicles > Toy Helicopters'),
(5235, 5202, 0, 'Toys & Games > Toys > Play Vehicles > Toy Motorcycles'),
(5236, 5203, 0, 'Toys & Games > Toys > Play Vehicles > Toy Race Car & Track Sets'),
(5237, 5204, 0, 'Toys & Games > Toys > Play Vehicles > Toy Spaceships'),
(5238, 5205, 0, 'Toys & Games > Toys > Play Vehicles > Toy Trains & Train Sets'),
(5239, 5206, 0, 'Toys & Games > Toys > Play Vehicles > Toy Trucks & Construction Vehicles'),
(5240, 5207, 0, 'Toys & Games > Toys > Pretend Play'),
(5241, 5208, 0, 'Toys & Games > Toys > Pretend Play > Play Money & Banking'),
(5242, 5209, 0, 'Toys & Games > Toys > Pretend Play > Pretend Electronics'),
(5243, 5210, 0, 'Toys & Games > Toys > Pretend Play > Pretend Housekeeping'),
(5244, 5211, 0, 'Toys & Games > Toys > Pretend Play > Pretend Lawn & Garden'),
(5245, 5212, 0, 'Toys & Games > Toys > Pretend Play > Pretend Professions & Role Playing'),
(5246, 5213, 0, 'Toys & Games > Toys > Pretend Play > Pretend Shopping & Grocery'),
(5247, 5214, 0, 'Toys & Games > Toys > Pretend Play > Toy Kitchens & Play Food'),
(5248, 5215, 0, 'Toys & Games > Toys > Pretend Play > Toy Tools'),
(5249, 5216, 0, 'Toys & Games > Toys > Remote Control Toy Accessories'),
(5250, 5217, 0, 'Toys & Games > Toys > Remote Control Toys'),
(5251, 5218, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Airships & Blimps'),
(5252, 5219, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Boats & Watercraft'),
(5253, 5220, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Cars & Trucks'),
(5254, 5221, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Helicopters'),
(5255, 5222, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Motorcycles'),
(5256, 5223, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Planes'),
(5257, 5224, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Robots'),
(5258, 5225, 0, 'Toys & Games > Toys > Remote Control Toys > Remote Control Tanks'),
(5259, 5226, 0, 'Toys & Games > Toys > Riding Toy Accessories'),
(5260, 5227, 0, 'Toys & Games > Toys > Riding Toys'),
(5261, 5228, 0, 'Toys & Games > Toys > Riding Toys > Electric Riding Vehicles'),
(5262, 5229, 0, 'Toys & Games > Toys > Riding Toys > Hobby Horses'),
(5263, 5230, 0, 'Toys & Games > Toys > Riding Toys > Push & Pedal Riding Vehicles'),
(5264, 5231, 0, 'Toys & Games > Toys > Riding Toys > Rocking & Spring Riding Toys'),
(5265, 5232, 0, 'Toys & Games > Toys > Riding Toys > Wagons'),
(5266, 5233, 0, 'Toys & Games > Toys > Robotic Toys'),
(5267, 5234, 0, 'Toys & Games > Toys > Sports Toy Accessories'),
(5268, 5235, 0, 'Toys & Games > Toys > Sports Toy Accessories > Fitness Toy Accessories'),
(5269, 5236, 0, 'Toys & Games > Toys > Sports Toy Accessories > Fitness Toy Accessories > Hula Hoop Accessories'),
(5270, 5237, 0, 'Toys & Games > Toys > Sports Toys'),
(5271, 5238, 0, 'Toys & Games > Toys > Sports Toys > Baseball Toys'),
(5272, 5239, 0, 'Toys & Games > Toys > Sports Toys > Basketball Toys'),
(5273, 5240, 0, 'Toys & Games > Toys > Sports Toys > Boomerangs'),
(5274, 5241, 0, 'Toys & Games > Toys > Sports Toys > Bowling Toys'),
(5275, 5242, 0, 'Toys & Games > Toys > Sports Toys > Fingerboards & Fingerboard Sets'),
(5276, 5243, 0, 'Toys & Games > Toys > Sports Toys > Fishing Toys'),
(5277, 5244, 0, 'Toys & Games > Toys > Sports Toys > Fitness Toys'),
(5278, 5245, 0, 'Toys & Games > Toys > Sports Toys > Fitness Toys > Hula Hoops'),
(5279, 5246, 0, 'Toys & Games > Toys > Sports Toys > Flying Discs'),
(5280, 5247, 0, 'Toys & Games > Toys > Sports Toys > Footbags'),
(5281, 5248, 0, 'Toys & Games > Toys > Sports Toys > Golf Toys'),
(5282, 5249, 0, 'Toys & Games > Toys > Sports Toys > Hockey Toys'),
(5283, 5250, 0, 'Toys & Games > Toys > Sports Toys > Playground Balls'),
(5284, 5251, 0, 'Toys & Games > Toys > Sports Toys > Racquet Sport Toys'),
(5285, 5252, 0, 'Toys & Games > Toys > Sports Toys > Toy Footballs'),
(5286, 5253, 0, 'Toys & Games > Toys > Toy Gift Baskets'),
(5287, 5254, 0, 'Toys & Games > Toys > Toy Weapon & Gadget Accessories'),
(5288, 5255, 0, 'Toys & Games > Toys > Toy Weapons & Gadgets'),
(5289, 5256, 0, 'Toys & Games > Toys > Visual Toys'),
(5290, 5257, 0, 'Toys & Games > Toys > Visual Toys > Kaleidoscopes'),
(5291, 5258, 0, 'Toys & Games > Toys > Visual Toys > Prisms'),
(5292, 5259, 0, 'Toys & Games > Toys > Wind-Up Toys'),
(5293, 5260, 0, 'Vehicles & Parts'),
(5294, 5261, 0, 'Vehicles & Parts > Vehicle Parts & Accessories'),
(5295, 5262, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Aircraft Parts & Accessories'),
(5296, 5263, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics'),
(5297, 5264, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle A/V Players & In-Dash Systems'),
(5298, 5265, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Amplifiers'),
(5299, 5266, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Cassette Adapters'),
(5300, 5267, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Cassette Players'),
(5301, 5268, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Equalizers & Crossovers'),
(5302, 5269, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Parking Cameras'),
(5303, 5270, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Speakerphones'),
(5304, 5271, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Speakers'),
(5305, 5272, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Subwoofers'),
(5306, 5273, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Video Monitor Mounts'),
(5307, 5274, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts'),
(5308, 5275, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Braking'),
(5309, 5276, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Carpet & Upholstery'),
(5310, 5277, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control'),
(5311, 5278, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Controls'),
(5312, 5279, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Oil Circulation'),
(5313, 5280, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts'),
(5314, 5281, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engines'),
(5315, 5282, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Exhaust'),
(5316, 5283, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts'),
(5317, 5284, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Fuel Systems'),
(5318, 5285, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Interior Fittings'),
(5319, 5286, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting'),
(5320, 5287, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Mirrors'),
(5321, 5288, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Power & Electrical Systems'),
(5322, 5289, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating'),
(5323, 5290, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Sensors & Gauges'),
(5324, 5291, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Suspension Parts'),
(5325, 5292, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Towing'),
(5326, 5293, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Transmission & Drivetrain Parts'),
(5327, 5294, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems'),
(5328, 5295, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Rims & Wheels'),
(5329, 5296, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Rims & Wheels > Automotive Rims & Wheels'),
(5330, 5297, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Rims & Wheels > Motorcycle Rims & Wheels'),
(5331, 5298, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Rims & Wheels > Off-Road and All-Terrain Vehicle Rims & Wheels'),
(5332, 5299, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Tire Accessories'),
(5333, 5300, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Tires');
INSERT INTO `mg_eav_attribute_option_value` (`value_id`, `option_id`, `store_id`, `value`) VALUES
(5334, 5301, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Tires > Automotive Tires'),
(5335, 5302, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Tires > Motorcycle Tires'),
(5336, 5303, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Tires > Off-Road and All-Terrain Vehicle Tires'),
(5337, 5304, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Wheel Systems > Motor Vehicle Wheel Parts'),
(5338, 5305, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Window Parts & Accessories'),
(5339, 5306, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor'),
(5340, 5307, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Portable Fuel Cans'),
(5341, 5308, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning'),
(5342, 5309, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Car Wash Brushes'),
(5343, 5310, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Car Wash Solutions'),
(5344, 5311, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Vehicle Carpet & Upholstery Cleaners'),
(5345, 5312, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Vehicle Fuel Injection Cleaning Kits'),
(5346, 5313, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Vehicle Glass Cleaners'),
(5347, 5314, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Vehicle Waxes, Polishes & Protectants'),
(5348, 5315, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers'),
(5349, 5316, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Golf Cart Enclosures'),
(5350, 5317, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Motor Vehicle Windshield Covers'),
(5351, 5318, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Tonneau Covers'),
(5352, 5319, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Hardtops'),
(5353, 5320, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Soft Tops'),
(5354, 5321, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Storage Covers'),
(5355, 5322, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Storage Covers > Automotive Storage Covers'),
(5356, 5323, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Storage Covers > Golf Cart Storage Covers'),
(5357, 5324, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Storage Covers > Motorcycle Storage Covers'),
(5358, 5325, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Storage Covers > Recreational Vehicle Storage Covers'),
(5359, 5326, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Covers > Vehicle Storage Covers > Watercraft Storage Covers'),
(5360, 5327, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor'),
(5361, 5328, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Bumper Stickers'),
(5362, 5329, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Air Fresheners'),
(5363, 5330, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Antenna Balls'),
(5364, 5331, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Dashboard Accessories'),
(5365, 5332, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Decals'),
(5366, 5333, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Decor Accessory Sets'),
(5367, 5334, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Display Flags'),
(5368, 5335, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Emblems & Hood Ornaments'),
(5369, 5336, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Hitch Covers'),
(5370, 5337, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle License Plate Covers'),
(5371, 5338, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle License Plate Frames'),
(5372, 5339, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle License Plate Mounts & Holders'),
(5373, 5340, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle License Plates'),
(5374, 5341, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Magnets'),
(5375, 5342, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Rear View Mirror Ornaments'),
(5376, 5343, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Shift Boots'),
(5377, 5344, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Shift Knobs'),
(5378, 5345, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Steering Wheel Covers'),
(5379, 5346, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Wraps'),
(5380, 5347, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids'),
(5381, 5348, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Antifreeze'),
(5382, 5349, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Brake Fluid'),
(5383, 5350, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Cooling System Additives'),
(5384, 5351, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Engine Degreasers'),
(5385, 5352, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Fuel System Cleaners'),
(5386, 5353, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Greases'),
(5387, 5354, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Hydraulic Clutch Fluid'),
(5388, 5355, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Motor Oil'),
(5389, 5356, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Performance Additives'),
(5390, 5357, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Power Steering Fluid'),
(5391, 5358, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Transmission Fluid'),
(5392, 5359, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Fluids > Vehicle Windshield Fluid'),
(5393, 5360, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Paint'),
(5394, 5361, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Paint > Motor Vehicle Body Paint'),
(5395, 5362, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Paint > Motor Vehicle Brake Caliper Paint'),
(5396, 5363, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools'),
(5397, 5364, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Motor Vehicle Brake Service Kits'),
(5398, 5365, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Motor Vehicle Clutch Alignment & Removal Tools'),
(5399, 5366, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Battery Chargers'),
(5400, 5367, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Battery Testers'),
(5401, 5368, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Body Filler'),
(5402, 5369, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Diagnostic Scanners'),
(5403, 5370, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Jump Starters'),
(5404, 5371, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Jumper Cables'),
(5405, 5372, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Vehicle Tire Repair & Tire Changing Tools'),
(5406, 5373, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Repair & Specialty Tools > Windshield Repair Kits'),
(5407, 5374, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security'),
(5408, 5375, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear'),
(5409, 5376, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Chest & Back Protectors'),
(5410, 5377, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Elbow & Wrist Guards'),
(5411, 5378, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Gloves'),
(5412, 5379, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Goggles'),
(5413, 5380, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Hand Guards'),
(5414, 5381, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Helmet Parts & Accessories'),
(5415, 5382, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Helmets'),
(5416, 5383, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Kidney Belts'),
(5417, 5384, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Knee & Shin Guards'),
(5418, 5385, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Motorcycle Protective Gear > Motorcycle Neck Braces'),
(5419, 5386, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Off-Road & All-Terrain Vehicle Protective Gear'),
(5420, 5387, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Off-Road & All-Terrain Vehicle Protective Gear > ATV & UTV Bar Pads'),
(5421, 5388, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks'),
(5422, 5389, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Automotive Alarm Accessories'),
(5423, 5390, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Automotive Alarm Systems'),
(5424, 5391, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Motorcycle Alarms & Locks'),
(5425, 5392, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Door Locks & Parts'),
(5426, 5393, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Door Locks & Parts > Vehicle Door Lock Actuators'),
(5427, 5394, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Door Locks & Parts > Vehicle Door Lock Knobs'),
(5428, 5395, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Door Locks & Parts > Vehicle Door Locks & Locking Systems'),
(5429, 5396, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Hitch Locks'),
(5430, 5397, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Immobilizers'),
(5431, 5398, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Remote Keyless Systems'),
(5432, 5399, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Steering Wheel Locks'),
(5433, 5400, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Alarms & Locks > Vehicle Wheel Clamps'),
(5434, 5401, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment'),
(5435, 5402, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Car Window Nets'),
(5436, 5403, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Emergency Road Flares'),
(5437, 5404, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Motor Vehicle Airbag Parts'),
(5438, 5405, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Motor Vehicle Roll Cages & Bars'),
(5439, 5406, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Vehicle Seat Belt Buckles'),
(5440, 5407, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Vehicle Seat Belt Covers'),
(5441, 5408, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Vehicle Seat Belt Straps'),
(5442, 5409, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Vehicle Seat Belts'),
(5443, 5410, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Vehicle Warning Whips'),
(5444, 5411, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Vehicle Safety Equipment > Vehicle Wheel Chocks'),
(5445, 5412, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo'),
(5446, 5413, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Cargo Nets'),
(5447, 5414, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Rack Accessories'),
(5448, 5415, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Rack Accessories > Vehicle Bicycle Rack Accessories'),
(5449, 5416, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Rack Accessories > Vehicle Ski & Snowboard Rack Accessories'),
(5450, 5417, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks'),
(5451, 5418, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Base Rack Systems'),
(5452, 5419, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Bicycle Racks'),
(5453, 5420, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Boat Racks'),
(5454, 5421, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Cargo Racks'),
(5455, 5422, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Fishing Rod Racks'),
(5456, 5423, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Gun Racks'),
(5457, 5424, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Motorcycle & Scooter Racks'),
(5458, 5425, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Ski & Snowboard Racks'),
(5459, 5426, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Water Sport Board Racks'),
(5460, 5427, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Loading Ramps'),
(5461, 5428, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Trailers'),
(5462, 5429, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Trailers > Boat Trailers'),
(5463, 5430, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Trailers > Horse & Livestock Trailers'),
(5464, 5431, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Trailers > Travel Trailers'),
(5465, 5432, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Trailers > Utility & Cargo Trailers'),
(5466, 5433, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motorcycle Bags & Panniers'),
(5467, 5434, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Truck Bed Storage Boxes & Organizers'),
(5468, 5435, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Vehicle Headrest Hangers & Hooks'),
(5469, 5436, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Vehicle Organizers'),
(5470, 5437, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories'),
(5471, 5438, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring'),
(5472, 5439, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Anchor Chains'),
(5473, 5440, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Anchor Lines & Ropes'),
(5474, 5441, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Anchor Windlasses'),
(5475, 5442, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Anchors'),
(5476, 5443, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Boat Hooks'),
(5477, 5444, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Boat Ladders'),
(5478, 5445, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Dock Cleats'),
(5479, 5446, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Docking & Anchoring > Dock Steps'),
(5480, 5447, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Sailboat Parts'),
(5481, 5448, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Care'),
(5482, 5449, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Care > Watercraft Cleaners'),
(5483, 5450, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Care > Watercraft Polishes'),
(5484, 5451, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts'),
(5485, 5452, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Alternators'),
(5486, 5453, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Carburetors & Parts'),
(5487, 5454, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Engine Controls'),
(5488, 5455, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Ignition Parts'),
(5489, 5456, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Impellers'),
(5490, 5457, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Motor Locks'),
(5491, 5458, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Motor Mounts'),
(5492, 5459, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Pistons & Parts'),
(5493, 5460, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Propellers'),
(5494, 5461, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engines & Motors'),
(5495, 5462, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Exhaust Parts'),
(5496, 5463, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Exhaust Parts > Watercraft Manifolds'),
(5497, 5464, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Exhaust Parts > Watercraft Mufflers & Parts'),
(5498, 5465, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Fuel Systems'),
(5499, 5466, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Fuel Systems > Watercraft Fuel Lines & Parts'),
(5500, 5467, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Fuel Systems > Watercraft Fuel Meters'),
(5501, 5468, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Fuel Systems > Watercraft Fuel Pumps & Parts'),
(5502, 5469, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Fuel Systems > Watercraft Fuel Tanks & Parts'),
(5503, 5470, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Lighting'),
(5504, 5471, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Steering Parts'),
(5505, 5472, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Steering Parts > Watercraft Steering Cables'),
(5506, 5473, 0, 'Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Steering Parts > Watercraft Steering Wheels'),
(5507, 5474, 0, 'Vehicles & Parts > Vehicles'),
(5508, 5475, 0, 'Vehicles & Parts > Vehicles > Aircraft'),
(5509, 5476, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles'),
(5510, 5477, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Cars, Trucks & Vans'),
(5511, 5478, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Golf Carts'),
(5512, 5479, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Motorcycles & Scooters'),
(5513, 5480, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Off-Road and All-Terrain Vehicles'),
(5514, 5481, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Off-Road and All-Terrain Vehicles > ATVs & UTVs'),
(5515, 5482, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Off-Road and All-Terrain Vehicles > Go Karts & Dune Buggies'),
(5516, 5483, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Recreational Vehicles'),
(5517, 5484, 0, 'Vehicles & Parts > Vehicles > Motor Vehicles > Snowmobiles'),
(5518, 5485, 0, 'Vehicles & Parts > Vehicles > Watercraft'),
(5519, 5486, 0, 'Vehicles & Parts > Vehicles > Watercraft > Motor Boats'),
(5520, 5487, 0, 'Vehicles & Parts > Vehicles > Watercraft > Personal Watercraft'),
(5521, 5488, 0, 'Vehicles & Parts > Vehicles > Watercraft > Sailboats'),
(5522, 5489, 0, 'Vehicles & Parts > Vehicles > Watercraft > Yachts');

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_attribute_set`
--

CREATE TABLE `mg_eav_attribute_set` (
  `attribute_set_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Attribute Set Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_set_name` varchar(255) DEFAULT NULL COMMENT 'Attribute Set Name',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Attribute Set';

--
-- Dumping data for table `mg_eav_attribute_set`
--

INSERT INTO `mg_eav_attribute_set` (`attribute_set_id`, `entity_type_id`, `attribute_set_name`, `sort_order`) VALUES
(1, 1, 'Default', 2),
(2, 2, 'Default', 2),
(3, 3, 'Default', 1),
(4, 4, 'Default', 1),
(5, 5, 'Default', 1),
(6, 6, 'Default', 1),
(7, 7, 'Default', 1),
(8, 8, 'Default', 1),
(9, 9, 'Default', 2),
(14, 4, 'Security', 0);

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity`
--

CREATE TABLE `mg_eav_entity` (
  `entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_set_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Set Id',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `parent_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Parent Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `is_active` smallint(5) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Defines Is Entity Active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_attribute`
--

CREATE TABLE `mg_eav_entity_attribute` (
  `entity_attribute_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity Attribute Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_set_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Set Id',
  `attribute_group_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Group Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Attributes';

--
-- Dumping data for table `mg_eav_entity_attribute`
--

INSERT INTO `mg_eav_entity_attribute` (`entity_attribute_id`, `entity_type_id`, `attribute_set_id`, `attribute_group_id`, `attribute_id`, `sort_order`) VALUES
(1, 1, 1, 1, 1, 10),
(2, 1, 1, 1, 2, 20),
(3, 1, 1, 1, 3, 20),
(4, 1, 1, 1, 4, 30),
(5, 1, 1, 1, 5, 40),
(6, 1, 1, 1, 6, 50),
(7, 1, 1, 1, 7, 60),
(8, 1, 1, 1, 8, 70),
(9, 1, 1, 1, 9, 80),
(10, 1, 1, 1, 10, 25),
(11, 1, 1, 1, 11, 90),
(12, 1, 1, 1, 12, 81),
(13, 1, 1, 1, 13, 115),
(14, 1, 1, 1, 14, 120),
(15, 1, 1, 1, 15, 82),
(16, 1, 1, 1, 16, 83),
(17, 1, 1, 1, 17, 100),
(18, 1, 1, 1, 18, 0),
(19, 1, 1, 1, 19, 0),
(20, 1, 1, 1, 20, 110),
(21, 1, 1, 1, 21, 28),
(22, 2, 2, 2, 22, 10),
(23, 2, 2, 2, 23, 20),
(24, 2, 2, 2, 24, 30),
(25, 2, 2, 2, 25, 40),
(26, 2, 2, 2, 26, 50),
(27, 2, 2, 2, 27, 60),
(28, 2, 2, 2, 28, 70),
(29, 2, 2, 2, 29, 80),
(30, 2, 2, 2, 30, 90),
(31, 2, 2, 2, 31, 100),
(32, 2, 2, 2, 32, 100),
(33, 2, 2, 2, 33, 110),
(34, 2, 2, 2, 34, 120),
(35, 2, 2, 2, 35, 130),
(36, 2, 2, 2, 36, 140),
(37, 2, 2, 2, 37, 132),
(38, 2, 2, 2, 38, 133),
(39, 2, 2, 2, 39, 134),
(40, 2, 2, 2, 40, 135),
(41, 1, 1, 1, 41, 87),
(42, 1, 1, 1, 42, 100),
(43, 1, 1, 1, 43, 110),
(44, 1, 1, 1, 44, 120),
(45, 3, 3, 4, 45, 1),
(46, 3, 3, 4, 46, 2),
(47, 3, 3, 4, 47, 4),
(48, 3, 3, 4, 48, 5),
(49, 3, 3, 4, 49, 6),
(50, 3, 3, 4, 50, 7),
(51, 3, 3, 4, 51, 8),
(52, 3, 3, 5, 52, 10),
(53, 3, 3, 5, 53, 20),
(54, 3, 3, 5, 54, 30),
(55, 3, 3, 4, 55, 12),
(56, 3, 3, 4, 56, 13),
(57, 3, 3, 4, 57, 14),
(58, 3, 3, 4, 58, 15),
(59, 3, 3, 4, 59, 16),
(60, 3, 3, 6, 60, 10),
(61, 3, 3, 6, 61, 30),
(62, 3, 3, 6, 62, 40),
(63, 3, 3, 6, 63, 50),
(64, 3, 3, 6, 64, 60),
(65, 3, 3, 4, 65, 24),
(66, 3, 3, 4, 66, 25),
(67, 3, 3, 5, 67, 40),
(68, 3, 3, 5, 68, 50),
(69, 3, 3, 4, 69, 10),
(70, 3, 3, 6, 70, 5),
(71, 3, 3, 6, 71, 6),
(72, 3, 3, 5, 72, 51),
(73, 4, 4, 7, 73, 10),
(74, 4, 4, 7, 74, 20),
(75, 4, 4, 13, 75, 90),
(76, 4, 4, 13, 76, 100),
(77, 4, 4, 7, 77, 30),
(78, 4, 4, 8, 78, 3),
(79, 4, 4, 8, 79, 4),
(80, 4, 4, 8, 80, 5),
(81, 4, 4, 8, 81, 6),
(82, 4, 4, 7, 82, 70),
(83, 4, 4, 9, 84, 20),
(84, 4, 4, 9, 85, 30),
(85, 4, 4, 9, 86, 40),
(86, 4, 4, 10, 87, 1),
(87, 4, 4, 10, 88, 2),
(88, 4, 4, 10, 89, 3),
(89, 4, 4, 10, 90, 4),
(90, 4, 4, 7, 91, 6),
(91, 4, 4, 8, 92, 7),
(92, 4, 4, 7, 94, 90),
(93, 4, 4, 7, 95, 100),
(94, 4, 4, 10, 96, 5),
(95, 4, 4, 7, 97, 5),
(96, 4, 4, 8, 98, 8),
(97, 4, 4, 7, 99, 80),
(98, 4, 4, 14, 100, 40),
(99, 4, 4, 14, 101, 20),
(100, 4, 4, 14, 102, 30),
(101, 4, 4, 11, 103, 10),
(102, 4, 4, 11, 104, 5),
(103, 4, 4, 7, 105, 80),
(104, 4, 4, 11, 106, 6),
(105, 4, 4, 7, 107, 14),
(106, 4, 4, 7, 108, 15),
(107, 4, 4, 7, 109, 16),
(108, 4, 4, 7, 110, 17),
(109, 4, 4, 7, 111, 18),
(110, 4, 4, 7, 112, 19),
(111, 4, 4, 7, 113, 20),
(112, 4, 4, 7, 114, 110),
(113, 4, 4, 7, 115, 60),
(114, 4, 4, 14, 116, 50),
(115, 4, 4, 8, 117, 9),
(116, 4, 4, 8, 118, 10),
(117, 3, 3, 4, 119, 3),
(118, 3, 3, 4, 120, 17),
(119, 4, 4, 9, 121, 10),
(120, 4, 4, 7, 122, 11),
(121, 4, 4, 7, 123, 111),
(122, 4, 4, 7, 124, 112),
(123, 4, 4, 7, 125, 113),
(124, 4, 4, 7, 126, 114),
(125, 4, 4, 7, 127, 31),
(126, 4, 4, 7, 128, 21),
(127, 4, 4, 7, 129, 71),
(128, 4, 4, 8, 130, 11),
(129, 4, 4, 19, 131, 1),
(130, 4, 4, 20, 132, 10),
(131, 4, 4, 10, 133, 3),
(132, 4, 4, 7, 134, 40),
(133, 4, 4, 7, 135, 65),
(134, 4, 4, 7, 136, 66),
(135, 4, 4, 7, 137, 67),
(136, 4, 4, 7, 138, 115),
(137, 4, 4, 7, 139, 116),
(138, 9, 9, 22, 140, 1),
(139, 9, 9, 22, 141, 2),
(140, 9, 9, 22, 142, 3),
(141, 9, 9, 22, 143, 4),
(142, 9, 9, 22, 144, 5),
(143, 9, 9, 22, 145, 6),
(144, 9, 9, 22, 146, 7),
(145, 9, 9, 22, 147, 8),
(146, 9, 9, 22, 148, 9),
(147, 9, 9, 22, 149, 10),
(148, 9, 9, 22, 150, 11),
(149, 9, 9, 22, 151, 12),
(150, 9, 9, 22, 152, 13),
(151, 9, 9, 23, 153, 1),
(152, 9, 9, 23, 154, 2),
(153, 9, 9, 23, 155, 3),
(154, 9, 9, 23, 156, 4),
(155, 9, 9, 23, 157, 5),
(156, 9, 9, 24, 158, 1),
(157, 9, 9, 24, 159, 2),
(158, 9, 9, 25, 160, 1),
(159, 9, 9, 25, 161, 2),
(160, 9, 9, 24, 162, 3),
(161, 9, 9, 24, 163, 4),
(162, 9, 9, 26, 164, 1),
(163, 9, 9, 26, 165, 2),
(164, 9, 9, 26, 166, 3),
(165, 9, 9, 26, 167, 4),
(166, 9, 9, 26, 168, 5),
(167, 9, 9, 26, 169, 6),
(168, 9, 9, 22, 170, 14),
(169, 1, 1, 1, 171, 121),
(170, 1, 1, 1, 172, 122),
(171, 1, 1, 1, 173, 123),
(172, 1, 1, 1, 174, 124),
(173, 1, 1, 1, 175, 125),
(174, 1, 1, 1, 176, 126),
(175, 1, 1, 1, 177, 127),
(176, 1, 1, 1, 178, 128),
(177, 4, 4, 7, 179, 102),
(570, 4, 14, 77, 98, 8),
(588, 4, 14, 82, 91, 6),
(590, 4, 14, 82, 122, 11),
(591, 4, 14, 82, 107, 14),
(592, 4, 14, 82, 108, 15),
(593, 4, 14, 82, 109, 16),
(594, 4, 14, 82, 110, 17),
(595, 4, 14, 82, 111, 18),
(596, 4, 14, 82, 112, 19),
(598, 4, 14, 82, 113, 20),
(615, 4, 14, 82, 123, 111),
(616, 4, 14, 82, 124, 112),
(617, 4, 14, 82, 125, 113),
(618, 4, 14, 82, 126, 114),
(677, 4, 14, 82, 73, 2),
(678, 4, 14, 82, 74, 3),
(679, 4, 14, 82, 77, 5),
(680, 4, 14, 82, 82, 12),
(681, 4, 14, 82, 94, 16),
(682, 4, 14, 82, 95, 17),
(683, 4, 14, 82, 97, 1),
(684, 4, 14, 82, 99, 15),
(685, 4, 14, 82, 105, 14),
(686, 4, 14, 82, 114, 19),
(687, 4, 14, 82, 115, 8),
(688, 4, 14, 82, 127, 6),
(689, 4, 14, 82, 128, 4),
(690, 4, 14, 82, 129, 13),
(691, 4, 14, 82, 134, 7),
(692, 4, 14, 82, 135, 9),
(693, 4, 14, 82, 136, 10),
(694, 4, 14, 82, 137, 11),
(695, 4, 14, 82, 138, 20),
(696, 4, 14, 82, 139, 21),
(697, 4, 14, 82, 179, 18),
(698, 4, 14, 81, 75, 1),
(699, 4, 14, 81, 76, 2),
(700, 4, 14, 80, 131, 1),
(701, 4, 14, 79, 87, 1),
(702, 4, 14, 79, 88, 2),
(703, 4, 14, 79, 89, 3),
(704, 4, 14, 79, 90, 5),
(705, 4, 14, 79, 96, 6),
(706, 4, 14, 79, 133, 4),
(707, 4, 14, 78, 84, 2),
(708, 4, 14, 78, 85, 3),
(709, 4, 14, 78, 86, 4),
(710, 4, 14, 78, 121, 1),
(711, 4, 14, 77, 78, 1),
(712, 4, 14, 77, 79, 2),
(713, 4, 14, 77, 80, 3),
(714, 4, 14, 77, 81, 4),
(715, 4, 14, 77, 92, 5),
(716, 4, 14, 77, 117, 6),
(717, 4, 14, 77, 118, 7),
(718, 4, 14, 77, 130, 8),
(719, 4, 14, 76, 103, 3),
(720, 4, 14, 76, 104, 1),
(721, 4, 14, 76, 106, 2),
(722, 4, 14, 75, 100, 3),
(723, 4, 14, 75, 101, 1),
(724, 4, 14, 75, 102, 2),
(725, 4, 14, 75, 116, 4),
(726, 4, 14, 73, 132, 1),
(727, 4, 14, 72, 183, 9),
(728, 4, 14, 72, 184, 4),
(729, 4, 14, 72, 185, 8),
(730, 4, 14, 72, 186, 7),
(731, 4, 14, 72, 187, 1),
(732, 4, 14, 72, 188, 2),
(733, 4, 14, 72, 189, 6),
(734, 4, 14, 72, 190, 5),
(735, 4, 14, 72, 191, 3),
(736, 4, 4, 7, 193, 117),
(737, 4, 14, 82, 193, 115),
(738, 4, 4, 7, 194, 70),
(739, 4, 14, 82, 194, 70),
(740, 4, 4, 7, 195, 71),
(741, 4, 14, 82, 195, 71),
(742, 4, 4, 7, 196, 100),
(743, 4, 14, 82, 196, 100),
(744, 4, 4, 7, 197, 101),
(745, 4, 14, 82, 197, 101);

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_datetime`
--

CREATE TABLE `mg_eav_entity_datetime` (
  `value_id` int(11) NOT NULL COMMENT 'Value Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `entity_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` datetime DEFAULT NULL COMMENT 'Attribute Value'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_decimal`
--

CREATE TABLE `mg_eav_entity_decimal` (
  `value_id` int(11) NOT NULL COMMENT 'Value Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `entity_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Attribute Value'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_int`
--

CREATE TABLE `mg_eav_entity_int` (
  `value_id` int(11) NOT NULL COMMENT 'Value Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `entity_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` int(11) NOT NULL DEFAULT '0' COMMENT 'Attribute Value'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_store`
--

CREATE TABLE `mg_eav_entity_store` (
  `entity_store_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity Store Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `increment_prefix` varchar(20) DEFAULT NULL COMMENT 'Increment Prefix',
  `increment_last_id` varchar(50) DEFAULT NULL COMMENT 'Last Incremented Id'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Store';

--
-- Dumping data for table `mg_eav_entity_store`
--

INSERT INTO `mg_eav_entity_store` (`entity_store_id`, `entity_type_id`, `store_id`, `increment_prefix`, `increment_last_id`) VALUES
(1, 9, 0, '0', '000000008');

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_text`
--

CREATE TABLE `mg_eav_entity_text` (
  `value_id` int(11) NOT NULL COMMENT 'Value Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `entity_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` text NOT NULL COMMENT 'Attribute Value'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_type`
--

CREATE TABLE `mg_eav_entity_type` (
  `entity_type_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Entity Type Id',
  `entity_type_code` varchar(50) NOT NULL COMMENT 'Entity Type Code',
  `entity_model` varchar(255) NOT NULL COMMENT 'Entity Model',
  `attribute_model` varchar(255) DEFAULT NULL COMMENT 'Attribute Model',
  `entity_table` varchar(255) DEFAULT NULL COMMENT 'Entity Table',
  `value_table_prefix` varchar(255) DEFAULT NULL COMMENT 'Value Table Prefix',
  `entity_id_field` varchar(255) DEFAULT NULL COMMENT 'Entity ID Field',
  `is_data_sharing` smallint(5) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Defines Is Data Sharing',
  `data_sharing_key` varchar(100) DEFAULT 'default' COMMENT 'Data Sharing Key',
  `default_attribute_set_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Default Attribute Set Id',
  `increment_model` varchar(255) DEFAULT NULL COMMENT 'Increment Model',
  `increment_per_store` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Increment Per Store',
  `increment_pad_length` smallint(5) UNSIGNED NOT NULL DEFAULT '8' COMMENT 'Increment Pad Length',
  `increment_pad_char` varchar(1) NOT NULL DEFAULT '0' COMMENT 'Increment Pad Char',
  `additional_attribute_table` varchar(255) DEFAULT NULL COMMENT 'Additional Attribute Table',
  `entity_attribute_collection` varchar(255) DEFAULT NULL COMMENT 'Entity Attribute Collection'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Type';

--
-- Dumping data for table `mg_eav_entity_type`
--

INSERT INTO `mg_eav_entity_type` (`entity_type_id`, `entity_type_code`, `entity_model`, `attribute_model`, `entity_table`, `value_table_prefix`, `entity_id_field`, `is_data_sharing`, `data_sharing_key`, `default_attribute_set_id`, `increment_model`, `increment_per_store`, `increment_pad_length`, `increment_pad_char`, `additional_attribute_table`, `entity_attribute_collection`) VALUES
(1, 'customer', 'Magento\\Customer\\Model\\ResourceModel\\Customer', 'Magento\\Customer\\Model\\Attribute', 'customer_entity', NULL, NULL, 1, 'default', 1, 'Magento\\Eav\\Model\\Entity\\Increment\\NumericValue', 0, 8, '0', 'customer_eav_attribute', 'Magento\\Customer\\Model\\ResourceModel\\Attribute\\Collection'),
(2, 'customer_address', 'Magento\\Customer\\Model\\ResourceModel\\Address', 'Magento\\Customer\\Model\\Attribute', 'customer_address_entity', NULL, NULL, 1, 'default', 2, NULL, 0, 8, '0', 'customer_eav_attribute', 'Magento\\Customer\\Model\\ResourceModel\\Address\\Attribute\\Collection'),
(3, 'catalog_category', 'Magento\\Catalog\\Model\\ResourceModel\\Category', 'Magento\\Catalog\\Model\\ResourceModel\\Eav\\Attribute', 'catalog_category_entity', NULL, NULL, 1, 'default', 3, NULL, 0, 8, '0', 'catalog_eav_attribute', 'Magento\\Catalog\\Model\\ResourceModel\\Category\\Attribute\\Collection'),
(4, 'catalog_product', 'Magento\\Catalog\\Model\\ResourceModel\\Product', 'Magento\\Catalog\\Model\\ResourceModel\\Eav\\Attribute', 'catalog_product_entity', NULL, NULL, 1, 'default', 4, NULL, 0, 8, '0', 'catalog_eav_attribute', 'Magento\\Catalog\\Model\\ResourceModel\\Product\\Attribute\\Collection'),
(5, 'order', 'Magento\\Sales\\Model\\ResourceModel\\Order', NULL, 'sales_order', NULL, NULL, 1, 'default', 5, 'Magento\\Eav\\Model\\Entity\\Increment\\NumericValue', 1, 8, '0', NULL, NULL),
(6, 'invoice', 'Magento\\Sales\\Model\\ResourceModel\\Order\\Invoice', NULL, 'sales_invoice', NULL, NULL, 1, 'default', 6, 'Magento\\Eav\\Model\\Entity\\Increment\\NumericValue', 1, 8, '0', NULL, NULL),
(7, 'creditmemo', 'Magento\\Sales\\Model\\ResourceModel\\Order\\Creditmemo', NULL, 'sales_creditmemo', NULL, NULL, 1, 'default', 7, 'Magento\\Eav\\Model\\Entity\\Increment\\NumericValue', 1, 8, '0', NULL, NULL),
(8, 'shipment', 'Magento\\Sales\\Model\\ResourceModel\\Order\\Shipment', NULL, 'sales_shipment', NULL, NULL, 1, 'default', 8, 'Magento\\Eav\\Model\\Entity\\Increment\\NumericValue', 1, 8, '0', NULL, NULL),
(9, 'csmarketplace_vendor', 'Ced\\CsMarketplace\\Model\\ResourceModel\\Vendor', NULL, 'ced_csmarketplace_vendor', NULL, NULL, 1, 'default', 9, 'Magento\\Eav\\Model\\Entity\\Increment\\NumericValue', 0, 8, '0', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_entity_varchar`
--

CREATE TABLE `mg_eav_entity_varchar` (
  `value_id` int(11) NOT NULL COMMENT 'Value Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `entity_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` varchar(255) DEFAULT NULL COMMENT 'Attribute Value'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_form_element`
--

CREATE TABLE `mg_eav_form_element` (
  `element_id` int(10) UNSIGNED NOT NULL COMMENT 'Element Id',
  `type_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Type Id',
  `fieldset_id` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Fieldset Id',
  `attribute_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Attribute Id',
  `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT 'Sort Order'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Element';

--
-- Dumping data for table `mg_eav_form_element`
--

INSERT INTO `mg_eav_form_element` (`element_id`, `type_id`, `fieldset_id`, `attribute_id`, `sort_order`) VALUES
(1, 1, NULL, 23, 0),
(2, 1, NULL, 25, 1),
(3, 1, NULL, 27, 2),
(4, 1, NULL, 9, 3),
(5, 1, NULL, 28, 4),
(6, 1, NULL, 29, 5),
(7, 1, NULL, 31, 6),
(8, 1, NULL, 33, 7),
(9, 1, NULL, 30, 8),
(10, 1, NULL, 34, 9),
(11, 1, NULL, 35, 10),
(12, 2, NULL, 23, 0),
(13, 2, NULL, 25, 1),
(14, 2, NULL, 27, 2),
(15, 2, NULL, 9, 3),
(16, 2, NULL, 28, 4),
(17, 2, NULL, 29, 5),
(18, 2, NULL, 31, 6),
(19, 2, NULL, 33, 7),
(20, 2, NULL, 30, 8),
(21, 2, NULL, 34, 9),
(22, 2, NULL, 35, 10),
(23, 3, NULL, 23, 0),
(24, 3, NULL, 25, 1),
(25, 3, NULL, 27, 2),
(26, 3, NULL, 28, 3),
(27, 3, NULL, 29, 4),
(28, 3, NULL, 31, 5),
(29, 3, NULL, 33, 6),
(30, 3, NULL, 30, 7),
(31, 3, NULL, 34, 8),
(32, 3, NULL, 35, 9),
(33, 4, NULL, 23, 0),
(34, 4, NULL, 25, 1),
(35, 4, NULL, 27, 2),
(36, 4, NULL, 28, 3),
(37, 4, NULL, 29, 4),
(38, 4, NULL, 31, 5),
(39, 4, NULL, 33, 6),
(40, 4, NULL, 30, 7),
(41, 4, NULL, 34, 8),
(42, 4, NULL, 35, 9);

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_form_fieldset`
--

CREATE TABLE `mg_eav_form_fieldset` (
  `fieldset_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Fieldset Id',
  `type_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Type Id',
  `code` varchar(64) NOT NULL COMMENT 'Code',
  `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT 'Sort Order'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Fieldset';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_form_fieldset_label`
--

CREATE TABLE `mg_eav_form_fieldset_label` (
  `fieldset_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Fieldset Id',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store Id',
  `label` varchar(255) NOT NULL COMMENT 'Label'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Fieldset Label';

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_form_type`
--

CREATE TABLE `mg_eav_form_type` (
  `type_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Type Id',
  `code` varchar(64) NOT NULL COMMENT 'Code',
  `label` varchar(255) NOT NULL COMMENT 'Label',
  `is_system` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Is System',
  `theme` varchar(64) DEFAULT NULL COMMENT 'Theme',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store Id'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Type';

--
-- Dumping data for table `mg_eav_form_type`
--

INSERT INTO `mg_eav_form_type` (`type_id`, `code`, `label`, `is_system`, `theme`, `store_id`) VALUES
(1, 'checkout_onepage_register', 'checkout_onepage_register', 1, '', 0),
(2, 'checkout_onepage_register_guest', 'checkout_onepage_register_guest', 1, '', 0),
(3, 'checkout_onepage_billing_address', 'checkout_onepage_billing_address', 1, '', 0),
(4, 'checkout_onepage_shipping_address', 'checkout_onepage_shipping_address', 1, '', 0);

-- --------------------------------------------------------

--
-- Table structure for table `mg_eav_form_type_entity`
--

CREATE TABLE `mg_eav_form_type_entity` (
  `type_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Type Id',
  `entity_type_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Entity Type Id'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Type Entity';

--
-- Dumping data for table `mg_eav_form_type_entity`
--

INSERT INTO `mg_eav_form_type_entity` (`type_id`, `entity_type_id`) VALUES
(1, 1),
(2, 1),
(1, 2),
(2, 2),
(3, 2),
(4, 2);

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_abandoned_cart`
--

CREATE TABLE `mg_email_abandoned_cart` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `quote_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Quote Id',
  `store_id` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Store Id',
  `customer_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Customer ID',
  `email` varchar(255) NOT NULL DEFAULT '' COMMENT 'Email',
  `status` varchar(255) NOT NULL DEFAULT '' COMMENT 'Contact Status',
  `is_active` smallint(5) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Quote Active',
  `quote_updated_at` timestamp NULL DEFAULT NULL COMMENT 'Quote updated at',
  `abandoned_cart_number` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Abandoned Cart number',
  `items_count` smallint(5) UNSIGNED DEFAULT '0' COMMENT 'Quote items count',
  `items_ids` varchar(255) DEFAULT NULL COMMENT 'Quote item ids',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated at'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Abandoned Carts Table';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_automation`
--

CREATE TABLE `mg_email_automation` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `automation_type` varchar(255) DEFAULT NULL COMMENT 'Automation Type',
  `store_name` varchar(255) DEFAULT NULL COMMENT 'Automation Type',
  `enrolment_status` varchar(255) NOT NULL COMMENT 'Entrolment Status',
  `email` varchar(255) DEFAULT NULL COMMENT 'Email',
  `type_id` varchar(255) DEFAULT NULL COMMENT 'Type ID',
  `program_id` varchar(255) DEFAULT NULL COMMENT 'Program ID',
  `website_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Website Id',
  `message` varchar(255) NOT NULL COMMENT 'Message',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Automation Status';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_campaign`
--

CREATE TABLE `mg_email_campaign` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `campaign_id` int(10) UNSIGNED NOT NULL COMMENT 'Campaign ID',
  `email` varchar(255) NOT NULL DEFAULT '' COMMENT 'Contact Email',
  `customer_id` int(10) UNSIGNED NOT NULL COMMENT 'Customer ID',
  `sent_at` timestamp NULL DEFAULT NULL COMMENT 'Send Date',
  `order_increment_id` varchar(50) NOT NULL COMMENT 'Order Increment ID',
  `quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Sales Quote ID',
  `message` varchar(255) NOT NULL DEFAULT '' COMMENT 'Error Message',
  `checkout_method` varchar(255) NOT NULL DEFAULT '' COMMENT 'Checkout Method Used',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `event_name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Event Name',
  `send_id` varchar(255) NOT NULL DEFAULT '' COMMENT 'Send Id',
  `send_status` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Campaign send status',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connector Campaigns';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_catalog`
--

CREATE TABLE `mg_email_catalog` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `product_id` int(10) UNSIGNED NOT NULL COMMENT 'Product Id',
  `imported` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Product Imported',
  `modified` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Product Modified',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connector Catalog';

--
-- Dumping data for table `mg_email_catalog`
--

INSERT INTO `mg_email_catalog` (`id`, `product_id`, `imported`, `modified`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL, '2019-09-06 05:22:36', '2019-09-06 05:22:36'),
(2, 2, NULL, NULL, '2019-09-06 05:31:02', '2019-09-06 05:31:02'),
(3, 3, NULL, NULL, '2019-09-06 05:39:46', '2019-09-06 05:39:46'),
(4, 4, NULL, NULL, '2019-09-06 05:42:20', '2019-09-06 05:42:20'),
(5, 5, NULL, NULL, '2019-09-06 05:44:44', '2019-09-06 05:44:44'),
(6, 6, NULL, NULL, '2019-09-06 05:47:51', '2019-09-06 05:47:51'),
(7, 7, NULL, NULL, '2019-09-06 05:49:25', '2019-09-06 05:49:25'),
(8, 8, NULL, NULL, '2019-09-06 05:56:22', '2019-09-06 05:56:22'),
(9, 9, NULL, NULL, '2019-09-06 05:59:40', '2019-09-06 05:59:40'),
(10, 10, NULL, NULL, '2019-09-06 06:01:49', '2019-09-06 06:01:49'),
(11, 11, NULL, NULL, '2019-09-06 06:04:05', '2019-09-06 06:04:05'),
(12, 12, NULL, NULL, '2019-09-06 11:55:23', '2019-09-06 11:55:23'),
(13, 13, NULL, NULL, '2019-09-09 11:53:10', '2019-09-09 11:53:10'),
(14, 14, NULL, NULL, '2019-09-10 07:56:11', '2019-09-10 07:56:11'),
(18, 17, NULL, NULL, '2019-09-18 10:40:31', '2019-09-18 10:40:31'),
(24, 26, NULL, NULL, '2019-09-18 12:46:54', '2019-09-18 12:46:54'),
(25, 25, NULL, NULL, '2019-09-18 12:47:02', '2019-09-18 12:47:02'),
(26, 24, NULL, NULL, '2019-09-18 12:47:11', '2019-09-18 12:47:11'),
(27, 27, NULL, NULL, '2019-09-25 10:15:32', '2019-09-25 10:15:32'),
(28, 28, NULL, NULL, '2019-09-25 10:42:28', '2019-09-25 10:42:28');

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_contact`
--

CREATE TABLE `mg_email_contact` (
  `email_contact_id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `is_guest` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Is Guest',
  `contact_id` varchar(15) DEFAULT NULL COMMENT 'Connector Contact ID',
  `customer_id` int(10) UNSIGNED NOT NULL COMMENT 'Customer ID',
  `website_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Website ID',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `email` varchar(255) NOT NULL DEFAULT '' COMMENT 'Customer Email',
  `is_subscriber` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Is Subscriber',
  `subscriber_status` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Subscriber status',
  `email_imported` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Is Imported',
  `subscriber_imported` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Subscriber Imported',
  `suppressed` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Is Suppressed',
  `last_subscribed_at` timestamp NULL DEFAULT NULL COMMENT 'Last subscribed date'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connector Contacts';

--
-- Dumping data for table `mg_email_contact`
--

INSERT INTO `mg_email_contact` (`email_contact_id`, `is_guest`, `contact_id`, `customer_id`, `website_id`, `store_id`, `email`, `is_subscriber`, `subscriber_status`, `email_imported`, `subscriber_imported`, `suppressed`, `last_subscribed_at`) VALUES
(1, NULL, NULL, 0, 0, 0, '', NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_contact_consent`
--

CREATE TABLE `mg_email_contact_consent` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `email_contact_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Email Contact Id',
  `consent_url` varchar(255) DEFAULT NULL COMMENT 'Contact consent url',
  `consent_datetime` datetime DEFAULT NULL COMMENT 'Contact consent datetime',
  `consent_ip` varchar(255) DEFAULT NULL COMMENT 'Contact consent ip',
  `consent_user_agent` varchar(255) DEFAULT NULL COMMENT 'Contact consent user agent'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email contact consent table.';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_failed_auth`
--

CREATE TABLE `mg_email_failed_auth` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `failures_num` int(10) UNSIGNED DEFAULT NULL COMMENT 'Number of fails',
  `first_attempt_date` datetime DEFAULT NULL COMMENT 'First attempt date',
  `last_attempt_date` datetime DEFAULT NULL COMMENT 'Last attempt date',
  `url` varchar(255) DEFAULT NULL COMMENT 'URL',
  `store_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Store Id'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email Failed Auth Table.';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_importer`
--

CREATE TABLE `mg_email_importer` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `import_type` varchar(255) NOT NULL DEFAULT '' COMMENT 'Import Type',
  `website_id` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `import_status` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Import Status',
  `import_id` varchar(255) NOT NULL DEFAULT '' COMMENT 'Import Id',
  `import_data` mediumblob NOT NULL COMMENT 'Import Data',
  `import_mode` varchar(255) NOT NULL DEFAULT '' COMMENT 'Import Mode',
  `import_file` text NOT NULL COMMENT 'Import File',
  `message` varchar(255) NOT NULL DEFAULT '' COMMENT 'Error Message',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time',
  `import_started` timestamp NULL DEFAULT NULL COMMENT 'Import Started',
  `import_finished` timestamp NULL DEFAULT NULL COMMENT 'Import Finished'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email Importer';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_order`
--

CREATE TABLE `mg_email_order` (
  `email_order_id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order ID',
  `order_status` varchar(255) NOT NULL COMMENT 'Order Status',
  `quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Sales Quote ID',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `email_imported` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Is Order Imported',
  `modified` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Is Order Modified',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Transactional Order Data';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_review`
--

CREATE TABLE `mg_email_review` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `review_id` int(10) UNSIGNED NOT NULL COMMENT 'Review Id',
  `customer_id` int(10) UNSIGNED NOT NULL COMMENT 'Customer ID',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store Id',
  `review_imported` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Review Imported',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connector Reviews';

--
-- Dumping data for table `mg_email_review`
--

INSERT INTO `mg_email_review` (`id`, `review_id`, `customer_id`, `store_id`, `review_imported`, `created_at`, `updated_at`) VALUES
(1, 1, 2, 1, NULL, '2019-09-10 07:48:36', '2019-09-10 07:48:36');

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_rules`
--

CREATE TABLE `mg_email_rules` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Rule Name',
  `website_ids` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `type` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Rule Type',
  `status` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Status',
  `combination` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Rule Condition',
  `conditions` blob NOT NULL COMMENT 'Rule Conditions',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connector Rules';

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_template`
--

CREATE TABLE `mg_email_template` (
  `template_id` int(10) UNSIGNED NOT NULL COMMENT 'Template ID',
  `template_code` varchar(150) NOT NULL COMMENT 'Template Name',
  `template_text` text NOT NULL COMMENT 'Template Content',
  `template_styles` text COMMENT 'Templste Styles',
  `template_type` int(10) UNSIGNED DEFAULT NULL COMMENT 'Template Type',
  `template_subject` varchar(200) NOT NULL COMMENT 'Template Subject',
  `template_sender_name` varchar(200) DEFAULT NULL COMMENT 'Template Sender Name',
  `template_sender_email` varchar(200) DEFAULT NULL COMMENT 'Template Sender Email',
  `added_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Date of Template Creation',
  `modified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of Template Modification',
  `orig_template_code` varchar(200) DEFAULT NULL COMMENT 'Original Template Code',
  `orig_template_variables` text COMMENT 'Original Template Variables'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email Templates';

--
-- Dumping data for table `mg_email_template`
--

INSERT INTO `mg_email_template` (`template_id`, `template_code`, `template_text`, `template_styles`, `template_type`, `template_subject`, `template_sender_name`, `template_sender_email`, `added_at`, `modified_at`, `orig_template_code`, `orig_template_variables`) VALUES
(1, 'New Pickup Order', '<!--@subject {{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}} @-->\n<!--@vars {\n\"var order.getCustomerName()\":\"Customer Name\",\n\"var store.getFrontendName()\":\"Customer Name\",\n\"var is_pickup_order\":\"Check if order is a pickup order\",\n\"var $this.getUrl($store,\'customer/account/\',[_nosid:1]) |raw\":\"Gets the link to the Customer Account\",\n\"var store_email |raw\":\"Defined Email Address for this type of mails\",\n\"var store_phone |raw\":\"Defined Phone Number in the Store Information\",\n\"var store_hours |raw\":\"Defined Opening Hours Phone Number in the Store Information\",\n\"var order.increment_id |raw\":\"Order Id\",\n\"var order.getCreatedAtFormatted(2) |raw\":\"Get the date of order creation\",\n\"var order.getEmailCustomerNote()\":\"Email Order Note\",\n\"var formattedBillingAddress|raw\":\"Billing Address\",\n\"var order.getIsNotVirtual()\":\"Check if shipment exists\",\n\"var pickupAddress|raw\":\"Pickup Location Address\",\n\"var formattedShippingAddress|raw\":\"Customer Shipping Address\",\n\"var payment_html|raw\":\"Payment Details\",\n\"var order.getShippingDescription()\":\"Shipping Description\",\n\"var shipping_msg\":\"Shipping message\",\n\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\"\n} @-->\n\n{{template config_path=\"design/email/header_template\"}}\n\n<table>\n    <tr class=\"email-intro\">\n        <td>\n            <p class=\"greeting\">{{trans \"%customer_name,\" customer_name=$order.getCustomerName()}}</p>\n            <p>\n                {{trans \"Thank you for your order from %store_name.\" store_name=$store.getFrontendName()}}\n                {{if is_pickup_order}}\n                    {{trans \"We will send you a notification once your items are ready for pickup.\"}}\n                {{else}}\n                    {{trans \"Once your package ships we will send you a tracking number.\"}}\n                {{/if}}\n                {{trans \'You can check the status of your order by <a href=\"%account_url\">logging into your account</a>.\' account_url=$this.getUrl($store,\'customer/account/\',[_nosid:1]) |raw}}\n            </p>\n            <p>\n                {{trans \'If you have questions about your order, you can email us at <a href=\"mailto:%store_email\">%store_email</a>\' store_email=$store_email |raw}}{{depend store_phone}} {{trans \' or call us at <a href=\"tel:%store_phone\">%store_phone</a>\' store_phone=$store_phone |raw}}{{/depend}}.\n                {{depend store_hours}}\n                {{trans \'Our hours are <span class=\"no-link\">%store_hours</span>.\' store_hours=$store_hours |raw}}\n                {{/depend}}\n            </p>\n        </td>\n    </tr>\n    <tr class=\"email-summary\">\n        <td>\n            <h1>{{trans \'Your Order <span class=\"no-link\">#%increment_id</span>\' increment_id=$order.increment_id |raw}}</h1>\n            <p>{{trans \'Placed on <span class=\"no-link\">%created_at</span>\' created_at=$order.getCreatedAtFormatted(2) |raw}}</p>\n        </td>\n    </tr>\n    <tr class=\"email-information\">\n        <td>\n            {{depend order.getEmailCustomerNote()}}\n            <table class=\"message-info\">\n                <tr>\n                    <td>\n                        {{var order.getEmailCustomerNote()|escape|nl2br}}\n                    </td>\n                </tr>\n            </table>\n            {{/depend}}\n            <table class=\"order-details\">\n                <tr>\n                    <td class=\"address-details\">\n                        <h3>{{trans \"Billing Info\"}}</h3>\n                        <p>{{var formattedBillingAddress|raw}}</p>\n                    </td>\n                    {{depend order.getIsNotVirtual()}}\n                    <td class=\"address-details\">\n                        <h3>{{trans \"Shipping Info\"}}</h3>\n                        {{if is_pickup_order}}\n                            <h4>{{trans \"Pickup Location\"}}</h4>\n                            <p>{{var pickupAddress|raw}}</p>\n                            <h4>{{trans \"Recipient Address\"}}</h4>\n                        {{/if}}\n                        <p>{{var formattedShippingAddress|raw}}</p>\n                    </td>\n                    {{/depend}}\n                </tr>\n                <tr>\n                    <td class=\"method-info\">\n                        <h3>{{trans \"Payment Method\"}}</h3>\n                        {{var payment_html|raw}}\n                    </td>\n                    {{depend order.getIsNotVirtual()}}\n                    <td class=\"method-info\">\n                        <h3>{{trans \"Shipping Method\"}}</h3>\n                        <p>{{var order.getShippingDescription()}}</p>\n                        {{if shipping_msg}}\n                        <p>{{var shipping_msg}}</p>\n                        {{/if}}\n                    </td>\n                    {{/depend}}\n                </tr>\n            </table>\n            {{layout handle=\"sales_email_order_items\" order=$order area=\"frontend\"}}\n        </td>\n    </tr>\n</table>\n\n{{template config_path=\"design/email/footer_template\"}}\n', NULL, 2, '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}', NULL, NULL, '2019-09-05 10:33:53', '2019-09-05 10:33:53', 'sales_email_order_template', '{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}'),
(2, 'New Pickup Order For Guest', '<!--@subject {{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}} @-->\n<!--@vars {\n\"var order.getBillingAddress().getName()\":\"Guest Customer Name\",\n\"var store.getFrontendName()\":\"Customer Name\",\n\"var is_pickup_order\":\"Check if order is a pickup order\",\n\"var store_email |raw\":\"Defined Email Address for this type of mails\",\n\"var store_phone |raw\":\"Defined Phone Number in the Store Information\",\n\"var store_hours |raw\":\"Defined Opening Hours Phone Number in the Store Information\",\n\"var order.increment_id |raw\":\"Order Id\",\n\"var order.getCreatedAtFormatted(2) |raw\":\"Get the date of order creation\",\n\"var order.getEmailCustomerNote()\":\"Email Order Note\",\n\"var formattedBillingAddress|raw\":\"Billing Address\",\n\"var order.getIsNotVirtual()\":\"Check if shipment exists\",\n\"var pickupAddress|raw\":\"Pickup Location Address\",\n\"var formattedShippingAddress|raw\":\"Customer Shipping Address\",\n\"var payment_html|raw\":\"Payment Details\",\n\"var order.getShippingDescription()\":\"Shipping Description\",\n\"var shipping_msg\":\"Shipping message\",\n\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\"\n} @-->\n\n{{template config_path=\"design/email/header_template\"}}\n\n<table>\n    <tr class=\"email-intro\">\n        <td>\n            <p class=\"greeting\">{{trans \"%name,\" name=$order.getBillingAddress().getName()}}</p>\n            <p>\n                {{trans \"Thank you for your order from %store_name.\" store_name=$store.getFrontendName()}}\n                {{if is_pickup_order}}\n                    {{trans \"We will send you a notification once your items are ready for pickup.\"}}\n                {{else}}\n                    {{trans \"Once your package ships we will send an email with a link to track your order.\"}}\n                {{/if}}\n                {{trans \'If you have questions about your order, you can email us at <a href=\"mailto:%store_email\">%store_email</a>\' store_email=$store_email |raw}}{{depend store_phone}} {{trans \' or call us at <a href=\"tel:%store_phone\">%store_phone</a>\' store_phone=$store_phone |raw}}{{/depend}}.\n                {{depend store_hours}}\n                    {{trans \'Our hours are <span class=\"no-link\">%store_hours</span>.\' store_hours=$store_hours |raw}}\n                {{/depend}}\n            </p>\n        </td>\n    </tr>\n    <tr class=\"email-summary\">\n        <td>\n            <h1>{{trans \'Your Order <span class=\"no-link\">#%increment_id</span>\' increment_id=$order.increment_id |raw}}</h1>\n            <p>{{trans \'Placed on <span class=\"no-link\">%created_at</span>\' created_at=$order.getCreatedAtFormatted(2) |raw}}</p>\n        </td>\n    </tr>\n    <tr class=\"email-information\">\n        <td>\n            {{depend order.getEmailCustomerNote()}}\n            <table class=\"message-info\">\n                <tr>\n                    <td>\n                        {{var order.getEmailCustomerNote()|escape|nl2br}}\n                    </td>\n                </tr>\n            </table>\n            {{/depend}}\n            <table class=\"order-details\">\n                <tr>\n                    <td class=\"address-details\">\n                        <h3>{{trans \"Billing Info\"}}</h3>\n                        <p>{{var formattedBillingAddress|raw}}</p>\n                    </td>\n                    {{depend order.getIsNotVirtual()}}\n                    <td class=\"address-details\">\n                        <h3>{{trans \"Shipping Info\"}}</h3>\n                        {{if is_pickup_order}}\n                            <h4>{{trans \"Pickup Location\"}}</h4>\n                            <p>{{var pickupAddress|raw}}</p>\n                            <h4>{{trans \"Recipient Address\"}}</h4>\n                        {{/if}}\n                        <p>{{var formattedShippingAddress|raw}}</p>\n                    </td>\n                    {{/depend}}\n                </tr>\n                <tr>\n                    <td class=\"method-info\">\n                        <h3>{{trans \"Payment Method\"}}</h3>\n                        {{var payment_html|raw}}\n                    </td>\n                    {{depend order.getIsNotVirtual()}}\n                    <td class=\"method-info\">\n                        <h3>{{trans \"Shipping Method\"}}</h3>\n                        <p>{{var order.getShippingDescription()}}</p>\n                        {{if shipping_msg}}\n                        <p>{{var shipping_msg}}</p>\n                        {{/if}}\n                    </td>\n                    {{/depend}}\n                </tr>\n            </table>\n            {{layout handle=\"sales_email_order_items\" order=$order}}\n        </td>\n    </tr>\n</table>\n\n{{template config_path=\"design/email/footer_template\"}}\n', NULL, 2, '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}', NULL, NULL, '2019-09-05 10:33:53', '2019-09-05 10:33:53', 'sales_email_order_guest_template', '{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.getBillingAddress().getName()\":\"Guest Customer Name\",\"var order.getCreatedAtFormatted(2)\":\"Order Created At (datetime)\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');

-- --------------------------------------------------------

--
-- Table structure for table `mg_email_wishlist`
--

CREATE TABLE `mg_email_wishlist` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `wishlist_id` int(10) UNSIGNED NOT NULL COMMENT 'Wishlist Id',
  `item_count` int(10) UNSIGNED NOT NULL COMMENT 'Item Count',
  `customer_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Customer ID',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store Id',
  `wishlist_imported` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Wishlist Imported',
  `wishlist_modified` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Wishlist Modified',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connector Wishlist';

-- --------------------------------------------------------

--
-- Table structure for table `mg_flag`
--

CREATE TABLE `mg_flag` (
  `flag_id` int(10) UNSIGNED NOT NULL COMMENT 'Flag Id',
  `flag_code` varchar(255) NOT NULL COMMENT 'Flag Code',
  `state` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Flag State',
  `flag_data` text COMMENT 'Flag Data',
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of Last Flag Update'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Flag';

--
-- Dumping data for table `mg_flag`
--

INSERT INTO `mg_flag` (`flag_id`, `flag_code`, `state`, `flag_data`, `last_update`) VALUES
(1, 'analytics_link_attempts_reverse_counter', 0, '24', '2019-09-05 10:33:53');

-- --------------------------------------------------------

--
-- Table structure for table `mg_gift_message`
--

CREATE TABLE `mg_gift_message` (
  `gift_message_id` int(10) UNSIGNED NOT NULL COMMENT 'GiftMessage Id',
  `customer_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Customer id',
  `sender` varchar(255) DEFAULT NULL COMMENT 'Sender',
  `recipient` varchar(255) DEFAULT NULL COMMENT 'Registrant',
  `message` text COMMENT 'Message'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Gift Message';

-- --------------------------------------------------------

--
-- Table structure for table `mg_googleoptimizer_code`
--

CREATE TABLE `mg_googleoptimizer_code` (
  `code_id` int(10) UNSIGNED NOT NULL COMMENT 'Google experiment code id',
  `entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Optimized entity id product id or catalog id',
  `entity_type` varchar(50) DEFAULT NULL COMMENT 'Optimized entity type',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store id',
  `experiment_script` text COMMENT 'Google experiment script'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Google Experiment code';

-- --------------------------------------------------------

--
-- Table structure for table `mg_importexport_importdata`
--

CREATE TABLE `mg_importexport_importdata` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Id',
  `entity` varchar(50) NOT NULL COMMENT 'Entity',
  `behavior` varchar(10) NOT NULL DEFAULT 'append' COMMENT 'Behavior',
  `data` longtext COMMENT 'Data'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Import Data Table';

--
-- Dumping data for table `mg_importexport_importdata`
--

INSERT INTO `mg_importexport_importdata` (`id`, `entity`, `behavior`, `data`) VALUES
(12, 'catalog_product', 'append', '[{\"sku\":\"24-WG085\",\"store_view_code\":null,\"attribute_set_code\":\"Default\",\"product_type\":\"simple\",\"categories\":\"Default Category\\/PERSON SECURITY\\/TRACKING DEVICES\\/Child Security\\/>Handheld\\/>>GPS\",\"product_websites\":\"base\",\"name\":\"Sprite Yoga Strap 6 foot\",\"description\":\"<p>The Sprite Yoga Strap is your untiring partner in demanding stretches, holds and alignment routines. The strap\'s 100% organic cotton fabric is woven tightly to form a soft, textured yet non-slip surface. The plastic clasp buckle is easily adjustable, lightweight and urable under strain.<\\/p><ul><li>100% soft and durable cotton.<li>Plastic cinch buckle is easy to use.<li>Three natural colors made from phthalate and heavy metal free dyes.<\\/ul>\",\"short_description\":null,\"weight\":\"1\",\"product_online\":\"1\",\"tax_class_name\":\"Taxable Goods\",\"visibility\":\"Catalog, Search\",\"price\":\"14\",\"special_price\":null,\"special_price_from_date\":null,\"special_price_to_date\":null,\"url_key\":\"sprite-yoga-strap-6-foot\",\"meta_title\":\"Meta Title\",\"meta_keywords\":\"meta1, meta2, meta3\",\"meta_description\":\"meta description\",\"base_image\":\"1\\/5\\/1568810560watch.jpg\",\"base_image_label\":\"Image Label\",\"small_image\":\"1\\/5\\/1568810560watch.jpg\",\"small_image_label\":\"Image Label\",\"thumbnail_image\":\"1\\/5\\/1568810560watch.jpg\",\"thumbnail_image_label\":\"Image Label\",\"created_at\":\"10\\/25\\/2015 03:34\",\"updated_at\":\"10\\/25\\/2015 03:34\",\"new_from_date\":null,\"new_to_date\":null,\"display_product_options_in\":\"Block after Info Column\",\"map_price\":null,\"msrp_price\":null,\"map_enabled\":null,\"gift_message_available\":null,\"custom_design\":null,\"custom_design_from\":null,\"custom_design_to\":null,\"custom_layout_update\":null,\"page_layout\":null,\"product_options_container\":null,\"msrp_display_actual_price_type\":\"Use config\",\"country_of_manufacture\":null,\"additional_attributes\":\"has_options=1,is_returnable=Use config,quantity_and_stock_status=In Stock,required_options=0\",\"qty\":\"100\",\"out_of_stock_qty\":\"0\",\"use_config_min_qty\":\"1\",\"is_qty_decimal\":\"0\",\"allow_backorders\":\"0\",\"use_config_backorders\":\"1\",\"min_cart_qty\":\"1\",\"use_config_min_sale_qty\":0,\"max_cart_qty\":\"0\",\"use_config_max_sale_qty\":\"1\",\"is_in_stock\":\"1\",\"notify_on_stock_below\":null,\"use_config_notify_stock_qty\":\"1\",\"manage_stock\":\"0\",\"use_config_manage_stock\":\"1\",\"use_config_qty_increments\":\"1\",\"qty_increments\":\"0\",\"use_config_enable_qty_inc\":\"1\",\"enable_qty_increments\":\"0\",\"is_decimal_divided\":\"0\",\"website_id\":\"1\",\"deferred_stock_update\":\"0\",\"use_config_deferred_stock_update\":\"1\",\"related_skus\":\"24-WG087,24-WG086\",\"crosssell_skus\":\"24-WG087,24-WG086\",\"upsell_skus\":\"24-WG087,24-WG086\",\"additional_images\":null,\"additional_image_labels\":null,\"hide_from_product_page\":null,\"custom_options\":\"name=Custom Yoga Option,type=drop_down,required=0,price=10.0000,price_type=fixed,sku=,option_title=Gold|name=Custom Yoga Option,type=drop_down,required=0,price=10.0000,price_type=fixed,sku=,option_title=Silver|name=Custom Yoga Option,type=drop_down,required=0,price=10.0000,price_type=fixed,sku=yoga3sku,option_title=Platinum\",\"bundle_price_type\":null,\"bundle_sku_type\":null,\"bundle_price_view\":null,\"bundle_weight_type\":null,\"bundle_values\":null,\"associated_skus\":null,\"image\":\"1\\/5\\/1568810560watch.jpg\",\"image_label\":\"Image Label\",\"thumbnail\":\"1\\/5\\/1568810560watch.jpg\",\"thumbnail_label\":\"Image Label\",\"_media_image\":null,\"_media_image_label\":null,\"_media_is_disabled\":null,\"_store\":null,\"_attribute_set\":\"Default\",\"_product_websites\":\"base\",\"status\":2,\"news_from_date\":null,\"news_to_date\":null,\"options_container\":\"Block after Info Column\",\"minimal_price\":null,\"msrp\":null,\"msrp_enabled\":null,\"special_from_date\":null,\"special_to_date\":null,\"min_qty\":\"0\",\"backorders\":\"0\",\"min_sale_qty\":\"1\",\"max_sale_qty\":\"0\",\"notify_stock_qty\":null,\"_related_sku\":\"24-WG087,24-WG086\",\"_crosssell_sku\":\"24-WG087,24-WG086\",\"_upsell_sku\":\"24-WG087,24-WG086\",\"meta_keyword\":\"meta1, meta2, meta3\",\"price_type\":null,\"price_view\":null,\"weight_type\":null,\"sku_type\":null,\"has_options\":\"1\",\"is_returnable\":\"Use config\",\"quantity_and_stock_status\":\"In Stock\",\"required_options\":\"0\"},{\"sku\":\"24-WG087\",\"store_view_code\":null,\"attribute_set_code\":\"Default\",\"product_type\":\"simple\",\"categories\":\"Default Category\\/PERSON SECURITY\\/TRACKING DEVICES\\/Child Security\\/>Handheld\\/>>GPS\",\"product_websites\":\"base\",\"name\":\"Sprite Yoga Strap 10 foot\",\"description\":\"<p>The Sprite Yoga Strap is your untiring partner in demanding stretches, holds and alignment routines. The strap\'s 100% organic cotton fabric is woven tightly to form a soft, textured yet non-slip surface. The plastic clasp buckle is easily adjustable, lightweight and durable under strain.<\\/p><ul><li>10\' long x 1.0\\\" wide.<li>100% soft and durable cotton.<li>Plastic cinch buckle is easy to use.<li>Three natural colors made from phthalate and heavy metal free dyes.<\\/ul>\",\"short_description\":null,\"weight\":\"1\",\"product_online\":\"1\",\"tax_class_name\":\"Taxable Goods\",\"visibility\":\"Catalog, Search\",\"price\":\"21\",\"special_price\":null,\"special_price_from_date\":null,\"special_price_to_date\":null,\"url_key\":\"sprite-yoga-strap-10-foot\",\"meta_title\":\"Meta Title\",\"meta_keywords\":\"meta1, meta2, meta5\",\"meta_description\":\"meta description\",\"base_image\":\"1\\/5\\/1568810560watch.jpg\",\"base_image_label\":\"Image Label\",\"small_image\":\"1\\/5\\/1568810560watch.jpg\",\"small_image_label\":\"Image Label\",\"thumbnail_image\":\"1\\/5\\/1568810560watch.jpg\",\"thumbnail_image_label\":\"Image Label\",\"created_at\":\"10\\/25\\/2015 03:34\",\"updated_at\":\"10\\/25\\/2015 03:34\",\"new_from_date\":null,\"new_to_date\":null,\"display_product_options_in\":\"Block after Info Column\",\"map_price\":null,\"msrp_price\":null,\"map_enabled\":null,\"gift_message_available\":null,\"custom_design\":null,\"custom_design_from\":null,\"custom_design_to\":null,\"custom_layout_update\":null,\"page_layout\":null,\"product_options_container\":null,\"msrp_display_actual_price_type\":\"Use config\",\"country_of_manufacture\":null,\"additional_attributes\":\"has_options=0,is_returnable=Use config,quantity_and_stock_status=In Stock,required_options=0\",\"qty\":\"100\",\"out_of_stock_qty\":\"0\",\"use_config_min_qty\":\"1\",\"is_qty_decimal\":\"0\",\"allow_backorders\":\"0\",\"use_config_backorders\":\"1\",\"min_cart_qty\":\"1\",\"use_config_min_sale_qty\":0,\"max_cart_qty\":\"0\",\"use_config_max_sale_qty\":\"1\",\"is_in_stock\":\"1\",\"notify_on_stock_below\":null,\"use_config_notify_stock_qty\":\"1\",\"manage_stock\":\"0\",\"use_config_manage_stock\":\"1\",\"use_config_qty_increments\":\"1\",\"qty_increments\":\"0\",\"use_config_enable_qty_inc\":\"1\",\"enable_qty_increments\":\"0\",\"is_decimal_divided\":\"0\",\"website_id\":\"1\",\"deferred_stock_update\":\"0\",\"use_config_deferred_stock_update\":\"1\",\"related_skus\":\"24-WG086\",\"crosssell_skus\":\"24-WG086\",\"upsell_skus\":\"24-WG086\",\"additional_images\":null,\"additional_image_labels\":null,\"hide_from_product_page\":null,\"custom_options\":null,\"bundle_price_type\":null,\"bundle_sku_type\":null,\"bundle_price_view\":null,\"bundle_weight_type\":null,\"bundle_values\":null,\"associated_skus\":null,\"image\":\"1\\/5\\/1568810560watch.jpg\",\"image_label\":\"Image Label\",\"thumbnail\":\"1\\/5\\/1568810560watch.jpg\",\"thumbnail_label\":\"Image Label\",\"_media_image\":null,\"_media_image_label\":null,\"_media_is_disabled\":null,\"_store\":null,\"_attribute_set\":\"Default\",\"_product_websites\":\"base\",\"status\":2,\"news_from_date\":null,\"news_to_date\":null,\"options_container\":\"Block after Info Column\",\"minimal_price\":null,\"msrp\":null,\"msrp_enabled\":null,\"special_from_date\":null,\"special_to_date\":null,\"min_qty\":\"0\",\"backorders\":\"0\",\"min_sale_qty\":\"1\",\"max_sale_qty\":\"0\",\"notify_stock_qty\":null,\"_related_sku\":\"24-WG086\",\"_crosssell_sku\":\"24-WG086\",\"_upsell_sku\":\"24-WG086\",\"meta_keyword\":\"meta1, meta2, meta5\",\"price_type\":null,\"price_view\":null,\"weight_type\":null,\"sku_type\":null,\"has_options\":\"0\",\"is_returnable\":\"Use config\",\"quantity_and_stock_status\":\"In Stock\",\"required_options\":\"0\"},{\"sku\":\"24-WG085_Group\",\"store_view_code\":null,\"attribute_set_code\":\"Default\",\"product_type\":\"grouped\",\"categories\":\"Default Category\\/PERSON SECURITY\\/TRACKING DEVICES\\/Child Security\\/>Handheld\\/>>GPS\",\"product_websites\":\"base\",\"name\":\"Set of Sprite Yoga Straps\",\"description\":\"<p>Great set of Sprite Yoga Straps for every stretch and hold you need. There are three straps in this set: 6\', 8\' and 10\'.<\\/p><ul><li>100% soft and durable cotton.<\\/li><li>Plastic cinch buckle is easy to use.<\\/li><li>Choice of three natural colors made from phthalate and heavy metal free dyes.<\\/li><\\/ul>\",\"short_description\":null,\"weight\":null,\"product_online\":\"1\",\"tax_class_name\":null,\"visibility\":\"Catalog, Search\",\"price\":null,\"special_price\":null,\"special_price_from_date\":null,\"special_price_to_date\":null,\"url_key\":\"set-of-sprite-yoga-straps\",\"meta_title\":\"Meta Title\",\"meta_keywords\":\"meta1, meta2, meta6\",\"meta_description\":\"meta description\",\"base_image\":\"1\\/5\\/1568810560watch.jpg\",\"base_image_label\":\"Image\",\"small_image\":\"1\\/5\\/1568810560watch.jpg\",\"small_image_label\":\"Image\",\"thumbnail_image\":\"1\\/5\\/1568810560watch.jpg\",\"thumbnail_image_label\":\"Image\",\"created_at\":\"10\\/25\\/2015 03:34\",\"updated_at\":\"10\\/25\\/2015 03:36\",\"new_from_date\":null,\"new_to_date\":null,\"display_product_options_in\":\"Block after Info Column\",\"map_price\":null,\"msrp_price\":null,\"map_enabled\":null,\"gift_message_available\":null,\"custom_design\":null,\"custom_design_from\":null,\"custom_design_to\":null,\"custom_layout_update\":null,\"page_layout\":null,\"product_options_container\":null,\"msrp_display_actual_price_type\":null,\"country_of_manufacture\":null,\"additional_attributes\":\"has_options=0,is_returnable=Use config,quantity_and_stock_status=In Stock,required_options=0\",\"qty\":\"0\",\"out_of_stock_qty\":\"0\",\"use_config_min_qty\":\"1\",\"is_qty_decimal\":\"0\",\"allow_backorders\":\"0\",\"use_config_backorders\":\"1\",\"min_cart_qty\":\"1\",\"use_config_min_sale_qty\":0,\"max_cart_qty\":\"0\",\"use_config_max_sale_qty\":\"1\",\"is_in_stock\":\"1\",\"notify_on_stock_below\":null,\"use_config_notify_stock_qty\":\"1\",\"manage_stock\":\"1\",\"use_config_manage_stock\":\"1\",\"use_config_qty_increments\":\"1\",\"qty_increments\":\"0\",\"use_config_enable_qty_inc\":\"1\",\"enable_qty_increments\":\"0\",\"is_decimal_divided\":\"0\",\"website_id\":\"1\",\"deferred_stock_update\":\"0\",\"use_config_deferred_stock_update\":\"1\",\"related_skus\":\"24-WG087,24-WG086\",\"crosssell_skus\":\"24-WG087,24-WG086\",\"upsell_skus\":\"24-WG087,24-WG086\",\"additional_images\":null,\"additional_image_labels\":null,\"hide_from_product_page\":null,\"custom_options\":null,\"bundle_price_type\":null,\"bundle_sku_type\":null,\"bundle_price_view\":null,\"bundle_weight_type\":null,\"bundle_values\":null,\"associated_skus\":\"24-WG085=5.0000,24-WG086=5.0000\",\"image\":\"1\\/5\\/1568810560watch.jpg\",\"image_label\":\"Image\",\"thumbnail\":\"1\\/5\\/1568810560watch.jpg\",\"thumbnail_label\":\"Image\",\"_media_image\":null,\"_media_image_label\":null,\"_media_is_disabled\":null,\"_store\":null,\"_attribute_set\":\"Default\",\"_product_websites\":\"base\",\"status\":2,\"news_from_date\":null,\"news_to_date\":null,\"options_container\":\"Block after Info Column\",\"minimal_price\":null,\"msrp\":null,\"msrp_enabled\":null,\"special_from_date\":null,\"special_to_date\":null,\"min_qty\":\"0\",\"backorders\":\"0\",\"min_sale_qty\":\"1\",\"max_sale_qty\":\"0\",\"notify_stock_qty\":null,\"_related_sku\":\"24-WG087,24-WG086\",\"_crosssell_sku\":\"24-WG087,24-WG086\",\"_upsell_sku\":\"24-WG087,24-WG086\",\"meta_keyword\":\"meta1, meta2, meta6\",\"price_type\":null,\"price_view\":null,\"weight_type\":null,\"sku_type\":null,\"has_options\":\"0\",\"is_returnable\":\"Use config\",\"quantity_and_stock_status\":\"In Stock\",\"required_options\":\"0\"}]');

-- --------------------------------------------------------

--
-- Table structure for table `mg_import_history`
--

CREATE TABLE `mg_import_history` (
  `history_id` int(10) UNSIGNED NOT NULL COMMENT 'History record Id',
  `started_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Started at',
  `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'User ID',
  `imported_file` varchar(255) DEFAULT NULL COMMENT 'Imported file',
  `execution_time` varchar(255) DEFAULT NULL COMMENT 'Execution time',
  `summary` varchar(255) DEFAULT NULL COMMENT 'Summary',
  `error_file` varchar(255) NOT NULL COMMENT 'Imported file with errors'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Import history table';

--
-- Dumping data for table `mg_import_history`
--

INSERT INTO `mg_import_history` (`history_id`, `started_at`, `user_id`, `imported_file`, `execution_time`, `summary`, `error_file`) VALUES
(1, '2019-09-10 07:52:47', 0, '1568101967_catalog_product_20190910_075039.csv', '00:00:23', 'Created: 1, Updated: 0, Deleted: 0', ''),
(2, '2019-09-17 10:25:56', 0, '1568715956_catalog_product (2).csv', '00:02:19', 'Created: 1, Updated: 0, Deleted: 0', '1568715956_catalog_product (2)_error_report.csv'),
(3, '2019-09-17 10:41:37', 0, '1568716897_catalog_product (3).csv', '00:00:14', 'Created: 0, Updated: 1, Deleted: 0', '1568716897_catalog_product (3)_error_report.csv'),
(4, '2019-09-17 10:46:16', 0, '1568717176_1568716897_catalog_product (3)_error_report.csv', '00:00:23', 'Created: 0, Updated: 1, Deleted: 0', '1568717176_1568716897_catalog_product (3)_error_report_error_report.csv'),
(5, '2019-09-17 11:01:15', 0, '1568718075_catalog_product (3).csv', '00:00:12', 'Created: 0, Updated: 1, Deleted: 0', '1568718075_catalog_product (3)_error_report.csv'),
(6, '2019-09-17 11:04:16', 0, '1568718256_catalog_product (3).csv', '00:00:27', 'Created: 0, Updated: 1, Deleted: 0', '1568718256_catalog_product (3)_error_report.csv'),
(7, '2019-09-17 11:06:47', 0, '1568718407_catalog_product (4).csv', '00:00:12', 'Created: 0, Updated: 1, Deleted: 0', '1568718407_catalog_product (4)_error_report.csv'),
(8, '2019-09-17 11:11:53', 0, '1568718713_catalog_product (3).csv', '00:00:07', 'Created: 1, Updated: 0, Deleted: 0', '1568718713_catalog_product (3)_error_report.csv'),
(9, '2019-09-17 11:25:18', 0, '1568719518_1568716897_catalog_product (3)_error_report.csv', '00:00:12', 'Created: 0, Updated: 1, Deleted: 0', '1568719518_1568716897_catalog_product (3)_error_report_error_report.csv'),
(10, '2019-09-18 10:34:35', 0, '1568802875_catalog_product (4).csv', '00:00:21', 'Created: 3, Updated: 0, Deleted: 0', ''),
(11, '2019-09-18 12:17:04', 0, '1568809024_catalog_product (4).csv', '00:03:42', 'Created: 3, Updated: 0, Deleted: 0', ''),
(12, '2019-09-18 12:45:35', 0, '1568810735_catalog_product (4) (1).csv', '00:00:08', 'Created: 3, Updated: 0, Deleted: 0', '');

-- --------------------------------------------------------

--
-- Table structure for table `mg_indexer_state`
--

CREATE TABLE `mg_indexer_state` (
  `state_id` int(10) UNSIGNED NOT NULL COMMENT 'Indexer State Id',
  `indexer_id` varchar(255) DEFAULT NULL COMMENT 'Indexer Id',
  `status` varchar(16) DEFAULT 'invalid' COMMENT 'Indexer Status',
  `updated` datetime DEFAULT NULL COMMENT 'Indexer Status',
  `hash_config` varchar(32) NOT NULL COMMENT 'Hash of indexer config'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Indexer State';

--
-- Dumping data for table `mg_indexer_state`
--

INSERT INTO `mg_indexer_state` (`state_id`, `indexer_id`, `status`, `updated`, `hash_config`) VALUES
(1, 'design_config_grid', 'valid', '2019-10-17 10:12:51', 'b157d45c60450be006200e9b299a2ca3'),
(2, 'customer_grid', 'valid', '2019-10-17 10:12:51', '8bb7590b409f925b12cf4b3e3001c021'),
(3, 'catalog_category_product', 'valid', '2019-10-16 09:23:58', '5578951bd6fd730ae9e6be6da72f4741'),
(4, 'catalog_product_category', 'valid', '2019-09-18 12:45:42', '181ea818115878fb8900763cfe1c47f1'),
(5, 'catalogrule_rule', 'valid', '2019-10-16 09:23:58', 'be198c497de58143496cb6963e576d24'),
(6, 'catalog_product_attribute', 'valid', '2019-10-16 09:23:58', 'f63df95212511565df2bc613ab84e459'),
(7, 'cataloginventory_stock', 'valid', '2019-10-16 09:23:58', 'a53896a87e8fd390cc235d7080407954'),
(8, 'inventory', 'valid', '2019-10-16 09:23:58', 'b10c084bd5db6661d9d36fd953b83e93'),
(9, 'catalogrule_product', 'valid', '2019-09-18 12:45:42', '6b8f515ce865b13a538e72ff6db7cb6a'),
(10, 'catalog_product_price', 'valid', '2019-10-16 09:23:58', '50ec5f660906ee10c856e2073e9e60b4'),
(11, 'catalogsearch_fulltext', 'valid', '2019-10-16 09:23:59', '18888e5633ee9120284074f316c533ef'),
(12, 'scconnector_google_remove', 'valid', '2019-10-16 09:23:59', '63bbfb5899f85d756b11fd44411930d3'),
(13, 'scconnector_google_feed', 'valid', '2019-10-16 09:23:59', '4d6f908aaccdba886ede6c058218a9fd');

-- --------------------------------------------------------

--
-- Table structure for table `mg_integration`
--

CREATE TABLE `mg_integration` (
  `integration_id` int(10) UNSIGNED NOT NULL COMMENT 'Integration ID',
  `name` varchar(255) NOT NULL COMMENT 'Integration name is displayed in the admin interface',
  `email` varchar(255) NOT NULL COMMENT 'Email address of the contact person',
  `endpoint` varchar(255) DEFAULT NULL COMMENT 'Endpoint for posting consumer credentials',
  `status` smallint(5) UNSIGNED NOT NULL COMMENT 'Integration status',
  `consumer_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Oauth consumer',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation Time',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Update Time',
  `setup_type` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Integration type - manual or config file',
  `identity_link_url` varchar(255) DEFAULT NULL COMMENT 'Identity linking Url'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='integration';

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_geoname`
--

CREATE TABLE `mg_inventory_geoname` (
  `country_code` varchar(64) NOT NULL,
  `postcode` varchar(64) NOT NULL,
  `city` varchar(64) NOT NULL,
  `region` varchar(64) NOT NULL,
  `province` varchar(64) NOT NULL,
  `latitude` double NOT NULL,
  `longitude` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_low_stock_notification_configuration`
--

CREATE TABLE `mg_inventory_low_stock_notification_configuration` (
  `source_code` varchar(255) NOT NULL,
  `sku` varchar(64) NOT NULL,
  `notify_stock_qty` decimal(12,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_low_stock_notification_configuration`
--

INSERT INTO `mg_inventory_low_stock_notification_configuration` (`source_code`, `sku`, `notify_stock_qty`) VALUES
('default', 'Acer Aspire S24 All In One PC', NULL),
('default', 'admin', NULL),
('default', 'Apple iMac 2017 21.5-inch Retina 4K', NULL),
('default', 'Beat Crossfade 2 Wireless Headphone', NULL),
('default', 'Fuhlen Mouse for Gamer', NULL),
('default', 'Navy Skinny Fit Suit With Wool', NULL),
('default', 'Outdoor Crossbody Bag', NULL),
('default', 'Philips HR1861 Whole Fruit Juicer', NULL),
('default', 'Printed & Cold Shoulder T Shirts', NULL),
('default', 'Samsung Vacuum Cleaner Power', NULL),
('default', 'Washing Machines Elextrolux', NULL),
('default', 'Zara Women Leather Bag', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_reservation`
--

CREATE TABLE `mg_inventory_reservation` (
  `reservation_id` int(10) UNSIGNED NOT NULL,
  `stock_id` int(10) UNSIGNED NOT NULL,
  `sku` varchar(64) NOT NULL,
  `quantity` decimal(10,4) NOT NULL DEFAULT '0.0000',
  `metadata` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_reservation`
--

INSERT INTO `mg_inventory_reservation` (`reservation_id`, `stock_id`, `sku`, `quantity`, `metadata`) VALUES
(1, 1, 'simplee', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"1\"}'),
(2, 1, 'simplee', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"2\"}'),
(3, 1, 'Beat Crossfade 2 Wireless Headphone', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"3\"}'),
(4, 1, 'Acer Aspire S24 All In One PC', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"4\"}'),
(5, 1, '24-WG085', -2.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"5\"}'),
(6, 1, 'Apple iMac 2017 21.5-inch Retina 4K', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"6\"}'),
(7, 1, 'Acer Aspire S24 All In One PC', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"7\"}'),
(8, 1, 'Beat Crossfade 2 Wireless Headphone', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"8\"}'),
(9, 1, 'Acer Aspire S24 All In One PC', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"9\"}'),
(10, 1, 'Beat Crossfade 2 Wireless Headphone', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"10\"}'),
(11, 1, 'Fuhlen Mouse for Gamer', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"11\"}'),
(12, 1, 'Philips HR1861 Whole Fruit Juicer', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"12\"}'),
(13, 1, 'Apple iMac 2017 21.5-inch Retina 4K', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"12\"}'),
(14, 1, 'Beat Crossfade 2 Wireless Headphone', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"13\"}'),
(15, 1, 'admin', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"14\"}'),
(16, 1, 'admin', 1.0000, '{\"event_type\":\"order_canceled\",\"object_type\":\"order\",\"object_id\":\"14\"}'),
(17, 1, 'Acer Aspire S24 All In One PC', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"15\"}'),
(18, 1, '24-WG085', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"15\"}'),
(19, 1, 'admin', -1.0000, '{\"event_type\":\"order_placed\",\"object_type\":\"order\",\"object_id\":\"16\"}');

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_shipment_source`
--

CREATE TABLE `mg_inventory_shipment_source` (
  `shipment_id` int(10) UNSIGNED NOT NULL,
  `source_code` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_source`
--

CREATE TABLE `mg_inventory_source` (
  `source_code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `enabled` smallint(5) UNSIGNED NOT NULL DEFAULT '1',
  `description` text,
  `latitude` decimal(8,6) DEFAULT NULL,
  `longitude` decimal(9,6) DEFAULT NULL,
  `country_id` varchar(2) NOT NULL,
  `region_id` int(10) UNSIGNED DEFAULT NULL,
  `region` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `street` varchar(255) DEFAULT NULL,
  `postcode` varchar(255) NOT NULL,
  `contact_name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `fax` varchar(255) DEFAULT NULL,
  `use_default_carrier_config` smallint(5) UNSIGNED NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_source`
--

INSERT INTO `mg_inventory_source` (`source_code`, `name`, `enabled`, `description`, `latitude`, `longitude`, `country_id`, `region_id`, `region`, `city`, `street`, `postcode`, `contact_name`, `email`, `phone`, `fax`, `use_default_carrier_config`) VALUES
('default', 'Default Source', 1, 'Default Source', 0.000000, 0.000000, 'US', NULL, NULL, NULL, NULL, '00000', NULL, NULL, NULL, NULL, 1);

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_source_carrier_link`
--

CREATE TABLE `mg_inventory_source_carrier_link` (
  `link_id` int(10) UNSIGNED NOT NULL,
  `source_code` varchar(255) NOT NULL,
  `carrier_code` varchar(255) NOT NULL,
  `position` smallint(5) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_source_item`
--

CREATE TABLE `mg_inventory_source_item` (
  `source_item_id` int(10) UNSIGNED NOT NULL,
  `source_code` varchar(255) NOT NULL,
  `sku` varchar(64) NOT NULL,
  `quantity` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `status` smallint(5) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_source_item`
--

INSERT INTO `mg_inventory_source_item` (`source_item_id`, `source_code`, `sku`, `quantity`, `status`) VALUES
(1, 'default', 'Philips HR1861 Whole Fruit Juicer', 25.0000, 1),
(3, 'default', 'Samsung Vacuum Cleaner Power', 25.0000, 1),
(5, 'default', 'Fuhlen Mouse for Gamer', 25.0000, 1),
(7, 'default', 'Acer Aspire S24 All In One PC', 25.0000, 1),
(9, 'default', 'Washing Machines Elextrolux', 25.0000, 1),
(11, 'default', 'Apple iMac 2017 21.5-inch Retina 4K', 25.0000, 1),
(13, 'default', 'Beat Crossfade 2 Wireless Headphone', 25.0000, 1),
(15, 'default', 'Navy Skinny Fit Suit With Wool', 25.0000, 1),
(17, 'default', 'Outdoor Crossbody Bag', 25.0000, 1),
(19, 'default', 'Zara Women Leather Bag', 0.0000, 1),
(20, 'default', 'Printed & Cold Shoulder T Shirts', 25.0000, 1),
(24, 'default', 'Getfastdeal', 10.0000, 1),
(26, 'default', 'simplee', 111.0000, 1),
(28, 'default', 'simplecsve', 111.0000, 1),
(31, 'default', 'Apple iphone 7', 25.0000, 1),
(65, 'default', '24-WG085', 100.0000, 1),
(71, 'default', '24-WG086', 100.0000, 1),
(80, 'default', '24-WG087', 100.0000, 1),
(81, 'default', '24-WG085_Group', 0.0000, 1),
(82, 'default', 'qqq', 111.0000, 1),
(84, 'default', 'admin', 100.0000, 1);

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_source_stock_link`
--

CREATE TABLE `mg_inventory_source_stock_link` (
  `link_id` int(10) UNSIGNED NOT NULL,
  `stock_id` int(10) UNSIGNED NOT NULL,
  `source_code` varchar(255) NOT NULL,
  `priority` smallint(5) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_source_stock_link`
--

INSERT INTO `mg_inventory_source_stock_link` (`link_id`, `stock_id`, `source_code`, `priority`) VALUES
(1, 1, 'default', 1);

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_stock`
--

CREATE TABLE `mg_inventory_stock` (
  `stock_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_stock`
--

INSERT INTO `mg_inventory_stock` (`stock_id`, `name`) VALUES
(1, 'Default Stock');

-- --------------------------------------------------------

--
-- Stand-in structure for view `mg_inventory_stock_1`
-- (See below for the actual view)
--
CREATE TABLE `mg_inventory_stock_1` (
`product_id` int(10) unsigned
,`website_id` smallint(5) unsigned
,`stock_id` smallint(5) unsigned
,`quantity` decimal(12,4)
,`is_salable` smallint(5) unsigned
,`sku` varchar(64)
);

-- --------------------------------------------------------

--
-- Table structure for table `mg_inventory_stock_sales_channel`
--

CREATE TABLE `mg_inventory_stock_sales_channel` (
  `type` varchar(64) NOT NULL,
  `code` varchar(64) NOT NULL,
  `stock_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mg_inventory_stock_sales_channel`
--

INSERT INTO `mg_inventory_stock_sales_channel` (`type`, `code`, `stock_id`) VALUES
('website', 'base', 1);

-- --------------------------------------------------------

--
-- Table structure for table `mg_klarna_core_order`
--

CREATE TABLE `mg_klarna_core_order` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Entity Id',
  `klarna_order_id` varchar(255) DEFAULT NULL COMMENT 'Klarna Order Id',
  `session_id` varchar(255) DEFAULT NULL COMMENT 'Session Id',
  `reservation_id` varchar(255) DEFAULT NULL COMMENT 'Reservation Id',
  `order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order Id',
  `is_acknowledged` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is Acknowledged'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Klarna Order';

-- --------------------------------------------------------

--
-- Table structure for table `mg_klarna_payments_quote`
--

CREATE TABLE `mg_klarna_payments_quote` (
  `payments_quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Payments Id',
  `session_id` varchar(255) DEFAULT NULL COMMENT 'Klarna Session Id',
  `client_token` text COMMENT 'Klarna Client Token',
  `authorization_token` varchar(255) DEFAULT NULL COMMENT 'Authorization Token',
  `is_active` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is Active',
  `quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Quote Id',
  `payment_methods` varchar(255) DEFAULT NULL COMMENT 'Payment Method Categories',
  `payment_method_info` text COMMENT 'Payment Method Category Info'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Klarna Payments Quote';

-- --------------------------------------------------------

--
-- Table structure for table `mg_layout_link`
--

CREATE TABLE `mg_layout_link` (
  `layout_link_id` int(10) UNSIGNED NOT NULL COMMENT 'Link Id',
  `store_id` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `theme_id` int(10) UNSIGNED NOT NULL COMMENT 'Theme id',
  `layout_update_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Layout Update Id',
  `is_temporary` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Defines whether Layout Update is Temporary'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Layout Link';

-- --------------------------------------------------------

--
-- Table structure for table `mg_layout_update`
--

CREATE TABLE `mg_layout_update` (
  `layout_update_id` int(10) UNSIGNED NOT NULL COMMENT 'Layout Update Id',
  `handle` varchar(255) DEFAULT NULL COMMENT 'Handle',
  `xml` text COMMENT 'Xml',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `updated_at` timestamp NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Update Timestamp'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Layout Updates';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_category`
--

CREATE TABLE `mg_magefan_blog_category` (
  `category_id` int(11) NOT NULL COMMENT 'Category ID',
  `title` varchar(255) DEFAULT NULL COMMENT 'Category Title',
  `meta_title` varchar(255) DEFAULT NULL COMMENT 'Category Meta Title',
  `meta_keywords` text COMMENT 'Category Meta Keywords',
  `meta_description` text COMMENT 'Category Meta Description',
  `identifier` varchar(100) DEFAULT NULL COMMENT 'Category String Identifier',
  `content_heading` varchar(255) DEFAULT NULL COMMENT 'Category Content Heading',
  `content` mediumtext COMMENT 'Category Content',
  `path` varchar(255) DEFAULT NULL COMMENT 'Category Path',
  `position` smallint(6) NOT NULL COMMENT 'Category Position',
  `posts_sort_by` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Post Sort By',
  `include_in_menu` smallint(6) DEFAULT NULL COMMENT 'Category In Menu',
  `is_active` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Is Category Active',
  `display_mode` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Display Mode',
  `page_layout` varchar(255) DEFAULT NULL COMMENT 'Post Layout',
  `layout_update_xml` text COMMENT 'Post Layout Update Content',
  `custom_theme` varchar(100) DEFAULT NULL COMMENT 'Post Custom Theme',
  `custom_layout` varchar(255) DEFAULT NULL COMMENT 'Post Custom Template',
  `custom_layout_update_xml` text COMMENT 'Post Custom Layout Update Content',
  `custom_theme_from` date DEFAULT NULL COMMENT 'Post Custom Theme Active From Date',
  `custom_theme_to` date DEFAULT NULL COMMENT 'Post Custom Theme Active To Date'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Magefan Blog Category Table';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_category_store`
--

CREATE TABLE `mg_magefan_blog_category_store` (
  `category_id` int(11) NOT NULL COMMENT 'Category ID',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Magefan Blog Category To Store Linkage Table';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_comment`
--

CREATE TABLE `mg_magefan_blog_comment` (
  `comment_id` int(11) NOT NULL COMMENT 'Comment ID',
  `parent_id` int(11) NOT NULL COMMENT 'Parent Comment ID',
  `post_id` int(11) NOT NULL COMMENT 'Post ID',
  `customer_id` int(11) DEFAULT NULL COMMENT 'Customer ID',
  `admin_id` int(11) DEFAULT NULL COMMENT 'Admin User ID',
  `status` smallint(6) NOT NULL COMMENT 'Comment status',
  `author_type` smallint(6) NOT NULL COMMENT 'Author Type',
  `author_nickname` varchar(255) NOT NULL COMMENT 'Comment Author Nickname',
  `author_email` varchar(255) DEFAULT NULL COMMENT 'Comment Author Email',
  `text` mediumtext COMMENT 'Text',
  `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Comment Creation Time',
  `update_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Comment Update Time'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='mg_magefan_blog_comment';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_post_category`
--

CREATE TABLE `mg_magefan_blog_post_category` (
  `post_id` int(11) NOT NULL COMMENT 'Post ID',
  `category_id` int(11) NOT NULL COMMENT 'Category ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Magefan Blog Post To Category Linkage Table';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_post_relatedpost`
--

CREATE TABLE `mg_magefan_blog_post_relatedpost` (
  `post_id` int(11) NOT NULL COMMENT 'Post ID',
  `related_id` int(11) NOT NULL COMMENT 'Related Post ID',
  `position` int(11) NOT NULL COMMENT 'Position'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Magefan Blog Post To Post Linkage Table';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_post_relatedproduct`
--

CREATE TABLE `mg_magefan_blog_post_relatedproduct` (
  `post_id` int(11) NOT NULL COMMENT 'Post ID',
  `related_id` int(10) UNSIGNED NOT NULL COMMENT 'Related Product ID',
  `position` int(11) NOT NULL COMMENT 'Position'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Magefan Blog Post To Product Linkage Table';

-- --------------------------------------------------------

--
-- Table structure for table `mg_magefan_blog_post_store`
--

CREATE TABLE `mg_magefan_blog_post_store` (
  `post_id` int(11) NOT NULL COMMENT 'Post ID',
  `store_id` smallint(5) UNSIGNED NOT NULL COMMENT 'Store ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Magefan Blog Post To Store Linkage Table';

--
-- Dumping data for table `mg_magefan_blog_post_store`
--

INSERT INTO `mg_magefan_blog_post_store` (`post_id`, `store_id`) VALUES
(1, 0),
(2, 0),
(3, 0),
(4, 0),
(5, 0);

-- --------------------------------------------------------

--
-- Structure for view `mg_inventory_stock_1`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`getfastd_mg1`@`localhost` SQL SECURITY INVOKER VIEW `mg_inventory_stock_1`  AS  select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`mg_cataloginventory_stock_status` `legacy_stock_status` join `mg_catalog_product_entity` `product` on((`legacy_stock_status`.`product_id` = `product`.`entity_id`))) ;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `mg_adminnotification_inbox`
--
ALTER TABLE `mg_adminnotification_inbox`
  ADD PRIMARY KEY (`notification_id`),
  ADD KEY `MG_ADMINNOTIFICATION_INBOX_SEVERITY` (`severity`),
  ADD KEY `MG_ADMINNOTIFICATION_INBOX_IS_READ` (`is_read`),
  ADD KEY `MG_ADMINNOTIFICATION_INBOX_IS_REMOVE` (`is_remove`);

--
-- Indexes for table `mg_admin_analytics_usage_version_log`
--
ALTER TABLE `mg_admin_analytics_usage_version_log`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `MG_ADMIN_ANALYTICS_USAGE_VERSION_LOG_LAST_VIEWED_IN_VERSION` (`last_viewed_in_version`);

--
-- Indexes for table `mg_admin_system_messages`
--
ALTER TABLE `mg_admin_system_messages`
  ADD PRIMARY KEY (`identity`);

--
-- Indexes for table `mg_amazon_customer`
--
ALTER TABLE `mg_amazon_customer`
  ADD PRIMARY KEY (`entity_id`),
  ADD UNIQUE KEY `MG_AMAZON_CUSTOMER_CUSTOMER_ID_AMAZON_ID` (`customer_id`,`amazon_id`),
  ADD UNIQUE KEY `MG_AMAZON_CUSTOMER_CUSTOMER_ID` (`customer_id`);

--
-- Indexes for table `mg_amazon_pending_authorization`
--
ALTER TABLE `mg_amazon_pending_authorization`
  ADD PRIMARY KEY (`entity_id`),
  ADD UNIQUE KEY `UNQ_93AE307BD1E730410C4521F729CA089A` (`order_id`,`payment_id`,`authorization_id`);

--
-- Indexes for table `mg_amazon_pending_capture`
--
ALTER TABLE `mg_amazon_pending_capture`
  ADD PRIMARY KEY (`entity_id`),
  ADD UNIQUE KEY `MG_AMAZON_PENDING_CAPTURE_ORDER_ID_PAYMENT_ID_CAPTURE_ID` (`order_id`,`payment_id`,`capture_id`);

--
-- Indexes for table `mg_amazon_pending_refund`
--
ALTER TABLE `mg_amazon_pending_refund`
  ADD PRIMARY KEY (`entity_id`),
  ADD UNIQUE KEY `MG_AMAZON_PENDING_REFUND_ORDER_ID_PAYMENT_ID_REFUND_ID` (`order_id`,`payment_id`,`refund_id`);

--
-- Indexes for table `mg_amazon_quote`
--
ALTER TABLE `mg_amazon_quote`
  ADD PRIMARY KEY (`entity_id`),
  ADD UNIQUE KEY `MG_AMAZON_QUOTE_QUOTE_ID` (`quote_id`);

--
-- Indexes for table `mg_amazon_sales_order`
--
ALTER TABLE `mg_amazon_sales_order`
  ADD PRIMARY KEY (`entity_id`),
  ADD UNIQUE KEY `MG_AMAZON_SALES_ORDER_ORDER_ID` (`order_id`);

--
-- Indexes for table `mg_authorization_role`
--
ALTER TABLE `mg_authorization_role`
  ADD PRIMARY KEY (`role_id`),
  ADD KEY `MG_AUTHORIZATION_ROLE_PARENT_ID_SORT_ORDER` (`parent_id`,`sort_order`),
  ADD KEY `MG_AUTHORIZATION_ROLE_TREE_LEVEL` (`tree_level`);

--
-- Indexes for table `mg_authorization_rule`
--
ALTER TABLE `mg_authorization_rule`
  ADD PRIMARY KEY (`rule_id`),
  ADD KEY `MG_AUTHORIZATION_RULE_RESOURCE_ID_ROLE_ID` (`resource_id`,`role_id`),
  ADD KEY `MG_AUTHORIZATION_RULE_ROLE_ID_RESOURCE_ID` (`role_id`,`resource_id`);

--
-- Indexes for table `mg_cache`
--
ALTER TABLE `mg_cache`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_CACHE_EXPIRE_TIME` (`expire_time`);

--
-- Indexes for table `mg_cache_tag`
--
ALTER TABLE `mg_cache_tag`
  ADD PRIMARY KEY (`tag`,`cache_id`),
  ADD KEY `MG_CACHE_TAG_CACHE_ID` (`cache_id`);

--
-- Indexes for table `mg_captcha_log`
--
ALTER TABLE `mg_captcha_log`
  ADD PRIMARY KEY (`type`,`value`);

--
-- Indexes for table `mg_cataloginventory_stock`
--
ALTER TABLE `mg_cataloginventory_stock`
  ADD PRIMARY KEY (`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_cataloginventory_stock_item`
--
ALTER TABLE `mg_cataloginventory_stock_item`
  ADD PRIMARY KEY (`item_id`),
  ADD UNIQUE KEY `MG_CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID` (`product_id`,`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_ITEM_STOCK_ID` (`stock_id`);

--
-- Indexes for table `mg_cataloginventory_stock_status`
--
ALTER TABLE `mg_cataloginventory_stock_status`
  ADD PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`);

--
-- Indexes for table `mg_cataloginventory_stock_status_idx`
--
ALTER TABLE `mg_cataloginventory_stock_status_idx`
  ADD PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_IDX_STOCK_ID` (`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_IDX_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_cataloginventory_stock_status_replica`
--
ALTER TABLE `mg_cataloginventory_stock_status_replica`
  ADD PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`);

--
-- Indexes for table `mg_cataloginventory_stock_status_tmp`
--
ALTER TABLE `mg_cataloginventory_stock_status_tmp`
  ADD PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_TMP_STOCK_ID` (`stock_id`),
  ADD KEY `MG_CATALOGINVENTORY_STOCK_STATUS_TMP_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalogrule`
--
ALTER TABLE `mg_catalogrule`
  ADD PRIMARY KEY (`rule_id`),
  ADD KEY `MG_CATALOGRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE` (`is_active`,`sort_order`,`to_date`,`from_date`);

--
-- Indexes for table `mg_catalogrule_customer_group`
--
ALTER TABLE `mg_catalogrule_customer_group`
  ADD PRIMARY KEY (`rule_id`,`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID` (`customer_group_id`);

--
-- Indexes for table `mg_catalogrule_group_website`
--
ALTER TABLE `mg_catalogrule_group_website`
  ADD PRIMARY KEY (`rule_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalogrule_group_website_replica`
--
ALTER TABLE `mg_catalogrule_group_website_replica`
  ADD PRIMARY KEY (`rule_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalogrule_product`
--
ALTER TABLE `mg_catalogrule_product`
  ADD PRIMARY KEY (`rule_product_id`),
  ADD UNIQUE KEY `UNQ_DA1358CC06FA5B33D4A0E2FC597C56CD` (`rule_id`,`from_time`,`to_time`,`website_id`,`customer_group_id`,`product_id`,`sort_order`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_FROM_TIME` (`from_time`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_TO_TIME` (`to_time`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalogrule_product_price`
--
ALTER TABLE `mg_catalogrule_product_price`
  ADD PRIMARY KEY (`rule_product_price_id`),
  ADD UNIQUE KEY `MG_CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID` (`rule_date`,`website_id`,`customer_group_id`,`product_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalogrule_product_price_replica`
--
ALTER TABLE `mg_catalogrule_product_price_replica`
  ADD PRIMARY KEY (`rule_product_price_id`),
  ADD UNIQUE KEY `MG_CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID` (`rule_date`,`website_id`,`customer_group_id`,`product_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalogrule_product_replica`
--
ALTER TABLE `mg_catalogrule_product_replica`
  ADD PRIMARY KEY (`rule_product_id`),
  ADD UNIQUE KEY `UNQ_DA1358CC06FA5B33D4A0E2FC597C56CD` (`rule_id`,`from_time`,`to_time`,`website_id`,`customer_group_id`,`product_id`,`sort_order`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_FROM_TIME` (`from_time`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_TO_TIME` (`to_time`),
  ADD KEY `MG_CATALOGRULE_PRODUCT_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalogrule_website`
--
ALTER TABLE `mg_catalogrule_website`
  ADD PRIMARY KEY (`rule_id`,`website_id`),
  ADD KEY `MG_CATALOGRULE_WEBSITE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalogsearch_fulltext_scope1`
--
ALTER TABLE `mg_catalogsearch_fulltext_scope1`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`);
ALTER TABLE `mg_catalogsearch_fulltext_scope1` ADD FULLTEXT KEY `FTI_FULLTEXT_DATA_INDEX` (`data_index`);

--
-- Indexes for table `mg_catalogsearch_recommendations`
--
ALTER TABLE `mg_catalogsearch_recommendations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_CATSRCH_RECOMMENDATIONS_QR_ID_MG_SRCH_QR_QR_ID` (`query_id`),
  ADD KEY `MG_CATSRCH_RECOMMENDATIONS_RELATION_ID_MG_SRCH_QR_QR_ID` (`relation_id`);

--
-- Indexes for table `mg_catalog_category_entity`
--
ALTER TABLE `mg_catalog_category_entity`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_LEVEL` (`level`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_PATH` (`path`);

--
-- Indexes for table `mg_catalog_category_entity_datetime`
--
ALTER TABLE `mg_catalog_category_entity_datetime`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_CTGR_ENTT_DTIME_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_category_entity_decimal`
--
ALTER TABLE `mg_catalog_category_entity_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_CTGR_ENTT_DEC_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_category_entity_int`
--
ALTER TABLE `mg_catalog_category_entity_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_INT_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_category_entity_text`
--
ALTER TABLE `mg_catalog_category_entity_text`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_category_entity_varchar`
--
ALTER TABLE `mg_catalog_category_entity_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_CTGR_ENTT_VCHR_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_category_product`
--
ALTER TABLE `mg_catalog_category_product`
  ADD PRIMARY KEY (`entity_id`,`category_id`,`product_id`),
  ADD UNIQUE KEY `MG_CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID` (`category_id`,`product_id`),
  ADD KEY `MG_CATALOG_CATEGORY_PRODUCT_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalog_category_product_index`
--
ALTER TABLE `mg_catalog_category_product_index`
  ADD PRIMARY KEY (`category_id`,`product_id`,`store_id`),
  ADD KEY `MG_CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`),
  ADD KEY `IDX_9F0DE3351D175F137D28704CB260F849` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`);

--
-- Indexes for table `mg_catalog_category_product_index_replica`
--
ALTER TABLE `mg_catalog_category_product_index_replica`
  ADD PRIMARY KEY (`category_id`,`product_id`,`store_id`),
  ADD KEY `MG_CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`),
  ADD KEY `IDX_9F0DE3351D175F137D28704CB260F849` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`);

--
-- Indexes for table `mg_catalog_category_product_index_store1`
--
ALTER TABLE `mg_catalog_category_product_index_store1`
  ADD PRIMARY KEY (`category_id`,`product_id`,`store_id`),
  ADD KEY `IDX_1F417D79EB51ACAFCD4D0496B6BEF948` (`product_id`,`store_id`,`category_id`,`visibility`),
  ADD KEY `IDX_9D5B57372D2B56CAA463B6ADB03CCA20` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`);

--
-- Indexes for table `mg_catalog_category_product_index_store1_replica`
--
ALTER TABLE `mg_catalog_category_product_index_store1_replica`
  ADD PRIMARY KEY (`category_id`,`product_id`,`store_id`),
  ADD KEY `MG_CAT_CTGR_PRD_IDX_STORE1_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`),
  ADD KEY `IDX_F1B81EB099CE1B12B484EC6C0F395163` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`);

--
-- Indexes for table `mg_catalog_category_product_index_tmp`
--
ALTER TABLE `mg_catalog_category_product_index_tmp`
  ADD PRIMARY KEY (`category_id`,`product_id`,`store_id`),
  ADD KEY `MG_CAT_CTGR_PRD_IDX_TMP_PRD_ID_CTGR_ID_STORE_ID` (`product_id`,`category_id`,`store_id`);

--
-- Indexes for table `mg_catalog_compare_item`
--
ALTER TABLE `mg_catalog_compare_item`
  ADD PRIMARY KEY (`catalog_compare_item_id`),
  ADD KEY `MG_CATALOG_COMPARE_ITEM_PRODUCT_ID` (`product_id`),
  ADD KEY `MG_CATALOG_COMPARE_ITEM_VISITOR_ID_PRODUCT_ID` (`visitor_id`,`product_id`),
  ADD KEY `MG_CATALOG_COMPARE_ITEM_CUSTOMER_ID_PRODUCT_ID` (`customer_id`,`product_id`),
  ADD KEY `MG_CATALOG_COMPARE_ITEM_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_eav_attribute`
--
ALTER TABLE `mg_catalog_eav_attribute`
  ADD PRIMARY KEY (`attribute_id`),
  ADD KEY `MG_CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY` (`used_for_sort_by`),
  ADD KEY `MG_CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING` (`used_in_product_listing`);

--
-- Indexes for table `mg_catalog_product_bundle_option`
--
ALTER TABLE `mg_catalog_product_bundle_option`
  ADD PRIMARY KEY (`option_id`),
  ADD KEY `MG_CATALOG_PRODUCT_BUNDLE_OPTION_PARENT_ID` (`parent_id`);

--
-- Indexes for table `mg_catalog_product_bundle_option_value`
--
ALTER TABLE `mg_catalog_product_bundle_option_value`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_BNDL_OPT_VAL_OPT_ID_PARENT_PRD_ID_STORE_ID` (`option_id`,`parent_product_id`,`store_id`);

--
-- Indexes for table `mg_catalog_product_bundle_price_index`
--
ALTER TABLE `mg_catalog_product_bundle_price_index`
  ADD PRIMARY KEY (`entity_id`,`website_id`,`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_CUSTOMER_GROUP_ID` (`customer_group_id`);

--
-- Indexes for table `mg_catalog_product_bundle_selection`
--
ALTER TABLE `mg_catalog_product_bundle_selection`
  ADD PRIMARY KEY (`selection_id`),
  ADD KEY `MG_CATALOG_PRODUCT_BUNDLE_SELECTION_OPTION_ID` (`option_id`),
  ADD KEY `MG_CATALOG_PRODUCT_BUNDLE_SELECTION_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalog_product_bundle_selection_price`
--
ALTER TABLE `mg_catalog_product_bundle_selection_price`
  ADD PRIMARY KEY (`selection_id`,`parent_product_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalog_product_bundle_stock_index`
--
ALTER TABLE `mg_catalog_product_bundle_stock_index`
  ADD PRIMARY KEY (`entity_id`,`website_id`,`stock_id`,`option_id`);

--
-- Indexes for table `mg_catalog_product_entity`
--
ALTER TABLE `mg_catalog_product_entity`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID` (`attribute_set_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_SKU` (`sku`);

--
-- Indexes for table `mg_catalog_product_entity_datetime`
--
ALTER TABLE `mg_catalog_product_entity_datetime`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_ENTT_DTIME_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_entity_decimal`
--
ALTER TABLE `mg_catalog_product_entity_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_ENTT_DEC_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_catalog_product_entity_gallery`
--
ALTER TABLE `mg_catalog_product_entity_gallery`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_ENTT_GLR_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_GALLERY_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_entity_int`
--
ALTER TABLE `mg_catalog_product_entity_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_INT_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_entity_media_gallery`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery`
  ADD PRIMARY KEY (`value_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_catalog_product_entity_media_gallery_value`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value`
  ADD PRIMARY KEY (`record_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_ENTITY_ID` (`entity_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_VALUE_ID` (`value_id`),
  ADD KEY `MG_CAT_PRD_ENTT_MDA_GLR_VAL_ENTT_ID_VAL_ID_STORE_ID` (`entity_id`,`value_id`,`store_id`);

--
-- Indexes for table `mg_catalog_product_entity_media_gallery_value_to_entity`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value_to_entity`
  ADD UNIQUE KEY `MG_CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID` (`value_id`,`entity_id`),
  ADD KEY `FK_35C200806C80AA0AFA7EAD50A16DF87B` (`entity_id`);

--
-- Indexes for table `mg_catalog_product_entity_media_gallery_value_video`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value_video`
  ADD UNIQUE KEY `MG_CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_VAL_ID_STORE_ID` (`value_id`,`store_id`),
  ADD KEY `MG_CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_STORE_ID_MG_STORE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_entity_text`
--
ALTER TABLE `mg_catalog_product_entity_text`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_entity_tier_price`
--
ALTER TABLE `mg_catalog_product_entity_tier_price`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `UNQ_C993396E720E6ED52BF4AD082B2ACE02` (`entity_id`,`all_groups`,`customer_group_id`,`qty`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalog_product_entity_varchar`
--
ALTER TABLE `mg_catalog_product_entity_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_ENTT_VCHR_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_frontend_action`
--
ALTER TABLE `mg_catalog_product_frontend_action`
  ADD PRIMARY KEY (`action_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_FRONTEND_ACTION_VISITOR_ID_PRODUCT_ID_TYPE_ID` (`visitor_id`,`product_id`,`type_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_FRONTEND_ACTION_CSTR_ID_PRD_ID_TYPE_ID` (`customer_id`,`product_id`,`type_id`),
  ADD KEY `MG_CAT_PRD_FRONTEND_ACTION_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` (`product_id`);

--
-- Indexes for table `mg_catalog_product_index_eav`
--
ALTER TABLE `mg_catalog_product_index_eav`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_decimal`
--
ALTER TABLE `mg_catalog_product_index_eav_decimal`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_decimal_idx`
--
ALTER TABLE `mg_catalog_product_index_eav_decimal_idx`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_decimal_replica`
--
ALTER TABLE `mg_catalog_product_index_eav_decimal_replica`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_decimal_tmp`
--
ALTER TABLE `mg_catalog_product_index_eav_decimal_tmp`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_idx`
--
ALTER TABLE `mg_catalog_product_index_eav_idx`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_IDX_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_IDX_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_IDX_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_replica`
--
ALTER TABLE `mg_catalog_product_index_eav_replica`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_eav_tmp`
--
ALTER TABLE `mg_catalog_product_index_eav_tmp`
  ADD PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_TMP_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_TMP_STORE_ID` (`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_EAV_TMP_VALUE` (`value`);

--
-- Indexes for table `mg_catalog_product_index_price`
--
ALTER TABLE `mg_catalog_product_index_price`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE` (`min_price`),
  ADD KEY `MG_CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE` (`website_id`,`customer_group_id`,`min_price`);

--
-- Indexes for table `mg_catalog_product_index_price_bundle_idx`
--
ALTER TABLE `mg_catalog_product_index_price_bundle_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_bundle_opt_idx`
--
ALTER TABLE `mg_catalog_product_index_price_bundle_opt_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`);

--
-- Indexes for table `mg_catalog_product_index_price_bundle_opt_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_bundle_opt_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`);

--
-- Indexes for table `mg_catalog_product_index_price_bundle_sel_idx`
--
ALTER TABLE `mg_catalog_product_index_price_bundle_sel_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`,`selection_id`);

--
-- Indexes for table `mg_catalog_product_index_price_bundle_sel_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_bundle_sel_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`,`selection_id`);

--
-- Indexes for table `mg_catalog_product_index_price_bundle_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_bundle_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_cfg_opt_agr_idx`
--
ALTER TABLE `mg_catalog_product_index_price_cfg_opt_agr_idx`
  ADD PRIMARY KEY (`parent_id`,`child_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_cfg_opt_agr_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_cfg_opt_agr_tmp`
  ADD PRIMARY KEY (`parent_id`,`child_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_cfg_opt_idx`
--
ALTER TABLE `mg_catalog_product_index_price_cfg_opt_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_cfg_opt_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_cfg_opt_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_downlod_idx`
--
ALTER TABLE `mg_catalog_product_index_price_downlod_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_downlod_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_downlod_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_final_idx`
--
ALTER TABLE `mg_catalog_product_index_price_final_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_final_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_final_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_idx`
--
ALTER TABLE `mg_catalog_product_index_price_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_IDX_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_IDX_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_IDX_MIN_PRICE` (`min_price`);

--
-- Indexes for table `mg_catalog_product_index_price_opt_agr_idx`
--
ALTER TABLE `mg_catalog_product_index_price_opt_agr_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`);

--
-- Indexes for table `mg_catalog_product_index_price_opt_agr_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_opt_agr_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`);

--
-- Indexes for table `mg_catalog_product_index_price_opt_idx`
--
ALTER TABLE `mg_catalog_product_index_price_opt_idx`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_opt_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_opt_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`);

--
-- Indexes for table `mg_catalog_product_index_price_replica`
--
ALTER TABLE `mg_catalog_product_index_price_replica`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE` (`min_price`),
  ADD KEY `MG_CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE` (`website_id`,`customer_group_id`,`min_price`);

--
-- Indexes for table `mg_catalog_product_index_price_tmp`
--
ALTER TABLE `mg_catalog_product_index_price_tmp`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_TMP_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_TMP_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_PRICE_TMP_MIN_PRICE` (`min_price`);

--
-- Indexes for table `mg_catalog_product_index_tier_price`
--
ALTER TABLE `mg_catalog_product_index_tier_price`
  ADD PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_TIER_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_TIER_PRICE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalog_product_index_website`
--
ALTER TABLE `mg_catalog_product_index_website`
  ADD PRIMARY KEY (`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_INDEX_WEBSITE_WEBSITE_DATE` (`website_date`);

--
-- Indexes for table `mg_catalog_product_link`
--
ALTER TABLE `mg_catalog_product_link`
  ADD PRIMARY KEY (`link_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_LNK_LNK_TYPE_ID_PRD_ID_LNKED_PRD_ID` (`link_type_id`,`product_id`,`linked_product_id`),
  ADD KEY `MG_CATALOG_PRODUCT_LINK_PRODUCT_ID` (`product_id`),
  ADD KEY `MG_CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID` (`linked_product_id`);

--
-- Indexes for table `mg_catalog_product_link_attribute`
--
ALTER TABLE `mg_catalog_product_link_attribute`
  ADD PRIMARY KEY (`product_link_attribute_id`),
  ADD KEY `MG_CATALOG_PRODUCT_LINK_ATTRIBUTE_LINK_TYPE_ID` (`link_type_id`);

--
-- Indexes for table `mg_catalog_product_link_attribute_decimal`
--
ALTER TABLE `mg_catalog_product_link_attribute_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`),
  ADD KEY `MG_CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID` (`link_id`);

--
-- Indexes for table `mg_catalog_product_link_attribute_int`
--
ALTER TABLE `mg_catalog_product_link_attribute_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`),
  ADD KEY `MG_CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID` (`link_id`);

--
-- Indexes for table `mg_catalog_product_link_attribute_varchar`
--
ALTER TABLE `mg_catalog_product_link_attribute_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`),
  ADD KEY `MG_CATALOG_PRODUCT_LINK_ATTRIBUTE_VARCHAR_LINK_ID` (`link_id`);

--
-- Indexes for table `mg_catalog_product_link_type`
--
ALTER TABLE `mg_catalog_product_link_type`
  ADD PRIMARY KEY (`link_type_id`);

--
-- Indexes for table `mg_catalog_product_option`
--
ALTER TABLE `mg_catalog_product_option`
  ADD PRIMARY KEY (`option_id`),
  ADD KEY `MG_CATALOG_PRODUCT_OPTION_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_catalog_product_option_price`
--
ALTER TABLE `mg_catalog_product_option_price`
  ADD PRIMARY KEY (`option_price_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID_STORE_ID` (`option_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_OPTION_PRICE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_option_title`
--
ALTER TABLE `mg_catalog_product_option_title`
  ADD PRIMARY KEY (`option_title_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID` (`option_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_OPTION_TITLE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_option_type_price`
--
ALTER TABLE `mg_catalog_product_option_type_price`
  ADD PRIMARY KEY (`option_type_price_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID_STORE_ID` (`option_type_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_option_type_title`
--
ALTER TABLE `mg_catalog_product_option_type_title`
  ADD PRIMARY KEY (`option_type_title_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID_STORE_ID` (`option_type_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_option_type_value`
--
ALTER TABLE `mg_catalog_product_option_type_value`
  ADD PRIMARY KEY (`option_type_id`),
  ADD KEY `MG_CATALOG_PRODUCT_OPTION_TYPE_VALUE_OPTION_ID` (`option_id`);

--
-- Indexes for table `mg_catalog_product_relation`
--
ALTER TABLE `mg_catalog_product_relation`
  ADD PRIMARY KEY (`parent_id`,`child_id`),
  ADD KEY `MG_CATALOG_PRODUCT_RELATION_CHILD_ID` (`child_id`);

--
-- Indexes for table `mg_catalog_product_super_attribute`
--
ALTER TABLE `mg_catalog_product_super_attribute`
  ADD PRIMARY KEY (`product_super_attribute_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID` (`product_id`,`attribute_id`);

--
-- Indexes for table `mg_catalog_product_super_attribute_label`
--
ALTER TABLE `mg_catalog_product_super_attribute_label`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CAT_PRD_SPR_ATTR_LBL_PRD_SPR_ATTR_ID_STORE_ID` (`product_super_attribute_id`,`store_id`),
  ADD KEY `MG_CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_catalog_product_super_link`
--
ALTER TABLE `mg_catalog_product_super_link`
  ADD PRIMARY KEY (`link_id`),
  ADD UNIQUE KEY `MG_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID` (`product_id`,`parent_id`),
  ADD KEY `MG_CATALOG_PRODUCT_SUPER_LINK_PARENT_ID` (`parent_id`);

--
-- Indexes for table `mg_catalog_product_website`
--
ALTER TABLE `mg_catalog_product_website`
  ADD PRIMARY KEY (`product_id`,`website_id`),
  ADD KEY `MG_CATALOG_PRODUCT_WEBSITE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_catalog_url_rewrite_product_category`
--
ALTER TABLE `mg_catalog_url_rewrite_product_category`
  ADD KEY `MG_CAT_URL_REWRITE_PRD_CTGR_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` (`product_id`),
  ADD KEY `FK_D2BB00D30043A5342877FA74E0638ADE` (`url_rewrite_id`),
  ADD KEY `MG_CATALOG_URL_REWRITE_PRODUCT_CATEGORY_CATEGORY_ID_PRODUCT_ID` (`category_id`,`product_id`);

--
-- Indexes for table `mg_ced_csmarketplace_notification`
--
ALTER TABLE `mg_ced_csmarketplace_notification`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_CED_CSMARKETPLACE_NOTIFICATIONS_VENDOR_ID_VENDOR_ID` (`id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor`
--
ALTER TABLE `mg_ced_csmarketplace_vendor`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_PARENT_ID` (`parent_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_datetime`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_datetime`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CED_CSMARKETPLACE_VENDOR_DATETIME_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_DTIME_ENTT_ID_ATTR_ID_VAL` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_decimal`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CED_CSMARKETPLACE_VENDOR_DECIMAL_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_form_attribute`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_form_attribute`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_int`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CED_CSMARKETPLACE_VENDOR_INT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_INT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_payments`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_payments`
  ADD PRIMARY KEY (`entity_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_payments_requested`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_payments_requested`
  ADD PRIMARY KEY (`entity_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_products`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_products`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_id` (`product_id`),
  ADD KEY `ced_csmarketplace_vendor_product_vendor_id_to_fk` (`vendor_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_products_status`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_products_status`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `UNQ_494CDC81D017C2D3F43AE5471B1BCF41` (`vendor_id`,`product_id`,`store_id`,`status`),
  ADD KEY `ced_csmarketplace_vendor_products_status_product_id_to_fk` (`product_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_sales_order`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_sales_order`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `MG_CED_CSMARKETPLACE_VENDOR_SALES_ORDER_VENDOR_ID_ORDER_ID` (`vendor_id`,`order_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_shop`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_shop`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_text`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_text`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CED_CSMARKETPLACE_VENDOR_TEXT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_TEXT_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_ced_csmarketplace_vendor_varchar`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CED_CSMARKETPLACE_VENDOR_VARCHAR_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CED_CSMARKETPLACE_VENDOR_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_ced_csorder_creditmemo`
--
ALTER TABLE `mg_ced_csorder_creditmemo`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `MG_CED_CSORDER_SHIPMENT_VENDOR_ID_CREDITMEMO_ID` (`vendor_id`,`creditmemo_id`);

--
-- Indexes for table `mg_ced_csorder_invoice`
--
ALTER TABLE `mg_ced_csorder_invoice`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `MG_CED_CSORDER_INVOICE_VENDOR_ID_INVOICE_ID` (`vendor_id`,`invoice_id`);

--
-- Indexes for table `mg_ced_csorder_shipment`
--
ALTER TABLE `mg_ced_csorder_shipment`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `MG_CED_CSORDER_SHIPMENT_VENDOR_ID_SHIPMENT_ID` (`vendor_id`,`shipment_id`);

--
-- Indexes for table `mg_ced_csrma_chat`
--
ALTER TABLE `mg_ced_csrma_chat`
  ADD PRIMARY KEY (`rma_chat_id`),
  ADD KEY `MG_CED_CSRMA_CHAT_RMA_REQUEST_ID` (`rma_request_id`);

--
-- Indexes for table `mg_ced_csrma_items`
--
ALTER TABLE `mg_ced_csrma_items`
  ADD PRIMARY KEY (`rma_items_id`),
  ADD KEY `MG_CED_CSRMA_ITEMS_RMA_REQUEST_ID` (`rma_request_id`);

--
-- Indexes for table `mg_ced_csrma_notification`
--
ALTER TABLE `mg_ced_csrma_notification`
  ADD PRIMARY KEY (`rma_notification_id`),
  ADD KEY `MG_CED_CSRMA_NOTIFICATION_RMA_REQUEST_ID` (`rma_request_id`);

--
-- Indexes for table `mg_ced_csrma_request`
--
ALTER TABLE `mg_ced_csrma_request`
  ADD PRIMARY KEY (`rma_request_id`),
  ADD UNIQUE KEY `MG_CED_CSRMA_REQUEST_EXTERNAL_LINK` (`external_link`);

--
-- Indexes for table `mg_ced_csrma_shipping`
--
ALTER TABLE `mg_ced_csrma_shipping`
  ADD PRIMARY KEY (`rma_shippping_id`),
  ADD KEY `MG_CED_CSRMA_SHIPPING_RMA_REQUEST_ID` (`rma_request_id`);

--
-- Indexes for table `mg_ced_csrma_status`
--
ALTER TABLE `mg_ced_csrma_status`
  ADD PRIMARY KEY (`status_id`);

--
-- Indexes for table `mg_ced_cstransaction_vorder_items`
--
ALTER TABLE `mg_ced_cstransaction_vorder_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mg_ced_vendorproduct_review`
--
ALTER TABLE `mg_ced_vendorproduct_review`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mg_ced_vendor_attributes_set`
--
ALTER TABLE `mg_ced_vendor_attributes_set`
  ADD PRIMARY KEY (`id`,`vendor_id`);

--
-- Indexes for table `mg_ced_vendor_product_attributes`
--
ALTER TABLE `mg_ced_vendor_product_attributes`
  ADD PRIMARY KEY (`id`,`vendor_id`);

--
-- Indexes for table `mg_checkout_agreement`
--
ALTER TABLE `mg_checkout_agreement`
  ADD PRIMARY KEY (`agreement_id`);

--
-- Indexes for table `mg_checkout_agreement_store`
--
ALTER TABLE `mg_checkout_agreement_store`
  ADD PRIMARY KEY (`agreement_id`,`store_id`),
  ADD KEY `MG_CHECKOUT_AGREEMENT_STORE_STORE_ID_MG_STORE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_cms_block`
--
ALTER TABLE `mg_cms_block`
  ADD PRIMARY KEY (`block_id`);
ALTER TABLE `mg_cms_block` ADD FULLTEXT KEY `MG_CMS_BLOCK_TITLE_IDENTIFIER_CONTENT` (`title`,`identifier`,`content`);

--
-- Indexes for table `mg_cms_block_store`
--
ALTER TABLE `mg_cms_block_store`
  ADD PRIMARY KEY (`block_id`,`store_id`),
  ADD KEY `MG_CMS_BLOCK_STORE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_cms_page`
--
ALTER TABLE `mg_cms_page`
  ADD PRIMARY KEY (`page_id`),
  ADD KEY `MG_CMS_PAGE_IDENTIFIER` (`identifier`);
ALTER TABLE `mg_cms_page` ADD FULLTEXT KEY `FTI_71D1A212F317A5F021C662112FC29EE8` (`title`,`meta_keywords`,`meta_description`,`identifier`,`content`);

--
-- Indexes for table `mg_cms_page_store`
--
ALTER TABLE `mg_cms_page_store`
  ADD PRIMARY KEY (`page_id`,`store_id`),
  ADD KEY `MG_CMS_PAGE_STORE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_core_config_data`
--
ALTER TABLE `mg_core_config_data`
  ADD PRIMARY KEY (`config_id`),
  ADD UNIQUE KEY `MG_CORE_CONFIG_DATA_SCOPE_SCOPE_ID_PATH` (`scope`,`scope_id`,`path`);

--
-- Indexes for table `mg_cron_schedule`
--
ALTER TABLE `mg_cron_schedule`
  ADD PRIMARY KEY (`schedule_id`),
  ADD KEY `MG_CRON_SCHEDULE_JOB_CODE` (`job_code`),
  ADD KEY `MG_CRON_SCHEDULE_SCHEDULED_AT_STATUS` (`scheduled_at`,`status`);

--
-- Indexes for table `mg_customer_address_entity`
--
ALTER TABLE `mg_customer_address_entity`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_PARENT_ID` (`parent_id`);

--
-- Indexes for table `mg_customer_address_entity_datetime`
--
ALTER TABLE `mg_customer_address_entity_datetime`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_address_entity_decimal`
--
ALTER TABLE `mg_customer_address_entity_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_address_entity_int`
--
ALTER TABLE `mg_customer_address_entity_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_address_entity_text`
--
ALTER TABLE `mg_customer_address_entity_text`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ADDRESS_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_customer_address_entity_varchar`
--
ALTER TABLE `mg_customer_address_entity_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_eav_attribute`
--
ALTER TABLE `mg_customer_eav_attribute`
  ADD PRIMARY KEY (`attribute_id`);

--
-- Indexes for table `mg_customer_eav_attribute_website`
--
ALTER TABLE `mg_customer_eav_attribute_website`
  ADD PRIMARY KEY (`attribute_id`,`website_id`),
  ADD KEY `MG_CUSTOMER_EAV_ATTRIBUTE_WEBSITE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_customer_entity_datetime`
--
ALTER TABLE `mg_customer_entity_datetime`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_entity_decimal`
--
ALTER TABLE `mg_customer_entity_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_entity_int`
--
ALTER TABLE `mg_customer_entity_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_entity_text`
--
ALTER TABLE `mg_customer_entity_text`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_customer_entity_varchar`
--
ALTER TABLE `mg_customer_entity_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`);

--
-- Indexes for table `mg_customer_form_attribute`
--
ALTER TABLE `mg_customer_form_attribute`
  ADD PRIMARY KEY (`form_code`,`attribute_id`),
  ADD KEY `MG_CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_customer_grid_flat`
--
ALTER TABLE `mg_customer_grid_flat`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_GROUP_ID` (`group_id`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_CREATED_AT` (`created_at`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_CONFIRMATION` (`confirmation`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_DOB` (`dob`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_GENDER` (`gender`),
  ADD KEY `MG_CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID` (`billing_country_id`);
ALTER TABLE `mg_customer_grid_flat` ADD FULLTEXT KEY `FTI_98FF5E448D1F1AF1822CC36867185AC8` (`name`,`email`,`created_in`,`taxvat`,`shipping_full`,`billing_full`,`billing_firstname`,`billing_lastname`,`billing_telephone`,`billing_postcode`,`billing_region`,`billing_city`,`billing_fax`,`billing_company`);

--
-- Indexes for table `mg_customer_group`
--
ALTER TABLE `mg_customer_group`
  ADD PRIMARY KEY (`customer_group_id`);

--
-- Indexes for table `mg_customer_log`
--
ALTER TABLE `mg_customer_log`
  ADD PRIMARY KEY (`log_id`),
  ADD UNIQUE KEY `MG_CUSTOMER_LOG_CUSTOMER_ID` (`customer_id`);

--
-- Indexes for table `mg_design_change`
--
ALTER TABLE `mg_design_change`
  ADD PRIMARY KEY (`design_change_id`),
  ADD KEY `MG_DESIGN_CHANGE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_design_config_grid_flat`
--
ALTER TABLE `mg_design_config_grid_flat`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_DESIGN_CONFIG_GRID_FLAT_STORE_WEBSITE_ID` (`store_website_id`),
  ADD KEY `MG_DESIGN_CONFIG_GRID_FLAT_STORE_GROUP_ID` (`store_group_id`),
  ADD KEY `MG_DESIGN_CONFIG_GRID_FLAT_STORE_ID` (`store_id`);
ALTER TABLE `mg_design_config_grid_flat` ADD FULLTEXT KEY `MG_DESIGN_CONFIG_GRID_FLAT_THEME_THEME_ID` (`theme_theme_id`);

--
-- Indexes for table `mg_directory_country`
--
ALTER TABLE `mg_directory_country`
  ADD PRIMARY KEY (`country_id`);

--
-- Indexes for table `mg_directory_country_format`
--
ALTER TABLE `mg_directory_country_format`
  ADD PRIMARY KEY (`country_format_id`),
  ADD UNIQUE KEY `MG_DIRECTORY_COUNTRY_FORMAT_COUNTRY_ID_TYPE` (`country_id`,`type`);

--
-- Indexes for table `mg_directory_country_region`
--
ALTER TABLE `mg_directory_country_region`
  ADD PRIMARY KEY (`region_id`),
  ADD KEY `MG_DIRECTORY_COUNTRY_REGION_COUNTRY_ID` (`country_id`);

--
-- Indexes for table `mg_directory_country_region_name`
--
ALTER TABLE `mg_directory_country_region_name`
  ADD PRIMARY KEY (`locale`,`region_id`),
  ADD KEY `MG_DIRECTORY_COUNTRY_REGION_NAME_REGION_ID` (`region_id`);

--
-- Indexes for table `mg_directory_currency_rate`
--
ALTER TABLE `mg_directory_currency_rate`
  ADD PRIMARY KEY (`currency_from`,`currency_to`),
  ADD KEY `MG_DIRECTORY_CURRENCY_RATE_CURRENCY_TO` (`currency_to`);

--
-- Indexes for table `mg_downloadable_link`
--
ALTER TABLE `mg_downloadable_link`
  ADD PRIMARY KEY (`link_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PRODUCT_ID_SORT_ORDER` (`product_id`,`sort_order`);

--
-- Indexes for table `mg_downloadable_link_price`
--
ALTER TABLE `mg_downloadable_link_price`
  ADD PRIMARY KEY (`price_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PRICE_LINK_ID` (`link_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PRICE_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_downloadable_link_purchased`
--
ALTER TABLE `mg_downloadable_link_purchased`
  ADD PRIMARY KEY (`purchased_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PURCHASED_ORDER_ID` (`order_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PURCHASED_ORDER_ITEM_ID` (`order_item_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PURCHASED_CUSTOMER_ID` (`customer_id`);

--
-- Indexes for table `mg_downloadable_link_purchased_item`
--
ALTER TABLE `mg_downloadable_link_purchased_item`
  ADD PRIMARY KEY (`item_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PURCHASED_ITEM_LINK_HASH` (`link_hash`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PURCHASED_ITEM_ORDER_ITEM_ID` (`order_item_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_PURCHASED_ITEM_PURCHASED_ID` (`purchased_id`);

--
-- Indexes for table `mg_downloadable_link_title`
--
ALTER TABLE `mg_downloadable_link_title`
  ADD PRIMARY KEY (`title_id`),
  ADD UNIQUE KEY `MG_DOWNLOADABLE_LINK_TITLE_LINK_ID_STORE_ID` (`link_id`,`store_id`),
  ADD KEY `MG_DOWNLOADABLE_LINK_TITLE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_downloadable_sample`
--
ALTER TABLE `mg_downloadable_sample`
  ADD PRIMARY KEY (`sample_id`),
  ADD KEY `MG_DOWNLOADABLE_SAMPLE_PRODUCT_ID` (`product_id`);

--
-- Indexes for table `mg_downloadable_sample_title`
--
ALTER TABLE `mg_downloadable_sample_title`
  ADD PRIMARY KEY (`title_id`),
  ADD UNIQUE KEY `MG_DOWNLOADABLE_SAMPLE_TITLE_SAMPLE_ID_STORE_ID` (`sample_id`,`store_id`),
  ADD KEY `MG_DOWNLOADABLE_SAMPLE_TITLE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_attribute`
--
ALTER TABLE `mg_eav_attribute`
  ADD PRIMARY KEY (`attribute_id`),
  ADD UNIQUE KEY `MG_EAV_ATTRIBUTE_ENTITY_TYPE_ID_ATTRIBUTE_CODE` (`entity_type_id`,`attribute_code`);

--
-- Indexes for table `mg_eav_attribute_group`
--
ALTER TABLE `mg_eav_attribute_group`
  ADD PRIMARY KEY (`attribute_group_id`),
  ADD UNIQUE KEY `MG_EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_CODE` (`attribute_set_id`,`attribute_group_code`),
  ADD UNIQUE KEY `MG_EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME` (`attribute_set_id`,`attribute_group_name`),
  ADD KEY `MG_EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_SORT_ORDER` (`attribute_set_id`,`sort_order`);

--
-- Indexes for table `mg_eav_attribute_label`
--
ALTER TABLE `mg_eav_attribute_label`
  ADD PRIMARY KEY (`attribute_label_id`),
  ADD KEY `MG_EAV_ATTRIBUTE_LABEL_STORE_ID` (`store_id`),
  ADD KEY `MG_EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID` (`attribute_id`,`store_id`);

--
-- Indexes for table `mg_eav_attribute_option`
--
ALTER TABLE `mg_eav_attribute_option`
  ADD PRIMARY KEY (`option_id`),
  ADD KEY `MG_EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_eav_attribute_option_swatch`
--
ALTER TABLE `mg_eav_attribute_option_swatch`
  ADD PRIMARY KEY (`swatch_id`),
  ADD UNIQUE KEY `MG_EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_OPTION_ID` (`store_id`,`option_id`),
  ADD KEY `MG_EAV_ATTR_OPT_SWATCH_OPT_ID_MG_EAV_ATTR_OPT_OPT_ID` (`option_id`),
  ADD KEY `MG_EAV_ATTRIBUTE_OPTION_SWATCH_SWATCH_ID` (`swatch_id`);

--
-- Indexes for table `mg_eav_attribute_option_value`
--
ALTER TABLE `mg_eav_attribute_option_value`
  ADD PRIMARY KEY (`value_id`),
  ADD KEY `MG_EAV_ATTRIBUTE_OPTION_VALUE_OPTION_ID` (`option_id`),
  ADD KEY `MG_EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_attribute_set`
--
ALTER TABLE `mg_eav_attribute_set`
  ADD PRIMARY KEY (`attribute_set_id`),
  ADD UNIQUE KEY `MG_EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME` (`entity_type_id`,`attribute_set_name`),
  ADD KEY `MG_EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_SORT_ORDER` (`entity_type_id`,`sort_order`);

--
-- Indexes for table `mg_eav_entity`
--
ALTER TABLE `mg_eav_entity`
  ADD PRIMARY KEY (`entity_id`),
  ADD KEY `MG_EAV_ENTITY_ENTITY_TYPE_ID` (`entity_type_id`),
  ADD KEY `MG_EAV_ENTITY_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_entity_attribute`
--
ALTER TABLE `mg_eav_entity_attribute`
  ADD PRIMARY KEY (`entity_attribute_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_ATTRIBUTE_ID` (`attribute_set_id`,`attribute_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_GROUP_ID_ATTRIBUTE_ID` (`attribute_group_id`,`attribute_id`),
  ADD KEY `MG_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_SORT_ORDER` (`attribute_set_id`,`sort_order`),
  ADD KEY `MG_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_eav_entity_datetime`
--
ALTER TABLE `mg_eav_entity_datetime`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_EAV_ENTITY_DATETIME_STORE_ID` (`store_id`),
  ADD KEY `MG_EAV_ENTITY_DATETIME_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  ADD KEY `MG_EAV_ENTITY_DATETIME_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`);

--
-- Indexes for table `mg_eav_entity_decimal`
--
ALTER TABLE `mg_eav_entity_decimal`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_EAV_ENTITY_DECIMAL_STORE_ID` (`store_id`),
  ADD KEY `MG_EAV_ENTITY_DECIMAL_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  ADD KEY `MG_EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`);

--
-- Indexes for table `mg_eav_entity_int`
--
ALTER TABLE `mg_eav_entity_int`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_EAV_ENTITY_INT_STORE_ID` (`store_id`),
  ADD KEY `MG_EAV_ENTITY_INT_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  ADD KEY `MG_EAV_ENTITY_INT_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`);

--
-- Indexes for table `mg_eav_entity_store`
--
ALTER TABLE `mg_eav_entity_store`
  ADD PRIMARY KEY (`entity_store_id`),
  ADD KEY `MG_EAV_ENTITY_STORE_ENTITY_TYPE_ID` (`entity_type_id`),
  ADD KEY `MG_EAV_ENTITY_STORE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_entity_text`
--
ALTER TABLE `mg_eav_entity_text`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_EAV_ENTITY_TEXT_ENTITY_TYPE_ID` (`entity_type_id`),
  ADD KEY `MG_EAV_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  ADD KEY `MG_EAV_ENTITY_TEXT_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_entity_type`
--
ALTER TABLE `mg_eav_entity_type`
  ADD PRIMARY KEY (`entity_type_id`),
  ADD KEY `MG_EAV_ENTITY_TYPE_ENTITY_TYPE_CODE` (`entity_type_code`);

--
-- Indexes for table `mg_eav_entity_varchar`
--
ALTER TABLE `mg_eav_entity_varchar`
  ADD PRIMARY KEY (`value_id`),
  ADD UNIQUE KEY `MG_EAV_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  ADD KEY `MG_EAV_ENTITY_VARCHAR_STORE_ID` (`store_id`),
  ADD KEY `MG_EAV_ENTITY_VARCHAR_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  ADD KEY `MG_EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`);

--
-- Indexes for table `mg_eav_form_element`
--
ALTER TABLE `mg_eav_form_element`
  ADD PRIMARY KEY (`element_id`),
  ADD UNIQUE KEY `MG_EAV_FORM_ELEMENT_TYPE_ID_ATTRIBUTE_ID` (`type_id`,`attribute_id`),
  ADD KEY `MG_EAV_FORM_ELEMENT_FIELDSET_ID` (`fieldset_id`),
  ADD KEY `MG_EAV_FORM_ELEMENT_ATTRIBUTE_ID` (`attribute_id`);

--
-- Indexes for table `mg_eav_form_fieldset`
--
ALTER TABLE `mg_eav_form_fieldset`
  ADD PRIMARY KEY (`fieldset_id`),
  ADD UNIQUE KEY `MG_EAV_FORM_FIELDSET_TYPE_ID_CODE` (`type_id`,`code`);

--
-- Indexes for table `mg_eav_form_fieldset_label`
--
ALTER TABLE `mg_eav_form_fieldset_label`
  ADD PRIMARY KEY (`fieldset_id`,`store_id`),
  ADD KEY `MG_EAV_FORM_FIELDSET_LABEL_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_form_type`
--
ALTER TABLE `mg_eav_form_type`
  ADD PRIMARY KEY (`type_id`),
  ADD UNIQUE KEY `MG_EAV_FORM_TYPE_CODE_THEME_STORE_ID` (`code`,`theme`,`store_id`),
  ADD KEY `MG_EAV_FORM_TYPE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_eav_form_type_entity`
--
ALTER TABLE `mg_eav_form_type_entity`
  ADD PRIMARY KEY (`type_id`,`entity_type_id`),
  ADD KEY `MG_EAV_FORM_TYPE_ENTITY_ENTITY_TYPE_ID` (`entity_type_id`);

--
-- Indexes for table `mg_email_abandoned_cart`
--
ALTER TABLE `mg_email_abandoned_cart`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_ABANDONED_CART_QUOTE_ID` (`quote_id`),
  ADD KEY `MG_EMAIL_ABANDONED_CART_STORE_ID` (`store_id`),
  ADD KEY `MG_EMAIL_ABANDONED_CART_CUSTOMER_ID` (`customer_id`),
  ADD KEY `MG_EMAIL_ABANDONED_CART_EMAIL` (`email`);

--
-- Indexes for table `mg_email_automation`
--
ALTER TABLE `mg_email_automation`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_AUTOMATION_AUTOMATION_TYPE` (`automation_type`),
  ADD KEY `MG_EMAIL_AUTOMATION_ENROLMENT_STATUS` (`enrolment_status`),
  ADD KEY `MG_EMAIL_AUTOMATION_TYPE_ID` (`type_id`),
  ADD KEY `MG_EMAIL_AUTOMATION_EMAIL` (`email`),
  ADD KEY `MG_EMAIL_AUTOMATION_PROGRAM_ID` (`program_id`),
  ADD KEY `MG_EMAIL_AUTOMATION_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_AUTOMATION_UPDATED_AT` (`updated_at`),
  ADD KEY `MG_EMAIL_AUTOMATION_WEBSITE_ID` (`website_id`);

--
-- Indexes for table `mg_email_campaign`
--
ALTER TABLE `mg_email_campaign`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_CAMPAIGN_STORE_ID` (`store_id`),
  ADD KEY `MG_EMAIL_CAMPAIGN_CAMPAIGN_ID` (`campaign_id`),
  ADD KEY `MG_EMAIL_CAMPAIGN_EMAIL` (`email`),
  ADD KEY `MG_EMAIL_CAMPAIGN_SEND_ID` (`send_id`),
  ADD KEY `MG_EMAIL_CAMPAIGN_SEND_STATUS` (`send_status`),
  ADD KEY `MG_EMAIL_CAMPAIGN_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_CAMPAIGN_UPDATED_AT` (`updated_at`),
  ADD KEY `MG_EMAIL_CAMPAIGN_SENT_AT` (`sent_at`),
  ADD KEY `MG_EMAIL_CAMPAIGN_EVENT_NAME` (`event_name`),
  ADD KEY `MG_EMAIL_CAMPAIGN_MESSAGE` (`message`),
  ADD KEY `MG_EMAIL_CAMPAIGN_QUOTE_ID` (`quote_id`),
  ADD KEY `MG_EMAIL_CAMPAIGN_CUSTOMER_ID` (`customer_id`);

--
-- Indexes for table `mg_email_catalog`
--
ALTER TABLE `mg_email_catalog`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_CATALOG_PRODUCT_ID` (`product_id`),
  ADD KEY `MG_EMAIL_CATALOG_IMPORTED` (`imported`),
  ADD KEY `MG_EMAIL_CATALOG_MODIFIED` (`modified`),
  ADD KEY `MG_EMAIL_CATALOG_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_CATALOG_UPDATED_AT` (`updated_at`);

--
-- Indexes for table `mg_email_contact`
--
ALTER TABLE `mg_email_contact`
  ADD PRIMARY KEY (`email_contact_id`),
  ADD KEY `MG_EMAIL_CONTACT_EMAIL_CONTACT_ID` (`email_contact_id`),
  ADD KEY `MG_EMAIL_CONTACT_IS_GUEST` (`is_guest`),
  ADD KEY `MG_EMAIL_CONTACT_CUSTOMER_ID` (`customer_id`),
  ADD KEY `MG_EMAIL_CONTACT_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_EMAIL_CONTACT_IS_SUBSCRIBER` (`is_subscriber`),
  ADD KEY `MG_EMAIL_CONTACT_SUBSCRIBER_STATUS` (`subscriber_status`),
  ADD KEY `MG_EMAIL_CONTACT_EMAIL_IMPORTED` (`email_imported`),
  ADD KEY `MG_EMAIL_CONTACT_SUBSCRIBER_IMPORTED` (`subscriber_imported`),
  ADD KEY `MG_EMAIL_CONTACT_SUPPRESSED` (`suppressed`),
  ADD KEY `MG_EMAIL_CONTACT_EMAIL` (`email`),
  ADD KEY `MG_EMAIL_CONTACT_CONTACT_ID` (`contact_id`);

--
-- Indexes for table `mg_email_contact_consent`
--
ALTER TABLE `mg_email_contact_consent`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_CONTACT_CONSENT_EMAIL_CONTACT_ID` (`email_contact_id`);

--
-- Indexes for table `mg_email_failed_auth`
--
ALTER TABLE `mg_email_failed_auth`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_AUTH_EDC_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_email_importer`
--
ALTER TABLE `mg_email_importer`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_IMPORTER_IMPORT_TYPE` (`import_type`),
  ADD KEY `MG_EMAIL_IMPORTER_WEBSITE_ID` (`website_id`),
  ADD KEY `MG_EMAIL_IMPORTER_IMPORT_STATUS` (`import_status`),
  ADD KEY `MG_EMAIL_IMPORTER_IMPORT_MODE` (`import_mode`),
  ADD KEY `MG_EMAIL_IMPORTER_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_IMPORTER_UPDATED_AT` (`updated_at`),
  ADD KEY `MG_EMAIL_IMPORTER_IMPORT_ID` (`import_id`),
  ADD KEY `MG_EMAIL_IMPORTER_IMPORT_STARTED` (`import_started`),
  ADD KEY `MG_EMAIL_IMPORTER_IMPORT_FINISHED` (`import_finished`);

--
-- Indexes for table `mg_email_order`
--
ALTER TABLE `mg_email_order`
  ADD PRIMARY KEY (`email_order_id`),
  ADD KEY `MG_EMAIL_ORDER_STORE_ID` (`store_id`),
  ADD KEY `MG_EMAIL_ORDER_QUOTE_ID` (`quote_id`),
  ADD KEY `MG_EMAIL_ORDER_EMAIL_IMPORTED` (`email_imported`),
  ADD KEY `MG_EMAIL_ORDER_ORDER_STATUS` (`order_status`),
  ADD KEY `MG_EMAIL_ORDER_MODIFIED` (`modified`),
  ADD KEY `MG_EMAIL_ORDER_UPDATED_AT` (`updated_at`),
  ADD KEY `MG_EMAIL_ORDER_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` (`order_id`);

--
-- Indexes for table `mg_email_review`
--
ALTER TABLE `mg_email_review`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_REVIEW_REVIEW_ID` (`review_id`),
  ADD KEY `MG_EMAIL_REVIEW_CUSTOMER_ID` (`customer_id`),
  ADD KEY `MG_EMAIL_REVIEW_STORE_ID` (`store_id`),
  ADD KEY `MG_EMAIL_REVIEW_REVIEW_IMPORTED` (`review_imported`),
  ADD KEY `MG_EMAIL_REVIEW_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_REVIEW_UPDATED_AT` (`updated_at`);

--
-- Indexes for table `mg_email_rules`
--
ALTER TABLE `mg_email_rules`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mg_email_template`
--
ALTER TABLE `mg_email_template`
  ADD PRIMARY KEY (`template_id`),
  ADD UNIQUE KEY `MG_EMAIL_TEMPLATE_TEMPLATE_CODE` (`template_code`),
  ADD KEY `MG_EMAIL_TEMPLATE_ADDED_AT` (`added_at`),
  ADD KEY `MG_EMAIL_TEMPLATE_MODIFIED_AT` (`modified_at`);

--
-- Indexes for table `mg_email_wishlist`
--
ALTER TABLE `mg_email_wishlist`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_EMAIL_WISHLIST_WISHLIST_ID` (`wishlist_id`),
  ADD KEY `MG_EMAIL_WISHLIST_ITEM_COUNT` (`item_count`),
  ADD KEY `MG_EMAIL_WISHLIST_CUSTOMER_ID` (`customer_id`),
  ADD KEY `MG_EMAIL_WISHLIST_WISHLIST_MODIFIED` (`wishlist_modified`),
  ADD KEY `MG_EMAIL_WISHLIST_WISHLIST_IMPORTED` (`wishlist_imported`),
  ADD KEY `MG_EMAIL_WISHLIST_CREATED_AT` (`created_at`),
  ADD KEY `MG_EMAIL_WISHLIST_UPDATED_AT` (`updated_at`),
  ADD KEY `MG_EMAIL_WISHLIST_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_flag`
--
ALTER TABLE `mg_flag`
  ADD PRIMARY KEY (`flag_id`),
  ADD KEY `MG_FLAG_LAST_UPDATE` (`last_update`);

--
-- Indexes for table `mg_gift_message`
--
ALTER TABLE `mg_gift_message`
  ADD PRIMARY KEY (`gift_message_id`);

--
-- Indexes for table `mg_googleoptimizer_code`
--
ALTER TABLE `mg_googleoptimizer_code`
  ADD PRIMARY KEY (`code_id`),
  ADD UNIQUE KEY `MG_GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE` (`store_id`,`entity_id`,`entity_type`);

--
-- Indexes for table `mg_importexport_importdata`
--
ALTER TABLE `mg_importexport_importdata`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mg_import_history`
--
ALTER TABLE `mg_import_history`
  ADD PRIMARY KEY (`history_id`);

--
-- Indexes for table `mg_indexer_state`
--
ALTER TABLE `mg_indexer_state`
  ADD PRIMARY KEY (`state_id`),
  ADD KEY `MG_INDEXER_STATE_INDEXER_ID` (`indexer_id`);

--
-- Indexes for table `mg_integration`
--
ALTER TABLE `mg_integration`
  ADD PRIMARY KEY (`integration_id`),
  ADD UNIQUE KEY `MG_INTEGRATION_NAME` (`name`),
  ADD UNIQUE KEY `MG_INTEGRATION_CONSUMER_ID` (`consumer_id`);

--
-- Indexes for table `mg_inventory_low_stock_notification_configuration`
--
ALTER TABLE `mg_inventory_low_stock_notification_configuration`
  ADD PRIMARY KEY (`source_code`,`sku`);

--
-- Indexes for table `mg_inventory_reservation`
--
ALTER TABLE `mg_inventory_reservation`
  ADD PRIMARY KEY (`reservation_id`),
  ADD KEY `MG_INVENTORY_RESERVATION_STOCK_ID_SKU_QUANTITY` (`stock_id`,`sku`,`quantity`);

--
-- Indexes for table `mg_inventory_shipment_source`
--
ALTER TABLE `mg_inventory_shipment_source`
  ADD PRIMARY KEY (`shipment_id`);

--
-- Indexes for table `mg_inventory_source`
--
ALTER TABLE `mg_inventory_source`
  ADD PRIMARY KEY (`source_code`);

--
-- Indexes for table `mg_inventory_source_carrier_link`
--
ALTER TABLE `mg_inventory_source_carrier_link`
  ADD PRIMARY KEY (`link_id`),
  ADD KEY `MG_INV_SOURCE_CARRIER_LNK_SOURCE_CODE_MG_INV_SOURCE_SOURCE_CODE` (`source_code`);

--
-- Indexes for table `mg_inventory_source_item`
--
ALTER TABLE `mg_inventory_source_item`
  ADD PRIMARY KEY (`source_item_id`),
  ADD UNIQUE KEY `MG_INVENTORY_SOURCE_ITEM_SOURCE_CODE_SKU` (`source_code`,`sku`),
  ADD KEY `MG_INVENTORY_SOURCE_ITEM_SKU_SOURCE_CODE_QUANTITY` (`sku`,`source_code`,`quantity`);

--
-- Indexes for table `mg_inventory_source_stock_link`
--
ALTER TABLE `mg_inventory_source_stock_link`
  ADD PRIMARY KEY (`link_id`),
  ADD UNIQUE KEY `MG_INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_SOURCE_CODE` (`stock_id`,`source_code`),
  ADD KEY `MG_INV_SOURCE_STOCK_LNK_SOURCE_CODE_MG_INV_SOURCE_SOURCE_CODE` (`source_code`),
  ADD KEY `MG_INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_PRIORITY` (`stock_id`,`priority`);

--
-- Indexes for table `mg_inventory_stock`
--
ALTER TABLE `mg_inventory_stock`
  ADD PRIMARY KEY (`stock_id`);

--
-- Indexes for table `mg_inventory_stock_sales_channel`
--
ALTER TABLE `mg_inventory_stock_sales_channel`
  ADD PRIMARY KEY (`type`,`code`),
  ADD KEY `MG_INV_STOCK_SALES_CHANNEL_STOCK_ID_MG_INV_STOCK_STOCK_ID` (`stock_id`);

--
-- Indexes for table `mg_klarna_core_order`
--
ALTER TABLE `mg_klarna_core_order`
  ADD PRIMARY KEY (`id`),
  ADD KEY `MG_KLARNA_CORE_ORDER_IS_ACKNOWLEDGED` (`is_acknowledged`),
  ADD KEY `MG_KLARNA_CORE_ORDER_ORDER_ID` (`order_id`);

--
-- Indexes for table `mg_klarna_payments_quote`
--
ALTER TABLE `mg_klarna_payments_quote`
  ADD PRIMARY KEY (`payments_quote_id`),
  ADD KEY `MG_KLARNA_PAYMENTS_QUOTE_QUOTE_ID_QUOTE_ENTITY_ID` (`quote_id`);

--
-- Indexes for table `mg_layout_link`
--
ALTER TABLE `mg_layout_link`
  ADD PRIMARY KEY (`layout_link_id`),
  ADD KEY `MG_LAYOUT_LINK_THEME_ID_MG_THEME_THEME_ID` (`theme_id`),
  ADD KEY `MG_LAYOUT_LINK_LAYOUT_UPDATE_ID` (`layout_update_id`),
  ADD KEY `MG_LAYOUT_LINK_STORE_ID_THEME_ID_LAYOUT_UPDATE_ID_IS_TEMPORARY` (`store_id`,`theme_id`,`layout_update_id`,`is_temporary`);

--
-- Indexes for table `mg_layout_update`
--
ALTER TABLE `mg_layout_update`
  ADD PRIMARY KEY (`layout_update_id`),
  ADD KEY `MG_LAYOUT_UPDATE_HANDLE` (`handle`);

--
-- Indexes for table `mg_magefan_blog_category`
--
ALTER TABLE `mg_magefan_blog_category`
  ADD PRIMARY KEY (`category_id`),
  ADD KEY `MG_MAGEFAN_BLOG_CATEGORY_IDENTIFIER` (`identifier`),
  ADD KEY `MG_MAGEFAN_BLOG_CATEGORY_INCLUDE_IN_MENU` (`include_in_menu`);
ALTER TABLE `mg_magefan_blog_category` ADD FULLTEXT KEY `FTI_CBD61DC860E5489FF8FEE740BCF3AA1E` (`title`,`meta_keywords`,`meta_description`,`identifier`,`content`);

--
-- Indexes for table `mg_magefan_blog_category_store`
--
ALTER TABLE `mg_magefan_blog_category_store`
  ADD PRIMARY KEY (`category_id`,`store_id`),
  ADD KEY `MG_MAGEFAN_BLOG_CATEGORY_STORE_STORE_ID` (`store_id`);

--
-- Indexes for table `mg_magefan_blog_comment`
--
ALTER TABLE `mg_magefan_blog_comment`
  ADD PRIMARY KEY (`comment_id`),
  ADD KEY `MG_MAGEFAN_BLOG_COMMENT_PARENT_ID` (`parent_id`),
  ADD KEY `MG_MAGEFAN_BLOG_COMMENT_POST_ID` (`post_id`),
  ADD KEY `MG_MAGEFAN_BLOG_COMMENT_CUSTOMER_ID` (`customer_id`),
  ADD KEY `MG_MAGEFAN_BLOG_COMMENT_ADMIN_ID` (`admin_id`),
  ADD KEY `MG_MAGEFAN_BLOG_COMMENT_STATUS` (`status`);

--
-- Indexes for table `mg_magefan_blog_post_category`
--
ALTER TABLE `mg_magefan_blog_post_category`
  ADD PRIMARY KEY (`post_id`,`category_id`),
  ADD KEY `MG_MAGEFAN_BLOG_POST_CATEGORY_CATEGORY_ID` (`category_id`);

--
-- Indexes for table `mg_magefan_blog_post_relatedpost`
--
ALTER TABLE `mg_magefan_blog_post_relatedpost`
  ADD PRIMARY KEY (`post_id`,`related_id`),
  ADD KEY `MG_MAGEFAN_BLOG_POST_RELATEDPRODUCT_RELATED_ID` (`related_id`);

--
-- Indexes for table `mg_magefan_blog_post_relatedproduct`
--
ALTER TABLE `mg_magefan_blog_post_relatedproduct`
  ADD PRIMARY KEY (`post_id`,`related_id`),
  ADD KEY `MG_MAGEFAN_BLOG_POST_RELATEDPRODUCT_RELATED_ID` (`related_id`);

--
-- Indexes for table `mg_magefan_blog_post_store`
--
ALTER TABLE `mg_magefan_blog_post_store`
  ADD PRIMARY KEY (`post_id`,`store_id`),
  ADD KEY `MG_MAGEFAN_BLOG_POST_STORE_STORE_ID` (`store_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `mg_adminnotification_inbox`
--
ALTER TABLE `mg_adminnotification_inbox`
  MODIFY `notification_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Notification id', AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `mg_admin_analytics_usage_version_log`
--
ALTER TABLE `mg_admin_analytics_usage_version_log`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Log ID', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_amazon_customer`
--
ALTER TABLE `mg_amazon_customer`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity_id';

--
-- AUTO_INCREMENT for table `mg_amazon_pending_authorization`
--
ALTER TABLE `mg_amazon_pending_authorization`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity_id';

--
-- AUTO_INCREMENT for table `mg_amazon_pending_capture`
--
ALTER TABLE `mg_amazon_pending_capture`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity_id';

--
-- AUTO_INCREMENT for table `mg_amazon_pending_refund`
--
ALTER TABLE `mg_amazon_pending_refund`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity_id';

--
-- AUTO_INCREMENT for table `mg_amazon_quote`
--
ALTER TABLE `mg_amazon_quote`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';

--
-- AUTO_INCREMENT for table `mg_amazon_sales_order`
--
ALTER TABLE `mg_amazon_sales_order`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';

--
-- AUTO_INCREMENT for table `mg_authorization_role`
--
ALTER TABLE `mg_authorization_role`
  MODIFY `role_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Role ID', AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mg_authorization_rule`
--
ALTER TABLE `mg_authorization_rule`
  MODIFY `rule_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rule ID', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_cataloginventory_stock`
--
ALTER TABLE `mg_cataloginventory_stock`
  MODIFY `stock_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Stock Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_cataloginventory_stock_item`
--
ALTER TABLE `mg_cataloginventory_stock_item`
  MODIFY `item_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Item Id', AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `mg_catalogrule`
--
ALTER TABLE `mg_catalogrule`
  MODIFY `rule_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';

--
-- AUTO_INCREMENT for table `mg_catalogrule_product`
--
ALTER TABLE `mg_catalogrule_product`
  MODIFY `rule_product_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rule Product Id';

--
-- AUTO_INCREMENT for table `mg_catalogrule_product_price`
--
ALTER TABLE `mg_catalogrule_product_price`
  MODIFY `rule_product_price_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rule Product PriceId';

--
-- AUTO_INCREMENT for table `mg_catalogrule_product_price_replica`
--
ALTER TABLE `mg_catalogrule_product_price_replica`
  MODIFY `rule_product_price_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rule Product PriceId';

--
-- AUTO_INCREMENT for table `mg_catalogrule_product_replica`
--
ALTER TABLE `mg_catalogrule_product_replica`
  MODIFY `rule_product_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rule Product Id';

--
-- AUTO_INCREMENT for table `mg_catalogsearch_recommendations`
--
ALTER TABLE `mg_catalogsearch_recommendations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id';

--
-- AUTO_INCREMENT for table `mg_catalog_category_entity`
--
ALTER TABLE `mg_catalog_category_entity`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=46;

--
-- AUTO_INCREMENT for table `mg_catalog_category_entity_datetime`
--
ALTER TABLE `mg_catalog_category_entity_datetime`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `mg_catalog_category_entity_decimal`
--
ALTER TABLE `mg_catalog_category_entity_decimal`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_catalog_category_entity_int`
--
ALTER TABLE `mg_catalog_category_entity_int`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=220;

--
-- AUTO_INCREMENT for table `mg_catalog_category_entity_text`
--
ALTER TABLE `mg_catalog_category_entity_text`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `mg_catalog_category_entity_varchar`
--
ALTER TABLE `mg_catalog_category_entity_varchar`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=257;

--
-- AUTO_INCREMENT for table `mg_catalog_category_product`
--
ALTER TABLE `mg_catalog_category_product`
  MODIFY `entity_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=57;

--
-- AUTO_INCREMENT for table `mg_catalog_compare_item`
--
ALTER TABLE `mg_catalog_compare_item`
  MODIFY `catalog_compare_item_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Compare Item ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_bundle_option`
--
ALTER TABLE `mg_catalog_product_bundle_option`
  MODIFY `option_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Id';

--
-- AUTO_INCREMENT for table `mg_catalog_product_bundle_option_value`
--
ALTER TABLE `mg_catalog_product_bundle_option_value`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_catalog_product_bundle_selection`
--
ALTER TABLE `mg_catalog_product_bundle_selection`
  MODIFY `selection_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Selection Id';

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity`
--
ALTER TABLE `mg_catalog_product_entity`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_datetime`
--
ALTER TABLE `mg_catalog_product_entity_datetime`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_decimal`
--
ALTER TABLE `mg_catalog_product_entity_decimal`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=70;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_gallery`
--
ALTER TABLE `mg_catalog_product_entity_gallery`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_int`
--
ALTER TABLE `mg_catalog_product_entity_int`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=161;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_media_gallery`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_media_gallery_value`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value`
  MODIFY `record_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Record Id', AUTO_INCREMENT=141;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_text`
--
ALTER TABLE `mg_catalog_product_entity_text`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=76;

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_tier_price`
--
ALTER TABLE `mg_catalog_product_entity_tier_price`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_entity_varchar`
--
ALTER TABLE `mg_catalog_product_entity_varchar`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=587;

--
-- AUTO_INCREMENT for table `mg_catalog_product_frontend_action`
--
ALTER TABLE `mg_catalog_product_frontend_action`
  MODIFY `action_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Product Action Id';

--
-- AUTO_INCREMENT for table `mg_catalog_product_link`
--
ALTER TABLE `mg_catalog_product_link`
  MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Link ID', AUTO_INCREMENT=138;

--
-- AUTO_INCREMENT for table `mg_catalog_product_link_attribute`
--
ALTER TABLE `mg_catalog_product_link_attribute`
  MODIFY `product_link_attribute_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Product Link Attribute ID', AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mg_catalog_product_link_attribute_decimal`
--
ALTER TABLE `mg_catalog_product_link_attribute_decimal`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `mg_catalog_product_link_attribute_int`
--
ALTER TABLE `mg_catalog_product_link_attribute_int`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value ID', AUTO_INCREMENT=87;

--
-- AUTO_INCREMENT for table `mg_catalog_product_link_attribute_varchar`
--
ALTER TABLE `mg_catalog_product_link_attribute_varchar`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_link_type`
--
ALTER TABLE `mg_catalog_product_link_type`
  MODIFY `link_type_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Link Type ID', AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mg_catalog_product_option`
--
ALTER TABLE `mg_catalog_product_option`
  MODIFY `option_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option ID', AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `mg_catalog_product_option_price`
--
ALTER TABLE `mg_catalog_product_option_price`
  MODIFY `option_price_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Price ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_option_title`
--
ALTER TABLE `mg_catalog_product_option_title`
  MODIFY `option_title_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Title ID', AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `mg_catalog_product_option_type_price`
--
ALTER TABLE `mg_catalog_product_option_type_price`
  MODIFY `option_type_price_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Type Price ID', AUTO_INCREMENT=34;

--
-- AUTO_INCREMENT for table `mg_catalog_product_option_type_title`
--
ALTER TABLE `mg_catalog_product_option_type_title`
  MODIFY `option_type_title_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Type Title ID', AUTO_INCREMENT=46;

--
-- AUTO_INCREMENT for table `mg_catalog_product_option_type_value`
--
ALTER TABLE `mg_catalog_product_option_type_value`
  MODIFY `option_type_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Type ID', AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `mg_catalog_product_super_attribute`
--
ALTER TABLE `mg_catalog_product_super_attribute`
  MODIFY `product_super_attribute_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Product Super Attribute ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_super_attribute_label`
--
ALTER TABLE `mg_catalog_product_super_attribute_label`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_catalog_product_super_link`
--
ALTER TABLE `mg_catalog_product_super_link`
  MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Link ID';

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_notification`
--
ALTER TABLE `mg_ced_csmarketplace_notification`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor`
--
ALTER TABLE `mg_ced_csmarketplace_vendor`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_datetime`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_datetime`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id', AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_decimal`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_decimal`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_form_attribute`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_form_attribute`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_int`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_int`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id', AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_payments`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_payments`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity Id';

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_payments_requested`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_payments_requested`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_products`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_products`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id', AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_products_status`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_products_status`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id', AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_sales_order`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_sales_order`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id', AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_shop`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_shop`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id', AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_text`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_text`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_ced_csmarketplace_vendor_varchar`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_varchar`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id', AUTO_INCREMENT=71;

--
-- AUTO_INCREMENT for table `mg_ced_csorder_creditmemo`
--
ALTER TABLE `mg_ced_csorder_creditmemo`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id';

--
-- AUTO_INCREMENT for table `mg_ced_csorder_invoice`
--
ALTER TABLE `mg_ced_csorder_invoice`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_ced_csorder_shipment`
--
ALTER TABLE `mg_ced_csorder_shipment`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id';

--
-- AUTO_INCREMENT for table `mg_ced_csrma_chat`
--
ALTER TABLE `mg_ced_csrma_chat`
  MODIFY `rma_chat_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rma Chat Id';

--
-- AUTO_INCREMENT for table `mg_ced_csrma_items`
--
ALTER TABLE `mg_ced_csrma_items`
  MODIFY `rma_items_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rma Item Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_ced_csrma_notification`
--
ALTER TABLE `mg_ced_csrma_notification`
  MODIFY `rma_notification_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rma Notification Id', AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mg_ced_csrma_request`
--
ALTER TABLE `mg_ced_csrma_request`
  MODIFY `rma_request_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rma Request Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_ced_csrma_shipping`
--
ALTER TABLE `mg_ced_csrma_shipping`
  MODIFY `rma_shippping_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Rma Shippping Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_ced_csrma_status`
--
ALTER TABLE `mg_ced_csrma_status`
  MODIFY `status_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Password Id', AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `mg_ced_cstransaction_vorder_items`
--
ALTER TABLE `mg_ced_cstransaction_vorder_items`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_ced_vendorproduct_review`
--
ALTER TABLE `mg_ced_vendorproduct_review`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id';

--
-- AUTO_INCREMENT for table `mg_ced_vendor_attributes_set`
--
ALTER TABLE `mg_ced_vendor_attributes_set`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mg_ced_vendor_product_attributes`
--
ALTER TABLE `mg_ced_vendor_product_attributes`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mg_checkout_agreement`
--
ALTER TABLE `mg_checkout_agreement`
  MODIFY `agreement_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Agreement Id';

--
-- AUTO_INCREMENT for table `mg_cms_block`
--
ALTER TABLE `mg_cms_block`
  MODIFY `block_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=237;

--
-- AUTO_INCREMENT for table `mg_cms_page`
--
ALTER TABLE `mg_cms_page`
  MODIFY `page_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT for table `mg_core_config_data`
--
ALTER TABLE `mg_core_config_data`
  MODIFY `config_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Config Id', AUTO_INCREMENT=925;

--
-- AUTO_INCREMENT for table `mg_cron_schedule`
--
ALTER TABLE `mg_cron_schedule`
  MODIFY `schedule_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Schedule Id', AUTO_INCREMENT=821;

--
-- AUTO_INCREMENT for table `mg_customer_address_entity`
--
ALTER TABLE `mg_customer_address_entity`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mg_customer_address_entity_datetime`
--
ALTER TABLE `mg_customer_address_entity_datetime`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_customer_address_entity_decimal`
--
ALTER TABLE `mg_customer_address_entity_decimal`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_customer_address_entity_int`
--
ALTER TABLE `mg_customer_address_entity_int`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_address_entity_text`
--
ALTER TABLE `mg_customer_address_entity_text`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_address_entity_varchar`
--
ALTER TABLE `mg_customer_address_entity_varchar`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_entity_datetime`
--
ALTER TABLE `mg_customer_entity_datetime`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_entity_decimal`
--
ALTER TABLE `mg_customer_entity_decimal`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_entity_int`
--
ALTER TABLE `mg_customer_entity_int`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_entity_text`
--
ALTER TABLE `mg_customer_entity_text`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_entity_varchar`
--
ALTER TABLE `mg_customer_entity_varchar`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID';

--
-- AUTO_INCREMENT for table `mg_customer_group`
--
ALTER TABLE `mg_customer_group`
  MODIFY `customer_group_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mg_customer_log`
--
ALTER TABLE `mg_customer_log`
  MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Log ID', AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `mg_design_change`
--
ALTER TABLE `mg_design_change`
  MODIFY `design_change_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Design Change Id';

--
-- AUTO_INCREMENT for table `mg_directory_country_format`
--
ALTER TABLE `mg_directory_country_format`
  MODIFY `country_format_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Country Format Id';

--
-- AUTO_INCREMENT for table `mg_directory_country_region`
--
ALTER TABLE `mg_directory_country_region`
  MODIFY `region_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Region Id', AUTO_INCREMENT=609;

--
-- AUTO_INCREMENT for table `mg_downloadable_link`
--
ALTER TABLE `mg_downloadable_link`
  MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Link ID';

--
-- AUTO_INCREMENT for table `mg_downloadable_link_price`
--
ALTER TABLE `mg_downloadable_link_price`
  MODIFY `price_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Price ID';

--
-- AUTO_INCREMENT for table `mg_downloadable_link_purchased`
--
ALTER TABLE `mg_downloadable_link_purchased`
  MODIFY `purchased_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Purchased ID';

--
-- AUTO_INCREMENT for table `mg_downloadable_link_purchased_item`
--
ALTER TABLE `mg_downloadable_link_purchased_item`
  MODIFY `item_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Item ID';

--
-- AUTO_INCREMENT for table `mg_downloadable_link_title`
--
ALTER TABLE `mg_downloadable_link_title`
  MODIFY `title_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Title ID';

--
-- AUTO_INCREMENT for table `mg_downloadable_sample`
--
ALTER TABLE `mg_downloadable_sample`
  MODIFY `sample_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Sample ID';

--
-- AUTO_INCREMENT for table `mg_downloadable_sample_title`
--
ALTER TABLE `mg_downloadable_sample_title`
  MODIFY `title_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Title ID';

--
-- AUTO_INCREMENT for table `mg_eav_attribute`
--
ALTER TABLE `mg_eav_attribute`
  MODIFY `attribute_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Attribute Id', AUTO_INCREMENT=198;

--
-- AUTO_INCREMENT for table `mg_eav_attribute_group`
--
ALTER TABLE `mg_eav_attribute_group`
  MODIFY `attribute_group_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Attribute Group Id', AUTO_INCREMENT=83;

--
-- AUTO_INCREMENT for table `mg_eav_attribute_label`
--
ALTER TABLE `mg_eav_attribute_label`
  MODIFY `attribute_label_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Attribute Label Id';

--
-- AUTO_INCREMENT for table `mg_eav_attribute_option`
--
ALTER TABLE `mg_eav_attribute_option`
  MODIFY `option_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Option Id', AUTO_INCREMENT=5490;

--
-- AUTO_INCREMENT for table `mg_eav_attribute_option_swatch`
--
ALTER TABLE `mg_eav_attribute_option_swatch`
  MODIFY `swatch_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Swatch ID';

--
-- AUTO_INCREMENT for table `mg_eav_attribute_option_value`
--
ALTER TABLE `mg_eav_attribute_option_value`
  MODIFY `value_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Value Id', AUTO_INCREMENT=5523;

--
-- AUTO_INCREMENT for table `mg_eav_attribute_set`
--
ALTER TABLE `mg_eav_attribute_set`
  MODIFY `attribute_set_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Attribute Set Id', AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `mg_eav_entity`
--
ALTER TABLE `mg_eav_entity`
  MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';

--
-- AUTO_INCREMENT for table `mg_eav_entity_attribute`
--
ALTER TABLE `mg_eav_entity_attribute`
  MODIFY `entity_attribute_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity Attribute Id', AUTO_INCREMENT=746;

--
-- AUTO_INCREMENT for table `mg_eav_entity_datetime`
--
ALTER TABLE `mg_eav_entity_datetime`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_eav_entity_decimal`
--
ALTER TABLE `mg_eav_entity_decimal`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_eav_entity_int`
--
ALTER TABLE `mg_eav_entity_int`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_eav_entity_store`
--
ALTER TABLE `mg_eav_entity_store`
  MODIFY `entity_store_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity Store Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_eav_entity_text`
--
ALTER TABLE `mg_eav_entity_text`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_eav_entity_type`
--
ALTER TABLE `mg_eav_entity_type`
  MODIFY `entity_type_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity Type Id', AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `mg_eav_entity_varchar`
--
ALTER TABLE `mg_eav_entity_varchar`
  MODIFY `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id';

--
-- AUTO_INCREMENT for table `mg_eav_form_element`
--
ALTER TABLE `mg_eav_form_element`
  MODIFY `element_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Element Id', AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT for table `mg_eav_form_fieldset`
--
ALTER TABLE `mg_eav_form_fieldset`
  MODIFY `fieldset_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Fieldset Id';

--
-- AUTO_INCREMENT for table `mg_eav_form_type`
--
ALTER TABLE `mg_eav_form_type`
  MODIFY `type_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Type Id', AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `mg_email_abandoned_cart`
--
ALTER TABLE `mg_email_abandoned_cart`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_automation`
--
ALTER TABLE `mg_email_automation`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_campaign`
--
ALTER TABLE `mg_email_campaign`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_catalog`
--
ALTER TABLE `mg_email_catalog`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `mg_email_contact`
--
ALTER TABLE `mg_email_contact`
  MODIFY `email_contact_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_email_contact_consent`
--
ALTER TABLE `mg_email_contact_consent`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_failed_auth`
--
ALTER TABLE `mg_email_failed_auth`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_importer`
--
ALTER TABLE `mg_email_importer`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_order`
--
ALTER TABLE `mg_email_order`
  MODIFY `email_order_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_review`
--
ALTER TABLE `mg_email_review`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_email_rules`
--
ALTER TABLE `mg_email_rules`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_email_template`
--
ALTER TABLE `mg_email_template`
  MODIFY `template_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Template ID', AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mg_email_wishlist`
--
ALTER TABLE `mg_email_wishlist`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT for table `mg_flag`
--
ALTER TABLE `mg_flag`
  MODIFY `flag_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Flag Id', AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_gift_message`
--
ALTER TABLE `mg_gift_message`
  MODIFY `gift_message_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'GiftMessage Id';

--
-- AUTO_INCREMENT for table `mg_googleoptimizer_code`
--
ALTER TABLE `mg_googleoptimizer_code`
  MODIFY `code_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Google experiment code id';

--
-- AUTO_INCREMENT for table `mg_importexport_importdata`
--
ALTER TABLE `mg_importexport_importdata`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Id', AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `mg_import_history`
--
ALTER TABLE `mg_import_history`
  MODIFY `history_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'History record Id', AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `mg_indexer_state`
--
ALTER TABLE `mg_indexer_state`
  MODIFY `state_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Indexer State Id', AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `mg_integration`
--
ALTER TABLE `mg_integration`
  MODIFY `integration_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Integration ID';

--
-- AUTO_INCREMENT for table `mg_inventory_reservation`
--
ALTER TABLE `mg_inventory_reservation`
  MODIFY `reservation_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `mg_inventory_source_carrier_link`
--
ALTER TABLE `mg_inventory_source_carrier_link`
  MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mg_inventory_source_item`
--
ALTER TABLE `mg_inventory_source_item`
  MODIFY `source_item_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;

--
-- AUTO_INCREMENT for table `mg_inventory_source_stock_link`
--
ALTER TABLE `mg_inventory_source_stock_link`
  MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_inventory_stock`
--
ALTER TABLE `mg_inventory_stock`
  MODIFY `stock_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mg_klarna_core_order`
--
ALTER TABLE `mg_klarna_core_order`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity Id';

--
-- AUTO_INCREMENT for table `mg_klarna_payments_quote`
--
ALTER TABLE `mg_klarna_payments_quote`
  MODIFY `payments_quote_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Payments Id';

--
-- AUTO_INCREMENT for table `mg_layout_link`
--
ALTER TABLE `mg_layout_link`
  MODIFY `layout_link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Link Id';

--
-- AUTO_INCREMENT for table `mg_layout_update`
--
ALTER TABLE `mg_layout_update`
  MODIFY `layout_update_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Layout Update Id';

--
-- AUTO_INCREMENT for table `mg_magefan_blog_category`
--
ALTER TABLE `mg_magefan_blog_category`
  MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Category ID';

--
-- AUTO_INCREMENT for table `mg_magefan_blog_comment`
--
ALTER TABLE `mg_magefan_blog_comment`
  MODIFY `comment_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Comment ID';

--
-- Constraints for table `mg_amazon_customer`
--
ALTER TABLE `mg_amazon_customer`
  ADD CONSTRAINT `MG_AMAZON_CUSTOMER_CUSTOMER_ID_MG_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_amazon_quote`
--
ALTER TABLE `mg_amazon_quote`
  ADD CONSTRAINT `MG_AMAZON_QUOTE_QUOTE_ID_MG_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `mg_quote` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_amazon_sales_order`
--
ALTER TABLE `mg_amazon_sales_order`
  ADD CONSTRAINT `MG_AMAZON_SALES_ORDER_ORDER_ID_MG_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `mg_sales_order` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_authorization_rule`
--
ALTER TABLE `mg_authorization_rule`
  ADD CONSTRAINT `MG_AUTHORIZATION_RULE_ROLE_ID_MG_AUTHORIZATION_ROLE_ROLE_ID` FOREIGN KEY (`role_id`) REFERENCES `mg_authorization_role` (`role_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_cataloginventory_stock_item`
--
ALTER TABLE `mg_cataloginventory_stock_item`
  ADD CONSTRAINT `MG_CATINV_STOCK_ITEM_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATINV_STOCK_ITEM_STOCK_ID_MG_CATINV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `mg_cataloginventory_stock` (`stock_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalogrule_customer_group`
--
ALTER TABLE `mg_catalogrule_customer_group`
  ADD CONSTRAINT `MG_CATALOGRULE_CUSTOMER_GROUP_RULE_ID_MG_CATALOGRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `mg_catalogrule` (`rule_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATRULE_CSTR_GROUP_CSTR_GROUP_ID_MG_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `mg_customer_group` (`customer_group_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalogrule_website`
--
ALTER TABLE `mg_catalogrule_website`
  ADD CONSTRAINT `MG_CATALOGRULE_WEBSITE_RULE_ID_MG_CATALOGRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `mg_catalogrule` (`rule_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATALOGRULE_WEBSITE_WEBSITE_ID_MG_STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalogsearch_recommendations`
--
ALTER TABLE `mg_catalogsearch_recommendations`
  ADD CONSTRAINT `MG_CATSRCH_RECOMMENDATIONS_QR_ID_MG_SRCH_QR_QR_ID` FOREIGN KEY (`query_id`) REFERENCES `mg_search_query` (`query_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATSRCH_RECOMMENDATIONS_RELATION_ID_MG_SRCH_QR_QR_ID` FOREIGN KEY (`relation_id`) REFERENCES `mg_search_query` (`query_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_category_entity_datetime`
--
ALTER TABLE `mg_catalog_category_entity_datetime`
  ADD CONSTRAINT `MG_CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_DTIME_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_DTIME_ENTT_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_category_entity_decimal`
--
ALTER TABLE `mg_catalog_category_entity_decimal`
  ADD CONSTRAINT `MG_CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_DEC_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_DEC_ENTT_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_category_entity_int`
--
ALTER TABLE `mg_catalog_category_entity_int`
  ADD CONSTRAINT `MG_CATALOG_CATEGORY_ENTITY_INT_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_INT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_INT_ENTT_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_category_entity_text`
--
ALTER TABLE `mg_catalog_category_entity_text`
  ADD CONSTRAINT `MG_CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_TEXT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_TEXT_ENTT_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_category_entity_varchar`
--
ALTER TABLE `mg_catalog_category_entity_varchar`
  ADD CONSTRAINT `MG_CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_VCHR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_ENTT_VCHR_ENTT_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_category_product`
--
ALTER TABLE `mg_catalog_category_product`
  ADD CONSTRAINT `MG_CAT_CTGR_PRD_CTGR_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`category_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_CTGR_PRD_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_compare_item`
--
ALTER TABLE `mg_catalog_compare_item`
  ADD CONSTRAINT `MG_CATALOG_COMPARE_ITEM_CUSTOMER_ID_MG_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATALOG_COMPARE_ITEM_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE SET NULL,
  ADD CONSTRAINT `MG_CAT_CMP_ITEM_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_eav_attribute`
--
ALTER TABLE `mg_catalog_eav_attribute`
  ADD CONSTRAINT `MG_CAT_EAV_ATTR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_bundle_option`
--
ALTER TABLE `mg_catalog_product_bundle_option`
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_OPT_PARENT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_bundle_option_value`
--
ALTER TABLE `mg_catalog_product_bundle_option_value`
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_OPT_VAL_OPT_ID_MG_CAT_PRD_BNDL_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_catalog_product_bundle_option` (`option_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_bundle_price_index`
--
ALTER TABLE `mg_catalog_product_bundle_price_index`
  ADD CONSTRAINT `FK_F3E860D0DACEEBBFBF279E8F78E46AAD` FOREIGN KEY (`customer_group_id`) REFERENCES `mg_customer_group` (`customer_group_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_PRICE_IDX_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_bundle_selection`
--
ALTER TABLE `mg_catalog_product_bundle_selection`
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_SELECTION_OPT_ID_MG_CAT_PRD_BNDL_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_catalog_product_bundle_option` (`option_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_SELECTION_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_bundle_selection_price`
--
ALTER TABLE `mg_catalog_product_bundle_selection_price`
  ADD CONSTRAINT `FK_F2D0521A203A5C27BFDE0C64B836525D` FOREIGN KEY (`selection_id`) REFERENCES `mg_catalog_product_bundle_selection` (`selection_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_BNDL_SELECTION_PRICE_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_datetime`
--
ALTER TABLE `mg_catalog_product_entity_datetime`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_DTIME_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_DTIME_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_decimal`
--
ALTER TABLE `mg_catalog_product_entity_decimal`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_DEC_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_DEC_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_gallery`
--
ALTER TABLE `mg_catalog_product_entity_gallery`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_GLR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_GLR_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_int`
--
ALTER TABLE `mg_catalog_product_entity_int`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_ENTITY_INT_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_INT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_INT_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_media_gallery`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery`
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_MDA_GLR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_media_gallery_value`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value`
  ADD CONSTRAINT `FK_9E74861600CFFB7DC3B1B92170DF6782` FOREIGN KEY (`value_id`) REFERENCES `mg_catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_MDA_GLR_VAL_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_MDA_GLR_VAL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_media_gallery_value_to_entity`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value_to_entity`
  ADD CONSTRAINT `FK_35C200806C80AA0AFA7EAD50A16DF87B` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_D77F8722E917D10834008AAA1B9202A9` FOREIGN KEY (`value_id`) REFERENCES `mg_catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_media_gallery_value_video`
--
ALTER TABLE `mg_catalog_product_entity_media_gallery_value_video`
  ADD CONSTRAINT `FK_C9BFC872CD8CD29DE7BE374DB7F243BF` FOREIGN KEY (`value_id`) REFERENCES `mg_catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_text`
--
ALTER TABLE `mg_catalog_product_entity_text`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_TEXT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_TEXT_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_tier_price`
--
ALTER TABLE `mg_catalog_product_entity_tier_price`
  ADD CONSTRAINT `FK_0EAD7FC34CF8EEB6DA933AC217A9F138` FOREIGN KEY (`customer_group_id`) REFERENCES `mg_customer_group` (`customer_group_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_TIER_PRICE_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_TIER_PRICE_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_entity_varchar`
--
ALTER TABLE `mg_catalog_product_entity_varchar`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_VCHR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_ENTT_VCHR_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_frontend_action`
--
ALTER TABLE `mg_catalog_product_frontend_action`
  ADD CONSTRAINT `MG_CAT_PRD_FRONTEND_ACTION_CSTR_ID_MG_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_FRONTEND_ACTION_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_index_tier_price`
--
ALTER TABLE `mg_catalog_product_index_tier_price`
  ADD CONSTRAINT `FK_3EF0EFE7EEF4423557A86C7D6DFBCB2D` FOREIGN KEY (`customer_group_id`) REFERENCES `mg_customer_group` (`customer_group_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_IDX_TIER_PRICE_ENTT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_IDX_TIER_PRICE_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_index_website`
--
ALTER TABLE `mg_catalog_product_index_website`
  ADD CONSTRAINT `MG_CAT_PRD_IDX_WS_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_link`
--
ALTER TABLE `mg_catalog_product_link`
  ADD CONSTRAINT `MG_CAT_PRD_LNK_LNKED_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`linked_product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_LNK_LNK_TYPE_ID_MG_CAT_PRD_LNK_TYPE_LNK_TYPE_ID` FOREIGN KEY (`link_type_id`) REFERENCES `mg_catalog_product_link_type` (`link_type_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_LNK_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_link_attribute`
--
ALTER TABLE `mg_catalog_product_link_attribute`
  ADD CONSTRAINT `MG_CAT_PRD_LNK_ATTR_LNK_TYPE_ID_MG_CAT_PRD_LNK_TYPE_LNK_TYPE_ID` FOREIGN KEY (`link_type_id`) REFERENCES `mg_catalog_product_link_type` (`link_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_link_attribute_decimal`
--
ALTER TABLE `mg_catalog_product_link_attribute_decimal`
  ADD CONSTRAINT `FK_38E871CE377CDC9B63D9A1CAE959099D` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `mg_catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_LNK_ATTR_DEC_LNK_ID_MG_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `mg_catalog_product_link` (`link_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_link_attribute_int`
--
ALTER TABLE `mg_catalog_product_link_attribute_int`
  ADD CONSTRAINT `FK_77EBD7C6B6B4BF3208DD69658F5BAC4A` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `mg_catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_LNK_ATTR_INT_LNK_ID_MG_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `mg_catalog_product_link` (`link_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_link_attribute_varchar`
--
ALTER TABLE `mg_catalog_product_link_attribute_varchar`
  ADD CONSTRAINT `FK_24039B2859452C276743FB232A0B805B` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `mg_catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_LNK_ATTR_VCHR_LNK_ID_MG_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `mg_catalog_product_link` (`link_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_option`
--
ALTER TABLE `mg_catalog_product_option`
  ADD CONSTRAINT `MG_CAT_PRD_OPT_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_option_price`
--
ALTER TABLE `mg_catalog_product_option_price`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_OPTION_PRICE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_OPT_PRICE_OPT_ID_MG_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_catalog_product_option` (`option_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_option_title`
--
ALTER TABLE `mg_catalog_product_option_title`
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_OPTION_TITLE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_OPT_TTL_OPT_ID_MG_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_catalog_product_option` (`option_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_option_type_price`
--
ALTER TABLE `mg_catalog_product_option_type_price`
  ADD CONSTRAINT `FK_144DB6851C12D4DF43807C8D904278D5` FOREIGN KEY (`option_type_id`) REFERENCES `mg_catalog_product_option_type_value` (`option_type_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_option_type_title`
--
ALTER TABLE `mg_catalog_product_option_type_title`
  ADD CONSTRAINT `FK_E094412A592F73545A15400FBE8AC662` FOREIGN KEY (`option_type_id`) REFERENCES `mg_catalog_product_option_type_value` (`option_type_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_option_type_value`
--
ALTER TABLE `mg_catalog_product_option_type_value`
  ADD CONSTRAINT `MG_CAT_PRD_OPT_TYPE_VAL_OPT_ID_MG_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_catalog_product_option` (`option_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_relation`
--
ALTER TABLE `mg_catalog_product_relation`
  ADD CONSTRAINT `MG_CAT_PRD_RELATION_CHILD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`child_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_RELATION_PARENT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_super_attribute`
--
ALTER TABLE `mg_catalog_product_super_attribute`
  ADD CONSTRAINT `MG_CAT_PRD_SPR_ATTR_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_super_attribute_label`
--
ALTER TABLE `mg_catalog_product_super_attribute_label`
  ADD CONSTRAINT `FK_FDC7F5C8A5A6011A7C891585668338C6` FOREIGN KEY (`product_super_attribute_id`) REFERENCES `mg_catalog_product_super_attribute` (`product_super_attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_SPR_ATTR_LBL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_super_link`
--
ALTER TABLE `mg_catalog_product_super_link`
  ADD CONSTRAINT `MG_CAT_PRD_SPR_LNK_PARENT_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_SPR_LNK_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_product_website`
--
ALTER TABLE `mg_catalog_product_website`
  ADD CONSTRAINT `MG_CAT_PRD_WS_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_PRD_WS_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_catalog_url_rewrite_product_category`
--
ALTER TABLE `mg_catalog_url_rewrite_product_category`
  ADD CONSTRAINT `FK_D2BB00D30043A5342877FA74E0638ADE` FOREIGN KEY (`url_rewrite_id`) REFERENCES `mg_url_rewrite` (`url_rewrite_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_MG_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`category_id`) REFERENCES `mg_catalog_category_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CAT_URL_REWRITE_PRD_CTGR_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor`
--
ALTER TABLE `mg_ced_csmarketplace_vendor`
  ADD CONSTRAINT `MG_CED_CSMARKETPLACE_VENDOR_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE SET NULL;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_datetime`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_datetime`
  ADD CONSTRAINT `FK_E3428B1AA87C5D822CFFFC00AECB69FE` FOREIGN KEY (`entity_id`) REFERENCES `mg_ced_csmarketplace_vendor` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CED_CSMARKETPLACE_VENDOR_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_decimal`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_decimal`
  ADD CONSTRAINT `FK_17E1D494CA8D3C034D06D7AE3D84A8B9` FOREIGN KEY (`entity_id`) REFERENCES `mg_ced_csmarketplace_vendor` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CED_CSMARKETPLACE_VENDOR_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_int`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_int`
  ADD CONSTRAINT `FK_42D44C0EFEBC110C5371668D06860BAD` FOREIGN KEY (`entity_id`) REFERENCES `mg_ced_csmarketplace_vendor` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CED_CSMARKETPLACE_VENDOR_INT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_products`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_products`
  ADD CONSTRAINT `ced_csmarketplace_vendor_product_vendor_id_to_fk` FOREIGN KEY (`vendor_id`) REFERENCES `mg_ced_csmarketplace_vendor` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `ced_csmarketplace_vendor_products_product_id_to_fk` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_products_status`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_products_status`
  ADD CONSTRAINT `ced_csmarketplace_vendor_products_status_product_id_to_fk` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_text`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_text`
  ADD CONSTRAINT `FK_F5284CD0B00E78921BABA627E798CBB2` FOREIGN KEY (`entity_id`) REFERENCES `mg_ced_csmarketplace_vendor` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CED_CSMARKETPLACE_VENDOR_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csmarketplace_vendor_varchar`
--
ALTER TABLE `mg_ced_csmarketplace_vendor_varchar`
  ADD CONSTRAINT `FK_F73B13BD87996C1C2BF7D8ADF38BB9DD` FOREIGN KEY (`entity_id`) REFERENCES `mg_ced_csmarketplace_vendor` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CED_CSMARKETPLACE_VENDOR_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csrma_chat`
--
ALTER TABLE `mg_ced_csrma_chat`
  ADD CONSTRAINT `FK_1CA0BE9D1586E29E1305CFD8807981EB` FOREIGN KEY (`rma_request_id`) REFERENCES `mg_ced_csrma_request` (`rma_request_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csrma_items`
--
ALTER TABLE `mg_ced_csrma_items`
  ADD CONSTRAINT `FK_487504B038BBBE1EB212020CFA984914` FOREIGN KEY (`rma_request_id`) REFERENCES `mg_ced_csrma_request` (`rma_request_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csrma_notification`
--
ALTER TABLE `mg_ced_csrma_notification`
  ADD CONSTRAINT `FK_10E1E837FC0D15170F8DAF2CE21FDA74` FOREIGN KEY (`rma_request_id`) REFERENCES `mg_ced_csrma_request` (`rma_request_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_ced_csrma_shipping`
--
ALTER TABLE `mg_ced_csrma_shipping`
  ADD CONSTRAINT `FK_40C0DAA8E2CC579D0EB77D9679A62818` FOREIGN KEY (`rma_request_id`) REFERENCES `mg_ced_csrma_request` (`rma_request_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_checkout_agreement_store`
--
ALTER TABLE `mg_checkout_agreement_store`
  ADD CONSTRAINT `MG_CHECKOUT_AGREEMENT_STORE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CHKT_AGRT_STORE_AGRT_ID_MG_CHKT_AGRT_AGRT_ID` FOREIGN KEY (`agreement_id`) REFERENCES `mg_checkout_agreement` (`agreement_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_cms_block_store`
--
ALTER TABLE `mg_cms_block_store`
  ADD CONSTRAINT `MG_CMS_BLOCK_STORE_BLOCK_ID_MG_CMS_BLOCK_BLOCK_ID` FOREIGN KEY (`block_id`) REFERENCES `mg_cms_block` (`block_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CMS_BLOCK_STORE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_cms_page_store`
--
ALTER TABLE `mg_cms_page_store`
  ADD CONSTRAINT `MG_CMS_PAGE_STORE_PAGE_ID_MG_CMS_PAGE_PAGE_ID` FOREIGN KEY (`page_id`) REFERENCES `mg_cms_page` (`page_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CMS_PAGE_STORE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_address_entity`
--
ALTER TABLE `mg_customer_address_entity`
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_PARENT_ID_MG_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_address_entity_datetime`
--
ALTER TABLE `mg_customer_address_entity_datetime`
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_DTIME_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_DTIME_ENTT_ID_MG_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_address_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_address_entity_decimal`
--
ALTER TABLE `mg_customer_address_entity_decimal`
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_DEC_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_DEC_ENTT_ID_MG_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_address_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_address_entity_int`
--
ALTER TABLE `mg_customer_address_entity_int`
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_INT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_INT_ENTT_ID_MG_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_address_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_address_entity_text`
--
ALTER TABLE `mg_customer_address_entity_text`
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_TEXT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_TEXT_ENTT_ID_MG_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_address_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_address_entity_varchar`
--
ALTER TABLE `mg_customer_address_entity_varchar`
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_VCHR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ADDR_ENTT_VCHR_ENTT_ID_MG_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_address_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_eav_attribute`
--
ALTER TABLE `mg_customer_eav_attribute`
  ADD CONSTRAINT `MG_CSTR_EAV_ATTR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_eav_attribute_website`
--
ALTER TABLE `mg_customer_eav_attribute_website`
  ADD CONSTRAINT `MG_CSTR_EAV_ATTR_WS_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_EAV_ATTR_WS_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_entity_datetime`
--
ALTER TABLE `mg_customer_entity_datetime`
  ADD CONSTRAINT `MG_CSTR_ENTT_DTIME_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ENTT_DTIME_ENTT_ID_MG_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_entity_decimal`
--
ALTER TABLE `mg_customer_entity_decimal`
  ADD CONSTRAINT `MG_CSTR_ENTT_DEC_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ENTT_DEC_ENTT_ID_MG_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_entity_int`
--
ALTER TABLE `mg_customer_entity_int`
  ADD CONSTRAINT `MG_CSTR_ENTT_INT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CUSTOMER_ENTITY_INT_ENTITY_ID_MG_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_entity_text`
--
ALTER TABLE `mg_customer_entity_text`
  ADD CONSTRAINT `MG_CSTR_ENTT_TEXT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CUSTOMER_ENTITY_TEXT_ENTITY_ID_MG_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_entity_varchar`
--
ALTER TABLE `mg_customer_entity_varchar`
  ADD CONSTRAINT `MG_CSTR_ENTT_VCHR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_CSTR_ENTT_VCHR_ENTT_ID_MG_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_customer_form_attribute`
--
ALTER TABLE `mg_customer_form_attribute`
  ADD CONSTRAINT `MG_CSTR_FORM_ATTR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_design_change`
--
ALTER TABLE `mg_design_change`
  ADD CONSTRAINT `MG_DESIGN_CHANGE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_directory_country_region_name`
--
ALTER TABLE `mg_directory_country_region_name`
  ADD CONSTRAINT `FK_6A6A5D963124973EC754F67FE713657B` FOREIGN KEY (`region_id`) REFERENCES `mg_directory_country_region` (`region_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_downloadable_link`
--
ALTER TABLE `mg_downloadable_link`
  ADD CONSTRAINT `MG_DL_LNK_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_downloadable_link_price`
--
ALTER TABLE `mg_downloadable_link_price`
  ADD CONSTRAINT `MG_DL_LNK_PRICE_WS_ID_MG_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_DOWNLOADABLE_LINK_PRICE_LINK_ID_MG_DOWNLOADABLE_LINK_LINK_ID` FOREIGN KEY (`link_id`) REFERENCES `mg_downloadable_link` (`link_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_downloadable_link_purchased`
--
ALTER TABLE `mg_downloadable_link_purchased`
  ADD CONSTRAINT `MG_DL_LNK_PURCHASED_CSTR_ID_MG_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE SET NULL,
  ADD CONSTRAINT `MG_DOWNLOADABLE_LINK_PURCHASED_ORDER_ID_MG_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `mg_sales_order` (`entity_id`) ON DELETE SET NULL;

--
-- Constraints for table `mg_downloadable_link_purchased_item`
--
ALTER TABLE `mg_downloadable_link_purchased_item`
  ADD CONSTRAINT `FK_9CE53D86AF3E987F074E6E975F48B58C` FOREIGN KEY (`purchased_id`) REFERENCES `mg_downloadable_link_purchased` (`purchased_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_D036A396DBF8F674DD128C091F9D32F9` FOREIGN KEY (`order_item_id`) REFERENCES `mg_sales_order_item` (`item_id`) ON DELETE SET NULL;

--
-- Constraints for table `mg_downloadable_link_title`
--
ALTER TABLE `mg_downloadable_link_title`
  ADD CONSTRAINT `MG_DOWNLOADABLE_LINK_TITLE_LINK_ID_MG_DOWNLOADABLE_LINK_LINK_ID` FOREIGN KEY (`link_id`) REFERENCES `mg_downloadable_link` (`link_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_DOWNLOADABLE_LINK_TITLE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_downloadable_sample`
--
ALTER TABLE `mg_downloadable_sample`
  ADD CONSTRAINT `MG_DL_SAMPLE_PRD_ID_MG_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_downloadable_sample_title`
--
ALTER TABLE `mg_downloadable_sample_title`
  ADD CONSTRAINT `MG_DL_SAMPLE_TTL_SAMPLE_ID_MG_DL_SAMPLE_SAMPLE_ID` FOREIGN KEY (`sample_id`) REFERENCES `mg_downloadable_sample` (`sample_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_DOWNLOADABLE_SAMPLE_TITLE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute`
--
ALTER TABLE `mg_eav_attribute`
  ADD CONSTRAINT `MG_EAV_ATTR_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute_group`
--
ALTER TABLE `mg_eav_attribute_group`
  ADD CONSTRAINT `MG_EAV_ATTR_GROUP_ATTR_SET_ID_MG_EAV_ATTR_SET_ATTR_SET_ID` FOREIGN KEY (`attribute_set_id`) REFERENCES `mg_eav_attribute_set` (`attribute_set_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute_label`
--
ALTER TABLE `mg_eav_attribute_label`
  ADD CONSTRAINT `MG_EAV_ATTRIBUTE_LABEL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ATTR_LBL_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute_option`
--
ALTER TABLE `mg_eav_attribute_option`
  ADD CONSTRAINT `MG_EAV_ATTR_OPT_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute_option_swatch`
--
ALTER TABLE `mg_eav_attribute_option_swatch`
  ADD CONSTRAINT `MG_EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ATTR_OPT_SWATCH_OPT_ID_MG_EAV_ATTR_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_eav_attribute_option` (`option_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute_option_value`
--
ALTER TABLE `mg_eav_attribute_option_value`
  ADD CONSTRAINT `MG_EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ATTR_OPT_VAL_OPT_ID_MG_EAV_ATTR_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `mg_eav_attribute_option` (`option_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_attribute_set`
--
ALTER TABLE `mg_eav_attribute_set`
  ADD CONSTRAINT `MG_EAV_ATTR_SET_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity`
--
ALTER TABLE `mg_eav_entity`
  ADD CONSTRAINT `MG_EAV_ENTITY_ENTITY_TYPE_ID_MG_EAV_ENTITY_TYPE_ENTITY_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTITY_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_attribute`
--
ALTER TABLE `mg_eav_entity_attribute`
  ADD CONSTRAINT `MG_EAV_ENTT_ATTR_ATTR_GROUP_ID_MG_EAV_ATTR_GROUP_ATTR_GROUP_ID` FOREIGN KEY (`attribute_group_id`) REFERENCES `mg_eav_attribute_group` (`attribute_group_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_ATTR_ATTR_ID_MG_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_datetime`
--
ALTER TABLE `mg_eav_entity_datetime`
  ADD CONSTRAINT `MG_EAV_ENTITY_DATETIME_ENTITY_ID_MG_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_eav_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTITY_DATETIME_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_DTIME_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_decimal`
--
ALTER TABLE `mg_eav_entity_decimal`
  ADD CONSTRAINT `MG_EAV_ENTITY_DECIMAL_ENTITY_ID_MG_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_eav_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTITY_DECIMAL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_DEC_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_int`
--
ALTER TABLE `mg_eav_entity_int`
  ADD CONSTRAINT `MG_EAV_ENTITY_INT_ENTITY_ID_MG_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_eav_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTITY_INT_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_INT_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_store`
--
ALTER TABLE `mg_eav_entity_store`
  ADD CONSTRAINT `MG_EAV_ENTITY_STORE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_STORE_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_text`
--
ALTER TABLE `mg_eav_entity_text`
  ADD CONSTRAINT `MG_EAV_ENTITY_TEXT_ENTITY_ID_MG_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_eav_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTITY_TEXT_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_TEXT_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_entity_varchar`
--
ALTER TABLE `mg_eav_entity_varchar`
  ADD CONSTRAINT `MG_EAV_ENTITY_VARCHAR_ENTITY_ID_MG_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `mg_eav_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTITY_VARCHAR_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_ENTT_VCHR_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_form_element`
--
ALTER TABLE `mg_eav_form_element`
  ADD CONSTRAINT `MG_EAV_FORM_ELEMENT_ATTRIBUTE_ID_MG_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `mg_eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_FORM_ELEMENT_FIELDSET_ID_MG_EAV_FORM_FIELDSET_FIELDSET_ID` FOREIGN KEY (`fieldset_id`) REFERENCES `mg_eav_form_fieldset` (`fieldset_id`) ON DELETE SET NULL,
  ADD CONSTRAINT `MG_EAV_FORM_ELEMENT_TYPE_ID_MG_EAV_FORM_TYPE_TYPE_ID` FOREIGN KEY (`type_id`) REFERENCES `mg_eav_form_type` (`type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_form_fieldset`
--
ALTER TABLE `mg_eav_form_fieldset`
  ADD CONSTRAINT `MG_EAV_FORM_FIELDSET_TYPE_ID_MG_EAV_FORM_TYPE_TYPE_ID` FOREIGN KEY (`type_id`) REFERENCES `mg_eav_form_type` (`type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_form_fieldset_label`
--
ALTER TABLE `mg_eav_form_fieldset_label`
  ADD CONSTRAINT `MG_EAV_FORM_FIELDSET_LABEL_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_FORM_FSET_LBL_FSET_ID_MG_EAV_FORM_FSET_FSET_ID` FOREIGN KEY (`fieldset_id`) REFERENCES `mg_eav_form_fieldset` (`fieldset_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_form_type`
--
ALTER TABLE `mg_eav_form_type`
  ADD CONSTRAINT `MG_EAV_FORM_TYPE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_eav_form_type_entity`
--
ALTER TABLE `mg_eav_form_type_entity`
  ADD CONSTRAINT `MG_EAV_FORM_TYPE_ENTITY_TYPE_ID_MG_EAV_FORM_TYPE_TYPE_ID` FOREIGN KEY (`type_id`) REFERENCES `mg_eav_form_type` (`type_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EAV_FORM_TYPE_ENTT_ENTT_TYPE_ID_MG_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `mg_eav_entity_type` (`entity_type_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_email_campaign`
--
ALTER TABLE `mg_email_campaign`
  ADD CONSTRAINT `MG_EMAIL_CAMPAIGN_STORE_ID_CORE/STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_email_catalog`
--
ALTER TABLE `mg_email_catalog`
  ADD CONSTRAINT `MG_EMAIL_CATALOG_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` FOREIGN KEY (`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_email_contact`
--
ALTER TABLE `mg_email_contact`
  ADD CONSTRAINT `MG_EMAIL_CONTACT_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `mg_store_website` (`website_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_email_contact_consent`
--
ALTER TABLE `mg_email_contact_consent`
  ADD CONSTRAINT `FK_76D973049EBC61D367A40A19B41593FE` FOREIGN KEY (`email_contact_id`) REFERENCES `mg_email_contact` (`email_contact_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_email_order`
--
ALTER TABLE `mg_email_order`
  ADD CONSTRAINT `MG_EMAIL_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `mg_sales_order` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EMAIL_ORDER_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_email_wishlist`
--
ALTER TABLE `mg_email_wishlist`
  ADD CONSTRAINT `MG_EMAIL_WISHLIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `mg_customer_entity` (`entity_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_EMAIL_WISHLIST_WISHLIST_ID_WISHLIST_WISHLIST_ID` FOREIGN KEY (`wishlist_id`) REFERENCES `mg_wishlist` (`wishlist_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_googleoptimizer_code`
--
ALTER TABLE `mg_googleoptimizer_code`
  ADD CONSTRAINT `MG_GOOGLEOPTIMIZER_CODE_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_integration`
--
ALTER TABLE `mg_integration`
  ADD CONSTRAINT `MG_INTEGRATION_CONSUMER_ID_MG_OAUTH_CONSUMER_ENTITY_ID` FOREIGN KEY (`consumer_id`) REFERENCES `mg_oauth_consumer` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_inventory_source_carrier_link`
--
ALTER TABLE `mg_inventory_source_carrier_link`
  ADD CONSTRAINT `MG_INV_SOURCE_CARRIER_LNK_SOURCE_CODE_MG_INV_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `mg_inventory_source` (`source_code`) ON DELETE CASCADE;

--
-- Constraints for table `mg_inventory_source_item`
--
ALTER TABLE `mg_inventory_source_item`
  ADD CONSTRAINT `MG_INV_SOURCE_ITEM_SOURCE_CODE_MG_INV_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `mg_inventory_source` (`source_code`) ON DELETE CASCADE;

--
-- Constraints for table `mg_inventory_source_stock_link`
--
ALTER TABLE `mg_inventory_source_stock_link`
  ADD CONSTRAINT `MG_INV_SOURCE_STOCK_LNK_SOURCE_CODE_MG_INV_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `mg_inventory_source` (`source_code`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_INV_SOURCE_STOCK_LNK_STOCK_ID_MG_INV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `mg_inventory_stock` (`stock_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_inventory_stock_sales_channel`
--
ALTER TABLE `mg_inventory_stock_sales_channel`
  ADD CONSTRAINT `MG_INV_STOCK_SALES_CHANNEL_STOCK_ID_MG_INV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `mg_inventory_stock` (`stock_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_klarna_core_order`
--
ALTER TABLE `mg_klarna_core_order`
  ADD CONSTRAINT `MG_KLARNA_CORE_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `mg_sales_order` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_layout_link`
--
ALTER TABLE `mg_layout_link`
  ADD CONSTRAINT `MG_LAYOUT_LINK_STORE_ID_MG_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_LAYOUT_LINK_THEME_ID_MG_THEME_THEME_ID` FOREIGN KEY (`theme_id`) REFERENCES `mg_theme` (`theme_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_LYT_LNK_LYT_UPDATE_ID_MG_LYT_UPDATE_LYT_UPDATE_ID` FOREIGN KEY (`layout_update_id`) REFERENCES `mg_layout_update` (`layout_update_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_magefan_blog_category_store`
--
ALTER TABLE `mg_magefan_blog_category_store`
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_CATEGORY_STORE_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_CTGR_STORE_CTGR_ID_MAGEFAN_BLOG_CTGR_CTGR_ID` FOREIGN KEY (`category_id`) REFERENCES `mg_magefan_blog_category` (`category_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_magefan_blog_comment`
--
ALTER TABLE `mg_magefan_blog_comment`
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_COMMENT_POST_ID_MAGEFAN_BLOG_POST_POST_ID` FOREIGN KEY (`post_id`) REFERENCES `mg_magefan_blog_post` (`post_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_magefan_blog_post_category`
--
ALTER TABLE `mg_magefan_blog_post_category`
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_POST_CATEGORY_POST_ID_MAGEFAN_BLOG_POST_POST_ID` FOREIGN KEY (`post_id`) REFERENCES `mg_magefan_blog_post` (`post_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_POST_CTGR_CTGR_ID_MAGEFAN_BLOG_CTGR_CTGR_ID` FOREIGN KEY (`category_id`) REFERENCES `mg_magefan_blog_category` (`category_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_magefan_blog_post_relatedpost`
--
ALTER TABLE `mg_magefan_blog_post_relatedpost`
  ADD CONSTRAINT `FK_3C752A3EF45A1352D77E7623D7082005` FOREIGN KEY (`post_id`) REFERENCES `mg_magefan_blog_post` (`post_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_EAA1BDFE3C3A4AE98C9620018F284C6D` FOREIGN KEY (`post_id`) REFERENCES `mg_magefan_blog_post` (`post_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_magefan_blog_post_relatedproduct`
--
ALTER TABLE `mg_magefan_blog_post_relatedproduct`
  ADD CONSTRAINT `FK_6D889D793C3B49DACDB5662AF71B7217` FOREIGN KEY (`post_id`) REFERENCES `mg_magefan_blog_post` (`post_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_POST_RELATEDPRD_RELATED_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`related_id`) REFERENCES `mg_catalog_product_entity` (`entity_id`) ON DELETE CASCADE;

--
-- Constraints for table `mg_magefan_blog_post_store`
--
ALTER TABLE `mg_magefan_blog_post_store`
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_POST_STORE_POST_ID_MAGEFAN_BLOG_POST_POST_ID` FOREIGN KEY (`post_id`) REFERENCES `mg_magefan_blog_post` (`post_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `MG_MAGEFAN_BLOG_POST_STORE_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `mg_store` (`store_id`) ON DELETE CASCADE;
COMMIT;

