<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20221012081348 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE customers_bundle__customer (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', customer_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_group_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', country_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', country_state_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, firstname VARCHAR(128) DEFAULT NULL, lastname VARCHAR(128) DEFAULT NULL, nature INT DEFAULT NULL, address VARCHAR(35) DEFAULT NULL, address_2 VARCHAR(35) DEFAULT NULL, postcode VARCHAR(12) DEFAULT NULL, city VARCHAR(50) DEFAULT NULL, vat_number VARCHAR(32) DEFAULT NULL, siret VARCHAR(16) DEFAULT NULL, phone VARCHAR(32) DEFAULT NULL, phone_mobile VARCHAR(32) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, website VARCHAR(128) DEFAULT NULL, internal_note LONGTEXT DEFAULT NULL, blocked TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_1FD6BD95D991282D (customer_type_id), INDEX IDX_1FD6BD95D2919A68 (customer_group_id), INDEX IDX_1FD6BD95F92F3E70 (country_id), INDEX IDX_1FD6BD9536126D7C (country_state_id), INDEX IDX_1FD6BD95727ACA70 (parent_id), INDEX IDX_1FD6BD956B00C1CF (context_id), INDEX IDX_1FD6BD9538248176 (currency_id), INDEX IDX_1FD6BD95B03A8386 (created_by_id), INDEX IDX_1FD6BD95896DBBDE (updated_by_id), INDEX IDX_1FD6BD95C76F1F52 (deleted_by_id), INDEX name (name), INDEX firstname (firstname), INDEX lastname (lastname), INDEX postcode (postcode), INDEX city (city), INDEX phone (phone), INDEX phone_mobile (phone_mobile), INDEX email (email), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customers_bundle__customer_group_customer (customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', customer_group_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_85C42ABD9395C3F3 (customer_id), INDEX IDX_85C42ABDD2919A68 (customer_group_id), PRIMARY KEY(customer_id, customer_group_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customers_bundle__customer_group (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(32) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_5641E104B03A8386 (created_by_id), INDEX IDX_5641E104896DBBDE (updated_by_id), INDEX IDX_5641E104C76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customers_bundle__customer_group_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_2CA9AD1F232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customers_bundle__customer_type (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(32) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_635B5E09B03A8386 (created_by_id), INDEX IDX_635B5E09896DBBDE (updated_by_id), INDEX IDX_635B5E09C76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customers_bundle__customer_type_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_AF7CDEC7232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE product_returns_bundle__converted_document (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_return_line_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', credit_note_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity NUMERIC(20, 6) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_3D4C864383A19B1 (product_return_line_id), INDEX IDX_3D4C86438D9F6D38 (order_id), INDEX IDX_3D4C86431C696F7A (credit_note_id), INDEX IDX_3D4C8643B03A8386 (created_by_id), INDEX IDX_3D4C8643896DBBDE (updated_by_id), INDEX IDX_3D4C8643C76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE product_returns_bundle__product_return (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', delivery_note_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', state_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', reference VARCHAR(128) DEFAULT NULL, reason LONGTEXT DEFAULT NULL, request_date DATE DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_1DBC22896B00C1CF (context_id), INDEX IDX_1DBC22899395C3F3 (customer_id), INDEX IDX_1DBC22898D9F6D38 (order_id), INDEX IDX_1DBC22892CF3B78B (delivery_note_id), INDEX IDX_1DBC22895D83CC1 (state_id), INDEX IDX_1DBC2289B03A8386 (created_by_id), INDEX IDX_1DBC2289896DBBDE (updated_by_id), INDEX IDX_1DBC2289C76F1F52 (deleted_by_id), INDEX reference (reference), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE product_returns_bundle__product_return_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_return_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', delivery_note_line_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity NUMERIC(20, 6) DEFAULT NULL, back_in_stock NUMERIC(20, 6) DEFAULT \'0.000000\' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_9D41AD34CD4A058 (product_return_id), INDEX IDX_9D41AD3535E48DC (delivery_note_line_id), INDEX IDX_9D41AD3B03A8386 (created_by_id), INDEX IDX_9D41AD3896DBBDE (updated_by_id), INDEX IDX_9D41AD3C76F1F52 (deleted_by_id), INDEX created_at (created_at), INDEX updated_at (updated_at), INDEX deleted_at (deleted_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE product_returns_bundle__return_state (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, color VARCHAR(7) NOT NULL, text_color VARCHAR(7) NOT NULL, to_transform TINYINT(1) NOT NULL, to_close TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, is_default TINYINT(1) NOT NULL, INDEX IDX_BE4FE665B03A8386 (created_by_id), INDEX IDX_BE4FE665896DBBDE (updated_by_id), INDEX IDX_BE4FE665C76F1F52 (deleted_by_id), INDEX color (color), INDEX text_color (text_color), INDEX name (name), INDEX to_transform (to_transform), INDEX to_close (to_close), INDEX is_active (is_active), INDEX is_default (is_default), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE product_returns_bundle__return_state_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_FD1721C8232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__attribute (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', attribute_group_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_929927FF62D643B7 (attribute_group_id), INDEX IDX_929927FFB03A8386 (created_by_id), INDEX IDX_929927FF896DBBDE (updated_by_id), INDEX IDX_929927FFC76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__attribute_context (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', attribute_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_2BEB560CB6E62EFA (attribute_id), INDEX IDX_2BEB560C6B00C1CF (context_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__attribute_group (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_4E023231B03A8386 (created_by_id), INDEX IDX_4E023231896DBBDE (updated_by_id), INDEX IDX_4E023231C76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__attribute_group_context (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', attribute_group_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_4A85C4B862D643B7 (attribute_group_id), INDEX IDX_4A85C4B86B00C1CF (context_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__attribute_group_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_660EAACD232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__attribute_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_AAAF91FA232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__brand (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_E6FC9E69B03A8386 (created_by_id), INDEX IDX_E6FC9E69896DBBDE (updated_by_id), INDEX IDX_E6FC9E69C76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__brand_context (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', brand_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_238239EF44F5D008 (brand_id), INDEX IDX_238239EF6B00C1CF (context_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__declination (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', virtual_parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', unit_measure_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', reference VARCHAR(128) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, sell_price NUMERIC(20, 6) DEFAULT NULL, initial_unit NUMERIC(20, 6) DEFAULT NULL, weight NUMERIC(20, 6) DEFAULT NULL, virtual_quantity INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_CC8BB1204584665A (product_id), INDEX IDX_CC8BB12021C2B4E8 (virtual_parent_id), INDEX IDX_CC8BB1205E0BEBC0 (unit_measure_id), INDEX IDX_CC8BB120B03A8386 (created_by_id), INDEX IDX_CC8BB120896DBBDE (updated_by_id), INDEX IDX_CC8BB120C76F1F52 (deleted_by_id), INDEX reference (reference), INDEX wholesale_price (wholesale_price), INDEX sell_price (sell_price), INDEX initial_unit (initial_unit), INDEX weight (weight), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__declination_attribute (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', declination_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', attribute_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_A248F59B9941A932 (declination_id), INDEX IDX_A248F59BB6E62EFA (attribute_id), INDEX IDX_A248F59BB03A8386 (created_by_id), INDEX IDX_A248F59B896DBBDE (updated_by_id), INDEX IDX_A248F59BC76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__declination_context (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', declination_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_B1F3A3809941A932 (declination_id), INDEX IDX_B1F3A3806B00C1CF (context_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__ean13 (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', declination_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', value VARCHAR(13) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_default TINYINT(1) NOT NULL, INDEX IDX_D50078F94584665A (product_id), INDEX IDX_D50078F99941A932 (declination_id), INDEX IDX_D50078F9B03A8386 (created_by_id), INDEX IDX_D50078F9896DBBDE (updated_by_id), INDEX IDX_D50078F9C76F1F52 (deleted_by_id), INDEX value (value), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__eco_part (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', eco_part_group_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, reference VARCHAR(128) DEFAULT NULL, amount NUMERIC(20, 6) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_52A691535F7690E5 (eco_part_group_id), INDEX IDX_52A6915338248176 (currency_id), INDEX IDX_52A69153B03A8386 (created_by_id), INDEX IDX_52A69153896DBBDE (updated_by_id), INDEX IDX_52A69153C76F1F52 (deleted_by_id), INDEX name (name), INDEX reference (reference), INDEX amount (amount), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__eco_part_group (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_86BC60A7B03A8386 (created_by_id), INDEX IDX_86BC60A7896DBBDE (updated_by_id), INDEX IDX_86BC60A7C76F1F52 (deleted_by_id), INDEX name (name), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__eco_part_group_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_6453299E232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__eco_part_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_7BFF0B9C232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__product (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_type_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', unit_measure_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', eco_part_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', brand_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', eco_part_amount NUMERIC(20, 6) DEFAULT NULL, name VARCHAR(255) NOT NULL, reference VARCHAR(255) DEFAULT NULL, reference_brand VARCHAR(255) DEFAULT NULL, summary LONGTEXT DEFAULT NULL, description LONGTEXT DEFAULT NULL, source VARCHAR(255) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, sell_price NUMERIC(20, 6) DEFAULT NULL, changeable_tax_rule TINYINT(1) NOT NULL, initial_unit NUMERIC(20, 6) DEFAULT NULL, weight NUMERIC(20, 6) DEFAULT NULL, width NUMERIC(20, 6) DEFAULT NULL, height NUMERIC(20, 6) DEFAULT NULL, depth NUMERIC(20, 6) DEFAULT NULL, customs_code VARCHAR(10) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_C6C10D4A14959723 (product_type_id), INDEX IDX_C6C10D4A5E0BEBC0 (unit_measure_id), INDEX IDX_C6C10D4AAE870F68 (eco_part_id), INDEX IDX_C6C10D4A3506A35B (tax_rule_id), INDEX IDX_C6C10D4A44F5D008 (brand_id), INDEX IDX_C6C10D4A38248176 (currency_id), INDEX IDX_C6C10D4A727ACA70 (parent_id), INDEX IDX_C6C10D4AB03A8386 (created_by_id), INDEX IDX_C6C10D4A896DBBDE (updated_by_id), INDEX IDX_C6C10D4AC76F1F52 (deleted_by_id), INDEX reference (reference), INDEX reference_brand (reference_brand), INDEX name (name), INDEX wholesale_price (wholesale_price), INDEX sell_price (sell_price), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__product_context (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_F37E0B8C4584665A (product_id), INDEX IDX_F37E0B8C6B00C1CF (context_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__product_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_9017C31B232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__product_type (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', number INT NOT NULL, name VARCHAR(40) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_3C1F33B8B03A8386 (created_by_id), INDEX IDX_3C1F33B8896DBBDE (updated_by_id), INDEX IDX_3C1F33B8C76F1F52 (deleted_by_id), INDEX number (number), INDEX name (name), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__product_type_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_4D8A1534232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__search_association (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', declination_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', search_word_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_A4AC80614584665A (product_id), INDEX IDX_A4AC80619941A932 (declination_id), INDEX IDX_A4AC80616E86AC17 (search_word_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE products_bundle__search_word (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', word VARCHAR(32) NOT NULL, INDEX word (word), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__additional_pdf (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', file_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', for_quotation TINYINT(1) NOT NULL, for_order TINYINT(1) NOT NULL, for_delivery_note TINYINT(1) NOT NULL, for_invoice TINYINT(1) NOT NULL, for_credit_note TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_3CDB90D193CB796C (file_id), INDEX IDX_3CDB90D1B03A8386 (created_by_id), INDEX IDX_3CDB90D1896DBBDE (updated_by_id), INDEX IDX_3CDB90D1C76F1F52 (deleted_by_id), INDEX for_quotation (for_quotation), INDEX for_order (for_order), INDEX for_delivery_note (for_delivery_note), INDEX for_invoice (for_invoice), INDEX for_credit_note (for_credit_note), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__bank (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, account_number VARCHAR(32) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_82507772B03A8386 (created_by_id), INDEX IDX_82507772896DBBDE (updated_by_id), INDEX IDX_82507772C76F1F52 (deleted_by_id), INDEX name (name), INDEX account_number (account_number), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__credit_note (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', invoice_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', delivery_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', invoice_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', canceled_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_change_rate NUMERIC(20, 12) NOT NULL, reference VARCHAR(128) DEFAULT NULL, internal_name VARCHAR(255) DEFAULT NULL, external_name VARCHAR(255) DEFAULT NULL, reduced_vat TINYINT(1) NOT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, residual NUMERIC(20, 6) DEFAULT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', validated_at DATETIME DEFAULT NULL, canceled_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_3BAC0D76B00C1CF (context_id), INDEX IDX_3BAC0D79395C3F3 (customer_id), INDEX IDX_3BAC0D7C6BDFEB (invoice_address_id), INDEX IDX_3BAC0D7EBF23851 (delivery_address_id), INDEX IDX_3BAC0D72989F1FD (invoice_id), INDEX IDX_3BAC0D738248176 (currency_id), INDEX IDX_3BAC0D7C69DE5E5 (validated_by_id), INDEX IDX_3BAC0D71418957 (canceled_by_id), INDEX IDX_3BAC0D7B03A8386 (created_by_id), INDEX IDX_3BAC0D7896DBBDE (updated_by_id), INDEX IDX_3BAC0D7C76F1F52 (deleted_by_id), INDEX internal_name (internal_name), INDEX reference (reference), INDEX total_amount_untaxed (total_amount_untaxed), INDEX total_amount (total_amount), INDEX validated_at (validated_at), INDEX canceled_at (canceled_at), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__credit_note_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', credit_note_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', line_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', is_group TINYINT(1) NOT NULL, reference VARCHAR(128) DEFAULT NULL, reference_brand VARCHAR(128) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, unit_price NUMERIC(20, 6) DEFAULT NULL, quantity NUMERIC(20, 6) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, margin_ratio NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, position INT NOT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_224DA1A71C696F7A (credit_note_id), INDEX IDX_224DA1A770E80DF4 (line_type_id), INDEX IDX_224DA1A73506A35B (tax_rule_id), INDEX IDX_224DA1A7727ACA70 (parent_id), INDEX IDX_224DA1A7B03A8386 (created_by_id), INDEX IDX_224DA1A7896DBBDE (updated_by_id), INDEX IDX_224DA1A7C76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__customer_options (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', for_quotation TINYINT(1) NOT NULL, for_order TINYINT(1) NOT NULL, for_delivery_note TINYINT(1) NOT NULL, for_invoice TINYINT(1) NOT NULL, for_credit_note TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_5E01AC229395C3F3 (customer_id), INDEX IDX_5E01AC22B03A8386 (created_by_id), INDEX IDX_5E01AC22896DBBDE (updated_by_id), INDEX IDX_5E01AC22C76F1F52 (deleted_by_id), INDEX for_quotation (for_quotation), INDEX for_order (for_order), INDEX for_delivery_note (for_delivery_note), INDEX for_invoice (for_invoice), INDEX for_credit_note (for_credit_note), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__delivery_note (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', invoice_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', canceled_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', reference VARCHAR(128) DEFAULT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', validated_at DATETIME DEFAULT NULL, canceled_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_9CC42D76B00C1CF (context_id), INDEX IDX_9CC42D79395C3F3 (customer_id), INDEX IDX_9CC42D78D9F6D38 (order_id), UNIQUE INDEX UNIQ_9CC42D72989F1FD (invoice_id), INDEX IDX_9CC42D7C69DE5E5 (validated_by_id), INDEX IDX_9CC42D71418957 (canceled_by_id), INDEX IDX_9CC42D7B03A8386 (created_by_id), INDEX IDX_9CC42D7896DBBDE (updated_by_id), INDEX IDX_9CC42D7C76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__delivery_note_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', delivery_note_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_line_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity NUMERIC(20, 6) DEFAULT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_CF8E237F2CF3B78B (delivery_note_id), INDEX IDX_CF8E237FBB01DC09 (order_line_id), INDEX IDX_CF8E237FB03A8386 (created_by_id), INDEX IDX_CF8E237F896DBBDE (updated_by_id), INDEX IDX_CF8E237FC76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__document_payment (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', payment_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', invoice_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', credit_note_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', amount NUMERIC(20, 6) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_5BAED0CA4C3A3BB (payment_id), INDEX IDX_5BAED0CA2989F1FD (invoice_id), INDEX IDX_5BAED0CA1C696F7A (credit_note_id), INDEX IDX_5BAED0CAB03A8386 (created_by_id), INDEX IDX_5BAED0CA896DBBDE (updated_by_id), INDEX IDX_5BAED0CAC76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__invoice (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', invoice_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', delivery_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quotation_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', credit_note_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', payment_term_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', canceled_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_change_rate NUMERIC(20, 12) NOT NULL, reference VARCHAR(128) DEFAULT NULL, internal_name VARCHAR(255) DEFAULT NULL, external_name VARCHAR(255) DEFAULT NULL, reduced_vat TINYINT(1) NOT NULL, total_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_no_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, residual NUMERIC(20, 6) DEFAULT NULL, due_date DATE DEFAULT NULL, is_deposit TINYINT(1) NOT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', validated_at DATETIME DEFAULT NULL, canceled_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_BB8C2B4C6B00C1CF (context_id), INDEX IDX_BB8C2B4C9395C3F3 (customer_id), INDEX IDX_BB8C2B4CC6BDFEB (invoice_address_id), INDEX IDX_BB8C2B4CEBF23851 (delivery_address_id), INDEX IDX_BB8C2B4CB4EA4E60 (quotation_id), INDEX IDX_BB8C2B4C8D9F6D38 (order_id), INDEX IDX_BB8C2B4C1C696F7A (credit_note_id), INDEX IDX_BB8C2B4C38248176 (currency_id), INDEX IDX_BB8C2B4C17653B16 (payment_term_id), INDEX IDX_BB8C2B4CC69DE5E5 (validated_by_id), INDEX IDX_BB8C2B4C1418957 (canceled_by_id), INDEX IDX_BB8C2B4CB03A8386 (created_by_id), INDEX IDX_BB8C2B4C896DBBDE (updated_by_id), INDEX IDX_BB8C2B4CC76F1F52 (deleted_by_id), INDEX internal_name (internal_name), INDEX reference (reference), INDEX total_amount_untaxed (total_amount_untaxed), INDEX total_amount (total_amount), INDEX residual (residual), INDEX validated_at (validated_at), INDEX canceled_at (canceled_at), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__invoice_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', invoice_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', line_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', is_group TINYINT(1) NOT NULL, reference VARCHAR(128) DEFAULT NULL, reference_brand VARCHAR(128) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, unit_price NUMERIC(20, 6) DEFAULT NULL, quantity NUMERIC(20, 6) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, margin_ratio NUMERIC(20, 6) DEFAULT NULL, percentage_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_no_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, position INT NOT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_891FCC0D2989F1FD (invoice_id), INDEX IDX_891FCC0D70E80DF4 (line_type_id), INDEX IDX_891FCC0D3506A35B (tax_rule_id), INDEX IDX_891FCC0D727ACA70 (parent_id), INDEX IDX_891FCC0DB03A8386 (created_by_id), INDEX IDX_891FCC0D896DBBDE (updated_by_id), INDEX IDX_891FCC0DC76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__line_type (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', number INT NOT NULL, name VARCHAR(40) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_E0257996B03A8386 (created_by_id), INDEX IDX_E0257996896DBBDE (updated_by_id), INDEX IDX_E0257996C76F1F52 (deleted_by_id), INDEX number (number), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__line_type_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_51AE71BF232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__order (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', invoice_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', delivery_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quotation_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', order_state_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_change_rate NUMERIC(20, 12) NOT NULL, reference VARCHAR(128) DEFAULT NULL, internal_name VARCHAR(255) DEFAULT NULL, external_name VARCHAR(255) DEFAULT NULL, reduced_vat TINYINT(1) NOT NULL, total_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_no_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, residual NUMERIC(20, 6) DEFAULT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', validated_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_FBA82B626B00C1CF (context_id), INDEX IDX_FBA82B629395C3F3 (customer_id), INDEX IDX_FBA82B62C6BDFEB (invoice_address_id), INDEX IDX_FBA82B62EBF23851 (delivery_address_id), UNIQUE INDEX UNIQ_FBA82B62B4EA4E60 (quotation_id), INDEX IDX_FBA82B62E420DE70 (order_state_id), INDEX IDX_FBA82B6238248176 (currency_id), INDEX IDX_FBA82B62C69DE5E5 (validated_by_id), INDEX IDX_FBA82B62B03A8386 (created_by_id), INDEX IDX_FBA82B62896DBBDE (updated_by_id), INDEX IDX_FBA82B62C76F1F52 (deleted_by_id), INDEX internal_name (internal_name), INDEX reference (reference), INDEX total_amount_untaxed (total_amount_untaxed), INDEX total_amount (total_amount), INDEX residual (residual), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__order_history (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', order_state_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_C62DA9598D9F6D38 (order_id), INDEX IDX_C62DA959E420DE70 (order_state_id), INDEX IDX_C62DA959B03A8386 (created_by_id), INDEX IDX_C62DA959896DBBDE (updated_by_id), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__order_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', line_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', is_group TINYINT(1) NOT NULL, reference VARCHAR(128) DEFAULT NULL, reference_brand VARCHAR(128) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, unit_price NUMERIC(20, 6) DEFAULT NULL, quantity NUMERIC(20, 6) DEFAULT NULL, quantity_delivered NUMERIC(20, 6) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, margin_ratio NUMERIC(20, 6) DEFAULT NULL, percentage_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_no_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, position INT NOT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_38D3FC518D9F6D38 (order_id), INDEX IDX_38D3FC5170E80DF4 (line_type_id), INDEX IDX_38D3FC513506A35B (tax_rule_id), INDEX IDX_38D3FC51727ACA70 (parent_id), INDEX IDX_38D3FC51B03A8386 (created_by_id), INDEX IDX_38D3FC51896DBBDE (updated_by_id), INDEX IDX_38D3FC51C76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__order_state (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, color VARCHAR(7) NOT NULL, text_color VARCHAR(7) NOT NULL, delivered TINYINT(1) NOT NULL, invoiced TINYINT(1) NOT NULL, canceled TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, is_default TINYINT(1) NOT NULL, archived TINYINT(1) NOT NULL, INDEX IDX_EBC823F8B03A8386 (created_by_id), INDEX IDX_EBC823F8896DBBDE (updated_by_id), INDEX IDX_EBC823F8C76F1F52 (deleted_by_id), INDEX color (color), INDEX text_color (text_color), INDEX name (name), INDEX delivered (delivered), INDEX invoiced (invoiced), INDEX archived (archived), INDEX is_active (is_active), INDEX is_default (is_default), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__order_state_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_67B6006B232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__payment (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', credit_note_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', invoice_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', payment_method_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', bank_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_change_rate NUMERIC(20, 12) NOT NULL, reference VARCHAR(128) DEFAULT NULL, receipt NUMERIC(20, 6) DEFAULT NULL, refund NUMERIC(20, 6) DEFAULT NULL, residual NUMERIC(20, 6) DEFAULT NULL, payment_date DATETIME NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_46C1B8056B00C1CF (context_id), INDEX IDX_46C1B8059395C3F3 (customer_id), INDEX IDX_46C1B8051C696F7A (credit_note_id), INDEX IDX_46C1B8052989F1FD (invoice_id), INDEX IDX_46C1B8055AA1164F (payment_method_id), INDEX IDX_46C1B80511C8FB41 (bank_id), INDEX IDX_46C1B80538248176 (currency_id), INDEX IDX_46C1B805B03A8386 (created_by_id), INDEX IDX_46C1B805896DBBDE (updated_by_id), INDEX IDX_46C1B805C76F1F52 (deleted_by_id), INDEX payment_date (payment_date), INDEX reference (reference), INDEX receipt (receipt), INDEX refund (refund), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__payment_method (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, is_invoice TINYINT(1) NOT NULL, is_credit_note TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, INDEX IDX_69C1A5D6B03A8386 (created_by_id), INDEX IDX_69C1A5D6896DBBDE (updated_by_id), INDEX IDX_69C1A5D6C76F1F52 (deleted_by_id), INDEX name (name), INDEX is_invoice (is_invoice), INDEX is_credit_note (is_credit_note), INDEX is_active (is_active), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__payment_method_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_38696A97232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__payment_term (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(128) NOT NULL, days_delay INT NOT NULL, end_month TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, is_default TINYINT(1) NOT NULL, INDEX IDX_DE426A67B03A8386 (created_by_id), INDEX IDX_DE426A67896DBBDE (updated_by_id), INDEX IDX_DE426A67C76F1F52 (deleted_by_id), INDEX name (name), INDEX days_delay (days_delay), INDEX end_month (end_month), INDEX is_active (is_active), INDEX is_default (is_default), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__payment_term_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_E2F5FF95232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__quotation (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', customer_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', invoice_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', delivery_address_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', payment_method_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_change_rate NUMERIC(20, 12) NOT NULL, validity_in_days INT DEFAULT NULL, reference VARCHAR(128) DEFAULT NULL, internal_name VARCHAR(255) DEFAULT NULL, external_name VARCHAR(255) DEFAULT NULL, reduced_vat TINYINT(1) NOT NULL, total_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_no_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', validated_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, archived TINYINT(1) NOT NULL, INDEX IDX_A0FC50DF6B00C1CF (context_id), INDEX IDX_A0FC50DF9395C3F3 (customer_id), INDEX IDX_A0FC50DFC6BDFEB (invoice_address_id), INDEX IDX_A0FC50DFEBF23851 (delivery_address_id), INDEX IDX_A0FC50DF38248176 (currency_id), INDEX IDX_A0FC50DF5AA1164F (payment_method_id), INDEX IDX_A0FC50DFC69DE5E5 (validated_by_id), INDEX IDX_A0FC50DFB03A8386 (created_by_id), INDEX IDX_A0FC50DF896DBBDE (updated_by_id), INDEX IDX_A0FC50DFC76F1F52 (deleted_by_id), INDEX internal_name (internal_name), INDEX reference (reference), INDEX total_amount_untaxed (total_amount_untaxed), INDEX total_amount (total_amount), INDEX validated_at (validated_at), INDEX archived (archived), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sales_bundle__quotation_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', quotation_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', line_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', is_group TINYINT(1) NOT NULL, reference VARCHAR(128) DEFAULT NULL, reference_brand VARCHAR(128) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, unit_price NUMERIC(20, 6) DEFAULT NULL, quantity NUMERIC(20, 6) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, margin_ratio NUMERIC(20, 6) DEFAULT NULL, percentage_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_no_discount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_amount_untaxed NUMERIC(20, 6) DEFAULT NULL, total_tax_amount NUMERIC(20, 6) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, position INT NOT NULL, options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_5E40159AB4EA4E60 (quotation_id), INDEX IDX_5E40159A70E80DF4 (line_type_id), INDEX IDX_5E40159A3506A35B (tax_rule_id), INDEX IDX_5E40159A727ACA70 (parent_id), INDEX IDX_5E40159AB03A8386 (created_by_id), INDEX IDX_5E40159A896DBBDE (updated_by_id), INDEX IDX_5E40159AC76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__date_type (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(50) NOT NULL, long_name VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_8D4E1F62B03A8386 (created_by_id), INDEX IDX_8D4E1F62896DBBDE (updated_by_id), INDEX IDX_8D4E1F62C76F1F52 (deleted_by_id), INDEX name (name), INDEX long_name (long_name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__date_type_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_1B0A15EE232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__location (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', warehouse_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', x VARCHAR(20) NOT NULL COMMENT \'Aisle\', y VARCHAR(20) NOT NULL COMMENT \'Cross-Aisle\', z VARCHAR(20) NOT NULL COMMENT \'Stage\', width INT NOT NULL, is_default_for_empty_sub_location TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_A4AB83FF5080ECDE (warehouse_id), INDEX IDX_A4AB83FFB03A8386 (created_by_id), INDEX IDX_A4AB83FF896DBBDE (updated_by_id), INDEX IDX_A4AB83FFC76F1F52 (deleted_by_id), INDEX x (x), INDEX y (y), INDEX z (z), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), UNIQUE INDEX location_unique (warehouse_id, x, y, z, deleted_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__product_configuration (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', unique_stock_picker TINYINT(1) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_CAB2DF34584665A (product_id), INDEX IDX_CAB2DF3B03A8386 (created_by_id), INDEX IDX_CAB2DF3896DBBDE (updated_by_id), INDEX IDX_CAB2DF3C76F1F52 (deleted_by_id), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_location (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', sub_location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', date_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', stock_product_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', date DATETIME DEFAULT NULL, batch_number VARCHAR(255) DEFAULT NULL, quantity INT NOT NULL, quantity_in_order INT NOT NULL, quantity_simulated INT NOT NULL, quantity_available INT NOT NULL, note LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_BBA57E0664D218E (location_id), INDEX IDX_BBA57E06E3B45410 (sub_location_id), INDEX IDX_BBA57E06FCAB8B6E (date_type_id), INDEX IDX_BBA57E06EBCD91F6 (stock_product_id), INDEX IDX_BBA57E06B03A8386 (created_by_id), INDEX IDX_BBA57E06896DBBDE (updated_by_id), INDEX IDX_BBA57E06C76F1F52 (deleted_by_id), INDEX batch_number (batch_number), INDEX quantity (quantity), INDEX quantity_in_order (quantity_in_order), INDEX quantity_simulated (quantity_simulated), INDEX date (date), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_movement (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', stock_movement_reason_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', stock_quantity_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', sub_location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity INT NOT NULL, sign INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_11E6623AD0E7D5DE (stock_movement_reason_id), INDEX IDX_11E6623AA145ECC8 (stock_quantity_id), INDEX IDX_11E6623A64D218E (location_id), INDEX IDX_11E6623AE3B45410 (sub_location_id), INDEX IDX_11E6623AB03A8386 (created_by_id), INDEX IDX_11E6623A896DBBDE (updated_by_id), INDEX IDX_11E6623AC76F1F52 (deleted_by_id), INDEX quantity (quantity), INDEX sign (sign), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_movement_reason (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(50) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_C4953947B03A8386 (created_by_id), INDEX IDX_C4953947896DBBDE (updated_by_id), INDEX IDX_C4953947C76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_movement_reason_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_C86D085232D562B (object_id), FULLTEXT INDEX content (content), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_order_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', stock_product_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', order_line_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity INT NOT NULL, quantity_available INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_C168A566EBCD91F6 (stock_product_id), UNIQUE INDEX UNIQ_C168A566BB01DC09 (order_line_id), INDEX IDX_C168A566B03A8386 (created_by_id), INDEX IDX_C168A566896DBBDE (updated_by_id), INDEX quantity (quantity), INDEX quantity_available (quantity_available), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_order_line_location (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', stock_order_line_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', stock_location_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity INT NOT NULL, quantity_available INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_DF6712FE3F9EF6ED (stock_order_line_id), INDEX IDX_DF6712FED98387BA (stock_location_id), INDEX IDX_DF6712FEB03A8386 (created_by_id), INDEX IDX_DF6712FE896DBBDE (updated_by_id), INDEX quantity (quantity), INDEX quantity_available (quantity_available), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_product (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', product_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', declination_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', warehouse_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity INT NOT NULL, quantity_in_order INT NOT NULL, quantity_simulated INT NOT NULL, quantity_available INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_3D03C4604584665A (product_id), INDEX IDX_3D03C4609941A932 (declination_id), INDEX IDX_3D03C4605080ECDE (warehouse_id), INDEX IDX_3D03C460B03A8386 (created_by_id), INDEX IDX_3D03C460896DBBDE (updated_by_id), INDEX IDX_3D03C460C76F1F52 (deleted_by_id), INDEX quantity (quantity), INDEX quantity_in_order (quantity_in_order), INDEX quantity_simulated (quantity_simulated), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock_quantity (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', stock_location_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity INT NOT NULL, date_entry DATETIME NOT NULL, quantity_entry INT NOT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, currency_change_rate NUMERIC(20, 12) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_7AC8E1FBD98387BA (stock_location_id), INDEX IDX_7AC8E1FB38248176 (currency_id), INDEX IDX_7AC8E1FBB03A8386 (created_by_id), INDEX IDX_7AC8E1FB896DBBDE (updated_by_id), INDEX IDX_7AC8E1FBC76F1F52 (deleted_by_id), INDEX quantity (quantity), INDEX quantity_entry (quantity_entry), INDEX wholesale_price (wholesale_price), INDEX currency_change_rate (currency_change_rate), INDEX date_entry (date_entry), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__sub_location (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', reference VARCHAR(20) NOT NULL, width INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_69B6540664D218E (location_id), INDEX IDX_69B65406B03A8386 (created_by_id), INDEX IDX_69B65406896DBBDE (updated_by_id), INDEX IDX_69B65406C76F1F52 (deleted_by_id), INDEX reference (reference), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__warehouse (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', created_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', updated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(50) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_CDFD4A43B03A8386 (created_by_id), INDEX IDX_CDFD4A43896DBBDE (updated_by_id), INDEX IDX_CDFD4A43C76F1F52 (deleted_by_id), INDEX name (name), INDEX deleted_at (deleted_at), INDEX created_at (created_at), INDEX updated_at (updated_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95D991282D FOREIGN KEY (customer_type_id) REFERENCES customers_bundle__customer_type (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95D2919A68 FOREIGN KEY (customer_group_id) REFERENCES customers_bundle__customer_group (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95F92F3E70 FOREIGN KEY (country_id) REFERENCES country (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD9536126D7C FOREIGN KEY (country_state_id) REFERENCES country_state (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95727ACA70 FOREIGN KEY (parent_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD956B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD9538248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer ADD CONSTRAINT FK_1FD6BD95C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_group_customer ADD CONSTRAINT FK_85C42ABD9395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE customers_bundle__customer_group_customer ADD CONSTRAINT FK_85C42ABDD2919A68 FOREIGN KEY (customer_group_id) REFERENCES customers_bundle__customer_group (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE customers_bundle__customer_group ADD CONSTRAINT FK_5641E104B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_group ADD CONSTRAINT FK_5641E104896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_group ADD CONSTRAINT FK_5641E104C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_group_translations ADD CONSTRAINT FK_2CA9AD1F232D562B FOREIGN KEY (object_id) REFERENCES customers_bundle__customer_group (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE customers_bundle__customer_type ADD CONSTRAINT FK_635B5E09B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_type ADD CONSTRAINT FK_635B5E09896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_type ADD CONSTRAINT FK_635B5E09C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE customers_bundle__customer_type_translations ADD CONSTRAINT FK_AF7CDEC7232D562B FOREIGN KEY (object_id) REFERENCES customers_bundle__customer_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document ADD CONSTRAINT FK_3D4C864383A19B1 FOREIGN KEY (product_return_line_id) REFERENCES product_returns_bundle__product_return_line (id)');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document ADD CONSTRAINT FK_3D4C86438D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document ADD CONSTRAINT FK_3D4C86431C696F7A FOREIGN KEY (credit_note_id) REFERENCES sales_bundle__credit_note (id)');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document ADD CONSTRAINT FK_3D4C8643B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document ADD CONSTRAINT FK_3D4C8643896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document ADD CONSTRAINT FK_3D4C8643C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC22896B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC22899395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC22898D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC22892CF3B78B FOREIGN KEY (delivery_note_id) REFERENCES sales_bundle__delivery_note (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC22895D83CC1 FOREIGN KEY (state_id) REFERENCES product_returns_bundle__return_state (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC2289B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC2289896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return ADD CONSTRAINT FK_1DBC2289C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line ADD CONSTRAINT FK_9D41AD34CD4A058 FOREIGN KEY (product_return_id) REFERENCES product_returns_bundle__product_return (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line ADD CONSTRAINT FK_9D41AD3535E48DC FOREIGN KEY (delivery_note_line_id) REFERENCES sales_bundle__delivery_note_line (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line ADD CONSTRAINT FK_9D41AD3B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line ADD CONSTRAINT FK_9D41AD3896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line ADD CONSTRAINT FK_9D41AD3C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__return_state ADD CONSTRAINT FK_BE4FE665B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__return_state ADD CONSTRAINT FK_BE4FE665896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__return_state ADD CONSTRAINT FK_BE4FE665C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE product_returns_bundle__return_state_translations ADD CONSTRAINT FK_FD1721C8232D562B FOREIGN KEY (object_id) REFERENCES product_returns_bundle__return_state (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__attribute ADD CONSTRAINT FK_929927FF62D643B7 FOREIGN KEY (attribute_group_id) REFERENCES products_bundle__attribute_group (id)');
$this->addSql('ALTER TABLE products_bundle__attribute ADD CONSTRAINT FK_929927FFB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__attribute ADD CONSTRAINT FK_929927FF896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__attribute ADD CONSTRAINT FK_929927FFC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_context ADD CONSTRAINT FK_2BEB560CB6E62EFA FOREIGN KEY (attribute_id) REFERENCES products_bundle__attribute (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_context ADD CONSTRAINT FK_2BEB560C6B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_group ADD CONSTRAINT FK_4E023231B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_group ADD CONSTRAINT FK_4E023231896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_group ADD CONSTRAINT FK_4E023231C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_group_context ADD CONSTRAINT FK_4A85C4B862D643B7 FOREIGN KEY (attribute_group_id) REFERENCES products_bundle__attribute_group (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_group_context ADD CONSTRAINT FK_4A85C4B86B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE products_bundle__attribute_group_translations ADD CONSTRAINT FK_660EAACD232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__attribute_group (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__attribute_translations ADD CONSTRAINT FK_AAAF91FA232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__attribute (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__brand ADD CONSTRAINT FK_E6FC9E69B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__brand ADD CONSTRAINT FK_E6FC9E69896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__brand ADD CONSTRAINT FK_E6FC9E69C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__brand_context ADD CONSTRAINT FK_238239EF44F5D008 FOREIGN KEY (brand_id) REFERENCES products_bundle__brand (id)');
$this->addSql('ALTER TABLE products_bundle__brand_context ADD CONSTRAINT FK_238239EF6B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB1204584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB12021C2B4E8 FOREIGN KEY (virtual_parent_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB1205E0BEBC0 FOREIGN KEY (unit_measure_id) REFERENCES unit_measure (id)');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB120B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB120896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB120C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__declination_attribute ADD CONSTRAINT FK_A248F59B9941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE products_bundle__declination_attribute ADD CONSTRAINT FK_A248F59BB6E62EFA FOREIGN KEY (attribute_id) REFERENCES products_bundle__attribute (id)');
$this->addSql('ALTER TABLE products_bundle__declination_attribute ADD CONSTRAINT FK_A248F59BB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__declination_attribute ADD CONSTRAINT FK_A248F59B896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__declination_attribute ADD CONSTRAINT FK_A248F59BC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__declination_context ADD CONSTRAINT FK_B1F3A3809941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE products_bundle__declination_context ADD CONSTRAINT FK_B1F3A3806B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE products_bundle__ean13 ADD CONSTRAINT FK_D50078F94584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE products_bundle__ean13 ADD CONSTRAINT FK_D50078F99941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE products_bundle__ean13 ADD CONSTRAINT FK_D50078F9B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__ean13 ADD CONSTRAINT FK_D50078F9896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__ean13 ADD CONSTRAINT FK_D50078F9C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part ADD CONSTRAINT FK_52A691535F7690E5 FOREIGN KEY (eco_part_group_id) REFERENCES products_bundle__eco_part_group (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part ADD CONSTRAINT FK_52A6915338248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part ADD CONSTRAINT FK_52A69153B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part ADD CONSTRAINT FK_52A69153896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part ADD CONSTRAINT FK_52A69153C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part_group ADD CONSTRAINT FK_86BC60A7B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part_group ADD CONSTRAINT FK_86BC60A7896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part_group ADD CONSTRAINT FK_86BC60A7C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__eco_part_group_translations ADD CONSTRAINT FK_6453299E232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__eco_part_group (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__eco_part_translations ADD CONSTRAINT FK_7BFF0B9C232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__eco_part (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A14959723 FOREIGN KEY (product_type_id) REFERENCES products_bundle__product_type (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A5E0BEBC0 FOREIGN KEY (unit_measure_id) REFERENCES unit_measure (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4AAE870F68 FOREIGN KEY (eco_part_id) REFERENCES products_bundle__eco_part (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A3506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A44F5D008 FOREIGN KEY (brand_id) REFERENCES products_bundle__brand (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A38248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A727ACA70 FOREIGN KEY (parent_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4AB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4AC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__product_context ADD CONSTRAINT FK_F37E0B8C4584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE products_bundle__product_context ADD CONSTRAINT FK_F37E0B8C6B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE products_bundle__product_translations ADD CONSTRAINT FK_9017C31B232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__product (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__product_type ADD CONSTRAINT FK_3C1F33B8B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__product_type ADD CONSTRAINT FK_3C1F33B8896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__product_type ADD CONSTRAINT FK_3C1F33B8C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE products_bundle__product_type_translations ADD CONSTRAINT FK_4D8A1534232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__product_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE products_bundle__search_association ADD CONSTRAINT FK_A4AC80614584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE products_bundle__search_association ADD CONSTRAINT FK_A4AC80619941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE products_bundle__search_association ADD CONSTRAINT FK_A4AC80616E86AC17 FOREIGN KEY (search_word_id) REFERENCES products_bundle__search_word (id)');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf ADD CONSTRAINT FK_3CDB90D193CB796C FOREIGN KEY (file_id) REFERENCES file_manager (id)');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf ADD CONSTRAINT FK_3CDB90D1B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf ADD CONSTRAINT FK_3CDB90D1896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf ADD CONSTRAINT FK_3CDB90D1C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__bank ADD CONSTRAINT FK_82507772B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__bank ADD CONSTRAINT FK_82507772896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__bank ADD CONSTRAINT FK_82507772C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D76B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D79395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D7C6BDFEB FOREIGN KEY (invoice_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D7EBF23851 FOREIGN KEY (delivery_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D72989F1FD FOREIGN KEY (invoice_id) REFERENCES sales_bundle__invoice (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D738248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D7C69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D71418957 FOREIGN KEY (canceled_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D7B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D7896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD CONSTRAINT FK_3BAC0D7C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A71C696F7A FOREIGN KEY (credit_note_id) REFERENCES sales_bundle__credit_note (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A770E80DF4 FOREIGN KEY (line_type_id) REFERENCES sales_bundle__line_type (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A73506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A7727ACA70 FOREIGN KEY (parent_id) REFERENCES sales_bundle__credit_note_line (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A7B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A7896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD CONSTRAINT FK_224DA1A7C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__customer_options ADD CONSTRAINT FK_5E01AC229395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__customer_options ADD CONSTRAINT FK_5E01AC22B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__customer_options ADD CONSTRAINT FK_5E01AC22896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__customer_options ADD CONSTRAINT FK_5E01AC22C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D76B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D79395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D78D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D72989F1FD FOREIGN KEY (invoice_id) REFERENCES sales_bundle__invoice (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D7C69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D71418957 FOREIGN KEY (canceled_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D7B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D7896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note ADD CONSTRAINT FK_9CC42D7C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line ADD CONSTRAINT FK_CF8E237F2CF3B78B FOREIGN KEY (delivery_note_id) REFERENCES sales_bundle__delivery_note (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line ADD CONSTRAINT FK_CF8E237FBB01DC09 FOREIGN KEY (order_line_id) REFERENCES sales_bundle__order_line (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line ADD CONSTRAINT FK_CF8E237FB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line ADD CONSTRAINT FK_CF8E237F896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line ADD CONSTRAINT FK_CF8E237FC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__document_payment ADD CONSTRAINT FK_5BAED0CA4C3A3BB FOREIGN KEY (payment_id) REFERENCES sales_bundle__payment (id)');
$this->addSql('ALTER TABLE sales_bundle__document_payment ADD CONSTRAINT FK_5BAED0CA2989F1FD FOREIGN KEY (invoice_id) REFERENCES sales_bundle__invoice (id)');
$this->addSql('ALTER TABLE sales_bundle__document_payment ADD CONSTRAINT FK_5BAED0CA1C696F7A FOREIGN KEY (credit_note_id) REFERENCES sales_bundle__credit_note (id)');
$this->addSql('ALTER TABLE sales_bundle__document_payment ADD CONSTRAINT FK_5BAED0CAB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__document_payment ADD CONSTRAINT FK_5BAED0CA896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__document_payment ADD CONSTRAINT FK_5BAED0CAC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C6B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C9395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4CC6BDFEB FOREIGN KEY (invoice_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4CEBF23851 FOREIGN KEY (delivery_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4CB4EA4E60 FOREIGN KEY (quotation_id) REFERENCES sales_bundle__quotation (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C8D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C1C696F7A FOREIGN KEY (credit_note_id) REFERENCES sales_bundle__credit_note (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C38248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C17653B16 FOREIGN KEY (payment_term_id) REFERENCES sales_bundle__payment_term (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4CC69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C1418957 FOREIGN KEY (canceled_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4CB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4CC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0D2989F1FD FOREIGN KEY (invoice_id) REFERENCES sales_bundle__invoice (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0D70E80DF4 FOREIGN KEY (line_type_id) REFERENCES sales_bundle__line_type (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0D3506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0D727ACA70 FOREIGN KEY (parent_id) REFERENCES sales_bundle__invoice_line (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0DB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0D896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line ADD CONSTRAINT FK_891FCC0DC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__line_type ADD CONSTRAINT FK_E0257996B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__line_type ADD CONSTRAINT FK_E0257996896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__line_type ADD CONSTRAINT FK_E0257996C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__line_type_translations ADD CONSTRAINT FK_51AE71BF232D562B FOREIGN KEY (object_id) REFERENCES sales_bundle__line_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B626B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B629395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62C6BDFEB FOREIGN KEY (invoice_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62EBF23851 FOREIGN KEY (delivery_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62B4EA4E60 FOREIGN KEY (quotation_id) REFERENCES sales_bundle__quotation (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62E420DE70 FOREIGN KEY (order_state_id) REFERENCES sales_bundle__order_state (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B6238248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62C69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order ADD CONSTRAINT FK_FBA82B62C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_history ADD CONSTRAINT FK_C62DA9598D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE sales_bundle__order_history ADD CONSTRAINT FK_C62DA959E420DE70 FOREIGN KEY (order_state_id) REFERENCES sales_bundle__order_state (id)');
$this->addSql('ALTER TABLE sales_bundle__order_history ADD CONSTRAINT FK_C62DA959B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_history ADD CONSTRAINT FK_C62DA959896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC518D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC5170E80DF4 FOREIGN KEY (line_type_id) REFERENCES sales_bundle__line_type (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC513506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC51727ACA70 FOREIGN KEY (parent_id) REFERENCES sales_bundle__order_line (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC51B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC51896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_line ADD CONSTRAINT FK_38D3FC51C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_state ADD CONSTRAINT FK_EBC823F8B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_state ADD CONSTRAINT FK_EBC823F8896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_state ADD CONSTRAINT FK_EBC823F8C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__order_state_translations ADD CONSTRAINT FK_67B6006B232D562B FOREIGN KEY (object_id) REFERENCES sales_bundle__order_state (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B8056B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B8059395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B8051C696F7A FOREIGN KEY (credit_note_id) REFERENCES sales_bundle__credit_note (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B8052989F1FD FOREIGN KEY (invoice_id) REFERENCES sales_bundle__invoice (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B8055AA1164F FOREIGN KEY (payment_method_id) REFERENCES sales_bundle__payment_method (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B80511C8FB41 FOREIGN KEY (bank_id) REFERENCES sales_bundle__bank (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B80538248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B805B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B805896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B805C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_method ADD CONSTRAINT FK_69C1A5D6B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_method ADD CONSTRAINT FK_69C1A5D6896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_method ADD CONSTRAINT FK_69C1A5D6C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_method_translations ADD CONSTRAINT FK_38696A97232D562B FOREIGN KEY (object_id) REFERENCES sales_bundle__payment_method (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sales_bundle__payment_term ADD CONSTRAINT FK_DE426A67B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_term ADD CONSTRAINT FK_DE426A67896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_term ADD CONSTRAINT FK_DE426A67C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__payment_term_translations ADD CONSTRAINT FK_E2F5FF95232D562B FOREIGN KEY (object_id) REFERENCES sales_bundle__payment_term (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DF6B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DF9395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DFC6BDFEB FOREIGN KEY (invoice_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DFEBF23851 FOREIGN KEY (delivery_address_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DF38248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DF5AA1164F FOREIGN KEY (payment_method_id) REFERENCES sales_bundle__payment_method (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DFC69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DFB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DF896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD CONSTRAINT FK_A0FC50DFC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159AB4EA4E60 FOREIGN KEY (quotation_id) REFERENCES sales_bundle__quotation (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159A70E80DF4 FOREIGN KEY (line_type_id) REFERENCES sales_bundle__line_type (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159A3506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159A727ACA70 FOREIGN KEY (parent_id) REFERENCES sales_bundle__quotation_line (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159AB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159A896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE sales_bundle__quotation_line ADD CONSTRAINT FK_5E40159AC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__date_type ADD CONSTRAINT FK_8D4E1F62B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__date_type ADD CONSTRAINT FK_8D4E1F62896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__date_type ADD CONSTRAINT FK_8D4E1F62C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__date_type_translations ADD CONSTRAINT FK_1B0A15EE232D562B FOREIGN KEY (object_id) REFERENCES stocks_bundle__date_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE stocks_bundle__location ADD CONSTRAINT FK_A4AB83FF5080ECDE FOREIGN KEY (warehouse_id) REFERENCES stocks_bundle__warehouse (id)');
$this->addSql('ALTER TABLE stocks_bundle__location ADD CONSTRAINT FK_A4AB83FFB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__location ADD CONSTRAINT FK_A4AB83FF896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__location ADD CONSTRAINT FK_A4AB83FFC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration ADD CONSTRAINT FK_CAB2DF34584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration ADD CONSTRAINT FK_CAB2DF3B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration ADD CONSTRAINT FK_CAB2DF3896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration ADD CONSTRAINT FK_CAB2DF3C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E0664D218E FOREIGN KEY (location_id) REFERENCES stocks_bundle__location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E06E3B45410 FOREIGN KEY (sub_location_id) REFERENCES stocks_bundle__sub_location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E06FCAB8B6E FOREIGN KEY (date_type_id) REFERENCES stocks_bundle__date_type (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E06EBCD91F6 FOREIGN KEY (stock_product_id) REFERENCES stocks_bundle__stock_product (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E06B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E06896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD CONSTRAINT FK_BBA57E06C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623AD0E7D5DE FOREIGN KEY (stock_movement_reason_id) REFERENCES stocks_bundle__stock_movement_reason (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623AA145ECC8 FOREIGN KEY (stock_quantity_id) REFERENCES stocks_bundle__stock_quantity (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623A64D218E FOREIGN KEY (location_id) REFERENCES stocks_bundle__location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623AE3B45410 FOREIGN KEY (sub_location_id) REFERENCES stocks_bundle__sub_location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623AB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623A896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623AC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason ADD CONSTRAINT FK_C4953947B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason ADD CONSTRAINT FK_C4953947896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason ADD CONSTRAINT FK_C4953947C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason_translations ADD CONSTRAINT FK_C86D085232D562B FOREIGN KEY (object_id) REFERENCES stocks_bundle__stock_movement_reason (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line ADD CONSTRAINT FK_C168A566EBCD91F6 FOREIGN KEY (stock_product_id) REFERENCES stocks_bundle__stock_product (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line ADD CONSTRAINT FK_C168A566BB01DC09 FOREIGN KEY (order_line_id) REFERENCES sales_bundle__order_line (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line ADD CONSTRAINT FK_C168A566B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line ADD CONSTRAINT FK_C168A566896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location ADD CONSTRAINT FK_DF6712FE3F9EF6ED FOREIGN KEY (stock_order_line_id) REFERENCES stocks_bundle__stock_order_line (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location ADD CONSTRAINT FK_DF6712FED98387BA FOREIGN KEY (stock_location_id) REFERENCES stocks_bundle__stock_location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location ADD CONSTRAINT FK_DF6712FEB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location ADD CONSTRAINT FK_DF6712FE896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product ADD CONSTRAINT FK_3D03C4604584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product ADD CONSTRAINT FK_3D03C4609941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product ADD CONSTRAINT FK_3D03C4605080ECDE FOREIGN KEY (warehouse_id) REFERENCES stocks_bundle__warehouse (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product ADD CONSTRAINT FK_3D03C460B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product ADD CONSTRAINT FK_3D03C460896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product ADD CONSTRAINT FK_3D03C460C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity ADD CONSTRAINT FK_7AC8E1FBD98387BA FOREIGN KEY (stock_location_id) REFERENCES stocks_bundle__stock_location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity ADD CONSTRAINT FK_7AC8E1FB38248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity ADD CONSTRAINT FK_7AC8E1FBB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity ADD CONSTRAINT FK_7AC8E1FB896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity ADD CONSTRAINT FK_7AC8E1FBC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__sub_location ADD CONSTRAINT FK_69B6540664D218E FOREIGN KEY (location_id) REFERENCES stocks_bundle__location (id)');
$this->addSql('ALTER TABLE stocks_bundle__sub_location ADD CONSTRAINT FK_69B65406B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__sub_location ADD CONSTRAINT FK_69B65406896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__sub_location ADD CONSTRAINT FK_69B65406C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__warehouse ADD CONSTRAINT FK_CDFD4A43B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__warehouse ADD CONSTRAINT FK_CDFD4A43896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__warehouse ADD CONSTRAINT FK_CDFD4A43C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95D991282D');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95D2919A68');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95F92F3E70');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD9536126D7C');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95727ACA70');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD956B00C1CF');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD9538248176');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95B03A8386');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95896DBBDE');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95C76F1F52');
$this->addSql('ALTER TABLE customers_bundle__customer_group_customer DROP FOREIGN KEY FK_85C42ABD9395C3F3');
$this->addSql('ALTER TABLE customers_bundle__customer_group_customer DROP FOREIGN KEY FK_85C42ABDD2919A68');
$this->addSql('ALTER TABLE customers_bundle__customer_group DROP FOREIGN KEY FK_5641E104B03A8386');
$this->addSql('ALTER TABLE customers_bundle__customer_group DROP FOREIGN KEY FK_5641E104896DBBDE');
$this->addSql('ALTER TABLE customers_bundle__customer_group DROP FOREIGN KEY FK_5641E104C76F1F52');
$this->addSql('ALTER TABLE customers_bundle__customer_group_translations DROP FOREIGN KEY FK_2CA9AD1F232D562B');
$this->addSql('ALTER TABLE customers_bundle__customer_type DROP FOREIGN KEY FK_635B5E09B03A8386');
$this->addSql('ALTER TABLE customers_bundle__customer_type DROP FOREIGN KEY FK_635B5E09896DBBDE');
$this->addSql('ALTER TABLE customers_bundle__customer_type DROP FOREIGN KEY FK_635B5E09C76F1F52');
$this->addSql('ALTER TABLE customers_bundle__customer_type_translations DROP FOREIGN KEY FK_AF7CDEC7232D562B');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document DROP FOREIGN KEY FK_3D4C864383A19B1');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document DROP FOREIGN KEY FK_3D4C86438D9F6D38');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document DROP FOREIGN KEY FK_3D4C86431C696F7A');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document DROP FOREIGN KEY FK_3D4C8643B03A8386');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document DROP FOREIGN KEY FK_3D4C8643896DBBDE');
$this->addSql('ALTER TABLE product_returns_bundle__converted_document DROP FOREIGN KEY FK_3D4C8643C76F1F52');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22896B00C1CF');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22899395C3F3');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22898D9F6D38');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22892CF3B78B');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22895D83CC1');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC2289B03A8386');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC2289896DBBDE');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC2289C76F1F52');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD34CD4A058');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD3535E48DC');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD3B03A8386');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD3896DBBDE');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD3C76F1F52');
$this->addSql('ALTER TABLE product_returns_bundle__return_state DROP FOREIGN KEY FK_BE4FE665B03A8386');
$this->addSql('ALTER TABLE product_returns_bundle__return_state DROP FOREIGN KEY FK_BE4FE665896DBBDE');
$this->addSql('ALTER TABLE product_returns_bundle__return_state DROP FOREIGN KEY FK_BE4FE665C76F1F52');
$this->addSql('ALTER TABLE product_returns_bundle__return_state_translations DROP FOREIGN KEY FK_FD1721C8232D562B');
$this->addSql('ALTER TABLE products_bundle__attribute DROP FOREIGN KEY FK_929927FF62D643B7');
$this->addSql('ALTER TABLE products_bundle__attribute DROP FOREIGN KEY FK_929927FFB03A8386');
$this->addSql('ALTER TABLE products_bundle__attribute DROP FOREIGN KEY FK_929927FF896DBBDE');
$this->addSql('ALTER TABLE products_bundle__attribute DROP FOREIGN KEY FK_929927FFC76F1F52');
$this->addSql('ALTER TABLE products_bundle__attribute_context DROP FOREIGN KEY FK_2BEB560CB6E62EFA');
$this->addSql('ALTER TABLE products_bundle__attribute_context DROP FOREIGN KEY FK_2BEB560C6B00C1CF');
$this->addSql('ALTER TABLE products_bundle__attribute_group DROP FOREIGN KEY FK_4E023231B03A8386');
$this->addSql('ALTER TABLE products_bundle__attribute_group DROP FOREIGN KEY FK_4E023231896DBBDE');
$this->addSql('ALTER TABLE products_bundle__attribute_group DROP FOREIGN KEY FK_4E023231C76F1F52');
$this->addSql('ALTER TABLE products_bundle__attribute_group_context DROP FOREIGN KEY FK_4A85C4B862D643B7');
$this->addSql('ALTER TABLE products_bundle__attribute_group_context DROP FOREIGN KEY FK_4A85C4B86B00C1CF');
$this->addSql('ALTER TABLE products_bundle__attribute_group_translations DROP FOREIGN KEY FK_660EAACD232D562B');
$this->addSql('ALTER TABLE products_bundle__attribute_translations DROP FOREIGN KEY FK_AAAF91FA232D562B');
$this->addSql('ALTER TABLE products_bundle__brand DROP FOREIGN KEY FK_E6FC9E69B03A8386');
$this->addSql('ALTER TABLE products_bundle__brand DROP FOREIGN KEY FK_E6FC9E69896DBBDE');
$this->addSql('ALTER TABLE products_bundle__brand DROP FOREIGN KEY FK_E6FC9E69C76F1F52');
$this->addSql('ALTER TABLE products_bundle__brand_context DROP FOREIGN KEY FK_238239EF44F5D008');
$this->addSql('ALTER TABLE products_bundle__brand_context DROP FOREIGN KEY FK_238239EF6B00C1CF');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB1204584665A');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB12021C2B4E8');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB1205E0BEBC0');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB120B03A8386');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB120896DBBDE');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB120C76F1F52');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59B9941A932');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59BB6E62EFA');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59BB03A8386');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59B896DBBDE');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59BC76F1F52');
$this->addSql('ALTER TABLE products_bundle__declination_context DROP FOREIGN KEY FK_B1F3A3809941A932');
$this->addSql('ALTER TABLE products_bundle__declination_context DROP FOREIGN KEY FK_B1F3A3806B00C1CF');
$this->addSql('ALTER TABLE products_bundle__ean13 DROP FOREIGN KEY FK_D50078F94584665A');
$this->addSql('ALTER TABLE products_bundle__ean13 DROP FOREIGN KEY FK_D50078F99941A932');
$this->addSql('ALTER TABLE products_bundle__ean13 DROP FOREIGN KEY FK_D50078F9B03A8386');
$this->addSql('ALTER TABLE products_bundle__ean13 DROP FOREIGN KEY FK_D50078F9896DBBDE');
$this->addSql('ALTER TABLE products_bundle__ean13 DROP FOREIGN KEY FK_D50078F9C76F1F52');
$this->addSql('ALTER TABLE products_bundle__eco_part DROP FOREIGN KEY FK_52A691535F7690E5');
$this->addSql('ALTER TABLE products_bundle__eco_part DROP FOREIGN KEY FK_52A6915338248176');
$this->addSql('ALTER TABLE products_bundle__eco_part DROP FOREIGN KEY FK_52A69153B03A8386');
$this->addSql('ALTER TABLE products_bundle__eco_part DROP FOREIGN KEY FK_52A69153896DBBDE');
$this->addSql('ALTER TABLE products_bundle__eco_part DROP FOREIGN KEY FK_52A69153C76F1F52');
$this->addSql('ALTER TABLE products_bundle__eco_part_group DROP FOREIGN KEY FK_86BC60A7B03A8386');
$this->addSql('ALTER TABLE products_bundle__eco_part_group DROP FOREIGN KEY FK_86BC60A7896DBBDE');
$this->addSql('ALTER TABLE products_bundle__eco_part_group DROP FOREIGN KEY FK_86BC60A7C76F1F52');
$this->addSql('ALTER TABLE products_bundle__eco_part_group_translations DROP FOREIGN KEY FK_6453299E232D562B');
$this->addSql('ALTER TABLE products_bundle__eco_part_translations DROP FOREIGN KEY FK_7BFF0B9C232D562B');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A14959723');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A5E0BEBC0');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4AAE870F68');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A3506A35B');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A44F5D008');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A38248176');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A727ACA70');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4AB03A8386');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A896DBBDE');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4AC76F1F52');
$this->addSql('ALTER TABLE products_bundle__product_context DROP FOREIGN KEY FK_F37E0B8C4584665A');
$this->addSql('ALTER TABLE products_bundle__product_context DROP FOREIGN KEY FK_F37E0B8C6B00C1CF');
$this->addSql('ALTER TABLE products_bundle__product_translations DROP FOREIGN KEY FK_9017C31B232D562B');
$this->addSql('ALTER TABLE products_bundle__product_type DROP FOREIGN KEY FK_3C1F33B8B03A8386');
$this->addSql('ALTER TABLE products_bundle__product_type DROP FOREIGN KEY FK_3C1F33B8896DBBDE');
$this->addSql('ALTER TABLE products_bundle__product_type DROP FOREIGN KEY FK_3C1F33B8C76F1F52');
$this->addSql('ALTER TABLE products_bundle__product_type_translations DROP FOREIGN KEY FK_4D8A1534232D562B');
$this->addSql('ALTER TABLE products_bundle__search_association DROP FOREIGN KEY FK_A4AC80614584665A');
$this->addSql('ALTER TABLE products_bundle__search_association DROP FOREIGN KEY FK_A4AC80619941A932');
$this->addSql('ALTER TABLE products_bundle__search_association DROP FOREIGN KEY FK_A4AC80616E86AC17');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf DROP FOREIGN KEY FK_3CDB90D193CB796C');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf DROP FOREIGN KEY FK_3CDB90D1B03A8386');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf DROP FOREIGN KEY FK_3CDB90D1896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf DROP FOREIGN KEY FK_3CDB90D1C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__bank DROP FOREIGN KEY FK_82507772B03A8386');
$this->addSql('ALTER TABLE sales_bundle__bank DROP FOREIGN KEY FK_82507772896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__bank DROP FOREIGN KEY FK_82507772C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D76B00C1CF');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D79395C3F3');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D7C6BDFEB');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D7EBF23851');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D72989F1FD');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D738248176');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D7C69DE5E5');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D71418957');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D7B03A8386');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D7896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D7C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A71C696F7A');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A770E80DF4');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A73506A35B');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A7727ACA70');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A7B03A8386');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A7896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A7C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__customer_options DROP FOREIGN KEY FK_5E01AC229395C3F3');
$this->addSql('ALTER TABLE sales_bundle__customer_options DROP FOREIGN KEY FK_5E01AC22B03A8386');
$this->addSql('ALTER TABLE sales_bundle__customer_options DROP FOREIGN KEY FK_5E01AC22896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__customer_options DROP FOREIGN KEY FK_5E01AC22C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D76B00C1CF');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D79395C3F3');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D78D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D72989F1FD');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D7C69DE5E5');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D71418957');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D7B03A8386');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D7896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D7C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237F2CF3B78B');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237FBB01DC09');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237FB03A8386');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237F896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237FC76F1F52');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA4C3A3BB');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA2989F1FD');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA1C696F7A');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CAB03A8386');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CAC76F1F52');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C6B00C1CF');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C9395C3F3');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CC6BDFEB');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CEBF23851');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CB4EA4E60');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C8D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C1C696F7A');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C38248176');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C17653B16');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CC69DE5E5');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C1418957');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CB03A8386');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CC76F1F52');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D2989F1FD');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D70E80DF4');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D3506A35B');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D727ACA70');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0DB03A8386');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0DC76F1F52');
$this->addSql('ALTER TABLE sales_bundle__line_type DROP FOREIGN KEY FK_E0257996B03A8386');
$this->addSql('ALTER TABLE sales_bundle__line_type DROP FOREIGN KEY FK_E0257996896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__line_type DROP FOREIGN KEY FK_E0257996C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__line_type_translations DROP FOREIGN KEY FK_51AE71BF232D562B');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B626B00C1CF');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B629395C3F3');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62C6BDFEB');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62EBF23851');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62B4EA4E60');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62E420DE70');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B6238248176');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62C69DE5E5');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62B03A8386');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__order_history DROP FOREIGN KEY FK_C62DA9598D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__order_history DROP FOREIGN KEY FK_C62DA959E420DE70');
$this->addSql('ALTER TABLE sales_bundle__order_history DROP FOREIGN KEY FK_C62DA959B03A8386');
$this->addSql('ALTER TABLE sales_bundle__order_history DROP FOREIGN KEY FK_C62DA959896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC518D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC5170E80DF4');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC513506A35B');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC51727ACA70');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC51B03A8386');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC51896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC51C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__order_state DROP FOREIGN KEY FK_EBC823F8B03A8386');
$this->addSql('ALTER TABLE sales_bundle__order_state DROP FOREIGN KEY FK_EBC823F8896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__order_state DROP FOREIGN KEY FK_EBC823F8C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__order_state_translations DROP FOREIGN KEY FK_67B6006B232D562B');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8056B00C1CF');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8059395C3F3');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8051C696F7A');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8052989F1FD');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8055AA1164F');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B80511C8FB41');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B80538248176');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B805B03A8386');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B805896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B805C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__payment_method DROP FOREIGN KEY FK_69C1A5D6B03A8386');
$this->addSql('ALTER TABLE sales_bundle__payment_method DROP FOREIGN KEY FK_69C1A5D6896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__payment_method DROP FOREIGN KEY FK_69C1A5D6C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__payment_method_translations DROP FOREIGN KEY FK_38696A97232D562B');
$this->addSql('ALTER TABLE sales_bundle__payment_term DROP FOREIGN KEY FK_DE426A67B03A8386');
$this->addSql('ALTER TABLE sales_bundle__payment_term DROP FOREIGN KEY FK_DE426A67896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__payment_term DROP FOREIGN KEY FK_DE426A67C76F1F52');
$this->addSql('ALTER TABLE sales_bundle__payment_term_translations DROP FOREIGN KEY FK_E2F5FF95232D562B');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DF6B00C1CF');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DF9395C3F3');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DFC6BDFEB');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DFEBF23851');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DF38248176');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DF5AA1164F');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DFC69DE5E5');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DFB03A8386');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DF896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP FOREIGN KEY FK_A0FC50DFC76F1F52');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159AB4EA4E60');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159A70E80DF4');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159A3506A35B');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159A727ACA70');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159AB03A8386');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159A896DBBDE');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159AC76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__date_type DROP FOREIGN KEY FK_8D4E1F62B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__date_type DROP FOREIGN KEY FK_8D4E1F62896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__date_type DROP FOREIGN KEY FK_8D4E1F62C76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__date_type_translations DROP FOREIGN KEY FK_1B0A15EE232D562B');
$this->addSql('ALTER TABLE stocks_bundle__location DROP FOREIGN KEY FK_A4AB83FF5080ECDE');
$this->addSql('ALTER TABLE stocks_bundle__location DROP FOREIGN KEY FK_A4AB83FFB03A8386');
$this->addSql('ALTER TABLE stocks_bundle__location DROP FOREIGN KEY FK_A4AB83FF896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__location DROP FOREIGN KEY FK_A4AB83FFC76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration DROP FOREIGN KEY FK_CAB2DF34584665A');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration DROP FOREIGN KEY FK_CAB2DF3B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration DROP FOREIGN KEY FK_CAB2DF3896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration DROP FOREIGN KEY FK_CAB2DF3C76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E0664D218E');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E06E3B45410');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E06FCAB8B6E');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E06EBCD91F6');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E06B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E06896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP FOREIGN KEY FK_BBA57E06C76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623AD0E7D5DE');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623AA145ECC8');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623A64D218E');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623AE3B45410');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623AB03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623A896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623AC76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason DROP FOREIGN KEY FK_C4953947B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason DROP FOREIGN KEY FK_C4953947896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason DROP FOREIGN KEY FK_C4953947C76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason_translations DROP FOREIGN KEY FK_C86D085232D562B');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line DROP FOREIGN KEY FK_C168A566EBCD91F6');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line DROP FOREIGN KEY FK_C168A566BB01DC09');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line DROP FOREIGN KEY FK_C168A566B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line DROP FOREIGN KEY FK_C168A566896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location DROP FOREIGN KEY FK_DF6712FE3F9EF6ED');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location DROP FOREIGN KEY FK_DF6712FED98387BA');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location DROP FOREIGN KEY FK_DF6712FEB03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location DROP FOREIGN KEY FK_DF6712FE896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_product DROP FOREIGN KEY FK_3D03C4604584665A');
$this->addSql('ALTER TABLE stocks_bundle__stock_product DROP FOREIGN KEY FK_3D03C4609941A932');
$this->addSql('ALTER TABLE stocks_bundle__stock_product DROP FOREIGN KEY FK_3D03C4605080ECDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_product DROP FOREIGN KEY FK_3D03C460B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_product DROP FOREIGN KEY FK_3D03C460896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_product DROP FOREIGN KEY FK_3D03C460C76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity DROP FOREIGN KEY FK_7AC8E1FBD98387BA');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity DROP FOREIGN KEY FK_7AC8E1FB38248176');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity DROP FOREIGN KEY FK_7AC8E1FBB03A8386');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity DROP FOREIGN KEY FK_7AC8E1FB896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity DROP FOREIGN KEY FK_7AC8E1FBC76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__sub_location DROP FOREIGN KEY FK_69B6540664D218E');
$this->addSql('ALTER TABLE stocks_bundle__sub_location DROP FOREIGN KEY FK_69B65406B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__sub_location DROP FOREIGN KEY FK_69B65406896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__sub_location DROP FOREIGN KEY FK_69B65406C76F1F52');
$this->addSql('ALTER TABLE stocks_bundle__warehouse DROP FOREIGN KEY FK_CDFD4A43B03A8386');
$this->addSql('ALTER TABLE stocks_bundle__warehouse DROP FOREIGN KEY FK_CDFD4A43896DBBDE');
$this->addSql('ALTER TABLE stocks_bundle__warehouse DROP FOREIGN KEY FK_CDFD4A43C76F1F52');
$this->addSql('DROP TABLE customers_bundle__customer');
$this->addSql('DROP TABLE customers_bundle__customer_group_customer');
$this->addSql('DROP TABLE customers_bundle__customer_group');
$this->addSql('DROP TABLE customers_bundle__customer_group_translations');
$this->addSql('DROP TABLE customers_bundle__customer_type');
$this->addSql('DROP TABLE customers_bundle__customer_type_translations');
$this->addSql('DROP TABLE product_returns_bundle__converted_document');
$this->addSql('DROP TABLE product_returns_bundle__product_return');
$this->addSql('DROP TABLE product_returns_bundle__product_return_line');
$this->addSql('DROP TABLE product_returns_bundle__return_state');
$this->addSql('DROP TABLE product_returns_bundle__return_state_translations');
$this->addSql('DROP TABLE products_bundle__attribute');
$this->addSql('DROP TABLE products_bundle__attribute_context');
$this->addSql('DROP TABLE products_bundle__attribute_group');
$this->addSql('DROP TABLE products_bundle__attribute_group_context');
$this->addSql('DROP TABLE products_bundle__attribute_group_translations');
$this->addSql('DROP TABLE products_bundle__attribute_translations');
$this->addSql('DROP TABLE products_bundle__brand');
$this->addSql('DROP TABLE products_bundle__brand_context');
$this->addSql('DROP TABLE products_bundle__declination');
$this->addSql('DROP TABLE products_bundle__declination_attribute');
$this->addSql('DROP TABLE products_bundle__declination_context');
$this->addSql('DROP TABLE products_bundle__ean13');
$this->addSql('DROP TABLE products_bundle__eco_part');
$this->addSql('DROP TABLE products_bundle__eco_part_group');
$this->addSql('DROP TABLE products_bundle__eco_part_group_translations');
$this->addSql('DROP TABLE products_bundle__eco_part_translations');
$this->addSql('DROP TABLE products_bundle__product');
$this->addSql('DROP TABLE products_bundle__product_context');
$this->addSql('DROP TABLE products_bundle__product_translations');
$this->addSql('DROP TABLE products_bundle__product_type');
$this->addSql('DROP TABLE products_bundle__product_type_translations');
$this->addSql('DROP TABLE products_bundle__search_association');
$this->addSql('DROP TABLE products_bundle__search_word');
$this->addSql('DROP TABLE sales_bundle__additional_pdf');
$this->addSql('DROP TABLE sales_bundle__bank');
$this->addSql('DROP TABLE sales_bundle__credit_note');
$this->addSql('DROP TABLE sales_bundle__credit_note_line');
$this->addSql('DROP TABLE sales_bundle__customer_options');
$this->addSql('DROP TABLE sales_bundle__delivery_note');
$this->addSql('DROP TABLE sales_bundle__delivery_note_line');
$this->addSql('DROP TABLE sales_bundle__document_payment');
$this->addSql('DROP TABLE sales_bundle__invoice');
$this->addSql('DROP TABLE sales_bundle__invoice_line');
$this->addSql('DROP TABLE sales_bundle__line_type');
$this->addSql('DROP TABLE sales_bundle__line_type_translations');
$this->addSql('DROP TABLE sales_bundle__order');
$this->addSql('DROP TABLE sales_bundle__order_history');
$this->addSql('DROP TABLE sales_bundle__order_line');
$this->addSql('DROP TABLE sales_bundle__order_state');
$this->addSql('DROP TABLE sales_bundle__order_state_translations');
$this->addSql('DROP TABLE sales_bundle__payment');
$this->addSql('DROP TABLE sales_bundle__payment_method');
$this->addSql('DROP TABLE sales_bundle__payment_method_translations');
$this->addSql('DROP TABLE sales_bundle__payment_term');
$this->addSql('DROP TABLE sales_bundle__payment_term_translations');
$this->addSql('DROP TABLE sales_bundle__quotation');
$this->addSql('DROP TABLE sales_bundle__quotation_line');
$this->addSql('DROP TABLE stocks_bundle__date_type');
$this->addSql('DROP TABLE stocks_bundle__date_type_translations');
$this->addSql('DROP TABLE stocks_bundle__location');
$this->addSql('DROP TABLE stocks_bundle__product_configuration');
$this->addSql('DROP TABLE stocks_bundle__stock_location');
$this->addSql('DROP TABLE stocks_bundle__stock_movement');
$this->addSql('DROP TABLE stocks_bundle__stock_movement_reason');
$this->addSql('DROP TABLE stocks_bundle__stock_movement_reason_translations');
$this->addSql('DROP TABLE stocks_bundle__stock_order_line');
$this->addSql('DROP TABLE stocks_bundle__stock_order_line_location');
$this->addSql('DROP TABLE stocks_bundle__stock_product');
$this->addSql('DROP TABLE stocks_bundle__stock_quantity');
$this->addSql('DROP TABLE stocks_bundle__sub_location');
$this->addSql('DROP TABLE stocks_bundle__warehouse');
}
}