<?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 Version20220601090242 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 accounting_bundle__account (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, number VARCHAR(32) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_F422CBC796901F54 (number), INDEX IDX_F422CBC7B03A8386 (created_by_id), INDEX IDX_F422CBC7896DBBDE (updated_by_id), INDEX IDX_F422CBC7C76F1F52 (deleted_by_id), INDEX name (name), INDEX number (number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE accounting_bundle__account_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_1A196C21232D562B (object_id), 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 accounting_bundle__customer_account (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)\', number VARCHAR(32) DEFAULT NULL, auxiliary_number VARCHAR(32) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_1AAE13969395C3F3 (customer_id), INDEX IDX_1AAE1396B03A8386 (created_by_id), INDEX IDX_1AAE1396896DBBDE (updated_by_id), INDEX IDX_1AAE1396C76F1F52 (deleted_by_id), INDEX number (number), INDEX auxiliary_number (auxiliary_number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE accounting_bundle__product_account (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)\', product_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', sales_number VARCHAR(32) DEFAULT NULL, purchases_number VARCHAR(32) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_58256FDEB03A8386 (created_by_id), INDEX IDX_58256FDE896DBBDE (updated_by_id), INDEX IDX_58256FDEC76F1F52 (deleted_by_id), INDEX IDX_58256FDE4584665A (product_id), INDEX sales_number (sales_number), INDEX purchases_number (purchases_number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE categories_bundle__category (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', parent_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', root_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, description LONGTEXT DEFAULT NULL, lvl INT NOT NULL, lft INT NOT NULL, rgt INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) NOT NULL, INDEX IDX_5504FB5727ACA70 (parent_id), INDEX IDX_5504FB579066886 (root_id), INDEX IDX_5504FB5B03A8386 (created_by_id), INDEX IDX_5504FB5896DBBDE (updated_by_id), INDEX IDX_5504FB5C76F1F52 (deleted_by_id), INDEX name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE categories_bundle__category_product (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', category_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', 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)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_default TINYINT(1) NOT NULL, INDEX IDX_4F39BF0412469DE2 (category_id), INDEX IDX_4F39BF044584665A (product_id), INDEX IDX_4F39BF04B03A8386 (created_by_id), INDEX IDX_4F39BF04896DBBDE (updated_by_id), INDEX IDX_4F39BF04C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE categories_bundle__category_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_FAB0FDE4232D562B (object_id), 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 crm_bundle__opportunity (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)\', commercial_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', state_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', recommendation_type_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', recommendation_customer_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) DEFAULT NULL, description LONGTEXT DEFAULT NULL, document_link LONGTEXT DEFAULT NULL, deadline DATE DEFAULT NULL, presentation_date DATE DEFAULT NULL, installation_date DATE DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_CEF0F8C76B00C1CF (context_id), INDEX IDX_CEF0F8C79395C3F3 (customer_id), INDEX IDX_CEF0F8C77854071C (commercial_id), INDEX IDX_CEF0F8C75D83CC1 (state_id), INDEX IDX_CEF0F8C7982F853F (recommendation_type_id), INDEX IDX_CEF0F8C7C0F34BEC (recommendation_customer_id), INDEX IDX_CEF0F8C7B03A8386 (created_by_id), INDEX IDX_CEF0F8C7896DBBDE (updated_by_id), INDEX IDX_CEF0F8C7C76F1F52 (deleted_by_id), INDEX name (name), INDEX created_at (created_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE crm_bundle__opportunity_activity (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', opportunity_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', opportunity_document_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', opportunity_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)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', comment LONGTEXT DEFAULT NULL, meeting_date DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_3D0068599A34590F (opportunity_id), INDEX IDX_3D006859C825429A (opportunity_document_id), INDEX IDX_3D0068592AFDDCD2 (opportunity_state_id), INDEX IDX_3D006859B03A8386 (created_by_id), INDEX IDX_3D006859896DBBDE (updated_by_id), INDEX IDX_3D006859C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE crm_bundle__opportunity_document (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', opportunity_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', quotation_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', order_id BINARY(16) DEFAULT 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)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_491DEB759A34590F (opportunity_id), INDEX IDX_491DEB75B4EA4E60 (quotation_id), INDEX IDX_491DEB758D9F6D38 (order_id), INDEX IDX_491DEB752989F1FD (invoice_id), INDEX IDX_491DEB751C696F7A (credit_note_id), INDEX IDX_491DEB75B03A8386 (created_by_id), INDEX IDX_491DEB75896DBBDE (updated_by_id), INDEX IDX_491DEB75C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE crm_bundle__opportunity_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, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) NOT NULL, is_default TINYINT(1) NOT NULL, INDEX IDX_4055A61AB03A8386 (created_by_id), INDEX IDX_4055A61A896DBBDE (updated_by_id), INDEX IDX_4055A61AC76F1F52 (deleted_by_id), INDEX name (name), INDEX color (color), INDEX text_color (text_color), INDEX is_active (is_active), INDEX is_default (is_default), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE crm_bundle__opportunity_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_122C1FEC232D562B (object_id), 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 crm_bundle__recommendation_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(128) NOT NULL, has_customer TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) NOT NULL, INDEX IDX_ABB41E28B03A8386 (created_by_id), INDEX IDX_ABB41E28896DBBDE (updated_by_id), INDEX IDX_ABB41E28C76F1F52 (deleted_by_id), INDEX name (name), INDEX has_customer (has_customer), INDEX is_active (is_active), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE crm_bundle__recommendation_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_2E52E273232D562B (object_id), 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 (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', customer_type_id INT DEFAULT NULL, 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(255) DEFAULT NULL, address_2 VARCHAR(255) 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, 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), 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), 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), 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 INT AUTO_INCREMENT NOT NULL, 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), 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 INT DEFAULT NULL, locale VARCHAR(8) NOT NULL, field VARCHAR(32) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX IDX_AF7CDEC7232D562B (object_id), 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 import_products_bundle__import (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', file_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', context_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)\', category_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', supplier_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', number INT NOT NULL, status_name VARCHAR(50) DEFAULT NULL, nb_products_success INT DEFAULT NULL, nb_products_error INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_D1BBFCC993CB796C (file_id), INDEX IDX_D1BBFCC93506A35B (tax_rule_id), INDEX IDX_D1BBFCC938248176 (currency_id), INDEX IDX_D1BBFCC96B00C1CF (context_id), INDEX IDX_D1BBFCC9B03A8386 (created_by_id), INDEX IDX_D1BBFCC9896DBBDE (updated_by_id), INDEX IDX_D1BBFCC9C76F1F52 (deleted_by_id), INDEX IDX_D1BBFCC912469DE2 (category_id), INDEX IDX_D1BBFCC92ADD6D8C (supplier_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE import_products_bundle__import_error (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', import_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)\', description LONGTEXT NOT NULL, options JSON NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_2AFE3451B6A263D9 (import_id), INDEX IDX_2AFE3451B03A8386 (created_by_id), INDEX IDX_2AFE3451896DBBDE (updated_by_id), INDEX IDX_2AFE3451C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE inventories_bundle__inventory (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', warehouse_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', brand_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)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', category_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', supplier_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', reference VARCHAR(128) DEFAULT NULL, name VARCHAR(128) NOT NULL, x VARCHAR(128) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, validated_at DATETIME DEFAULT NULL, INDEX IDX_F5586DDC5080ECDE (warehouse_id), INDEX IDX_F5586DDC44F5D008 (brand_id), INDEX IDX_F5586DDCB03A8386 (created_by_id), INDEX IDX_F5586DDC896DBBDE (updated_by_id), INDEX IDX_F5586DDCC76F1F52 (deleted_by_id), INDEX IDX_F5586DDCC69DE5E5 (validated_by_id), INDEX IDX_F5586DDC12469DE2 (category_id), INDEX IDX_F5586DDC2ADD6D8C (supplier_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE inventories_bundle__inventory_original_product (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', inventory_id BINARY(16) DEFAULT 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)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_52C557F9EEA759 (inventory_id), INDEX IDX_52C557F4584665A (product_id), INDEX IDX_52C557F9941A932 (declination_id), INDEX IDX_52C557FB03A8386 (created_by_id), INDEX IDX_52C557F896DBBDE (updated_by_id), INDEX IDX_52C557FC76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE inventories_bundle__inventory_product (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', inventory_id BINARY(16) DEFAULT 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)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_7CD8FE119EEA759 (inventory_id), INDEX IDX_7CD8FE114584665A (product_id), INDEX IDX_7CD8FE119941A932 (declination_id), INDEX IDX_7CD8FE11B03A8386 (created_by_id), INDEX IDX_7CD8FE11896DBBDE (updated_by_id), INDEX IDX_7CD8FE11C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE inventories_bundle__inventory_product_quantity (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', inventory_product_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', stock_id BINARY(16) DEFAULT 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, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_4A5838466A33D9 (inventory_product_id), INDEX IDX_4A58384DCD6110 (stock_id), INDEX IDX_4A5838464D218E (location_id), INDEX IDX_4A58384E3B45410 (sub_location_id), INDEX IDX_4A58384B03A8386 (created_by_id), INDEX IDX_4A58384896DBBDE (updated_by_id), INDEX IDX_4A58384C76F1F52 (deleted_by_id), 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 created_at (created_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)\', transformed_order_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', transformed_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, back_in_stock TINYINT(1) 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_9D41AD32477F688 (transformed_order_id), INDEX IDX_9D41AD365176536 (transformed_credit_note_id), INDEX IDX_9D41AD3B03A8386 (created_by_id), INDEX IDX_9D41AD3896DBBDE (updated_by_id), INDEX IDX_9D41AD3C76F1F52 (deleted_by_id), 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) 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), 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), 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), 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), 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), 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), 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), 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)\', 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, ean13 VARCHAR(13) 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, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_CC8BB1204584665A (product_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 ean13 (ean13), INDEX wholesale_price (wholesale_price), INDEX sell_price (sell_price), INDEX initial_unit (initial_unit), INDEX weight (weight), 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), 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) 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), 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) NOT NULL, INDEX IDX_86BC60A7B03A8386 (created_by_id), INDEX IDX_86BC60A7896DBBDE (updated_by_id), INDEX IDX_86BC60A7C76F1F52 (deleted_by_id), INDEX name (name), 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), 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), 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 VARCHAR(255) DEFAULT NULL, ean13 VARCHAR(13) 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, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(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), 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), 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) 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), 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), 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__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) 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), 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 JSON NOT NULL, 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 created_at (created_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 JSON NOT NULL, 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), 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), 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 JSON NOT NULL, 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), 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 JSON NOT NULL, 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), 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), 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 JSON NOT NULL, 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 created_at (created_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 JSON NOT NULL, 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), 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) NOT NULL, INDEX IDX_E0257996B03A8386 (created_by_id), INDEX IDX_E0257996896DBBDE (updated_by_id), INDEX IDX_E0257996C76F1F52 (deleted_by_id), INDEX number (number), 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), 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 JSON NOT NULL, 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 created_at (created_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), 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 JSON NOT NULL, 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), 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, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) NOT NULL, is_default 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 is_active (is_active), INDEX is_default (is_default), 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), 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)\', 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_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), 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) 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), 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), 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) 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), 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), 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)\', 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, options JSON NOT NULL, validated_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT 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_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 created_at (created_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 JSON NOT NULL, 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), 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, 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), 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 \'Height\', 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), UNIQUE INDEX location_unique (warehouse_id, x, y, z), 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), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE stocks_bundle__stock (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)\', location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', sub_location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', warehouse_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', date_type_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, batch_number VARCHAR(64) DEFAULT NULL, date DATE DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_4512F6364584665A (product_id), INDEX IDX_4512F6369941A932 (declination_id), INDEX IDX_4512F63664D218E (location_id), INDEX IDX_4512F636E3B45410 (sub_location_id), INDEX IDX_4512F6365080ECDE (warehouse_id), INDEX IDX_4512F636FCAB8B6E (date_type_id), INDEX IDX_4512F636B03A8386 (created_by_id), INDEX IDX_4512F636896DBBDE (updated_by_id), INDEX IDX_4512F636C76F1F52 (deleted_by_id), UNIQUE INDEX stock_unique (warehouse_id, location_id, sub_location_id, product_id, declination_id), 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_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', stock_movement_reason_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', delivery_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 INT NOT NULL, sign INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_11E6623ADCD6110 (stock_id), INDEX IDX_11E6623AD0E7D5DE (stock_movement_reason_id), INDEX IDX_11E6623A2CF3B78B (delivery_note_id), INDEX IDX_11E6623AB03A8386 (created_by_id), INDEX IDX_11E6623A896DBBDE (updated_by_id), INDEX IDX_11E6623AC76F1F52 (deleted_by_id), 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), 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), 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__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, 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), 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), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__product_supplier (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)\', supplier_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, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_default TINYINT(1) NOT NULL, INDEX IDX_FCE3DD2F4584665A (product_id), INDEX IDX_FCE3DD2F9941A932 (declination_id), INDEX IDX_FCE3DD2F2ADD6D8C (supplier_id), INDEX IDX_FCE3DD2FB03A8386 (created_by_id), INDEX IDX_FCE3DD2F896DBBDE (updated_by_id), INDEX IDX_FCE3DD2FC76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__supplier (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', country_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', country_state_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', supplier_type_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, city VARCHAR(128) DEFAULT NULL, postcode VARCHAR(32) DEFAULT NULL, contact_name VARCHAR(255) DEFAULT NULL, address VARCHAR(255) DEFAULT NULL, address2 VARCHAR(255) DEFAULT NULL, vat_number VARCHAR(32) DEFAULT NULL, phone VARCHAR(32) DEFAULT NULL, mobile_phone VARCHAR(32) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, website VARCHAR(255) DEFAULT NULL, note LONGTEXT DEFAULT NULL, free_of_charge NUMERIC(20, 6) DEFAULT NULL, ape VARCHAR(8) DEFAULT NULL, siret VARCHAR(25) DEFAULT NULL, rib VARCHAR(50) DEFAULT NULL, iban VARCHAR(34) DEFAULT NULL, bic VARCHAR(11) DEFAULT NULL, payment_method VARCHAR(255) DEFAULT NULL, bank_name VARCHAR(255) DEFAULT NULL, activity VARCHAR(255) DEFAULT NULL, reference VARCHAR(128) DEFAULT NULL, accounting_account VARCHAR(128) DEFAULT NULL, customer_number VARCHAR(128) DEFAULT NULL, minimum_order NUMERIC(20, 6) DEFAULT NULL, exemption TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) NOT NULL, INDEX IDX_DC54A5DAF92F3E70 (country_id), INDEX IDX_DC54A5DA36126D7C (country_state_id), INDEX IDX_DC54A5DA4429F88C (supplier_type_id), INDEX IDX_DC54A5DAB03A8386 (created_by_id), INDEX IDX_DC54A5DA896DBBDE (updated_by_id), INDEX IDX_DC54A5DAC76F1F52 (deleted_by_id), INDEX name (name), INDEX reference (reference), INDEX activity (activity), INDEX city (city), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__supplier_address (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', country_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', country_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)\', deleted_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', alias VARCHAR(255) DEFAULT NULL, address VARCHAR(255) DEFAULT NULL, address2 VARCHAR(255) DEFAULT NULL, city VARCHAR(128) DEFAULT NULL, postcode VARCHAR(32) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_2052C0582ADD6D8C (supplier_id), INDEX IDX_2052C058F92F3E70 (country_id), INDEX IDX_2052C05836126D7C (country_state_id), INDEX IDX_2052C058B03A8386 (created_by_id), INDEX IDX_2052C058896DBBDE (updated_by_id), INDEX IDX_2052C058C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__supplier_contact (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_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)\', firstname VARCHAR(128) DEFAULT NULL, lastname VARCHAR(128) DEFAULT NULL, phone VARCHAR(32) DEFAULT NULL, mobile_phone VARCHAR(32) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, fax VARCHAR(255) DEFAULT NULL, work_post VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_617E49E12ADD6D8C (supplier_id), INDEX IDX_617E49E1B03A8386 (created_by_id), INDEX IDX_617E49E1896DBBDE (updated_by_id), INDEX IDX_617E49E1C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__supplier_context (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_CF412AA72ADD6D8C (supplier_id), INDEX IDX_CF412AA76B00C1CF (context_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__supplier_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(128) NOT NULL, number INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, is_active TINYINT(1) NOT NULL, INDEX IDX_2E33A582B03A8386 (created_by_id), INDEX IDX_2E33A582896DBBDE (updated_by_id), INDEX IDX_2E33A582C76F1F52 (deleted_by_id), INDEX name (name), INDEX is_active (is_active), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_bundle__supplier_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_5C93F504232D562B (object_id), 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 suppliers_orders_bundle__receipt_note (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_order_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', context_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)\', reference VARCHAR(128) DEFAULT NULL, options JSON NOT NULL, validated_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_7D7418211605B9 (supplier_order_id), INDEX IDX_7D7418216B00C1CF (context_id), INDEX IDX_7D741821C69DE5E5 (validated_by_id), INDEX IDX_7D741821B03A8386 (created_by_id), INDEX IDX_7D741821896DBBDE (updated_by_id), INDEX IDX_7D741821C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_orders_bundle__receipt_note_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', receipt_note_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_order_line_id BINARY(16) NOT 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)\', stock_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', warehouse_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', sub_location_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', quantity NUMERIC(20, 6) DEFAULT NULL, quantity_received NUMERIC(20, 6) DEFAULT NULL, options JSON NOT NULL, supplier_reference VARCHAR(255) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_2C547A1E35A7ADAB (receipt_note_id), INDEX IDX_2C547A1EA9DC5CCE (supplier_order_line_id), INDEX IDX_2C547A1E727ACA70 (parent_id), INDEX IDX_2C547A1EB03A8386 (created_by_id), INDEX IDX_2C547A1E896DBBDE (updated_by_id), INDEX IDX_2C547A1EC76F1F52 (deleted_by_id), INDEX IDX_2C547A1EDCD6110 (stock_id), INDEX IDX_2C547A1E5080ECDE (warehouse_id), INDEX IDX_2C547A1E64D218E (location_id), INDEX IDX_2C547A1EE3B45410 (sub_location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_orders_bundle__supplier_order (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', context_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', supplier_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)\', validated_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', currency_change_rate NUMERIC(20, 12) NOT NULL, reference VARCHAR(128) DEFAULT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, internal_reference VARCHAR(255) DEFAULT NULL, external_reference VARCHAR(255) DEFAULT NULL, internal_note LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, validated_at DATETIME DEFAULT NULL, INDEX IDX_E63ACA816B00C1CF (context_id), INDEX IDX_E63ACA812ADD6D8C (supplier_id), INDEX IDX_E63ACA8138248176 (currency_id), INDEX IDX_E63ACA81B03A8386 (created_by_id), INDEX IDX_E63ACA81896DBBDE (updated_by_id), INDEX IDX_E63ACA81C76F1F52 (deleted_by_id), INDEX IDX_E63ACA81C69DE5E5 (validated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE suppliers_orders_bundle__supplier_order_line (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_order_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)\', supplier_reference VARCHAR(255) DEFAULT NULL, wholesale_price NUMERIC(20, 6) DEFAULT NULL, quantity NUMERIC(20, 6) DEFAULT NULL, quantity_receipted NUMERIC(20, 6) DEFAULT NULL, position INT NOT NULL, options JSON NOT NULL, total_amount NUMERIC(20, 6) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX IDX_389F67811605B9 (supplier_order_id), INDEX IDX_389F67814584665A (product_id), INDEX IDX_389F67819941A932 (declination_id), INDEX IDX_389F6781B03A8386 (created_by_id), INDEX IDX_389F6781896DBBDE (updated_by_id), INDEX IDX_389F6781C76F1F52 (deleted_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE accounting_bundle__account ADD CONSTRAINT FK_F422CBC7B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__account ADD CONSTRAINT FK_F422CBC7896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__account ADD CONSTRAINT FK_F422CBC7C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__account_translations ADD CONSTRAINT FK_1A196C21232D562B FOREIGN KEY (object_id) REFERENCES accounting_bundle__account (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE accounting_bundle__customer_account ADD CONSTRAINT FK_1AAE13969395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE accounting_bundle__customer_account ADD CONSTRAINT FK_1AAE1396B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__customer_account ADD CONSTRAINT FK_1AAE1396896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__customer_account ADD CONSTRAINT FK_1AAE1396C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__product_account ADD CONSTRAINT FK_58256FDEB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__product_account ADD CONSTRAINT FK_58256FDE896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__product_account ADD CONSTRAINT FK_58256FDEC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE accounting_bundle__product_account ADD CONSTRAINT FK_58256FDE4584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE categories_bundle__category ADD CONSTRAINT FK_5504FB5727ACA70 FOREIGN KEY (parent_id) REFERENCES categories_bundle__category (id)');
$this->addSql('ALTER TABLE categories_bundle__category ADD CONSTRAINT FK_5504FB579066886 FOREIGN KEY (root_id) REFERENCES categories_bundle__category (id)');
$this->addSql('ALTER TABLE categories_bundle__category ADD CONSTRAINT FK_5504FB5B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE categories_bundle__category ADD CONSTRAINT FK_5504FB5896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE categories_bundle__category ADD CONSTRAINT FK_5504FB5C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE categories_bundle__category_product ADD CONSTRAINT FK_4F39BF0412469DE2 FOREIGN KEY (category_id) REFERENCES categories_bundle__category (id)');
$this->addSql('ALTER TABLE categories_bundle__category_product ADD CONSTRAINT FK_4F39BF044584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE categories_bundle__category_product ADD CONSTRAINT FK_4F39BF04B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE categories_bundle__category_product ADD CONSTRAINT FK_4F39BF04896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE categories_bundle__category_product ADD CONSTRAINT FK_4F39BF04C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE categories_bundle__category_translations ADD CONSTRAINT FK_FAB0FDE4232D562B FOREIGN KEY (object_id) REFERENCES categories_bundle__category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C76B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C79395C3F3 FOREIGN KEY (customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C77854071C FOREIGN KEY (commercial_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C75D83CC1 FOREIGN KEY (state_id) REFERENCES crm_bundle__opportunity_state (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C7982F853F FOREIGN KEY (recommendation_type_id) REFERENCES crm_bundle__recommendation_type (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C7C0F34BEC FOREIGN KEY (recommendation_customer_id) REFERENCES customers_bundle__customer (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C7B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C7896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity ADD CONSTRAINT FK_CEF0F8C7C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity ADD CONSTRAINT FK_3D0068599A34590F FOREIGN KEY (opportunity_id) REFERENCES crm_bundle__opportunity (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity ADD CONSTRAINT FK_3D006859C825429A FOREIGN KEY (opportunity_document_id) REFERENCES crm_bundle__opportunity_document (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity ADD CONSTRAINT FK_3D0068592AFDDCD2 FOREIGN KEY (opportunity_state_id) REFERENCES crm_bundle__opportunity_state (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity ADD CONSTRAINT FK_3D006859B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity ADD CONSTRAINT FK_3D006859896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity ADD CONSTRAINT FK_3D006859C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB759A34590F FOREIGN KEY (opportunity_id) REFERENCES crm_bundle__opportunity (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB75B4EA4E60 FOREIGN KEY (quotation_id) REFERENCES sales_bundle__quotation (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB758D9F6D38 FOREIGN KEY (order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB752989F1FD FOREIGN KEY (invoice_id) REFERENCES sales_bundle__invoice (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB751C696F7A FOREIGN KEY (credit_note_id) REFERENCES sales_bundle__credit_note (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB75B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB75896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document ADD CONSTRAINT FK_491DEB75C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_state ADD CONSTRAINT FK_4055A61AB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_state ADD CONSTRAINT FK_4055A61A896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_state ADD CONSTRAINT FK_4055A61AC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__opportunity_state_translations ADD CONSTRAINT FK_122C1FEC232D562B FOREIGN KEY (object_id) REFERENCES crm_bundle__opportunity_state (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE crm_bundle__recommendation_type ADD CONSTRAINT FK_ABB41E28B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__recommendation_type ADD CONSTRAINT FK_ABB41E28896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__recommendation_type ADD CONSTRAINT FK_ABB41E28C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE crm_bundle__recommendation_type_translations ADD CONSTRAINT FK_2E52E273232D562B FOREIGN KEY (object_id) REFERENCES crm_bundle__recommendation_type (id) ON DELETE CASCADE');
$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 import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC993CB796C FOREIGN KEY (file_id) REFERENCES file_manager (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC93506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC938248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC96B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC9B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC9896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC9C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC912469DE2 FOREIGN KEY (category_id) REFERENCES categories_bundle__category (id)');
$this->addSql('ALTER TABLE import_products_bundle__import ADD CONSTRAINT FK_D1BBFCC92ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE import_products_bundle__import_error ADD CONSTRAINT FK_2AFE3451B6A263D9 FOREIGN KEY (import_id) REFERENCES import_products_bundle__import (id)');
$this->addSql('ALTER TABLE import_products_bundle__import_error ADD CONSTRAINT FK_2AFE3451B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE import_products_bundle__import_error ADD CONSTRAINT FK_2AFE3451896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE import_products_bundle__import_error ADD CONSTRAINT FK_2AFE3451C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDC5080ECDE FOREIGN KEY (warehouse_id) REFERENCES stocks_bundle__warehouse (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDC44F5D008 FOREIGN KEY (brand_id) REFERENCES products_bundle__brand (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDCB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDC896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDCC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDCC69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDC12469DE2 FOREIGN KEY (category_id) REFERENCES categories_bundle__category (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory ADD CONSTRAINT FK_F5586DDC2ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product ADD CONSTRAINT FK_52C557F9EEA759 FOREIGN KEY (inventory_id) REFERENCES inventories_bundle__inventory (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product ADD CONSTRAINT FK_52C557F4584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product ADD CONSTRAINT FK_52C557F9941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product ADD CONSTRAINT FK_52C557FB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product ADD CONSTRAINT FK_52C557F896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product ADD CONSTRAINT FK_52C557FC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product ADD CONSTRAINT FK_7CD8FE119EEA759 FOREIGN KEY (inventory_id) REFERENCES inventories_bundle__inventory (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product ADD CONSTRAINT FK_7CD8FE114584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product ADD CONSTRAINT FK_7CD8FE119941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product ADD CONSTRAINT FK_7CD8FE11B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product ADD CONSTRAINT FK_7CD8FE11896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product ADD CONSTRAINT FK_7CD8FE11C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A5838466A33D9 FOREIGN KEY (inventory_product_id) REFERENCES inventories_bundle__inventory_product (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A58384DCD6110 FOREIGN KEY (stock_id) REFERENCES stocks_bundle__stock (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A5838464D218E FOREIGN KEY (location_id) REFERENCES stocks_bundle__location (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A58384E3B45410 FOREIGN KEY (sub_location_id) REFERENCES stocks_bundle__sub_location (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A58384B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A58384896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity ADD CONSTRAINT FK_4A58384C76F1F52 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_9D41AD32477F688 FOREIGN KEY (transformed_order_id) REFERENCES sales_bundle__order (id)');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line ADD CONSTRAINT FK_9D41AD365176536 FOREIGN KEY (transformed_credit_note_id) REFERENCES sales_bundle__credit_note (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_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_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__declination ADD CONSTRAINT FK_CC8BB1204584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (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__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 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__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_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_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__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 ADD CONSTRAINT FK_4512F6364584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F6369941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F63664D218E FOREIGN KEY (location_id) REFERENCES stocks_bundle__location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F636E3B45410 FOREIGN KEY (sub_location_id) REFERENCES stocks_bundle__sub_location (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F6365080ECDE FOREIGN KEY (warehouse_id) REFERENCES stocks_bundle__warehouse (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F636FCAB8B6E FOREIGN KEY (date_type_id) REFERENCES stocks_bundle__date_type (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F636B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F636896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock ADD CONSTRAINT FK_4512F636C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623ADCD6110 FOREIGN KEY (stock_id) REFERENCES stocks_bundle__stock (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_11E6623A2CF3B78B FOREIGN KEY (delivery_note_id) REFERENCES sales_bundle__delivery_note (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__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)');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier ADD CONSTRAINT FK_FCE3DD2F4584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier ADD CONSTRAINT FK_FCE3DD2F9941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier ADD CONSTRAINT FK_FCE3DD2F2ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier ADD CONSTRAINT FK_FCE3DD2FB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier ADD CONSTRAINT FK_FCE3DD2F896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier ADD CONSTRAINT FK_FCE3DD2FC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier ADD CONSTRAINT FK_DC54A5DAF92F3E70 FOREIGN KEY (country_id) REFERENCES country (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier ADD CONSTRAINT FK_DC54A5DA36126D7C FOREIGN KEY (country_state_id) REFERENCES country_state (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier ADD CONSTRAINT FK_DC54A5DA4429F88C FOREIGN KEY (supplier_type_id) REFERENCES suppliers_bundle__supplier_type (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier ADD CONSTRAINT FK_DC54A5DAB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier ADD CONSTRAINT FK_DC54A5DA896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier ADD CONSTRAINT FK_DC54A5DAC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address ADD CONSTRAINT FK_2052C0582ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address ADD CONSTRAINT FK_2052C058F92F3E70 FOREIGN KEY (country_id) REFERENCES country (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address ADD CONSTRAINT FK_2052C05836126D7C FOREIGN KEY (country_state_id) REFERENCES country_state (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address ADD CONSTRAINT FK_2052C058B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address ADD CONSTRAINT FK_2052C058896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address ADD CONSTRAINT FK_2052C058C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact ADD CONSTRAINT FK_617E49E12ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact ADD CONSTRAINT FK_617E49E1B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact ADD CONSTRAINT FK_617E49E1896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact ADD CONSTRAINT FK_617E49E1C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_context ADD CONSTRAINT FK_CF412AA72ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_context ADD CONSTRAINT FK_CF412AA76B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type ADD CONSTRAINT FK_2E33A582B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type ADD CONSTRAINT FK_2E33A582896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type ADD CONSTRAINT FK_2E33A582C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type_translations ADD CONSTRAINT FK_5C93F504232D562B FOREIGN KEY (object_id) REFERENCES suppliers_bundle__supplier_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note ADD CONSTRAINT FK_7D7418211605B9 FOREIGN KEY (supplier_order_id) REFERENCES suppliers_orders_bundle__supplier_order (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note ADD CONSTRAINT FK_7D7418216B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note ADD CONSTRAINT FK_7D741821C69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note ADD CONSTRAINT FK_7D741821B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note ADD CONSTRAINT FK_7D741821896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note ADD CONSTRAINT FK_7D741821C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1E35A7ADAB FOREIGN KEY (receipt_note_id) REFERENCES suppliers_orders_bundle__receipt_note (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1EA9DC5CCE FOREIGN KEY (supplier_order_line_id) REFERENCES suppliers_orders_bundle__supplier_order_line (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1E727ACA70 FOREIGN KEY (parent_id) REFERENCES suppliers_orders_bundle__receipt_note_line (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1EB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1E896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1EC76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1EDCD6110 FOREIGN KEY (stock_id) REFERENCES stocks_bundle__stock (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1E5080ECDE FOREIGN KEY (warehouse_id) REFERENCES stocks_bundle__warehouse (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1E64D218E FOREIGN KEY (location_id) REFERENCES stocks_bundle__location (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD CONSTRAINT FK_2C547A1EE3B45410 FOREIGN KEY (sub_location_id) REFERENCES stocks_bundle__sub_location (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA816B00C1CF FOREIGN KEY (context_id) REFERENCES context (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA812ADD6D8C FOREIGN KEY (supplier_id) REFERENCES suppliers_bundle__supplier (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA8138248176 FOREIGN KEY (currency_id) REFERENCES currency (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA81B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA81896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA81C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order ADD CONSTRAINT FK_E63ACA81C69DE5E5 FOREIGN KEY (validated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD CONSTRAINT FK_389F67811605B9 FOREIGN KEY (supplier_order_id) REFERENCES suppliers_orders_bundle__supplier_order (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD CONSTRAINT FK_389F67814584665A FOREIGN KEY (product_id) REFERENCES products_bundle__product (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD CONSTRAINT FK_389F67819941A932 FOREIGN KEY (declination_id) REFERENCES products_bundle__declination (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD CONSTRAINT FK_389F6781B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD CONSTRAINT FK_389F6781896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD CONSTRAINT FK_389F6781C76F1F52 FOREIGN KEY (deleted_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE currency CHANGE change_rate change_rate NUMERIC(20, 12) DEFAULT \'1\' NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE accounting_bundle__account_translations DROP FOREIGN KEY FK_1A196C21232D562B');
$this->addSql('ALTER TABLE categories_bundle__category DROP FOREIGN KEY FK_5504FB5727ACA70');
$this->addSql('ALTER TABLE categories_bundle__category DROP FOREIGN KEY FK_5504FB579066886');
$this->addSql('ALTER TABLE categories_bundle__category_product DROP FOREIGN KEY FK_4F39BF0412469DE2');
$this->addSql('ALTER TABLE categories_bundle__category_translations DROP FOREIGN KEY FK_FAB0FDE4232D562B');
$this->addSql('ALTER TABLE import_products_bundle__import DROP FOREIGN KEY FK_D1BBFCC912469DE2');
$this->addSql('ALTER TABLE inventories_bundle__inventory DROP FOREIGN KEY FK_F5586DDC12469DE2');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity DROP FOREIGN KEY FK_3D0068599A34590F');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document DROP FOREIGN KEY FK_491DEB759A34590F');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity DROP FOREIGN KEY FK_3D006859C825429A');
$this->addSql('ALTER TABLE crm_bundle__opportunity DROP FOREIGN KEY FK_CEF0F8C75D83CC1');
$this->addSql('ALTER TABLE crm_bundle__opportunity_activity DROP FOREIGN KEY FK_3D0068592AFDDCD2');
$this->addSql('ALTER TABLE crm_bundle__opportunity_state_translations DROP FOREIGN KEY FK_122C1FEC232D562B');
$this->addSql('ALTER TABLE crm_bundle__opportunity DROP FOREIGN KEY FK_CEF0F8C7982F853F');
$this->addSql('ALTER TABLE crm_bundle__recommendation_type_translations DROP FOREIGN KEY FK_2E52E273232D562B');
$this->addSql('ALTER TABLE accounting_bundle__customer_account DROP FOREIGN KEY FK_1AAE13969395C3F3');
$this->addSql('ALTER TABLE crm_bundle__opportunity DROP FOREIGN KEY FK_CEF0F8C79395C3F3');
$this->addSql('ALTER TABLE crm_bundle__opportunity DROP FOREIGN KEY FK_CEF0F8C7C0F34BEC');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95727ACA70');
$this->addSql('ALTER TABLE customers_bundle__customer_group_customer DROP FOREIGN KEY FK_85C42ABD9395C3F3');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22899395C3F3');
$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__customer_options DROP FOREIGN KEY FK_5E01AC229395C3F3');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D79395C3F3');
$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__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__payment DROP FOREIGN KEY FK_46C1B8059395C3F3');
$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 customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95D2919A68');
$this->addSql('ALTER TABLE customers_bundle__customer_group_customer DROP FOREIGN KEY FK_85C42ABDD2919A68');
$this->addSql('ALTER TABLE customers_bundle__customer_group_translations DROP FOREIGN KEY FK_2CA9AD1F232D562B');
$this->addSql('ALTER TABLE customers_bundle__customer DROP FOREIGN KEY FK_1FD6BD95D991282D');
$this->addSql('ALTER TABLE customers_bundle__customer_type_translations DROP FOREIGN KEY FK_AF7CDEC7232D562B');
$this->addSql('ALTER TABLE import_products_bundle__import_error DROP FOREIGN KEY FK_2AFE3451B6A263D9');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product DROP FOREIGN KEY FK_52C557F9EEA759');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product DROP FOREIGN KEY FK_7CD8FE119EEA759');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity DROP FOREIGN KEY FK_4A5838466A33D9');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD34CD4A058');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22895D83CC1');
$this->addSql('ALTER TABLE product_returns_bundle__return_state_translations DROP FOREIGN KEY FK_FD1721C8232D562B');
$this->addSql('ALTER TABLE products_bundle__attribute_translations DROP FOREIGN KEY FK_AAAF91FA232D562B');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59BB6E62EFA');
$this->addSql('ALTER TABLE products_bundle__attribute DROP FOREIGN KEY FK_929927FF62D643B7');
$this->addSql('ALTER TABLE products_bundle__attribute_group_translations DROP FOREIGN KEY FK_660EAACD232D562B');
$this->addSql('ALTER TABLE inventories_bundle__inventory DROP FOREIGN KEY FK_F5586DDC44F5D008');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A44F5D008');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product DROP FOREIGN KEY FK_52C557F9941A932');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product DROP FOREIGN KEY FK_7CD8FE119941A932');
$this->addSql('ALTER TABLE products_bundle__declination_attribute DROP FOREIGN KEY FK_A248F59B9941A932');
$this->addSql('ALTER TABLE stocks_bundle__stock DROP FOREIGN KEY FK_4512F6369941A932');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier DROP FOREIGN KEY FK_FCE3DD2F9941A932');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line DROP FOREIGN KEY FK_389F67819941A932');
$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_C6C10D4AAE870F68');
$this->addSql('ALTER TABLE products_bundle__eco_part DROP FOREIGN KEY FK_52A691535F7690E5');
$this->addSql('ALTER TABLE products_bundle__eco_part_group_translations DROP FOREIGN KEY FK_6453299E232D562B');
$this->addSql('ALTER TABLE accounting_bundle__product_account DROP FOREIGN KEY FK_58256FDE4584665A');
$this->addSql('ALTER TABLE categories_bundle__category_product DROP FOREIGN KEY FK_4F39BF044584665A');
$this->addSql('ALTER TABLE inventories_bundle__inventory_original_product DROP FOREIGN KEY FK_52C557F4584665A');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product DROP FOREIGN KEY FK_7CD8FE114584665A');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB1204584665A');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A727ACA70');
$this->addSql('ALTER TABLE products_bundle__product_context DROP FOREIGN KEY FK_F37E0B8C4584665A');
$this->addSql('ALTER TABLE products_bundle__product_translations DROP FOREIGN KEY FK_9017C31B232D562B');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration DROP FOREIGN KEY FK_CAB2DF34584665A');
$this->addSql('ALTER TABLE stocks_bundle__stock DROP FOREIGN KEY FK_4512F6364584665A');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier DROP FOREIGN KEY FK_FCE3DD2F4584665A');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line DROP FOREIGN KEY FK_389F67814584665A');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A14959723');
$this->addSql('ALTER TABLE products_bundle__product_type_translations DROP FOREIGN KEY FK_4D8A1534232D562B');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document DROP FOREIGN KEY FK_491DEB751C696F7A');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD365176536');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A71C696F7A');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA1C696F7A');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C1C696F7A');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8051C696F7A');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A7727ACA70');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22892CF3B78B');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237F2CF3B78B');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623A2CF3B78B');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD3535E48DC');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document DROP FOREIGN KEY FK_491DEB752989F1FD');
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP FOREIGN KEY FK_3BAC0D72989F1FD');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D72989F1FD');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA2989F1FD');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D2989F1FD');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8052989F1FD');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D727ACA70');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP FOREIGN KEY FK_224DA1A770E80DF4');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP FOREIGN KEY FK_891FCC0D70E80DF4');
$this->addSql('ALTER TABLE sales_bundle__line_type_translations DROP FOREIGN KEY FK_51AE71BF232D562B');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC5170E80DF4');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP FOREIGN KEY FK_5E40159A70E80DF4');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document DROP FOREIGN KEY FK_491DEB758D9F6D38');
$this->addSql('ALTER TABLE product_returns_bundle__product_return DROP FOREIGN KEY FK_1DBC22898D9F6D38');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line DROP FOREIGN KEY FK_9D41AD32477F688');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP FOREIGN KEY FK_9CC42D78D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C8D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__order_history DROP FOREIGN KEY FK_C62DA9598D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC518D9F6D38');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP FOREIGN KEY FK_CF8E237FBB01DC09');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP FOREIGN KEY FK_38D3FC51727ACA70');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62E420DE70');
$this->addSql('ALTER TABLE sales_bundle__order_history DROP FOREIGN KEY FK_C62DA959E420DE70');
$this->addSql('ALTER TABLE sales_bundle__order_state_translations DROP FOREIGN KEY FK_67B6006B232D562B');
$this->addSql('ALTER TABLE sales_bundle__document_payment DROP FOREIGN KEY FK_5BAED0CA4C3A3BB');
$this->addSql('ALTER TABLE sales_bundle__payment DROP FOREIGN KEY FK_46C1B8055AA1164F');
$this->addSql('ALTER TABLE sales_bundle__payment_method_translations DROP FOREIGN KEY FK_38696A97232D562B');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C17653B16');
$this->addSql('ALTER TABLE sales_bundle__payment_term_translations DROP FOREIGN KEY FK_E2F5FF95232D562B');
$this->addSql('ALTER TABLE crm_bundle__opportunity_document DROP FOREIGN KEY FK_491DEB75B4EA4E60');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4CB4EA4E60');
$this->addSql('ALTER TABLE sales_bundle__order DROP FOREIGN KEY FK_FBA82B62B4EA4E60');
$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_5E40159A727ACA70');
$this->addSql('ALTER TABLE stocks_bundle__stock DROP FOREIGN KEY FK_4512F636FCAB8B6E');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity DROP FOREIGN KEY FK_4A5838464D218E');
$this->addSql('ALTER TABLE stocks_bundle__stock DROP FOREIGN KEY FK_4512F63664D218E');
$this->addSql('ALTER TABLE stocks_bundle__sub_location DROP FOREIGN KEY FK_69B6540664D218E');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1E64D218E');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity DROP FOREIGN KEY FK_4A58384DCD6110');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623ADCD6110');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1EDCD6110');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP FOREIGN KEY FK_11E6623AD0E7D5DE');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason_translations DROP FOREIGN KEY FK_C86D085232D562B');
$this->addSql('ALTER TABLE inventories_bundle__inventory_product_quantity DROP FOREIGN KEY FK_4A58384E3B45410');
$this->addSql('ALTER TABLE stocks_bundle__stock DROP FOREIGN KEY FK_4512F636E3B45410');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1EE3B45410');
$this->addSql('ALTER TABLE inventories_bundle__inventory DROP FOREIGN KEY FK_F5586DDC5080ECDE');
$this->addSql('ALTER TABLE stocks_bundle__location DROP FOREIGN KEY FK_A4AB83FF5080ECDE');
$this->addSql('ALTER TABLE stocks_bundle__stock DROP FOREIGN KEY FK_4512F6365080ECDE');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1E5080ECDE');
$this->addSql('ALTER TABLE import_products_bundle__import DROP FOREIGN KEY FK_D1BBFCC92ADD6D8C');
$this->addSql('ALTER TABLE inventories_bundle__inventory DROP FOREIGN KEY FK_F5586DDC2ADD6D8C');
$this->addSql('ALTER TABLE suppliers_bundle__product_supplier DROP FOREIGN KEY FK_FCE3DD2F2ADD6D8C');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_address DROP FOREIGN KEY FK_2052C0582ADD6D8C');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact DROP FOREIGN KEY FK_617E49E12ADD6D8C');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_context DROP FOREIGN KEY FK_CF412AA72ADD6D8C');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order DROP FOREIGN KEY FK_E63ACA812ADD6D8C');
$this->addSql('ALTER TABLE suppliers_bundle__supplier DROP FOREIGN KEY FK_DC54A5DA4429F88C');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type_translations DROP FOREIGN KEY FK_5C93F504232D562B');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1E35A7ADAB');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1E727ACA70');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note DROP FOREIGN KEY FK_7D7418211605B9');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line DROP FOREIGN KEY FK_389F67811605B9');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP FOREIGN KEY FK_2C547A1EA9DC5CCE');
$this->addSql('DROP TABLE accounting_bundle__account');
$this->addSql('DROP TABLE accounting_bundle__account_translations');
$this->addSql('DROP TABLE accounting_bundle__customer_account');
$this->addSql('DROP TABLE accounting_bundle__product_account');
$this->addSql('DROP TABLE categories_bundle__category');
$this->addSql('DROP TABLE categories_bundle__category_product');
$this->addSql('DROP TABLE categories_bundle__category_translations');
$this->addSql('DROP TABLE crm_bundle__opportunity');
$this->addSql('DROP TABLE crm_bundle__opportunity_activity');
$this->addSql('DROP TABLE crm_bundle__opportunity_document');
$this->addSql('DROP TABLE crm_bundle__opportunity_state');
$this->addSql('DROP TABLE crm_bundle__opportunity_state_translations');
$this->addSql('DROP TABLE crm_bundle__recommendation_type');
$this->addSql('DROP TABLE crm_bundle__recommendation_type_translations');
$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 import_products_bundle__import');
$this->addSql('DROP TABLE import_products_bundle__import_error');
$this->addSql('DROP TABLE inventories_bundle__inventory');
$this->addSql('DROP TABLE inventories_bundle__inventory_original_product');
$this->addSql('DROP TABLE inventories_bundle__inventory_product');
$this->addSql('DROP TABLE inventories_bundle__inventory_product_quantity');
$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_group');
$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__declination');
$this->addSql('DROP TABLE products_bundle__declination_attribute');
$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 sales_bundle__additional_pdf');
$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__location');
$this->addSql('DROP TABLE stocks_bundle__product_configuration');
$this->addSql('DROP TABLE stocks_bundle__stock');
$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__sub_location');
$this->addSql('DROP TABLE stocks_bundle__warehouse');
$this->addSql('DROP TABLE suppliers_bundle__product_supplier');
$this->addSql('DROP TABLE suppliers_bundle__supplier');
$this->addSql('DROP TABLE suppliers_bundle__supplier_address');
$this->addSql('DROP TABLE suppliers_bundle__supplier_contact');
$this->addSql('DROP TABLE suppliers_bundle__supplier_context');
$this->addSql('DROP TABLE suppliers_bundle__supplier_type');
$this->addSql('DROP TABLE suppliers_bundle__supplier_type_translations');
$this->addSql('DROP TABLE suppliers_orders_bundle__receipt_note');
$this->addSql('DROP TABLE suppliers_orders_bundle__receipt_note_line');
$this->addSql('DROP TABLE suppliers_orders_bundle__supplier_order');
$this->addSql('DROP TABLE suppliers_orders_bundle__supplier_order_line');
$this->addSql('ALTER TABLE currency CHANGE change_rate change_rate NUMERIC(20, 12) DEFAULT \'1.000000000000\' NOT NULL');
}
}