ALTER TABLE products ADD CONSTRAINT products_FK_1 FOREIGN KEY (manufacturers_id) REFERENCES manufacturers(manufacturers_id); ALTER TABLE orders_products_attributes ADD CONSTRAINT orders_products_attributes_FK_1 FOREIGN KEY (orders_id) REFERENCES orders(orders_id); ALTER TABLE orders_products_attributes ADD CONSTRAINT orders_products_attributes_FK_2 FOREIGN KEY (orders_products_id) REFERENCES orders_products(orders_products_id); ALTER TABLE orders_products_attributes ADD CONSTRAINT orders_products_attributes_FK_3 FOREIGN KEY (products_options_id) REFERENCES products_options(products_options_id); ALTER TABLE orders_products_attributes ADD CONSTRAINT orders_products_attributes_FK_4 FOREIGN KEY (products_options_values_id) REFERENCES products_options_values(products_options_values_id); ALTER TABLE orders_products_download ADD CONSTRAINT orders_products_download_FK_1 FOREIGN KEY (orders_id) REFERENCES orders(orders_id); ALTER TABLE orders_products_download ADD CONSTRAINT orders_products_download_FK_2 FOREIGN KEY (orders_products_id) REFERENCES orders_products(orders_products_id); ALTER TABLE orders_status_history ADD CONSTRAINT orders_status_history_FK_1 FOREIGN KEY (orders_id) REFERENCES orders(orders_id); ALTER TABLE orders_status_history ADD CONSTRAINT orders_status_history_FK_2 FOREIGN KEY (orders_status_id) REFERENCES orders_status(orders_status_id); ALTER TABLE orders_total ADD CONSTRAINT orders_total_FK_1 FOREIGN KEY (orders_id) REFERENCES orders(orders_id); ALTER TABLE record_company_info ADD CONSTRAINT record_company_info_FK_1 FOREIGN KEY (record_company_id) REFERENCES record_company(record_company_id); ALTER TABLE record_company_info ADD CONSTRAINT record_company_info_FK_2 FOREIGN KEY (languages_id) REFERENCES languages(languages_id); ALTER TABLE reviews ADD CONSTRAINT reviews_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE reviews ADD CONSTRAINT reviews_FK_2 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE reviews_description ADD CONSTRAINT reviews_description_FK_1 FOREIGN KEY (reviews_id) REFERENCES reviews(reviews_id); ALTER TABLE reviews_description ADD CONSTRAINT reviews_description_FK_2 FOREIGN KEY (languages_id) REFERENCES languages(languages_id); ALTER TABLE banners_history ADD CONSTRAINT banners_history_FK_1 FOREIGN KEY (banners_id) REFERENCES banners(banners_id); ALTER TABLE categories_description ADD CONSTRAINT categories_description_FK_1 FOREIGN KEY (categories_id) REFERENCES categories(categories_id); ALTER TABLE countries ADD CONSTRAINT countries_FK_1 FOREIGN KEY (address_format_id) REFERENCES address_format(address_format_id); ALTER TABLE files_uploaded ADD CONSTRAINT files_uploaded_FK_1 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE manufacturers_info ADD CONSTRAINT manufacturers_info_FK_1 FOREIGN KEY (manufacturers_id) REFERENCES manufacturers(manufacturers_id); ALTER TABLE manufacturers_info ADD CONSTRAINT manufacturers_info_FK_2 FOREIGN KEY (languages_id) REFERENCES languages(languages_id); ALTER TABLE orders ADD CONSTRAINT orders_FK_1 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE orders_products ADD CONSTRAINT orders_products_FK_1 FOREIGN KEY (orders_id) REFERENCES orders(orders_id); ALTER TABLE orders_products ADD CONSTRAINT orders_products_FK_2 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_description ADD CONSTRAINT products_description_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_discount_quantity ADD CONSTRAINT products_discount_quantity_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_notifications ADD CONSTRAINT products_notifications_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_notifications ADD CONSTRAINT products_notifications_FK_2 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE products_to_categories ADD CONSTRAINT products_to_categories_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_to_categories ADD CONSTRAINT products_to_categories_FK_2 FOREIGN KEY (categories_id) REFERENCES categories(categories_id); ALTER TABLE project_version_history ADD CONSTRAINT project_version_history_FK_1 FOREIGN KEY (project_version_id) REFERENCES project_version(project_version_id); ALTER TABLE record_artists_info ADD CONSTRAINT record_artists_info_FK_1 FOREIGN KEY (languages_id) REFERENCES languages(languages_id); ALTER TABLE product_music_extra ADD CONSTRAINT product_music_extra_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE product_music_extra ADD CONSTRAINT product_music_extra_FK_2 FOREIGN KEY (record_company_id) REFERENCES record_company(record_company_id); ALTER TABLE product_music_extra ADD CONSTRAINT product_music_extra_FK_3 FOREIGN KEY (music_genre_id) REFERENCES music_genre(music_genre_id); ALTER TABLE specials ADD CONSTRAINT specials_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE tax_rates ADD CONSTRAINT tax_rates_FK_1 FOREIGN KEY (tax_class_id) REFERENCES tax_class(tax_class_id); ALTER TABLE meta_tags_categories_description ADD CONSTRAINT meta_tags_categories_description_FK_1 FOREIGN KEY (categories_id) REFERENCES categories(categories_id); ALTER TABLE products_attributes ADD CONSTRAINT products_attributes_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_attributes_download ADD CONSTRAINT products_attributes_download_FK_1 FOREIGN KEY (products_attributes_id) REFERENCES products_attributes(products_attributes_id); ALTER TABLE admin_activity_log ADD CONSTRAINT admin_activity_log_FK_1 FOREIGN KEY (admin_id) REFERENCES admin(admin_id); ALTER TABLE configuration ADD CONSTRAINT configuration_FK_1 FOREIGN KEY (configuration_group_id) REFERENCES configuration_group(configuration_group_id); ALTER TABLE address_book ADD CONSTRAINT address_book_FK_1 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE customers_basket ADD CONSTRAINT customers_basket_FK_1 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE customers_basket ADD CONSTRAINT customers_basket_FK_2 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE customers_basket_attributes ADD CONSTRAINT customers_basket_attributes_FK_1 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE customers_basket_attributes ADD CONSTRAINT customers_basket_attributes_FK_2 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE customers_basket_attributes ADD CONSTRAINT customers_basket_attributes_FK_3 FOREIGN KEY (products_options_id) REFERENCES products_options(products_options_id); ALTER TABLE customers_wishlist ADD CONSTRAINT customers_wishlist_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE customers_wishlist ADD CONSTRAINT customers_wishlist_FK_2 FOREIGN KEY (customers_id) REFERENCES customers(customers_id); ALTER TABLE ezpages ADD CONSTRAINT ezpages_FK_1 FOREIGN KEY (languages_id) REFERENCES languages(languages_id); ALTER TABLE meta_tags_products_description ADD CONSTRAINT meta_tags_products_description_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE featured ADD CONSTRAINT featured_FK_1 FOREIGN KEY (products_id) REFERENCES products(products_id); ALTER TABLE products_options_values_to_products_options ADD CONSTRAINT products_options_values_to_products_options_FK_1 FOREIGN KEY (products_options_id) REFERENCES products_options(products_options_id); ALTER TABLE products_options_values_to_products_options ADD CONSTRAINT products_options_values_to_products_options_FK_2 FOREIGN KEY (products_options_values_id) REFERENCES products_options_values(products_options_values_id);