 --
 -- Filtros para la tabla `product`
 --
-ALTER TABLE `product`
-ADD CONSTRAINT `fk_user` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE NO ACTION ON UPDATE NO ACTION;
+
 
 --
 -- Filtros para la tabla `product_language`

ALTER TABLE `material`
ADD CONSTRAINT `fk_id_category_material` FOREIGN KEY (`id_category`) REFERENCES `category` (`id_category`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_id_measurement_material` FOREIGN KEY (`id_measurement`) REFERENCES `measurement` (`id_measurement`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_id_user_user` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Filtros para la tabla `material_combination`

CREATE TABLE IF NOT EXISTS `product` (
`id_product` int(11) NOT NULL,
  `id_product_prestashop` int(11) NOT NULL,
  `id_craft_shop` int(11) NOT NULL,
  CONSTRAINT `fk_shop_id_product` FOREIGN KEY (`id_craft_shop`) REFERENCES `craftshop` (`id_craftshop`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `product`
--

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

