
--
-- Table structure for table `locatorAlias`
--

CREATE TABLE `locatorAlias` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `section_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `category_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subcategory_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `nodeAmazon` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_11E813ADFE54D947` (`group_id`),
  KEY `IDX_11E813ADD823E37A` (`section_id`),
  KEY `IDX_11E813AD12469DE2` (`category_id`),
  KEY `IDX_11E813AD5DC6FE57` (`subcategory_id`),
  CONSTRAINT `FK_11E813AD12469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`),
  CONSTRAINT `FK_11E813AD5DC6FE57` FOREIGN KEY (`subcategory_id`) REFERENCES `subcategory` (`id`),
  CONSTRAINT `FK_11E813ADD823E37A` FOREIGN KEY (`section_id`) REFERENCES `section` (`id`),
  CONSTRAINT `FK_11E813ADFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `locatorAlias`
--


--
-- Table structure for table `logistics_areas`
--

CREATE TABLE `logistics_areas` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4426EAC2FE54D947` (`group_id`),
  CONSTRAINT `FK_4426EAC2FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `logistics_areas`
--


--
-- Table structure for table `logistics_areas_shops`
--

CREATE TABLE `logistics_areas_shops` (
  `logistics_areas_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`logistics_areas_id`,`shop_id`),
  KEY `IDX_65CC3E2082F619C1` (`logistics_areas_id`),
  KEY `IDX_65CC3E204D16C4DD` (`shop_id`),
  CONSTRAINT `FK_65CC3E204D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_65CC3E2082F619C1` FOREIGN KEY (`logistics_areas_id`) REFERENCES `logistics_areas` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `logistics_areas_shops`
--


--
-- Table structure for table `manageCashpoint`
--

CREATE TABLE `manageCashpoint` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cashpoint_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_open_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_close_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extract_money_user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_open` datetime NOT NULL,
  `date_close` datetime DEFAULT NULL,
  `amount_open` double DEFAULT NULL,
  `amount_close` double DEFAULT NULL,
  `extract_money_amount` double DEFAULT NULL,
  `fix_amount_open` double DEFAULT NULL,
  `fix_amount_close` double DEFAULT NULL,
  `alias` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `barcode` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cash_amount` double DEFAULT NULL,
  `card_amount` double DEFAULT NULL,
  `fix_cash_amount` double DEFAULT NULL,
  `fix_card_amount` double DEFAULT NULL,
  `typeStatusManageCashpoint_id` int DEFAULT NULL,
  `income_received_by_transfer` double DEFAULT NULL,
  `gift_cards_redeemed` int DEFAULT NULL,
  `observations` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `gain_closed` double DEFAULT NULL,
  `cash_amount_when_close` double DEFAULT NULL,
  `card_amount_when_close` double DEFAULT NULL,
  `reserve_amount` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C20C3C0EFE54D947` (`group_id`),
  KEY `IDX_C20C3C0EE5121D32` (`typeStatusManageCashpoint_id`),
  KEY `IDX_C20C3C0EEA8C3D83` (`cashpoint_id`),
  KEY `IDX_C20C3C0EA0969496` (`user_open_id`),
  KEY `IDX_C20C3C0E45F58623` (`user_close_id`),
  KEY `IDX_C20C3C0E750932D2` (`extract_money_user_id`),
  KEY `alias_idx` (`alias`),
  KEY `dateOpen_idx` (`date_open`),
  CONSTRAINT `FK_C20C3C0E45F58623` FOREIGN KEY (`user_close_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_C20C3C0E750932D2` FOREIGN KEY (`extract_money_user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_C20C3C0EA0969496` FOREIGN KEY (`user_open_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_C20C3C0EE5121D32` FOREIGN KEY (`typeStatusManageCashpoint_id`) REFERENCES `typeStatusManageCashpoint` (`id`),
  CONSTRAINT `FK_C20C3C0EEA8C3D83` FOREIGN KEY (`cashpoint_id`) REFERENCES `cashpoint` (`id`),
  CONSTRAINT `FK_C20C3C0EFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `manageCashpoint`
--


--
-- Table structure for table `mrwCanalNotificacion`
--

CREATE TABLE `mrwCanalNotificacion` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwCanalNotificacion`
--

INSERT INTO `mrwCanalNotificacion` VALUES ('1','Notificación por correo electrónico'),('2','Notificación mediante mensaje corto de texto');

--
-- Table structure for table `mrwCodigoServicio`
--

CREATE TABLE `mrwCodigoServicio` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwCodigoServicio`
--

INSERT INTO `mrwCodigoServicio` VALUES ('0000','Urgente 10'),('0005','Urgente Hoy'),('0010','Promociones'),('0015','Urgente 10 Expedición'),('0100','Urgente 12'),('0105','Urgente 12 Expedición'),('0110','Urgente 14'),('0115','Urgente 14 Expedición'),('0200','Urgente 19'),('0205','Urgente 19 Expedicion'),('0220','Urgente 19 Portugal'),('0230','Bag 19'),('0235','Bag 14'),('0300','Economico'),('0350','Economico Interinsular'),('0370','Marítimo Baleares'),('0385','Marítimo Canarias'),('0390','Marítimo Interinsular'),('0400','Express Documentos'),('0450','Express 2 Kilos'),('0480','Caja Express 3 Kilos'),('0490','Documentos 14'),('0800','Ecommerce'),('0810','Ecommerce Canje');

--
-- Table structure for table `mrwConfirmacionInmediata`
--

CREATE TABLE `mrwConfirmacionInmediata` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwConfirmacionInmediata`
--

INSERT INTO `mrwConfirmacionInmediata` VALUES ('E','Confirmación inmediata de entrega'),('N','Sin confirmación inmediata de entrega/recogida'),('R','Confirmación inmediata de recogida');

--
-- Table structure for table `mrwEntrega830`
--

CREATE TABLE `mrwEntrega830` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwEntrega830`
--

INSERT INTO `mrwEntrega830` VALUES ('N','Entrega normal'),('S','Entrega urgente 8:30');

--
-- Table structure for table `mrwEntregaSabado`
--

CREATE TABLE `mrwEntregaSabado` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwEntregaSabado`
--

INSERT INTO `mrwEntregaSabado` VALUES ('N','Sin entrega en sábado'),('S','Entregar en sábado');

--
-- Table structure for table `mrwFrecuencia`
--

CREATE TABLE `mrwFrecuencia` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwFrecuencia`
--

INSERT INTO `mrwFrecuencia` VALUES ('1','Frecuencia 1'),('2','Frecuencia 2');

--
-- Table structure for table `mrwGestion`
--

CREATE TABLE `mrwGestion` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwGestion`
--

INSERT INTO `mrwGestion` VALUES ('D','Gestión en destino'),('N','Sin gestión'),('O','Gestión en origen');

--
-- Table structure for table `mrwReembolso`
--

CREATE TABLE `mrwReembolso` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwReembolso`
--

INSERT INTO `mrwReembolso` VALUES ('D','Con reembolso comisión en destino'),('N','Sin reembolso'),('O','Con reembolso comisión en origen');

--
-- Table structure for table `mrwRetorno`
--

CREATE TABLE `mrwRetorno` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwRetorno`
--

INSERT INTO `mrwRetorno` VALUES ('D','Retorno de albarán cobro en destino'),('N','Sin retorno'),('S','Retorno de mercancia');

--
-- Table structure for table `mrwTipoMercancia`
--

CREATE TABLE `mrwTipoMercancia` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mrwTipoMercancia`
--

INSERT INTO `mrwTipoMercancia` VALUES ('ATV','Alto valor (para Ceuta y Melilla no es posible)'),('BJV','Bajo valor(para Ceuta y Melilla no es posible)'),('DOC','Documentos'),('MCV','Muestras con valor comercial'),('MSV','Muestras sin valor comercial');

--
-- Table structure for table `orderArticleDraft`
--

CREATE TABLE `orderArticleDraft` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_creation` datetime DEFAULT NULL,
  `distribution` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `units_ordered` int NOT NULL,
  `total_cost_price` decimal(14,2) DEFAULT NULL,
  `total_pvp` decimal(14,2) DEFAULT NULL,
  `totalArticle` decimal(8,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `loop_index` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_37E4580A8D9F6D38` (`order_id`),
  KEY `IDX_37E4580A7294869C` (`article_id`),
  CONSTRAINT `FK_37E4580A7294869C` FOREIGN KEY (`article_id`) REFERENCES `articleDraft` (`id`),
  CONSTRAINT `FK_37E4580A8D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `ordersDraft` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderArticleDraft`
--


--
-- Table structure for table `orderArticleEAN`
--

CREATE TABLE `orderArticleEAN` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_creation` datetime DEFAULT NULL,
  `distribution` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `distribution_ean` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `units_ordered` int NOT NULL,
  `total_cost_price` decimal(14,2) DEFAULT NULL,
  `total_pvp` decimal(14,2) DEFAULT NULL,
  `totalArticle` decimal(8,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `loop_index` int DEFAULT NULL,
  `errors` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `assigned_ean` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_5B851E738D9F6D38` (`order_id`),
  KEY `IDX_5B851E737294869C` (`article_id`),
  CONSTRAINT `FK_5B851E737294869C` FOREIGN KEY (`article_id`) REFERENCES `articleEAN` (`id`),
  CONSTRAINT `FK_5B851E738D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `ordersEAN` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderArticleEAN`
--


--
-- Table structure for table `orderArticleEANExisting`
--

CREATE TABLE `orderArticleEANExisting` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_creation` datetime DEFAULT NULL,
  `distribution` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `distribution_ean` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `units_ordered` int NOT NULL,
  `total_cost_price` decimal(14,2) DEFAULT NULL,
  `total_pvp` decimal(14,2) DEFAULT NULL,
  `totalArticle` decimal(8,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `loop_index` int DEFAULT NULL,
  `errors` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `pricat_cost_price` decimal(14,2) DEFAULT NULL,
  `pricat_pvp` decimal(14,2) DEFAULT NULL,
  `article_cost_price` decimal(14,2) DEFAULT NULL,
  `article_pvp` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D52236C68D9F6D38` (`order_id`),
  KEY `IDX_D52236C67294869C` (`article_id`),
  CONSTRAINT `FK_D52236C67294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_D52236C68D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `ordersEAN` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderArticleEANExisting`
--


--
-- Table structure for table `orderPaymentMethod`
--

CREATE TABLE `orderPaymentMethod` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `orderInfo_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typePaymentMethod_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `companyBankAccount_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6961584E8D9F6D38` (`order_id`),
  KEY `IDX_6961584EA88A0F32` (`orderInfo_id`),
  KEY `IDX_6961584E68AFB429` (`typePaymentMethod_id`),
  KEY `IDX_6961584EF451B165` (`companyBankAccount_id`),
  KEY `IDX_6961584E979B1AD6` (`company_id`),
  CONSTRAINT `FK_6961584E68AFB429` FOREIGN KEY (`typePaymentMethod_id`) REFERENCES `dealerPaymentMethod` (`id`),
  CONSTRAINT `FK_6961584E8D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6961584E979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_6961584EA88A0F32` FOREIGN KEY (`orderInfo_id`) REFERENCES `order_info` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6961584EF451B165` FOREIGN KEY (`companyBankAccount_id`) REFERENCES `comanyBankAccount` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderPaymentMethod`
--


--
-- Table structure for table `order_article`
--

CREATE TABLE `order_article` (
  `id` int NOT NULL AUTO_INCREMENT,
  `id_article` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `id_order` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `default_pvp` double DEFAULT NULL,
  `default_price_cost` double DEFAULT NULL,
  `date_of_creation` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `articleId_idx` (`id_article`),
  KEY `orderId_idx` (`id_order`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `order_article`
--

INSERT INTO `order_article` VALUES (1,'fb55fee0-698c-47c7-a18e-0142fae4fe66','cfe9603b-2111-4995-a1ac-29618f06b2a9',0,0,'2024-08-08 18:52:07');

--
-- Table structure for table `order_article_discount_dealer`
--

CREATE TABLE `order_article_discount_dealer` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DC90CE3E8D9F6D38` (`order_id`),
  KEY `IDX_DC90CE3E7294869C` (`article_id`),
  KEY `IDX_DC90CE3E4C7C611F` (`discount_id`),
  CONSTRAINT `FK_DC90CE3E4C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `dealerDiscount` (`id`),
  CONSTRAINT `FK_DC90CE3E7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_DC90CE3E8D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `order_article_discount_dealer`
--


--
-- Table structure for table `order_discount_dealer`
--

CREATE TABLE `order_discount_dealer` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B2EAD6618D9F6D38` (`order_id`),
  KEY `IDX_B2EAD6614C7C611F` (`discount_id`),
  CONSTRAINT `FK_B2EAD6614C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `dealerDiscount` (`id`),
  CONSTRAINT `FK_B2EAD6618D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `order_discount_dealer`
--


--
-- Table structure for table `order_draft_discount_dealer`
--

CREATE TABLE `order_draft_discount_dealer` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AA35D6888D9F6D38` (`order_id`),
  KEY `IDX_AA35D6884C7C611F` (`discount_id`),
  CONSTRAINT `FK_AA35D6884C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `dealerDiscount` (`id`),
  CONSTRAINT `FK_AA35D6888D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `ordersDraft` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `order_draft_discount_dealer`
--


--
-- Table structure for table `order_info`
--

CREATE TABLE `order_info` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_shop_order_address_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_print_configuration` int DEFAULT NULL,
  `unique_dealer_payment_method` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `unique_date_service_expected` datetime DEFAULT NULL,
  `observations` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `companyForInvoicing` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_86780B408D9F6D38` (`order_id`),
  KEY `IDX_86780B401CC79135` (`type_shop_order_address_id`),
  KEY `IDX_86780B40B477AF33` (`type_print_configuration`),
  KEY `IDX_86780B40599D99D5` (`unique_dealer_payment_method`),
  KEY `IDX_86780B40C122B9A5` (`companyForInvoicing`),
  CONSTRAINT `FK_86780B401CC79135` FOREIGN KEY (`type_shop_order_address_id`) REFERENCES `type_shop_order_address` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_86780B40599D99D5` FOREIGN KEY (`unique_dealer_payment_method`) REFERENCES `dealerPaymentMethod` (`id`),
  CONSTRAINT `FK_86780B408D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_86780B40B477AF33` FOREIGN KEY (`type_print_configuration`) REFERENCES `typePrintConfigurationOrder` (`id`),
  CONSTRAINT `FK_86780B40C122B9A5` FOREIGN KEY (`companyForInvoicing`) REFERENCES `company` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `order_info`
--

INSERT INTO `order_info` VALUES ('87819cc1-ac61-42a3-b6a4-5a096d325a19','b030bc14-8866-4892-b032-6decb9dca15c','cfe9603b-2111-4995-a1ac-29618f06b2a9',2,NULL,NULL,NULL,NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_agent_id` int DEFAULT NULL,
  `season_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tax_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `order_info_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `num_of_order` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `date_order_closing` datetime DEFAULT NULL,
  `unique_date_service_expected` datetime DEFAULT NULL,
  `unique_observations` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `typeOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeDealerPayment_id` int DEFAULT NULL,
  `dealerBankAccount_id` int DEFAULT NULL,
  `typeStatusOrder_id` int DEFAULT NULL,
  `typePrintOrder_id` int DEFAULT NULL,
  `order_notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `have_labels_been_printed` tinyint(1) NOT NULL,
  `num_articles` int NOT NULL,
  `num_stock_pending` int NOT NULL,
  `num_stock_available` int NOT NULL,
  `total_valoration` decimal(14,2) DEFAULT NULL,
  `orderDraft_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `orderEAN_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_E52FFDEEABF168B3` (`order_info_id`),
  KEY `IDX_E52FFDEEFE54D947` (`group_id`),
  KEY `IDX_E52FFDEE61220EA6` (`creator_id`),
  KEY `IDX_E52FFDEE249E6EA1` (`dealer_id`),
  KEY `IDX_E52FFDEEC630AF6B` (`dealer_agent_id`),
  KEY `IDX_E52FFDEE288081E6` (`typeOrder_id`),
  KEY `IDX_E52FFDEE4EC001D1` (`season_id`),
  KEY `IDX_E52FFDEEB2A824D8` (`tax_id`),
  KEY `IDX_E52FFDEED6924C15` (`typeDealerPayment_id`),
  KEY `IDX_E52FFDEECE0447FC` (`dealerBankAccount_id`),
  KEY `IDX_E52FFDEE1AA81655` (`typeStatusOrder_id`),
  KEY `IDX_E52FFDEE4BA46894` (`typePrintOrder_id`),
  KEY `IDX_E52FFDEE99B7EFB1` (`orderDraft_id`),
  KEY `IDX_E52FFDEE60A9E0C8` (`orderEAN_id`),
  KEY `dateCreation_idx` (`created_at`),
  CONSTRAINT `FK_E52FFDEE1AA81655` FOREIGN KEY (`typeStatusOrder_id`) REFERENCES `typeStatusOrder` (`id`),
  CONSTRAINT `FK_E52FFDEE249E6EA1` FOREIGN KEY (`dealer_id`) REFERENCES `dealer` (`id`),
  CONSTRAINT `FK_E52FFDEE288081E6` FOREIGN KEY (`typeOrder_id`) REFERENCES `typeOrder` (`id`),
  CONSTRAINT `FK_E52FFDEE4BA46894` FOREIGN KEY (`typePrintOrder_id`) REFERENCES `typePrintOrder` (`id`),
  CONSTRAINT `FK_E52FFDEE4EC001D1` FOREIGN KEY (`season_id`) REFERENCES `season` (`id`),
  CONSTRAINT `FK_E52FFDEE60A9E0C8` FOREIGN KEY (`orderEAN_id`) REFERENCES `ordersEAN` (`id`),
  CONSTRAINT `FK_E52FFDEE61220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_E52FFDEE99B7EFB1` FOREIGN KEY (`orderDraft_id`) REFERENCES `ordersDraft` (`id`),
  CONSTRAINT `FK_E52FFDEEABF168B3` FOREIGN KEY (`order_info_id`) REFERENCES `order_info` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_E52FFDEEB2A824D8` FOREIGN KEY (`tax_id`) REFERENCES `tax` (`id`),
  CONSTRAINT `FK_E52FFDEEC630AF6B` FOREIGN KEY (`dealer_agent_id`) REFERENCES `dealerAgent` (`id`),
  CONSTRAINT `FK_E52FFDEECE0447FC` FOREIGN KEY (`dealerBankAccount_id`) REFERENCES `dealerBankAccount` (`id`),
  CONSTRAINT `FK_E52FFDEED6924C15` FOREIGN KEY (`typeDealerPayment_id`) REFERENCES `typeDealerPayment` (`id`),
  CONSTRAINT `FK_E52FFDEEFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` VALUES ('cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','471070-55d6-44da-af80-76054353d13f','145c9fce-3b0b-4660-9e0a-2a895fdbee7f',NULL,'c1f2d536-3840-4cc2-a3af-30c93c79f45a',NULL,'87819cc1-ac61-42a3-b6a4-5a096d325a19',NULL,'471070-223769','2024-08-08 18:46:52','2024-08-08 18:46:52',NULL,NULL,'471070-57f5-4d61-be10-d11608aae9bb',NULL,NULL,5,NULL,NULL,0,1,0,8,47.20,NULL,'[08/08/2024 18:46:52 - Soporte] Pedido creado.<br>[08/08/2024 18:52:07 - Soporte] Artículo 667668 añadido/modificado al pedido correctamente.<br>[09/08/2024 07:33:48 - Soporte] Artículo 667668 añadido/modificado al pedido correctamente.<br>[09/08/2024 07:34:03 - Soporte] Pedido confirmado correctamente.<br>',NULL);

--
-- Table structure for table `ordersDraft`
--

CREATE TABLE `ordersDraft` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_agent_id` int DEFAULT NULL,
  `season_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `modified_at` datetime NOT NULL,
  `date_order_closing` datetime DEFAULT NULL,
  `is_closed` tinyint(1) NOT NULL,
  `unique_date_service_expected` datetime DEFAULT NULL,
  `order_notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `num_articles` int NOT NULL,
  `num_stock` int NOT NULL,
  `total_valoration` decimal(14,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `type_create_article_import_draft` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_744D0820FE54D947` (`group_id`),
  KEY `IDX_744D082061220EA6` (`creator_id`),
  KEY `IDX_744D0820249E6EA1` (`dealer_id`),
  KEY `IDX_744D0820C630AF6B` (`dealer_agent_id`),
  KEY `IDX_744D08204EC001D1` (`season_id`),
  CONSTRAINT `FK_744D0820249E6EA1` FOREIGN KEY (`dealer_id`) REFERENCES `dealer` (`id`),
  CONSTRAINT `FK_744D08204EC001D1` FOREIGN KEY (`season_id`) REFERENCES `season` (`id`),
  CONSTRAINT `FK_744D082061220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_744D0820C630AF6B` FOREIGN KEY (`dealer_agent_id`) REFERENCES `dealerAgent` (`id`),
  CONSTRAINT `FK_744D0820FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ordersDraft`
--


--
-- Table structure for table `ordersEAN`
--

CREATE TABLE `ordersEAN` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `brand_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `season_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `modified_at` datetime NOT NULL,
  `date_order_closing` datetime DEFAULT NULL,
  `is_closed` tinyint(1) NOT NULL,
  `unique_date_service_expected` datetime DEFAULT NULL,
  `order_notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `num_delivery_note` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `transport_agency` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `pricat` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `num_articles` int NOT NULL,
  `num_stock` int NOT NULL,
  `total_valoration` decimal(14,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `num_articles_existing` int NOT NULL,
  `num_stock_existing` int NOT NULL,
  `total_valoration_existing` decimal(14,2) DEFAULT NULL,
  `discount_percentage_existing` decimal(14,2) DEFAULT NULL,
  `eans_readed` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `eans_not_found` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `status` int NOT NULL,
  `typeOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeSizeOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_58A9DB0CFE54D947` (`group_id`),
  KEY `IDX_58A9DB0C61220EA6` (`creator_id`),
  KEY `IDX_58A9DB0C249E6EA1` (`dealer_id`),
  KEY `IDX_58A9DB0C44F5D008` (`brand_id`),
  KEY `IDX_58A9DB0C4EC001D1` (`season_id`),
  KEY `IDX_58A9DB0C4D16C4DD` (`shop_id`),
  KEY `IDX_58A9DB0C288081E6` (`typeOrder_id`),
  KEY `IDX_58A9DB0CE85982FC` (`typeSizeOrder_id`),
  CONSTRAINT `FK_58A9DB0C249E6EA1` FOREIGN KEY (`dealer_id`) REFERENCES `dealer` (`id`),
  CONSTRAINT `FK_58A9DB0C288081E6` FOREIGN KEY (`typeOrder_id`) REFERENCES `typeOrder` (`id`),
  CONSTRAINT `FK_58A9DB0C44F5D008` FOREIGN KEY (`brand_id`) REFERENCES `brand` (`id`),
  CONSTRAINT `FK_58A9DB0C4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_58A9DB0C4EC001D1` FOREIGN KEY (`season_id`) REFERENCES `season` (`id`),
  CONSTRAINT `FK_58A9DB0C61220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_58A9DB0CE85982FC` FOREIGN KEY (`typeSizeOrder_id`) REFERENCES `typeSizeOrderEAN` (`id`),
  CONSTRAINT `FK_58A9DB0CFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ordersEAN`
--


--
-- Table structure for table `orders_audit`
--

CREATE TABLE `orders_audit` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `rev` int NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dealer_agent_id` int DEFAULT NULL,
  `season_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tax_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `order_info_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `num_of_order` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `date_order_closing` datetime DEFAULT NULL,
  `unique_date_service_expected` datetime DEFAULT NULL,
  `unique_observations` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `typeOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeDealerPayment_id` int DEFAULT NULL,
  `dealerBankAccount_id` int DEFAULT NULL,
  `typeStatusOrder_id` int DEFAULT NULL,
  `typePrintOrder_id` int DEFAULT NULL,
  `revtype` varchar(4) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `have_labels_been_printed` tinyint(1) DEFAULT NULL,
  `num_articles` int DEFAULT NULL,
  `num_stock_pending` int DEFAULT NULL,
  `num_stock_available` int DEFAULT NULL,
  `total_valoration` decimal(14,2) DEFAULT NULL,
  `orderDraft_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `orderEAN_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_6ff10d0554181dd1465516d605bfacd8_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orders_audit`
--


--
-- Table structure for table `orders_brand`
--

CREATE TABLE `orders_brand` (
  `orders_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `brand_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`orders_id`,`brand_id`),
  KEY `IDX_5DF856F9CFFE9AD6` (`orders_id`),
  KEY `IDX_5DF856F944F5D008` (`brand_id`),
  CONSTRAINT `FK_5DF856F944F5D008` FOREIGN KEY (`brand_id`) REFERENCES `brand` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_5DF856F9CFFE9AD6` FOREIGN KEY (`orders_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orders_brand`
--


--
-- Table structure for table `orders_dealer_discount`
--

CREATE TABLE `orders_dealer_discount` (
  `orders_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`orders_id`,`dealer_discount_id`),
  KEY `IDX_B7B2C335CFFE9AD6` (`orders_id`),
  KEY `IDX_B7B2C3352713A68D` (`dealer_discount_id`),
  CONSTRAINT `FK_B7B2C3352713A68D` FOREIGN KEY (`dealer_discount_id`) REFERENCES `dealerDiscount` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B7B2C335CFFE9AD6` FOREIGN KEY (`orders_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orders_dealer_discount`
--


--
-- Table structure for table `panelBIColumn`
--

CREATE TABLE `panelBIColumn` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `value` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `panelBIColumn`
--


--
-- Table structure for table `panelBIColumnGroup`
--

CREATE TABLE `panelBIColumnGroup` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `panelBIColumn_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6764E20DFE54D947` (`group_id`),
  KEY `IDX_6764E20D872760B6` (`panelBIColumn_id`),
  CONSTRAINT `FK_6764E20D872760B6` FOREIGN KEY (`panelBIColumn_id`) REFERENCES `panelBIColumn` (`id`),
  CONSTRAINT `FK_6764E20DFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `panelBIColumnGroup`
--


--
-- Table structure for table `panelBI_sold_471070`
--

CREATE TABLE `panelBI_sold_471070` (
  `last_update` datetime NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_alias` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `company` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_sale` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `marketplace_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `connector_id` varchar(11) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `connector_name` varchar(33) CHARACTER SET utf8mb3 DEFAULT NULL,
  `auto_increment` varchar(11) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `date_of_sale` varchar(19) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `discount_sold` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `season` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_article` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `section` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `category` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subcategory` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dealer_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_model` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_color_assistant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `locator_alias` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `size` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ean` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discountPVP` decimal(15,2) DEFAULT NULL,
  `qty` bigint NOT NULL DEFAULT '0',
  `pvp` decimal(14,2) DEFAULT NULL,
  `pvpFinal` decimal(14,2) DEFAULT NULL,
  `cost_price_with_discount_plus_taxes` decimal(14,2) DEFAULT NULL,
  `cost_price_plus_taxes` decimal(14,2) DEFAULT NULL,
  `cost_price` decimal(14,2) DEFAULT NULL,
  `days_rotation` bigint DEFAULT NULL,
  `date_of_reception` varchar(19) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `date_creation` varchar(19) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_received` varchar(11) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_profit` varchar(16) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_available_qty` varchar(11) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_available_avg_days` varchar(16) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_sold_qty` varchar(11) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_sold_avg_days` varchar(16) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_avg_days_inside_shop` varchar(21) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `stats_profitability` varchar(16) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `assistant_visits` varchar(11) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
  `website_visits` int DEFAULT NULL,
  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `data_sale` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `data_webOrder` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `marketplace` varchar(161) CHARACTER SET utf8mb3 DEFAULT NULL,
  `website_config_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `margin_real_euro` decimal(15,2) NOT NULL DEFAULT '0.00',
  `margin_real_percentage` varchar(26) CHARACTER SET utf8mb3 DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_spanish2_ci;

--
-- Dumping data for table `panelBI_sold_471070`
--


--
-- Table structure for table `payment_subpayment`
--

CREATE TABLE `payment_subpayment` (
  `type_payment_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_sub_payment_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`type_payment_id`,`type_sub_payment_id`),
  KEY `IDX_13BCAD1719C0759E` (`type_payment_id`),
  KEY `IDX_13BCAD177ECB19E2` (`type_sub_payment_id`),
  CONSTRAINT `FK_13BCAD1719C0759E` FOREIGN KEY (`type_payment_id`) REFERENCES `typePayment` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_13BCAD177ECB19E2` FOREIGN KEY (`type_sub_payment_id`) REFERENCES `typeSubPayment` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `payment_subpayment`
--


--
-- Table structure for table `piggyBank`
--

CREATE TABLE `piggyBank` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `amountStart` double NOT NULL,
  `amountPiggyBank` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2F3A6C84FE54D947` (`group_id`),
  CONSTRAINT `FK_2F3A6C84FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `piggyBank`
--


--
-- Table structure for table `printer`
--

CREATE TABLE `printer` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `columns` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `rows` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `margin_vertical` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `margin_horizontal` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `material_paper` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `typePaper_id` int DEFAULT NULL,
  `typePaperSize_id` int DEFAULT NULL,
  `typePrinter_id` int DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8D4C79ED436A64BF` (`typePaper_id`),
  KEY `IDX_8D4C79EDD6C429AF` (`typePaperSize_id`),
  KEY `IDX_8D4C79EDF0EBAA97` (`typePrinter_id`),
  KEY `IDX_8D4C79ED979B1AD6` (`company_id`),
  CONSTRAINT `FK_8D4C79ED436A64BF` FOREIGN KEY (`typePaper_id`) REFERENCES `typePaper` (`id`),
  CONSTRAINT `FK_8D4C79ED979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_8D4C79EDD6C429AF` FOREIGN KEY (`typePaperSize_id`) REFERENCES `typePaperSize` (`id`),
  CONSTRAINT `FK_8D4C79EDF0EBAA97` FOREIGN KEY (`typePrinter_id`) REFERENCES `typePrinter` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `printer`
--


--
-- Table structure for table `receptions`
--

CREATE TABLE `receptions` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `num_delivery_note` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `transport_agency` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStatusReception_id` int DEFAULT NULL,
  `stockOptimization_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `orderEAN_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_B08F24D7B6DA67C2` (`stockOptimization_id`),
  KEY `IDX_B08F24D761220EA6` (`creator_id`),
  KEY `IDX_B08F24D7249E6EA1` (`dealer_id`),
  KEY `IDX_B08F24D74D16C4DD` (`shop_id`),
  KEY `IDX_B08F24D7FE54D947` (`group_id`),
  KEY `IDX_B08F24D71390D1EE` (`typeStatusReception_id`),
  KEY `IDX_B08F24D760A9E0C8` (`orderEAN_id`),
  KEY `dateCreation_idx` (`date`),
  CONSTRAINT `FK_B08F24D71390D1EE` FOREIGN KEY (`typeStatusReception_id`) REFERENCES `typeStatusReception` (`id`),
  CONSTRAINT `FK_B08F24D7249E6EA1` FOREIGN KEY (`dealer_id`) REFERENCES `dealer` (`id`),
  CONSTRAINT `FK_B08F24D74D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_B08F24D760A9E0C8` FOREIGN KEY (`orderEAN_id`) REFERENCES `ordersEAN` (`id`),
  CONSTRAINT `FK_B08F24D761220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_B08F24D7B6DA67C2` FOREIGN KEY (`stockOptimization_id`) REFERENCES `stockOptimization` (`id`),
  CONSTRAINT `FK_B08F24D7FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `receptions`
--

INSERT INTO `receptions` VALUES ('e4b528ed-9a9d-41ec-b11a-a4397096bacb','471070-55d6-44da-af80-76054353d13f','145c9fce-3b0b-4660-9e0a-2a895fdbee7f','471070-2727-4f98-9701-b52069b84918','471070-b212-4109-894e-d6283fe29e74',NULL,'471070-599870','2024-08-09 07:50:46',NULL,NULL,10,NULL,NULL);

--
-- Table structure for table `report`
--

CREATE TABLE `report` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `filename` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeReport_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeReportGrouped_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filenameHTML` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `articles` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `criteria` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_start` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_end` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_start_sell_in_out` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_end_sell_in_out` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_C42F778461220EA6` (`creator_id`),
  KEY `IDX_C42F7784FE54D947` (`group_id`),
  KEY `IDX_C42F77842A1C44FF` (`typeReport_id`),
  KEY `IDX_C42F77847F6E9F0D` (`typeReportGrouped_id`),
  CONSTRAINT `FK_C42F77842A1C44FF` FOREIGN KEY (`typeReport_id`) REFERENCES `typeReport` (`id`),
  CONSTRAINT `FK_C42F778461220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_C42F77847F6E9F0D` FOREIGN KEY (`typeReportGrouped_id`) REFERENCES `typeReportGrouped` (`id`),
  CONSTRAINT `FK_C42F7784FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `report`
--


--
-- Table structure for table `reportTemplate`
--

CREATE TABLE `reportTemplate` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `criteria` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_start` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_end` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_start_sell_in_out` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_end_sell_in_out` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `days` int DEFAULT NULL,
  `typeReport_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeReportGrouped_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeReportTemplate_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_7AC7E1A861220EA6` (`creator_id`),
  KEY `IDX_7AC7E1A8FE54D947` (`group_id`),
  KEY `IDX_7AC7E1A82A1C44FF` (`typeReport_id`),
  KEY `IDX_7AC7E1A87F6E9F0D` (`typeReportGrouped_id`),
  KEY `IDX_7AC7E1A823B29AD3` (`typeReportTemplate_id`),
  CONSTRAINT `FK_7AC7E1A823B29AD3` FOREIGN KEY (`typeReportTemplate_id`) REFERENCES `typeReportTemplate` (`id`),
  CONSTRAINT `FK_7AC7E1A82A1C44FF` FOREIGN KEY (`typeReport_id`) REFERENCES `typeReport` (`id`),
  CONSTRAINT `FK_7AC7E1A861220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_7AC7E1A87F6E9F0D` FOREIGN KEY (`typeReportGrouped_id`) REFERENCES `typeReportGrouped` (`id`),
  CONSTRAINT `FK_7AC7E1A8FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `reportTemplate`
--


--
-- Table structure for table `return_item`
--

CREATE TABLE `return_item` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `return_stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStatus_id` int DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_7EED95F71BB78647` (`return_stock_id`),
  KEY `IDX_7EED95F7DCD6110` (`stock_id`),
  KEY `IDX_7EED95F7A39E082` (`typeStatus_id`),
  CONSTRAINT `FK_7EED95F71BB78647` FOREIGN KEY (`return_stock_id`) REFERENCES `returns` (`id`),
  CONSTRAINT `FK_7EED95F7A39E082` FOREIGN KEY (`typeStatus_id`) REFERENCES `typeStatusReturnItem` (`id`),
  CONSTRAINT `FK_7EED95F7DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `return_item`
--


--
-- Table structure for table `return_item_lite`
--

CREATE TABLE `return_item_lite` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `return_stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStatus_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_5C10B466DCD6110` (`stock_id`),
  KEY `IDX_5C10B4661BB78647` (`return_stock_id`),
  KEY `IDX_5C10B466A39E082` (`typeStatus_id`),
  CONSTRAINT `FK_5C10B4661BB78647` FOREIGN KEY (`return_stock_id`) REFERENCES `returns` (`id`),
  CONSTRAINT `FK_5C10B466A39E082` FOREIGN KEY (`typeStatus_id`) REFERENCES `typeStatusReturnItem` (`id`),
  CONSTRAINT `FK_5C10B466DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stockLite` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `return_item_lite`
--


--
-- Table structure for table `returns`
--

CREATE TABLE `returns` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` int DEFAULT NULL,
  `dealer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_return_id` int DEFAULT NULL,
  `type_reason_return_id` int DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `sent_at` datetime DEFAULT NULL,
  `returned_at` datetime DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `method_of_payment` int DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `incidence_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopCarrier_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8B164CA5A76ED395` (`user_id`),
  KEY `IDX_8B164CA57B00651C` (`status`),
  KEY `IDX_8B164CA5249E6EA1` (`dealer_id`),
  KEY `IDX_8B164CA5FE54D947` (`group_id`),
  KEY `IDX_8B164CA596B257C5` (`type_return_id`),
  KEY `IDX_8B164CA550B1481A` (`type_reason_return_id`),
  KEY `IDX_8B164CA5424E17D4` (`method_of_payment`),
  KEY `IDX_8B164CA54D16C4DD` (`shop_id`),
  KEY `IDX_8B164CA5F22710E3` (`incidence_id`),
  KEY `IDX_8B164CA53AA9EBD1` (`shopCarrier_id`),
  CONSTRAINT `FK_8B164CA5249E6EA1` FOREIGN KEY (`dealer_id`) REFERENCES `dealer` (`id`),
  CONSTRAINT `FK_8B164CA53AA9EBD1` FOREIGN KEY (`shopCarrier_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_8B164CA5424E17D4` FOREIGN KEY (`method_of_payment`) REFERENCES `comanyBankAccount` (`id`),
  CONSTRAINT `FK_8B164CA54D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_8B164CA550B1481A` FOREIGN KEY (`type_reason_return_id`) REFERENCES `type_reason_return` (`id`),
  CONSTRAINT `FK_8B164CA57B00651C` FOREIGN KEY (`status`) REFERENCES `type_return_status` (`id`),
  CONSTRAINT `FK_8B164CA596B257C5` FOREIGN KEY (`type_return_id`) REFERENCES `type_return` (`id`),
  CONSTRAINT `FK_8B164CA5A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_8B164CA5F22710E3` FOREIGN KEY (`incidence_id`) REFERENCES `incidence` (`id`),
  CONSTRAINT `FK_8B164CA5FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `returns`
--


--
-- Table structure for table `revisions`
--

CREATE TABLE `revisions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `timestamp` datetime NOT NULL,
  `username` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `revisions`
--


--
-- Table structure for table `rights`
--

CREATE TABLE `rights` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `rights`
--


--
-- Table structure for table `roleRights_rights`
--

CREATE TABLE `roleRights_rights` (
  `right_id` int NOT NULL,
  `roleRights_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`roleRights_id`,`right_id`),
  KEY `IDX_4C24B63F3774CF9C` (`roleRights_id`),
  KEY `IDX_4C24B63F54976835` (`right_id`),
  CONSTRAINT `FK_4C24B63F3774CF9C` FOREIGN KEY (`roleRights_id`) REFERENCES `role_rights` (`id`),
  CONSTRAINT `FK_4C24B63F54976835` FOREIGN KEY (`right_id`) REFERENCES `rights` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `roleRights_rights`
--


--
-- Table structure for table `role_rights`
--

CREATE TABLE `role_rights` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `role_rights`
--

INSERT INTO `role_rights` VALUES ('1','Administrador'),('2','Tienda'),('3','Auxiliar de Almacén'),('4','Encargado de Tienda'),('5','Oficina');

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_B63E2EC7A76ED395` (`user_id`),
  CONSTRAINT `FK_B63E2EC7A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` VALUES ('471070-436e-4506-8e73-ed52b57b87b7','471070-55d6-44da-af80-76054353d13f','ROLE_USER'),('471070-z36e-4506-8e73-ed52b57b87b7','471070-z5d6-44da-af80-76054353d13f','ROLE_ADMIN');

--
-- Table structure for table `saimapaySale`
--

CREATE TABLE `saimapaySale` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `request` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `response` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `raw_ticket` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_9AFB0BB2FE54D947` (`group_id`),
  KEY `IDX_9AFB0BB24A7E4868` (`sale_id`),
  KEY `dateCreation_idx` (`date_creation`),
  CONSTRAINT `FK_9AFB0BB24A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_9AFB0BB2FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `saimapaySale`
--


--
-- Table structure for table `sale`
--

CREATE TABLE `sale` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cashpoint_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `alias` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `barcode` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStatusSale_id` int DEFAULT NULL,
  `manageCashpoint_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `customer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `totalSale` decimal(14,2) DEFAULT NULL,
  `totalDiscount` decimal(14,2) DEFAULT NULL,
  `totalFinal` decimal(14,2) DEFAULT NULL,
  `roundAmount` decimal(14,2) DEFAULT NULL,
  `is_been_rounded` tinyint(1) DEFAULT NULL,
  `date_reservation` datetime DEFAULT NULL,
  `completion_date` datetime DEFAULT NULL,
  `total_income` decimal(14,2) DEFAULT NULL,
  `is_invoiced` tinyint(1) NOT NULL,
  `invoice_number` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `invoice_iterator` int DEFAULT NULL,
  `coupon_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fidelityCard_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `patchAmount` decimal(14,2) DEFAULT NULL,
  `offlineSaleId` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `offlineDateCreation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `invoice_number_auto` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `invoice_iterator_auto` int DEFAULT NULL,
  `invoice_number_rectifier` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `invoice_iterator_rectifier` int DEFAULT NULL,
  `is_sale_ticket_modified` tinyint(1) NOT NULL,
  `amountPiggyBank` double DEFAULT NULL,
  `couponCode_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `notes_internal` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `date_invoice` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_E54BC005FE54D947` (`group_id`),
  KEY `IDX_E54BC005A76ED395` (`user_id`),
  KEY `IDX_E54BC005AFDCAD63` (`typeStatusSale_id`),
  KEY `IDX_E54BC0054D16C4DD` (`shop_id`),
  KEY `IDX_E54BC005EA8C3D83` (`cashpoint_id`),
  KEY `IDX_E54BC005169ADD2C` (`manageCashpoint_id`),
  KEY `IDX_E54BC0059395C3F3` (`customer_id`),
  KEY `IDX_E54BC00566C5951B` (`coupon_id`),
  KEY `IDX_E54BC0059A5606AA` (`fidelityCard_id`),
  KEY `IDX_E54BC005AC079C4B` (`couponCode_id`),
  KEY `offlineSaleId_idx` (`offlineSaleId`),
  KEY `invoice_iterator_auto_idx` (`invoice_iterator_auto`),
  KEY `alias_idx` (`alias`),
  KEY `dateCompletion_idx` (`completion_date`),
  CONSTRAINT `FK_E54BC005169ADD2C` FOREIGN KEY (`manageCashpoint_id`) REFERENCES `manageCashpoint` (`id`),
  CONSTRAINT `FK_E54BC0054D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_E54BC00566C5951B` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`),
  CONSTRAINT `FK_E54BC0059395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`),
  CONSTRAINT `FK_E54BC0059A5606AA` FOREIGN KEY (`fidelityCard_id`) REFERENCES `fidelityCard` (`id`),
  CONSTRAINT `FK_E54BC005A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_E54BC005AC079C4B` FOREIGN KEY (`couponCode_id`) REFERENCES `couponsCode` (`id`),
  CONSTRAINT `FK_E54BC005AFDCAD63` FOREIGN KEY (`typeStatusSale_id`) REFERENCES `typeStatusSale` (`id`),
  CONSTRAINT `FK_E54BC005EA8C3D83` FOREIGN KEY (`cashpoint_id`) REFERENCES `cashpoint` (`id`),
  CONSTRAINT `FK_E54BC005FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `sale`
--


--
-- Table structure for table `saleBinnacle`
--

CREATE TABLE `saleBinnacle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_3885C3454A7E4868` (`sale_id`),
  CONSTRAINT `FK_3885C3454A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `saleBinnacle`
--


--
-- Table structure for table `saleDiscountGlobal`
--

CREATE TABLE `saleDiscountGlobal` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `amount` double DEFAULT NULL,
  `typeSaleDiscount` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D0804ACFE54D947` (`group_id`),
  KEY `IDX_D0804ACA76ED395` (`user_id`),
  KEY `IDX_D0804AC4A7E4868` (`sale_id`),
  KEY `IDX_D0804AC14554B20` (`typeSaleDiscount`),
  KEY `IDX_D0804ACDCD6110` (`stock_id`),
  CONSTRAINT `FK_D0804AC14554B20` FOREIGN KEY (`typeSaleDiscount`) REFERENCES `typeSaleDiscount` (`id`),
  CONSTRAINT `FK_D0804AC4A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_D0804ACA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_D0804ACDCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`),
  CONSTRAINT `FK_D0804ACFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `saleDiscountGlobal`
--


--
-- Table structure for table `saleElement`
--

CREATE TABLE `saleElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `typeSaleElementStatus_id` int DEFAULT NULL,
  `pvpFinal` decimal(14,2) DEFAULT NULL,
  `pvpFinalForSale` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_3AF8EE44A7E4868` (`sale_id`),
  KEY `IDX_3AF8EE41F2EDE6C` (`typeSaleElementStatus_id`),
  KEY `IDX_3AF8EE4DCD6110` (`stock_id`),
  CONSTRAINT `FK_3AF8EE41F2EDE6C` FOREIGN KEY (`typeSaleElementStatus_id`) REFERENCES `typeSaleElementStatus` (`id`),
  CONSTRAINT `FK_3AF8EE44A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_3AF8EE4DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `saleElement`
--


--
-- Table structure for table `saleExpenses`
--

CREATE TABLE `saleExpenses` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `amount` double DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `manageCashpoint_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DCB6B2E2FE54D947` (`group_id`),
  KEY `IDX_DCB6B2E2A76ED395` (`user_id`),
  KEY `IDX_DCB6B2E2169ADD2C` (`manageCashpoint_id`),
  CONSTRAINT `FK_DCB6B2E2169ADD2C` FOREIGN KEY (`manageCashpoint_id`) REFERENCES `manageCashpoint` (`id`),
  CONSTRAINT `FK_DCB6B2E2A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_DCB6B2E2FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `saleExpenses`
--


--
-- Table structure for table `salePayment`
--

CREATE TABLE `salePayment` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `amount` double DEFAULT NULL,
  `typeSalePayment` int DEFAULT NULL,
  `typeSalePaymentWhoPay` int DEFAULT NULL,
  `type_sale_origin` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `manageCashpoint_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2FC754D0FE54D947` (`group_id`),
  KEY `IDX_2FC754D0A76ED395` (`user_id`),
  KEY `IDX_2FC754D04A7E4868` (`sale_id`),
  KEY `IDX_2FC754D0D713FD5A` (`typeSalePayment`),
  KEY `IDX_2FC754D084169B42` (`typeSalePaymentWhoPay`),
  KEY `IDX_2FC754D0169ADD2C` (`manageCashpoint_id`),
  KEY `dateCreation_idx` (`created_at`),
  CONSTRAINT `FK_2FC754D0169ADD2C` FOREIGN KEY (`manageCashpoint_id`) REFERENCES `manageCashpoint` (`id`),
  CONSTRAINT `FK_2FC754D04A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_2FC754D084169B42` FOREIGN KEY (`typeSalePaymentWhoPay`) REFERENCES `typeSalePaymentWhoPay` (`id`),
  CONSTRAINT `FK_2FC754D0A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_2FC754D0D713FD5A` FOREIGN KEY (`typeSalePayment`) REFERENCES `typeSalePayment` (`id`),
  CONSTRAINT `FK_2FC754D0FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `salePayment`
--


--
-- Table structure for table `season`
--

CREATE TABLE `season` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_season_id` int DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `alias` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_start` date DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_actual` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F0E45BA9FE54D947` (`group_id`),
  KEY `IDX_F0E45BA9FA0640C1` (`type_season_id`),
  CONSTRAINT `FK_F0E45BA9FA0640C1` FOREIGN KEY (`type_season_id`) REFERENCES `typeSeason` (`id`),
  CONSTRAINT `FK_F0E45BA9FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `season`
--

INSERT INTO `season` VALUES ('c1f2d536-3840-4cc2-a3af-30c93c79f45a','471070-b212-4109-894e-d6283fe29e74',NULL,'CONTINUIDAD','CONT',NULL,NULL,'clac-clac-placeholder.png',1);

--
-- Table structure for table `section`
--

CREATE TABLE `section` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_visits` int DEFAULT NULL,
  `code` varchar(4) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `exclude_from_website` tinyint(1) NOT NULL,
  `slug` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `image_position_on_website` tinyint(1) NOT NULL,
  `hide_image_on_website` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2D737AEFFE54D947` (`group_id`),
  KEY `slug_idx` (`slug`),
  CONSTRAINT `FK_2D737AEFFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `section`
--

INSERT INTO `section` VALUES ('1d5db8fe-1dbc-4a2c-96d1-454adc4b0af9','471070-b212-4109-894e-d6283fe29e74','HOMBRE','clac-clac-placeholder.png',0,'H',0,'hombre',0,0);

--
-- Table structure for table `serie`
--

CREATE TABLE `serie` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `is_by_sizes` tinyint(1) NOT NULL,
  `key_prestashop` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sizing_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AA3A9334FE54D947` (`group_id`),
  KEY `IDX_AA3A93349E939B6D` (`sizing_id`),
  CONSTRAINT `FK_AA3A93349E939B6D` FOREIGN KEY (`sizing_id`) REFERENCES `sizing` (`id`),
  CONSTRAINT `FK_AA3A9334FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `serie`
--

INSERT INTO `serie` VALUES ('cc89e992-a73d-49b6-9bd1-4ba472003517','471070-b212-4109-894e-d6283fe29e74','ROPA',0,NULL,NULL);

--
-- Table structure for table `shoeHeel`
--

CREATE TABLE `shoeHeel` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1BE6C5A2FE54D947` (`group_id`),
  CONSTRAINT `FK_1BE6C5A2FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeHeel`
--


--
-- Table structure for table `shoeInsole`
--

CREATE TABLE `shoeInsole` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_9CE049FFE54D947` (`group_id`),
  CONSTRAINT `FK_9CE049FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeInsole`
--


--
-- Table structure for table `shoeLast`
--

CREATE TABLE `shoeLast` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_9C79D7A8FE54D947` (`group_id`),
  CONSTRAINT `FK_9C79D7A8FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeLast`
--


--
-- Table structure for table `shoeLine`
--

CREATE TABLE `shoeLine` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_7B6CAFEFE54D947` (`group_id`),
  CONSTRAINT `FK_7B6CAFEFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeLine`
--


--
-- Table structure for table `shoeLining`
--

CREATE TABLE `shoeLining` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_91E5B962FE54D947` (`group_id`),
  CONSTRAINT `FK_91E5B962FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeLining`
--


--
-- Table structure for table `shoeSkin`
--

CREATE TABLE `shoeSkin` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D4DB1616FE54D947` (`group_id`),
  CONSTRAINT `FK_D4DB1616FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeSkin`
--


--
-- Table structure for table `shoeSole`
--

CREATE TABLE `shoeSole` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_39779307FE54D947` (`group_id`),
  CONSTRAINT `FK_39779307FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shoeSole`
--


--
-- Table structure for table `shop`
--

CREATE TABLE `shop` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_round_id` int DEFAULT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `datecreation` datetime NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `address` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `city` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `default_round` double DEFAULT NULL,
  `profile_description` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `website` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `telephone` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_for_ticket` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeProvince_id` int DEFAULT NULL,
  `typeStatus_id` int DEFAULT NULL,
  `text_for_gift_card` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `default_ticket_printer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_for_reserved` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `horario` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `filenameShop` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `latitude` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `longitude` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `nameForLabels` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `exclude_from_website` tinyint(1) NOT NULL,
  `typeShop_id` int DEFAULT NULL,
  `web_denomination` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `avoid_print_logo_on_ticket` tinyint(1) NOT NULL,
  `avoid_print_address_on_ticket` tinyint(1) NOT NULL,
  `tiraFiscalNumber` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `objetive_dayly_percentage` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `show_objetive_dayly_percentage` tinyint(1) NOT NULL,
  `glntrendico` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name_commercial_for_tickets` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ticketItem` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filenameTicketFooter` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_AC6A4CA225FFE281` (`default_ticket_printer_id`),
  KEY `IDX_AC6A4CA21192B8C0` (`typeProvince_id`),
  KEY `IDX_AC6A4CA26BFF7B5C` (`type_round_id`),
  KEY `IDX_AC6A4CA2A39E082` (`typeStatus_id`),
  KEY `IDX_AC6A4CA2979B1AD6` (`company_id`),
  KEY `IDX_AC6A4CA2584F71FA` (`typeShop_id`),
  CONSTRAINT `FK_AC6A4CA21192B8C0` FOREIGN KEY (`typeProvince_id`) REFERENCES `typeProvinces` (`id`),
  CONSTRAINT `FK_AC6A4CA225FFE281` FOREIGN KEY (`default_ticket_printer_id`) REFERENCES `ticket_printer` (`id`),
  CONSTRAINT `FK_AC6A4CA2584F71FA` FOREIGN KEY (`typeShop_id`) REFERENCES `typeShop` (`id`),
  CONSTRAINT `FK_AC6A4CA26BFF7B5C` FOREIGN KEY (`type_round_id`) REFERENCES `type_round` (`id`),
  CONSTRAINT `FK_AC6A4CA2979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_AC6A4CA2A39E082` FOREIGN KEY (`typeStatus_id`) REFERENCES `typeStatus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shop`
--

INSERT INTO `shop` VALUES ('471070-2727-4f98-9701-b52069b84918',NULL,'471070-be66-41d4-acd8-aa744a136c83','2022-01-07 13:22:00','Shop 471070','','','',NULL,NULL,'','','','clac-clac-placeholder.png','',NULL,1,'',NULL,NULL,NULL,NULL,NULL,NULL,'T01',0,1,'Shop 471070',0,0,NULL,NULL,0,'',NULL,NULL,NULL);

--
-- Table structure for table `shopReceiverSorted`
--

CREATE TABLE `shopReceiverSorted` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sort` int DEFAULT NULL,
  `groupConfiguration_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D755BEDCA7842C90` (`groupConfiguration_id`),
  KEY `IDX_D755BEDC4D16C4DD` (`shop_id`),
  CONSTRAINT `FK_D755BEDC4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_D755BEDCA7842C90` FOREIGN KEY (`groupConfiguration_id`) REFERENCES `group_configuration` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shopReceiverSorted`
--


--
-- Table structure for table `shopSenderSorted`
--

CREATE TABLE `shopSenderSorted` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sort` int DEFAULT NULL,
  `groupConfiguration_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_E1C7B34CA7842C90` (`groupConfiguration_id`),
  KEY `IDX_E1C7B34C4D16C4DD` (`shop_id`),
  CONSTRAINT `FK_E1C7B34C4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_E1C7B34CA7842C90` FOREIGN KEY (`groupConfiguration_id`) REFERENCES `group_configuration` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shopSenderSorted`
--


--
-- Table structure for table `shopsReceiver`
--

CREATE TABLE `shopsReceiver` (
  `group_configuration_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`group_configuration_id`,`shop_id`),
  KEY `IDX_7BB365E18C42D435` (`group_configuration_id`),
  KEY `IDX_7BB365E14D16C4DD` (`shop_id`),
  CONSTRAINT `FK_7BB365E14D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_7BB365E18C42D435` FOREIGN KEY (`group_configuration_id`) REFERENCES `group_configuration` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shopsReceiver`
--


--
-- Table structure for table `shopsSender`
--

CREATE TABLE `shopsSender` (
  `group_configuration_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`group_configuration_id`,`shop_id`),
  KEY `IDX_D5133A938C42D435` (`group_configuration_id`),
  KEY `IDX_D5133A934D16C4DD` (`shop_id`),
  CONSTRAINT `FK_D5133A934D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_D5133A938C42D435` FOREIGN KEY (`group_configuration_id`) REFERENCES `group_configuration` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shopsSender`
--


--
-- Table structure for table `shopsWebAvailable`
--

CREATE TABLE `shopsWebAvailable` (
  `group_configuration_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`group_configuration_id`,`shop_id`),
  KEY `IDX_32713CCF8C42D435` (`group_configuration_id`),
  KEY `IDX_32713CCF4D16C4DD` (`shop_id`),
  CONSTRAINT `FK_32713CCF4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_32713CCF8C42D435` FOREIGN KEY (`group_configuration_id`) REFERENCES `group_configuration` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shopsWebAvailable`
--

INSERT INTO `shopsWebAvailable` VALUES ('471070-a699-4f88-9ea2-0bd0a51d5b63','471070-2727-4f98-9701-b52069b84918');

--
-- Table structure for table `sizes_series`
--

CREATE TABLE `sizes_series` (
  `serie_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_size_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`serie_id`,`type_size_id`),
  KEY `IDX_889743CFD94388BD` (`serie_id`),
  KEY `IDX_889743CF61ACC7D2` (`type_size_id`),
  CONSTRAINT `FK_889743CF61ACC7D2` FOREIGN KEY (`type_size_id`) REFERENCES `typeSize` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_889743CFD94388BD` FOREIGN KEY (`serie_id`) REFERENCES `serie` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `sizes_series`
--

INSERT INTO `sizes_series` VALUES ('cc89e992-a73d-49b6-9bd1-4ba472003517','2cdd8339-b069-4d6c-ba48-2b59e840a689'),('cc89e992-a73d-49b6-9bd1-4ba472003517','58e6b3f3-9b1b-4d16-b836-8751ae30fad6'),('cc89e992-a73d-49b6-9bd1-4ba472003517','6ece4b15-3842-451c-8d40-3433164a0e08'),('cc89e992-a73d-49b6-9bd1-4ba472003517','794cc6a7-803d-459b-9773-276cb8c8d280');

--
-- Table structure for table `sizing`
--

CREATE TABLE `sizing` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `acronym` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C37AC975FE54D947` (`group_id`),
  CONSTRAINT `FK_C37AC975FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `sizing`
--


--
-- Table structure for table `statsArticleMonthSales`
--

CREATE TABLE `statsArticleMonthSales` (
  `id` int NOT NULL AUTO_INCREMENT,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `month` int NOT NULL,
  `year` int NOT NULL,
  `units` int NOT NULL,
  `type` int NOT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_961A4C887294869C` (`article_id`),
  KEY `IDX_961A4C884D16C4DD` (`shop_id`),
  CONSTRAINT `FK_961A4C884D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_961A4C887294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `statsArticleMonthSales`
--


--
-- Table structure for table `statsGroupAnualProfitability`
--

CREATE TABLE `statsGroupAnualProfitability` (
  `id` int NOT NULL AUTO_INCREMENT,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2CAE3D6EFE54D947` (`group_id`),
  CONSTRAINT `FK_2CAE3D6EFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `statsGroupAnualProfitability`
--


--
-- Table structure for table `statsGroupAnualProfitabilityByShop`
--

CREATE TABLE `statsGroupAnualProfitabilityByShop` (
  `id` int NOT NULL AUTO_INCREMENT,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DD2077554D16C4DD` (`shop_id`),
  CONSTRAINT `FK_DD2077554D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `statsGroupAnualProfitabilityByShop`
--


--
-- Table structure for table `statsGroupIncomeSalesWeek`
--

CREATE TABLE `statsGroupIncomeSalesWeek` (
  `id` int NOT NULL AUTO_INCREMENT,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_start` datetime NOT NULL,
  `date_end` datetime NOT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_26069DF3FE54D947` (`group_id`),
  CONSTRAINT `FK_26069DF3FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `statsGroupIncomeSalesWeek`
--


--
-- Table structure for table `stock`
--

CREATE TABLE `stock` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `orders_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `return_item_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `pvp` decimal(14,2) DEFAULT NULL,
  `costPrice` decimal(14,2) DEFAULT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `alias_low_density` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `barcode` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopOwner_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeSize_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `saleElement_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStatusStock_id` int DEFAULT NULL,
  `pvpFinal` decimal(14,2) DEFAULT NULL,
  `saleDiscountGlobal_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_sale` datetime DEFAULT NULL,
  `pvpFinalForSale` decimal(14,2) DEFAULT NULL,
  `discountsElement_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discountsSold_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `saleSold_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stocktakingElement_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_service` datetime DEFAULT NULL,
  `incidence_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cost_price_plus_taxes` decimal(14,2) DEFAULT NULL,
  `web_site_config_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `companyOwner_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_birth` datetime DEFAULT NULL,
  `date_of_reception` datetime DEFAULT NULL,
  `costPriceWithDiscount` decimal(14,2) DEFAULT NULL,
  `cost_price_with_discount_plus_taxes` decimal(14,2) DEFAULT NULL,
  `observations` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_4B3656607294869C` (`article_id`),
  KEY `IDX_4B365660F031A2F8` (`shopOwner_id`),
  KEY `IDX_4B3656604D16C4DD` (`shop_id`),
  KEY `IDX_4B3656605CD41D00` (`typeSize_id`),
  KEY `IDX_4B365660CFFE9AD6` (`orders_id`),
  KEY `IDX_4B3656602BC3B6F3` (`saleElement_id`),
  KEY `IDX_4B365660FE54D947` (`group_id`),
  KEY `IDX_4B3656609AFA1A7D` (`typeStatusStock_id`),
  KEY `IDX_4B3656607C14DF52` (`reception_id`),
  KEY `IDX_4B3656604474081` (`return_item_id`),
  KEY `IDX_4B365660DC942C0F` (`saleDiscountGlobal_id`),
  KEY `IDX_4B3656601FA860CD` (`discountsElement_id`),
  KEY `IDX_4B3656601FA46DE9` (`discountsSold_id`),
  KEY `IDX_4B3656608A279EA0` (`saleSold_id`),
  KEY `IDX_4B365660C19CAFD0` (`stocktakingElement_id`),
  KEY `IDX_4B365660F22710E3` (`incidence_id`),
  KEY `IDX_4B3656603F8C6C99` (`web_site_config_id`),
  KEY `IDX_4B365660D350F805` (`companyOwner_id`),
  KEY `aliasLowDensity_idx` (`alias_low_density`),
  KEY `alias` (`alias`),
  KEY `dateOfSale_idx` (`date_of_sale`),
  KEY `article_shop_typestatustock` (`article_id`,`shop_id`,`typeStatusStock_id`),
  CONSTRAINT `FK_4B3656601FA46DE9` FOREIGN KEY (`discountsSold_id`) REFERENCES `discounts` (`id`),
  CONSTRAINT `FK_4B3656601FA860CD` FOREIGN KEY (`discountsElement_id`) REFERENCES `discountsElement` (`id`),
  CONSTRAINT `FK_4B3656602BC3B6F3` FOREIGN KEY (`saleElement_id`) REFERENCES `saleElement` (`id`),
  CONSTRAINT `FK_4B3656603F8C6C99` FOREIGN KEY (`web_site_config_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_4B3656604474081` FOREIGN KEY (`return_item_id`) REFERENCES `return_item` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_4B3656604D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_4B3656605CD41D00` FOREIGN KEY (`typeSize_id`) REFERENCES `typeSize` (`id`),
  CONSTRAINT `FK_4B3656607294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_4B3656607C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_4B3656608A279EA0` FOREIGN KEY (`saleSold_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_4B3656609AFA1A7D` FOREIGN KEY (`typeStatusStock_id`) REFERENCES `typeStatusStock` (`id`),
  CONSTRAINT `FK_4B365660C19CAFD0` FOREIGN KEY (`stocktakingElement_id`) REFERENCES `stocktakingElement` (`id`),
  CONSTRAINT `FK_4B365660CFFE9AD6` FOREIGN KEY (`orders_id`) REFERENCES `orders` (`id`),
  CONSTRAINT `FK_4B365660D350F805` FOREIGN KEY (`companyOwner_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_4B365660DC942C0F` FOREIGN KEY (`saleDiscountGlobal_id`) REFERENCES `saleDiscountGlobal` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_4B365660F031A2F8` FOREIGN KEY (`shopOwner_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_4B365660F22710E3` FOREIGN KEY (`incidence_id`) REFERENCES `incidence` (`id`),
  CONSTRAINT `FK_4B365660FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stock`
--

INSERT INTO `stock` VALUES ('0a756c8a-cd8e-4fee-b672-2cbe8fca5ca0','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-976219','667668976219','c310da133e4782a28cfbf0ef376bde70.png','471070-2727-4f98-9701-b52069b84918','2cdd8339-b069-4d6c-ba48-2b59e840a689',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('3718b245-4061-49d6-8dbe-2dfc00b9c89c','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-180758','667668180758','1142e0a302e7fd7234ea506143a8b2aa.png','471070-2727-4f98-9701-b52069b84918','58e6b3f3-9b1b-4d16-b836-8751ae30fad6',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('426cae7c-fd6f-46d4-ba05-8ba6a263ec77','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-575122','667668575122','125ea1d311beba65da811005c550d3e8.png','471070-2727-4f98-9701-b52069b84918','6ece4b15-3842-451c-8d40-3433164a0e08',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('760f1078-c129-42fa-8fa4-073c90b10ee6','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-771603','667668771603','958dded99942a3353f18004917cf479c.png','471070-2727-4f98-9701-b52069b84918','794cc6a7-803d-459b-9773-276cb8c8d280',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('79204680-1e0b-46a2-be93-074888e9fc31','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-119331','667668119331','ff823630589209f24a121d99c27c955c.png','471070-2727-4f98-9701-b52069b84918','58e6b3f3-9b1b-4d16-b836-8751ae30fad6',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('ab02d163-014b-46cf-afbd-2772d2369a35','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-125810','667668125810','8d6461f839f7e4a412e7654a0c5946d6.png','471070-2727-4f98-9701-b52069b84918','794cc6a7-803d-459b-9773-276cb8c8d280',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('d796b3fc-af46-43e8-b30e-ddfd8b77f355','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-314609','667668314609','faf817a0d5fe198adbbd620f27aff512.png','471070-2727-4f98-9701-b52069b84918','2cdd8339-b069-4d6c-ba48-2b59e840a689',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n'),('ecd14314-b505-4a54-9885-185102fb7515','fb55fee0-698c-47c7-a18e-0142fae4fe66','471070-2727-4f98-9701-b52069b84918','cfe9603b-2111-4995-a1ac-29618f06b2a9','471070-b212-4109-894e-d6283fe29e74','e4b528ed-9a9d-41ec-b11a-a4397096bacb',NULL,'2024-08-09 07:33:48',35.99,5.90,'','667668-909920','667668909920','0fac31478a02b584e2cfa47371f28670.png','471070-2727-4f98-9701-b52069b84918','6ece4b15-3842-451c-8d40-3433164a0e08',NULL,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7.14,NULL,'471070-be66-41d4-acd8-aa744a136c83','2024-08-09 07:36:06','2024-08-09 07:50:58',5.90,7.14,NULL,'09/08/2024 07:50:58#Soporte#Shop 471070#Automáticamente#En recepción#Disponible#Cambio de estado\n09/08/2024 07:50:54#Soporte#Shop 471070#Automáticamente#Pendiente recepción#En recepción#Cambio de estado\n');

--
-- Table structure for table `stockBarnacle`
--

CREATE TABLE `stockBarnacle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `attribute_modified` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `old_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `new_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStockBarnacleUpdate_id` int DEFAULT NULL,
  `typeStockBarnacleAction_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_13C69DF3DCD6110` (`stock_id`),
  KEY `IDX_13C69DF3A76ED395` (`user_id`),
  KEY `IDX_13C69DF34D16C4DD` (`shop_id`),
  KEY `IDX_13C69DF3C370BF23` (`typeStockBarnacleUpdate_id`),
  KEY `IDX_13C69DF38BD4A5A7` (`typeStockBarnacleAction_id`),
  KEY `IDX_13C69DF34C7C611F` (`discount_id`),
  CONSTRAINT `FK_13C69DF34C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `discounts` (`id`),
  CONSTRAINT `FK_13C69DF34D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_13C69DF38BD4A5A7` FOREIGN KEY (`typeStockBarnacleAction_id`) REFERENCES `typeStockBarnacleAction` (`id`),
  CONSTRAINT `FK_13C69DF3A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_13C69DF3C370BF23` FOREIGN KEY (`typeStockBarnacleUpdate_id`) REFERENCES `typeStockBarnacleUpdate` (`id`),
  CONSTRAINT `FK_13C69DF3DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockBarnacle`
--


--
-- Table structure for table `stockCancel`
--

CREATE TABLE `stockCancel` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `typeStatusStock_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_47923029A76ED395` (`user_id`),
  KEY `IDX_47923029DCD6110` (`stock_id`),
  KEY `IDX_479230299AFA1A7D` (`typeStatusStock_id`),
  CONSTRAINT `FK_479230299AFA1A7D` FOREIGN KEY (`typeStatusStock_id`) REFERENCES `typeStatusStock` (`id`),
  CONSTRAINT `FK_47923029A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_47923029DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockCancel`
--


--
-- Table structure for table `stockError`
--

CREATE TABLE `stockError` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `previous` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `next` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `saleSold_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStockError_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D823BBAADCD6110` (`stock_id`),
  KEY `IDX_D823BBAA8A279EA0` (`saleSold_id`),
  KEY `IDX_D823BBAAA76ED395` (`user_id`),
  KEY `IDX_D823BBAA799E8806` (`typeStockError_id`),
  CONSTRAINT `FK_D823BBAA799E8806` FOREIGN KEY (`typeStockError_id`) REFERENCES `typeStockError` (`id`),
  CONSTRAINT `FK_D823BBAA8A279EA0` FOREIGN KEY (`saleSold_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_D823BBAAA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_D823BBAADCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockError`
--


--
-- Table structure for table `stockLite`
--

CREATE TABLE `stockLite` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `orders_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `date_of_birth` datetime DEFAULT NULL,
  `date_of_reception` datetime DEFAULT NULL,
  `date_of_service` datetime DEFAULT NULL,
  `alias` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `alias_low_density` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `barcode` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qty` int DEFAULT NULL,
  `pvp` decimal(14,2) DEFAULT NULL,
  `costPrice` decimal(14,2) DEFAULT NULL,
  `costPriceWithDiscount` decimal(14,2) DEFAULT NULL,
  `cost_price_plus_taxes` decimal(14,2) DEFAULT NULL,
  `cost_price_with_discount_plus_taxes` decimal(14,2) DEFAULT NULL,
  `observations` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `companyOwner_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopOwner_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeSize_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStatusStock_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FA0E4D7FFE54D947` (`group_id`),
  KEY `IDX_FA0E4D7F7294869C` (`article_id`),
  KEY `IDX_FA0E4D7FD350F805` (`companyOwner_id`),
  KEY `IDX_FA0E4D7FF031A2F8` (`shopOwner_id`),
  KEY `IDX_FA0E4D7F4D16C4DD` (`shop_id`),
  KEY `IDX_FA0E4D7F5CD41D00` (`typeSize_id`),
  KEY `IDX_FA0E4D7F9AFA1A7D` (`typeStatusStock_id`),
  KEY `IDX_FA0E4D7FCFFE9AD6` (`orders_id`),
  KEY `IDX_FA0E4D7F7C14DF52` (`reception_id`),
  KEY `aliasLowDensity_idx` (`alias_low_density`),
  KEY `alias` (`alias`),
  KEY `article_shop_typestatustock` (`article_id`,`shop_id`,`typeStatusStock_id`),
  CONSTRAINT `FK_FA0E4D7F4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_FA0E4D7F5CD41D00` FOREIGN KEY (`typeSize_id`) REFERENCES `typeSize` (`id`),
  CONSTRAINT `FK_FA0E4D7F7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_FA0E4D7F7C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_FA0E4D7F9AFA1A7D` FOREIGN KEY (`typeStatusStock_id`) REFERENCES `typeStatusStock` (`id`),
  CONSTRAINT `FK_FA0E4D7FCFFE9AD6` FOREIGN KEY (`orders_id`) REFERENCES `orders` (`id`),
  CONSTRAINT `FK_FA0E4D7FD350F805` FOREIGN KEY (`companyOwner_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_FA0E4D7FF031A2F8` FOREIGN KEY (`shopOwner_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_FA0E4D7FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockLite`
--


--
-- Table structure for table `stockLiteLink`
--

CREATE TABLE `stockLiteLink` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `stockLite_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1E6BAE1ADCD6110` (`stock_id`),
  KEY `IDX_1E6BAE1A9B83F6E8` (`stockLite_id`),
  CONSTRAINT `FK_1E6BAE1A9B83F6E8` FOREIGN KEY (`stockLite_id`) REFERENCES `stockLite` (`id`),
  CONSTRAINT `FK_1E6BAE1ADCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockLiteLink`
--


--
-- Table structure for table `stockOptimization`
--

CREATE TABLE `stockOptimization` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `date_done` datetime DEFAULT NULL,
  `is_actual` tinyint(1) NOT NULL,
  `is_manual` tinyint(1) NOT NULL,
  `is_closed` tinyint(1) NOT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `did_it_generate_transfers` tinyint(1) NOT NULL,
  `typeWorkingOrder_id` int DEFAULT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_pending_for_reveived` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_F90E8A9F7C14DF52` (`reception_id`),
  KEY `IDX_F90E8A9FFE54D947` (`group_id`),
  KEY `IDX_F90E8A9F7294869C` (`article_id`),
  KEY `IDX_F90E8A9FDCAE06D6` (`typeWorkingOrder_id`),
  KEY `IDX_F90E8A9F4A7E4868` (`sale_id`),
  CONSTRAINT `FK_F90E8A9F4A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_F90E8A9F7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_F90E8A9F7C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_F90E8A9FDCAE06D6` FOREIGN KEY (`typeWorkingOrder_id`) REFERENCES `typeWorkingOrder` (`id`),
  CONSTRAINT `FK_F90E8A9FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockOptimization`
--


--
-- Table structure for table `stockOptimizationArticle`
--

CREATE TABLE `stockOptimizationArticle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `stockOptimization_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2F72E1DDB6DA67C2` (`stockOptimization_id`),
  KEY `IDX_2F72E1DD7294869C` (`article_id`),
  CONSTRAINT `FK_2F72E1DD7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_2F72E1DDB6DA67C2` FOREIGN KEY (`stockOptimization_id`) REFERENCES `stockOptimization` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockOptimizationArticle`
--


--
-- Table structure for table `stockOptimizationElement`
--

CREATE TABLE `stockOptimizationElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `quantity` int DEFAULT NULL,
  `stockOptimization_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `typeSize_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopOut_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopIn_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `transfer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6C08B182B6DA67C2` (`stockOptimization_id`),
  KEY `IDX_6C08B1827294869C` (`article_id`),
  KEY `IDX_6C08B1825CD41D00` (`typeSize_id`),
  KEY `IDX_6C08B1824E8DEB82` (`shopOut_id`),
  KEY `IDX_6C08B1824DEFC757` (`shopIn_id`),
  KEY `IDX_6C08B182537048AF` (`transfer_id`),
  CONSTRAINT `FK_6C08B1824DEFC757` FOREIGN KEY (`shopIn_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_6C08B1824E8DEB82` FOREIGN KEY (`shopOut_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_6C08B182537048AF` FOREIGN KEY (`transfer_id`) REFERENCES `transfer` (`id`),
  CONSTRAINT `FK_6C08B1825CD41D00` FOREIGN KEY (`typeSize_id`) REFERENCES `typeSize` (`id`),
  CONSTRAINT `FK_6C08B1827294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_6C08B182B6DA67C2` FOREIGN KEY (`stockOptimization_id`) REFERENCES `stockOptimization` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stockOptimizationElement`
--


--
-- Table structure for table `stocktaking`
--

CREATE TABLE `stocktaking` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `date_end` datetime DEFAULT NULL,
  `differents` int DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_check` datetime DEFAULT NULL,
  `stocks` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `brand_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_partial` tinyint(1) NOT NULL,
  `just_articles_involved` tinyint(1) NOT NULL,
  `table_html` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_1082729BFE54D947` (`group_id`),
  KEY `IDX_1082729BA76ED395` (`user_id`),
  KEY `IDX_1082729B4D16C4DD` (`shop_id`),
  KEY `IDX_1082729B44F5D008` (`brand_id`),
  CONSTRAINT `FK_1082729B44F5D008` FOREIGN KEY (`brand_id`) REFERENCES `brand` (`id`),
  CONSTRAINT `FK_1082729B4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_1082729BA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_1082729BFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stocktaking`
--


--
-- Table structure for table `stocktakingElement`
--

CREATE TABLE `stocktakingElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stocktaking_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_BEE75DC489B86B49` (`stocktaking_id`),
  KEY `IDX_BEE75DC4DCD6110` (`stock_id`),
  CONSTRAINT `FK_BEE75DC489B86B49` FOREIGN KEY (`stocktaking_id`) REFERENCES `stocktaking` (`id`),
  CONSTRAINT `FK_BEE75DC4DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stocktakingElement`
--


--
-- Table structure for table `stocktakingNotIncludedElement`
--

CREATE TABLE `stocktakingNotIncludedElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stocktaking_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `type` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4B305F1289B86B49` (`stocktaking_id`),
  KEY `IDX_4B305F12DCD6110` (`stock_id`),
  CONSTRAINT `FK_4B305F1289B86B49` FOREIGN KEY (`stocktaking_id`) REFERENCES `stocktaking` (`id`),
  CONSTRAINT `FK_4B305F12DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `stocktakingNotIncludedElement`
--


--
-- Table structure for table `subcategory`
--

CREATE TABLE `subcategory` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `code` varchar(4) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_visits` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DDCA448FE54D947` (`group_id`),
  CONSTRAINT `FK_DDCA448FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `subcategory`
--


--
-- Table structure for table `tax`
--

CREATE TABLE `tax` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `acronym` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `percentage` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8E81BA76FE54D947` (`group_id`),
  CONSTRAINT `FK_8E81BA76FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `tax`
--

INSERT INTO `tax` VALUES ('78236a1b-fde3-486e-83e8-e407e13478f2','471070-b212-4109-894e-d6283fe29e74','IVA','I.V.A.','21');

--
-- Table structure for table `taxes_supported`
--

CREATE TABLE `taxes_supported` (
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tax_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`company_id`,`tax_id`),
  KEY `IDX_24D5401B979B1AD6` (`company_id`),
  KEY `IDX_24D5401BB2A824D8` (`tax_id`),
  CONSTRAINT `FK_24D5401B979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_24D5401BB2A824D8` FOREIGN KEY (`tax_id`) REFERENCES `tax` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `taxes_supported`
--

INSERT INTO `taxes_supported` VALUES ('471070-be66-41d4-acd8-aa744a136c83','78236a1b-fde3-486e-83e8-e407e13478f2');

--
-- Table structure for table `threadArticleRealtime`
--

CREATE TABLE `threadArticleRealtime` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `website_config_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `marketplace_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_630E1FAE7294869C` (`article_id`),
  KEY `IDX_630E1FAEA76ED395` (`user_id`),
  CONSTRAINT `FK_630E1FAE7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_630E1FAEA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadArticleRealtime`
--


--
-- Table structure for table `threadDiscount`
--

CREATE TABLE `threadDiscount` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `amount` double NOT NULL,
  `typeDiscount` int DEFAULT NULL,
  `transfer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `round_json` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DD64DF6C7C14DF52` (`reception_id`),
  KEY `IDX_DD64DF6C4C7C611F` (`discount_id`),
  KEY `IDX_DD64DF6C7294869C` (`article_id`),
  KEY `IDX_DD64DF6CDCD6110` (`stock_id`),
  KEY `IDX_DD64DF6CA76ED395` (`user_id`),
  KEY `IDX_DD64DF6C4D16C4DD` (`shop_id`),
  KEY `IDX_DD64DF6C44FF58D0` (`typeDiscount`),
  KEY `IDX_DD64DF6C537048AF` (`transfer_id`),
  CONSTRAINT `FK_DD64DF6C44FF58D0` FOREIGN KEY (`typeDiscount`) REFERENCES `typeDiscount` (`id`),
  CONSTRAINT `FK_DD64DF6C4C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `discounts` (`id`),
  CONSTRAINT `FK_DD64DF6C4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_DD64DF6C537048AF` FOREIGN KEY (`transfer_id`) REFERENCES `transfer` (`id`),
  CONSTRAINT `FK_DD64DF6C7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_DD64DF6C7C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_DD64DF6CA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_DD64DF6CDCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadDiscount`
--


--
-- Table structure for table `threadOrderGenerate`
--

CREATE TABLE `threadOrderGenerate` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1A58D7578D9F6D38` (`order_id`),
  KEY `IDX_1A58D7577294869C` (`article_id`),
  KEY `IDX_1A58D757A76ED395` (`user_id`),
  KEY `IDX_1A58D7577C14DF52` (`reception_id`),
  CONSTRAINT `FK_1A58D7577294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_1A58D7577C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_1A58D7578D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`),
  CONSTRAINT `FK_1A58D757A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadOrderGenerate`
--


--
-- Table structure for table `threadReception`
--

CREATE TABLE `threadReception` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F35601308D9F6D38` (`order_id`),
  KEY `IDX_F35601307294869C` (`article_id`),
  KEY `IDX_F35601307C14DF52` (`reception_id`),
  KEY `IDX_F3560130A76ED395` (`user_id`),
  CONSTRAINT `FK_F35601307294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_F35601307C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_F35601308D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`),
  CONSTRAINT `FK_F3560130A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadReception`
--


--
-- Table structure for table `threadStockBinnacle`
--

CREATE TABLE `threadStockBinnacle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CE278FF87C14DF52` (`reception_id`),
  KEY `IDX_CE278FF87294869C` (`article_id`),
  KEY `IDX_CE278FF8DCD6110` (`stock_id`),
  KEY `IDX_CE278FF8A76ED395` (`user_id`),
  KEY `IDX_CE278FF84D16C4DD` (`shop_id`),
  KEY `IDX_CE278FF88D9F6D38` (`order_id`),
  CONSTRAINT `FK_CE278FF84D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_CE278FF87294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_CE278FF87C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_CE278FF88D9F6D38` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`),
  CONSTRAINT `FK_CE278FF8A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_CE278FF8DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadStockBinnacle`
--


--
-- Table structure for table `threadStockTakingAddBackground`
--

CREATE TABLE `threadStockTakingAddBackground` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `Stocktaking_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_84CC44E444DC1391` (`Stocktaking_id`),
  KEY `IDX_84CC44E44D16C4DD` (`shop_id`),
  CONSTRAINT `FK_84CC44E444DC1391` FOREIGN KEY (`Stocktaking_id`) REFERENCES `stocktaking` (`id`),
  CONSTRAINT `FK_84CC44E44D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadStockTakingAddBackground`
--


--
-- Table structure for table `threadWebsite`
--

CREATE TABLE `threadWebsite` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `processing` tinyint(1) NOT NULL,
  `action` int NOT NULL,
  `tenant` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C0E0EEC37C14DF52` (`reception_id`),
  KEY `IDX_C0E0EEC37294869C` (`article_id`),
  KEY `IDX_C0E0EEC3DCD6110` (`stock_id`),
  KEY `IDX_C0E0EEC3A76ED395` (`user_id`),
  KEY `IDX_C0E0EEC34D16C4DD` (`shop_id`),
  CONSTRAINT `FK_C0E0EEC34D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_C0E0EEC37294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_C0E0EEC37C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_C0E0EEC3A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_C0E0EEC3DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `threadWebsite`
--


--
-- Table structure for table `ticketBAISales`
--

CREATE TABLE `ticketBAISales` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `request` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `response` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `endpoint` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `identificador_tbai` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `estado` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `descripcion` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `resultados_validacion_codigo` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `resultados_validacion_descripcion` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `total` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `serie_factura_anterior` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `num_factura_anterior` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fecha_expedicion_factura_anterior` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `signature_value_firma_factura_anterior` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url_qr` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D0572FE2FE54D947` (`group_id`),
  KEY `IDX_D0572FE2979B1AD6` (`company_id`),
  KEY `IDX_D0572FE24A7E4868` (`sale_id`),
  KEY `dateCreation_idx` (`date_creation`),
  CONSTRAINT `FK_D0572FE24A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_D0572FE2979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_D0572FE2FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ticketBAISales`
--


--
-- Table structure for table `ticket_printer`
--

CREATE TABLE `ticket_printer` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ticket_width` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_818020BF4D16C4DD` (`shop_id`),
  CONSTRAINT `FK_818020BF4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ticket_printer`
--


--
-- Table structure for table `transfer`
--

CREATE TABLE `transfer` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `date_request` datetime DEFAULT NULL,
  `date_accepted_rejected` datetime DEFAULT NULL,
  `date_out` datetime DEFAULT NULL,
  `date_in` datetime DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `barcode` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopOut_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shopIn_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `userCreation_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `userOut_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `userIn_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `userReject_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeTransferStatus_id` int DEFAULT NULL,
  `typeTransfer_id` int NOT NULL,
  `observations` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `webOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stockOptimization_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `reception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeStockOptimizationTransfer_id` int DEFAULT NULL,
  `customer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sale_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4034A3C04E8DEB82` (`shopOut_id`),
  KEY `IDX_4034A3C04DEFC757` (`shopIn_id`),
  KEY `IDX_4034A3C0764F1FD9` (`userCreation_id`),
  KEY `IDX_4034A3C06B594A88` (`userOut_id`),
  KEY `IDX_4034A3C0F69C6DE5` (`userIn_id`),
  KEY `IDX_4034A3C038DBD9D7` (`userReject_id`),
  KEY `IDX_4034A3C0F68A2CEB` (`typeTransferStatus_id`),
  KEY `IDX_4034A3C0ABA4E125` (`typeTransfer_id`),
  KEY `IDX_4034A3C0E80E408D` (`webOrder_id`),
  KEY `IDX_4034A3C0B6DA67C2` (`stockOptimization_id`),
  KEY `IDX_4034A3C07C14DF52` (`reception_id`),
  KEY `IDX_4034A3C048FC304C` (`typeStockOptimizationTransfer_id`),
  KEY `IDX_4034A3C09395C3F3` (`customer_id`),
  KEY `IDX_4034A3C04A7E4868` (`sale_id`),
  KEY `alias_idx` (`alias`),
  KEY `dateCreation_idx` (`date_creation`),
  CONSTRAINT `FK_4034A3C038DBD9D7` FOREIGN KEY (`userReject_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_4034A3C048FC304C` FOREIGN KEY (`typeStockOptimizationTransfer_id`) REFERENCES `typeStockOptimizationTransfer` (`id`),
  CONSTRAINT `FK_4034A3C04A7E4868` FOREIGN KEY (`sale_id`) REFERENCES `sale` (`id`),
  CONSTRAINT `FK_4034A3C04DEFC757` FOREIGN KEY (`shopIn_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_4034A3C04E8DEB82` FOREIGN KEY (`shopOut_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_4034A3C06B594A88` FOREIGN KEY (`userOut_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_4034A3C0764F1FD9` FOREIGN KEY (`userCreation_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_4034A3C07C14DF52` FOREIGN KEY (`reception_id`) REFERENCES `receptions` (`id`),
  CONSTRAINT `FK_4034A3C09395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`),
  CONSTRAINT `FK_4034A3C0ABA4E125` FOREIGN KEY (`typeTransfer_id`) REFERENCES `typeTransfer` (`id`),
  CONSTRAINT `FK_4034A3C0B6DA67C2` FOREIGN KEY (`stockOptimization_id`) REFERENCES `stockOptimization` (`id`),
  CONSTRAINT `FK_4034A3C0E80E408D` FOREIGN KEY (`webOrder_id`) REFERENCES `webOrder` (`id`),
  CONSTRAINT `FK_4034A3C0F68A2CEB` FOREIGN KEY (`typeTransferStatus_id`) REFERENCES `typeTransferStatus` (`id`),
  CONSTRAINT `FK_4034A3C0F69C6DE5` FOREIGN KEY (`userIn_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `transfer`
--


--
-- Table structure for table `transferElement`
--

CREATE TABLE `transferElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transfer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `typeTransferStatus_id` int DEFAULT NULL,
  `stockLite_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_12DDDD15F68A2CEB` (`typeTransferStatus_id`),
  KEY `IDX_12DDDD15DCD6110` (`stock_id`),
  KEY `IDX_12DDDD15537048AF` (`transfer_id`),
  KEY `IDX_12DDDD159B83F6E8` (`stockLite_id`),
  CONSTRAINT `FK_12DDDD15537048AF` FOREIGN KEY (`transfer_id`) REFERENCES `transfer` (`id`),
  CONSTRAINT `FK_12DDDD159B83F6E8` FOREIGN KEY (`stockLite_id`) REFERENCES `stockLite` (`id`),
  CONSTRAINT `FK_12DDDD15DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`),
  CONSTRAINT `FK_12DDDD15F68A2CEB` FOREIGN KEY (`typeTransferStatus_id`) REFERENCES `typeTransferStatus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `transferElement`
--


--
-- Table structure for table `transferExternal`
--

CREATE TABLE `transferExternal` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `date_out` datetime DEFAULT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `barcode` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `razonSocial` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cif` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `address` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `city` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `province` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `observations` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shopOut_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `userCreation_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `userOut_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeTransferStatus_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6AD950D84E8DEB82` (`shopOut_id`),
  KEY `IDX_6AD950D8764F1FD9` (`userCreation_id`),
  KEY `IDX_6AD950D86B594A88` (`userOut_id`),
  KEY `IDX_6AD950D8F68A2CEB` (`typeTransferStatus_id`),
  KEY `alias_idx` (`alias`),
  KEY `dateCreation_idx` (`date_creation`),
  CONSTRAINT `FK_6AD950D84E8DEB82` FOREIGN KEY (`shopOut_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_6AD950D86B594A88` FOREIGN KEY (`userOut_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_6AD950D8764F1FD9` FOREIGN KEY (`userCreation_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_6AD950D8F68A2CEB` FOREIGN KEY (`typeTransferStatus_id`) REFERENCES `typeTransferStatus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `transferExternal`
--


--
-- Table structure for table `transferExternalElement`
--

CREATE TABLE `transferExternalElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transfer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `typeTransferStatus_id` int DEFAULT NULL,
  `stockLite_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CA21283F537048AF` (`transfer_id`),
  KEY `IDX_CA21283FF68A2CEB` (`typeTransferStatus_id`),
  KEY `IDX_CA21283FDCD6110` (`stock_id`),
  KEY `IDX_CA21283F9B83F6E8` (`stockLite_id`),
  CONSTRAINT `FK_CA21283F537048AF` FOREIGN KEY (`transfer_id`) REFERENCES `transferExternal` (`id`),
  CONSTRAINT `FK_CA21283F9B83F6E8` FOREIGN KEY (`stockLite_id`) REFERENCES `stockLite` (`id`),
  CONSTRAINT `FK_CA21283FDCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`),
  CONSTRAINT `FK_CA21283FF68A2CEB` FOREIGN KEY (`typeTransferStatus_id`) REFERENCES `typeTransferStatus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `transferExternalElement`
--


--
-- Table structure for table `typeAction`
--

CREATE TABLE `typeAction` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeAction`
--

INSERT INTO `typeAction` VALUES (1,'Traspaso'),(2,'Cambio masivo de precio en artículo'),(3,'Venta en reserva 1º notificación'),(4,'Venta en reserva última notificación'),(5,'Comienzo de campaña de rebajas'),(6,'Artículo con stocks disponible con distinto precio de venta en la misma talla.'),(7,'Pedido con todos los stocks en la tienda de envío'),(8,'Tienda designada para envío de pedido web'),(9,'Pedido pagado. Prepare la logística del pedido.'),(10,'Devolución de pedido solicitada desde la web.'),(11,'Debe preparar una orden de trabajo (Optimización de stock)'),(12,'Un artículo necesita ser repuesto'),(13,'Debe preparar una orden de trabajo (Recepción en almacén)'),(14,'El stock ha sido vendido en otra tienda.'),(15,'Venta OFFLINE sincronizada con errores.'),(16,'Artículo con reservas pendientes de recepción.');

--
-- Table structure for table `typeAdviceNotification`
--

CREATE TABLE `typeAdviceNotification` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeAdviceNotification`
--

INSERT INTO `typeAdviceNotification` VALUES (1,'Notificación'),(2,'Alerta'),(3,'Notificación Web');

--
-- Table structure for table `typeAdviceNotificationTarget`
--

CREATE TABLE `typeAdviceNotificationTarget` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeAdviceNotificationTarget`
--

INSERT INTO `typeAdviceNotificationTarget` VALUES (1,'Para usuario'),(2,'Para tienda'),(3,'Para grupo');

--
-- Table structure for table `typeArticle`
--

CREATE TABLE `typeArticle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1763BB41FE54D947` (`group_id`),
  CONSTRAINT `FK_1763BB41FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeArticle`
--


--
-- Table structure for table `typeArticlePrice`
--

CREATE TABLE `typeArticlePrice` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeArticlePrice`
--

INSERT INTO `typeArticlePrice` VALUES (1,'MARKETPLACE'),(2,'WEBSITE'),(10,'TARIFA 1'),(11,'TARIFA 2'),(12,'TARIFA 3');

--
-- Table structure for table `typeBanner`
--

CREATE TABLE `typeBanner` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeBanner`
--

INSERT INTO `typeBanner` VALUES ('1','Principal en la home',NULL),('2','Secundario 1/3 en la home (Modern - Theme)',NULL),('3','Intermedio en la home (Modern - Theme)',NULL);

--
-- Table structure for table `typeBinnacleAction`
--

CREATE TABLE `typeBinnacleAction` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `text` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeBinnacleAction`
--

INSERT INTO `typeBinnacleAction` VALUES (0,'Reception creation','Creación de la recepción'),(1,'Add stock to reception','Añadidos %stock% stocks a la recepción'),(2,'Remove stock from reception','Borrado un stock de la recepción'),(3,'Create stock from reception','Creación de stock desde la recepción'),(4,'Reception closed','Recepción cerrada con %stock% stocks'),(5,'Transfers created','Traspasos generados'),(6,'Working order created','Orden de trabajo generada'),(7,'Add article to reception','Añadidos %stock% artículos a la recepción'),(8,'Restart reception',' %stock% stocks eliminados de la recepción. Recepción reinicializada.');

--
-- Table structure for table `typeCardComponent`
--

CREATE TABLE `typeCardComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCardComponent`
--

INSERT INTO `typeCardComponent` VALUES (1,'Default'),(2,'Shink');

--
-- Table structure for table `typeCardImageComponent`
--

CREATE TABLE `typeCardImageComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCardImageComponent`
--

INSERT INTO `typeCardImageComponent` VALUES (1,'Superposición de ratón activa sombra y botón a detalle'),(2,'Superposición de ratón activa slide de imágenes');

--
-- Table structure for table `typeCardNumberComponent`
--

CREATE TABLE `typeCardNumberComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCardNumberComponent`
--

INSERT INTO `typeCardNumberComponent` VALUES (1,'3 Columnas'),(2,'4 Columnas');

--
-- Table structure for table `typeCategoryComponent`
--

CREATE TABLE `typeCategoryComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCategoryComponent`
--

INSERT INTO `typeCategoryComponent` VALUES (1,'Selector'),(2,'Todas las categorías visibles');

--
-- Table structure for table `typeColorComponent`
--

CREATE TABLE `typeColorComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeColorComponent`
--

INSERT INTO `typeColorComponent` VALUES (1,'Selector'),(2,'Todos los colores visibles');

--
-- Table structure for table `typeCorreosCodigoProducto`
--

CREATE TABLE `typeCorreosCodigoProducto` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCorreosCodigoProducto`
--

INSERT INTO `typeCorreosCodigoProducto` VALUES (1,'S0179','PAQ LIGERO'),(2,'S0292','PAQ TODAY DOMICILIO'),(3,'S0293','PAQ TODAY OFICINA'),(4,'S0295','PAQ TODAY CITYPAQ'),(5,'S0132','PAQ ESTÁNDAR DOMICILIO'),(6,'S0133','PAQ ESTÁNDAR OFICINA'),(7,'S0178','PAQ ESTÁNDAR CITYPAQ'),(8,'S0235','PAQ PREMIUM DOMICILIO'),(9,'S0236','PAQ PREMIUM OFICINA'),(10,'S0176','PAQ PREMIUM CITYPAQ'),(11,'S0032','PAQUETE AZUL'),(12,'S0135','PAQ RETORNO PREMIUM'),(13,'S0148','PAQ RETORNO'),(14,'S0360','PAQ LIGHT INTERNACIONAL'),(15,'S0410','PAQ ESTÁNDAR INTERNACIONAL'),(16,'S0411','PAQ PREMIUM INTERNACIONAL'),(17,'S0031','PAQUETE POSTAL ECONÓMICO INTERNACIONAL'),(18,'S0159','PAQ RETORNO INTERNACIONAL'),(19,'S0207','CARTA CERTIFICADA (N) ANEXO (30/80)'),(20,'S0273','NOTIFICACIÓN ADMINISTRACIÓN PÚBLICA con PEE'),(21,'S0002','CARTA ORDINARIA INTERNACIONAL'),(22,'S0004','CARTA CERTIFICADA INTERNACIONAL');

--
-- Table structure for table `typeCorreosExpressCodigoProducto`
--

CREATE TABLE `typeCorreosExpressCodigoProducto` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCorreosExpressCodigoProducto`
--


--
-- Table structure for table `typeCorreosModalidadEntrega`
--

CREATE TABLE `typeCorreosModalidadEntrega` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCorreosModalidadEntrega`
--

INSERT INTO `typeCorreosModalidadEntrega` VALUES (1,'ST','DOMICILIO - Dirección del destinatario'),(2,'OR','OFICINA REFERENCIA - Dirección del destinatario'),(3,'LS','OFICINA ELEGIDA - Dirección de la Oficina elegida'),(4,'CP','CITYPAQ - Dirección del CityPaq elegido');

--
-- Table structure for table `typeCorreosPais`
--

CREATE TABLE `typeCorreosPais` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=243 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCorreosPais`
--

INSERT INTO `typeCorreosPais` VALUES (1,'AF','AFGANISTAN'),(2,'ZA','AFRICA DEL SUR'),(3,'AL','ALBANIA'),(4,'DE','ALEMANIA'),(5,'AD','ANDORRA'),(6,'AO','ANGOLA'),(7,'AI','ANGUILLA'),(8,'AG','ANTIGUA Y BARBUDA'),(9,'AN','ANTILLAS NEERLANDESAS (BONAIRE, CURACAO, SABA, SAN EUSTAQUIO, SAN MARTÌN)'),(10,'SA','ARABIA SAUDITA'),(11,'DZ','ARGELIA'),(12,'AR','ARGENTINA'),(13,'AM','ARMENIA'),(14,'AW','ARUBA (ISLA ANTILLAS NEERLANDESAS)'),(15,'AC','ASCENSION'),(16,'AU','AUSTRALIA (*)'),(17,'AT','AUSTRIA'),(18,'AZ','AZERBAIYÁN'),(19,'XA','AZORES (ISLAS)'),(20,'BS','BAHAMAS'),(21,'BH','BAHREIN'),(22,'BD','BANGLADESH'),(23,'BB','BARBADOS'),(24,'BY','BELARUS'),(25,'BE','BELGICA'),(26,'BZ','BELICE'),(27,'BJ','BENIN'),(28,'BM','BERMUDAS'),(29,'BT','BHUTAN'),(30,'BO','BOLIVIA'),(31,'BA','BOSNIA HERZEGOVINA'),(32,'BW','BOTSWANA'),(33,'BR','BRASIL'),(34,'BN','BRUNEI DARUSSALAM'),(35,'BG','BULGARIA'),(36,'BF','BURKINA FASO'),(37,'BI','BURUNDI'),(38,'CV','CABO VERDE'),(39,'KY','CAIMANES (ISLAS)'),(40,'KH','CAMBOYA'),(41,'CM','CAMERUN'),(42,'CA','CANADA'),(43,'CF','CENTROAFRICANA (REP.)'),(44,'TD','CHAD'),(45,'CL','CHILE'),(46,'CN','CHINA REP. (*)'),(47,'CY','CHIPRE'),(48,'CX','CHRISTMAS (ISLAS)'),(49,'CC','COCOS KEELING (ISLAS)'),(50,'CO','COLOMBIA'),(51,'KM','COMORES (ISLAS)'),(52,'CG','CONGO (REP. POP.)'),(53,'CD','CONGO (REPÚBLICA DEMOCRÁTICA DEL)'),(54,'CK','COOK (ISLAS)'),(55,'KR','COREA (REP. DE) (*)'),(56,'KP','COREA (REP. POP. DEM.)'),(57,'CR','COSTA RICA'),(58,'CI','COTE D IVOIRE (COSTA DE MARFIL)'),(59,'HR','CROACIA'),(60,'CU','CUBA'),(61,'IO','DIEGO GARCIA (ISLA)'),(62,'DK','DINAMARCA'),(63,'DJ','DJIBOUTI'),(64,'DM','DOMINICA'),(65,'DO','DOMINICANA (REP)'),(66,'EC','ECUADOR'),(67,'EG','EGIPTO'),(68,'SV','EL SALVADOR'),(69,'AE','EMIRATOS ARABES UNIDOS'),(70,'ER','ERITREA'),(71,'SK','ESLOVAQUIA'),(72,'SI','ESLOVENIA'),(73,'ES','ESPAÑA (*)'),(74,'US','ESTADOS UNIDOS DE AMERICA (*)'),(75,'EE','ESTONIA'),(76,'ET','ETIOPIA'),(77,'FO','FEROE (ISLAS)'),(78,'FJ','FIJI (ISLAS)'),(79,'PH','FILIPINAS'),(80,'FI','FINLANDIA (INCLUYE ISLAS ALAND)'),(81,'FR','FRANCIA'),(82,'GA','GABON'),(83,'GM','GAMBIA'),(84,'GE','GEORGIA'),(85,'GS','GEORGIA DEL SUR Y SANDWICH'),(86,'GH','GHANA'),(87,'GI','GIBRALTAR'),(88,'GD','GRANADA (ISLA)'),(89,'GR','GRECIA'),(90,'GL','GROENLANDIA'),(91,'GP','GUADALUPE (DEP. FRANCES)  (COMPRENDE SAN BARTOLOMÈ Y SAN MARTÌN)'),(92,'GU','GUAM (EE.UU.)'),(93,'GT','GUATEMALA'),(94,'GF','GUAYANA (DEP. FRANCES)'),(95,'GG','GUERNESEY (ISLA) (*)'),(96,'GW','GUINEA BISSAU'),(97,'GQ','GUINEA ECUATORIAL'),(98,'GN','GUINEA (KONAKRY)'),(99,'GY','GUYANA'),(100,'HT','HAITI'),(101,'HN','HONDURAS'),(102,'HK','HONG KONG, CHINA (*)'),(103,'HU','HUNGRIA'),(104,'IN','INDIA'),(105,'ID','INDONESIA'),(106,'IR','IRAN'),(107,'IQ','IRAQ'),(108,'IE','IRLANDA'),(109,'IS','ISLANDIA'),(110,'IL','ISRAEL'),(111,'IT','ITALIA'),(112,'JM','JAMAICA'),(113,'JP','JAPON (*)'),(114,'JE','JERSEY (ISLA) (*)'),(115,'JO','JORDANIA'),(116,'KZ','KAZAJSTAN'),(117,'KE','KENIA'),(118,'KG','KIRGUISTAN'),(119,'KI','KIRIBATI'),(120,'KW','KUWAIT'),(121,'LA','LAO'),(122,'LS','LESOTHO'),(123,'LV','LETONIA'),(124,'LB','LIBANO'),(125,'LR','LIBERIA'),(126,'LY','LIBIA (JAMAHIRIYA LIBIA)'),(127,'LI','LIECHTENSTEIN'),(128,'LT','LITUANIA'),(129,'LU','LUXEMBURGO'),(130,'MO','MACAO, CHINA'),(131,'MK','MACEDONIA ( EX REP. YUGOSLAVA)'),(132,'MG','MADAGASCAR'),(133,'XM','MADEIRA'),(134,'MY','MALASIA'),(135,'MW','MALAWI'),(136,'MV','MALDIVAS'),(137,'ML','MALI'),(138,'MT','MALTA'),(139,'FK','MALVINAS (FALKLAND, ISLAS)'),(140,'IM','MAN (ISLA DE)  (*)'),(141,'MP','MARIANAS, ISLAS (COMPRENDE SAIPÁN Y TINIAN)'),(142,'MA','MARRUECOS'),(143,'MH','MARSHALL (ISLAS)'),(144,'MQ','MARTINICA (DEP. FRANCES)'),(145,'MU','MAURICIO'),(146,'MR','MAURITANIA'),(147,'YT','MAYOTTE (ISLA DE)'),(148,'MX','MEXICO'),(149,'FM','MICRONESIA (ESTADOS FED.)'),(150,'MD','MOLDOVA'),(151,'MC','MONACO'),(152,'MN','MONGOLIA'),(153,'ME','MONTENEGRO'),(154,'MS','MONTSERRAT'),(155,'MZ','MOZAMBIQUE'),(156,'MM','MYANMAR (ANTES BIRMANIA)'),(157,'NA','NAMIBIA'),(158,'NR','NAURU'),(159,'NP','NEPAL'),(160,'NI','NICARAGUA'),(161,'NE','NIGER'),(162,'NG','NIGERIA'),(163,'NU','NIUE (ISLA)'),(164,'NF','NORFOLK (ISLA)'),(165,'NO','NORUEGA'),(166,'NC','NUEVA CALEDONIA'),(167,'NZ','NUEVA ZELANDA (INCLUIDA DEPENDENCIA DE ROSS)'),(168,'OM','OMAN'),(169,'NL','PAISES BAJOS'),(170,'PK','PAKISTAN'),(171,'PW','PALAU'),(172,'PA','PANAMA'),(173,'PG','PAPUA NUEVA GUINEA'),(174,'PY','PARAGUAY'),(175,'PE','PERU'),(176,'PN','PITCAIRN, HENDERSON, DUCIE, OENO (ISLAS)'),(177,'PF','POLINESIA FRANCESA (INCLUIDA ISLOTE DE CLIPPERTON)'),(178,'PL','POLONIA'),(179,'PT','PORTUGAL'),(180,'PR','PUERTO RICO'),(181,'QA','QATAR'),(182,'GB','REINO UNIDO DE GRAN BRETAÑA E IRLANDA DEL NORTE (*)'),(183,'CZ','REPUBLICA CHECA'),(184,'RE','REUNION (DEP. FRANCES)'),(185,'RW','RUANDA'),(186,'RO','RUMANIA'),(187,'RU','RUSIA'),(188,'KN','SAINT KITTS Y NEVIS (SAN CRISTOBAL Y NIEVES)'),(189,'SB','SALOMON (ISLAS)'),(190,'WS','SAMOA (ESTADO INDEPENDIENTE)'),(191,'AS','SAMOA NORTEAMERICANO'),(192,'SM','SAN MARINO'),(193,'PM','SAN PEDRO Y MIQUELON'),(194,'VC','SAN VICENTE Y GRANADINAS'),(195,'SH','SANTA ELENA'),(196,'LC','SANTA LUCIA'),(197,'ST','SANTO TOME Y PRINCIPE'),(198,'SN','SENEGAL'),(199,'RS','SERBIA'),(200,'YU','SERBIA Y MONTENEGRO'),(201,'SC','SEYCHELLES, ISLAS'),(202,'SL','SIERRA LEONA'),(203,'SG','SINGAPUR'),(204,'SY','SIRIA'),(205,'SO','SOMALIA'),(206,'LK','SRI LANKA (ANTES CEILAN)'),(207,'SD','SUDAN'),(208,'SE','SUECIA'),(209,'CH','SUIZA'),(210,'SR','SURINAME'),(211,'SZ','SWAZILANDIA'),(212,'TH','TAILANDIA'),(213,'TW','TAIWAN (REP. CHINA)'),(214,'TZ','TANZANIA'),(215,'TJ','TAYIKISTÁN'),(216,'TF','TERRITORIOS FRANCESES MERIDIONALES Y ANTÁRTICOS'),(217,'TL','TIMOR ORIENTAL'),(218,'TG','TOGO'),(219,'TK','TOKELAU'),(220,'TO','TONGA (INCLUYE NIUAFO OU)'),(221,'TT','TRINIDAD Y TOBAGO'),(222,'TA','TRISTAN DA CUNHA'),(223,'TN','TUNEZ'),(224,'TC','TURCAS Y CAICOS (ISLAS)'),(225,'TM','TURKMENISTAN'),(226,'TR','TURQUIA'),(227,'TV','TUVALU'),(228,'UA','UCRANIA'),(229,'UG','UGANDA'),(230,'UM','ULTRAMARINAS DE ESTADOS UNIDOS (ISLAS)'),(231,'UY','URUGUAY'),(232,'UZ','UZBEKISTAN'),(233,'VU','VANUATU'),(234,'VA','VATICANO'),(235,'VE','VENEZUELA'),(236,'VN','VIETNAM'),(237,'VG','VIRGENES BRITANICAS (ISLAS)'),(238,'VI','VIRGENES DE EEUU (ISLAS)'),(239,'WF','WALLIS Y FUTUNA (ISLAS)'),(240,'YE','YEMEN (REP. DEL)'),(241,'ZM','ZAMBIA'),(242,'ZW','ZIMBABWE (ANTIGUA RHODESIA)');

--
-- Table structure for table `typeCountry`
--

CREATE TABLE `typeCountry` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `iso_code` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `active` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCountry`
--

INSERT INTO `typeCountry` VALUES ('1','España','ES',1),('10','Antigua y Barbuda','AG',1),('100','Isla de Man','IM',1),('101','Isla de Navidad','CX',1),('102','Isla Norfolk','NF',1),('103','Islandia','IS',1),('104','Islas Bermudas','BM',1),('105','Islas Caimán','KY',1),('106','Islas Cocos (Keeling)','CC',1),('107','Islas Cook','CK',1),('108','Islas de Åland','AX',1),('109','Islas Feroe','FO',1),('11','Antillas Neerlandesas','AN',1),('110','Islas Georgias del Sur y Sandwich del Sur','GS',1),('111','Islas Heard y McDonald','HM',1),('112','Islas Maldivas','MV',1),('113','Islas Malvinas','FK',1),('114','Islas Marianas del Norte','MP',1),('115','Islas Marshall','MH',1),('116','Islas Pitcairn','PN',1),('117','Islas Salomón','SB',1),('118','Islas Turcas y Caicos','TC',1),('119','Islas Ultramarinas Menores de Estados Unidos','UM',1),('12','Arabia Saudita','SA',1),('120','Islas Vírgenes Británicas','VG',1),('121','Islas Vírgenes de los Estados Unidos','VI',1),('122','Israel','IL',1),('123','Italia','IT',1),('124','Jamaica','JM',1),('125','Japón','JP',1),('126','Jersey','JE',1),('127','Jordania','JO',1),('128','Kazajistán','KZ',1),('129','Kenia','KE',1),('13','Argentina','AR',1),('130','Kirgizstán','KG',1),('131','Kiribati','KI',1),('132','Kuwait','KW',1),('133','Líbano','LB',1),('134','Laos','LA',1),('135','Lesoto','LS',1),('136','Letonia','LV',1),('137','Liberia','LR',1),('138','Libia','LY',1),('139','Liechtenstein','LI',1),('14','Armenia','AM',1),('140','Lituania','LT',1),('141','Luxemburgo','LU',1),('142','México','MX',1),('143','Mónaco','MC',1),('144','Macao','MO',1),('145','Macedônia','MK',1),('146','Madagascar','MG',1),('147','Malasia','MY',1),('148','Malawi','MW',1),('149','Mali','ML',1),('15','Aruba','AW',1),('150','Malta','MT',1),('151','Marruecos','MA',1),('152','Martinica','MQ',1),('153','Mauricio','MU',1),('154','Mauritania','MR',1),('155','Mayotte','YT',1),('156','Micronesia','FM',1),('157','Moldavia','MD',1),('158','Mongolia','MN',1),('159','Montenegro','ME',1),('16','Australia','AU',1),('160','Montserrat','MS',1),('161','Mozambique','MZ',1),('162','Namibia','NA',1),('163','Nauru','NR',1),('164','Nepal','NP',1),('165','Nicaragua','NI',1),('166','Niger','NE',1),('167','Nigeria','NG',1),('168','Niue','NU',1),('169','Noruega','NO',1),('17','Austria','AT',1),('170','Nueva Caledonia','NC',1),('171','Nueva Zelanda','NZ',1),('172','Omán','OM',1),('173','Países Bajos','NL',1),('174','Pakistán','PK',1),('175','Palau','PW',1),('176','Palestina','PS',1),('177','Panamá','PA',1),('178','Papúa Nueva Guinea','PG',1),('179','Paraguay','PY',1),('18','Azerbayán','AZ',1),('180','Perú','PE',1),('181','Polinesia Francesa','PF',1),('182','Polonia','PL',1),('183','Portugal','PT',1),('184','Puerto Rico','PR',1),('185','Qatar','QA',1),('186','Reino Unido','GB',1),('187','República Centroafricana','CF',1),('188','República Checa','CZ',1),('189','República Dominicana','DO',1),('19','Bélgica','BE',1),('190','Reunión','RE',1),('191','Ruanda','RW',1),('192','Rumanía','RO',1),('193','Rusia','RU',1),('194','Sahara Occidental','EH',1),('195','Samoa','WS',1),('196','Samoa Americana','AS',1),('197','San Bartolomé','BL',1),('198','San Cristóbal y Nieves','KN',1),('199','San Marino','SM',1),('2','Afganistán','AF',1),('20','Bahamas','BS',1),('200','San Martín (Francia)','MF',1),('201','San Pedro y Miquelón','PM',1),('202','San Vicente y las Granadinas','VC',1),('203','Santa Elena','SH',1),('204','Santa Lucía','LC',1),('205','Santo Tomé y Príncipe','ST',1),('206','Senegal','SN',1),('207','Serbia','RS',1),('208','Seychelles','SC',1),('209','Sierra Leona','SL',1),('21','Bahrein','BH',1),('210','Singapur','SG',1),('211','Siria','SY',1),('212','Somalia','SO',1),('213','Sri lanka','LK',1),('214','Sudáfrica','ZA',1),('215','Sudán','SD',1),('216','Suecia','SE',1),('217','Suiza','CH',1),('218','Surinám','SR',1),('219','Svalbard y Jan Mayen','SJ',1),('22','Bangladesh','BD',1),('220','Swazilandia','SZ',1),('221','Tadjikistán','TJ',1),('222','Tailandia','TH',1),('223','Taiwán','TW',1),('224','Tanzania','TZ',1),('225','Territorio Británico del Océano Índico','IO',1),('226','Territorios Australes y Antárticas Franceses','TF',1),('227','Timor Oriental','TL',1),('228','Togo','TG',1),('229','Tokelau','TK',1),('23','Barbados','BB',1),('230','Tonga','TO',1),('231','Trinidad y Tobago','TT',1),('232','Tunez','TN',1),('233','Turkmenistán','TM',1),('234','Turquía','TR',1),('235','Tuvalu','TV',1),('236','Ucrania','UA',1),('237','Uganda','UG',1),('238','Uruguay','UY',1),('239','Uzbekistán','UZ',1),('24','Belice','BZ',1),('240','Vanuatu','VU',1),('241','Venezuela','VE',1),('242','Vietnam','VN',1),('243','Wallis y Futuna','WF',1),('244','Yemen','YE',1),('245','Yibuti','DJ',1),('246','Zambia','ZM',1),('247','Zimbabue','ZW',1),('25','Benín','BJ',1),('26','Bhután','BT',1),('27','Bielorrusia','BY',1),('28','Birmania','MM',1),('29','Bolivia','BO',1),('3','Albania','AL',1),('30','Bosnia y Herzegovina','BA',1),('31','Botsuana','BW',1),('32','Brasil','BR',1),('33','Brunéi','BN',1),('34','Bulgaria','BG',1),('35','Burkina Faso','BF',1),('36','Burundi','BI',1),('37','Cabo Verde','CV',1),('38','Camboya','KH',1),('39','Camerún','CM',1),('4','Alemania','DE',1),('40','Canadá','CA',1),('41','Chad','TD',1),('42','Chile','CL',1),('43','China','CN',1),('44','Chipre','CY',1),('45','Ciudad del Vaticano','VA',1),('46','Colombia','CO',1),('47','Comoras','KM',1),('48','Congo','CG',1),('49','Congo','CD',1),('5','Algeria','DZ',1),('50','Corea del Norte','KP',1),('51','Corea del Sur','KR',1),('52','Costa de Marfil','CI',1),('53','Costa Rica','CR',1),('54','Croacia','HR',1),('55','Cuba','CU',1),('56','Dinamarca','DK',1),('57','Dominica','DM',1),('58','Ecuador','EC',1),('59','Egipto','EG',1),('6','Andorra','AD',1),('60','El Salvador','SV',1),('61','Emiratos Árabes Unidos','AE',1),('62','Eritrea','ER',1),('63','Eslovaquia','SK',1),('64','Eslovenia','SI',1),('66','Estados Unidos de América','US',1),('67','Estonia','EE',1),('68','Etiopía','ET',1),('69','Filipinas','PH',1),('7','Angola','AO',1),('70','Finlandia','FI',1),('71','Fiyi','FJ',1),('72','Francia','FR',1),('73','Gabón','GA',1),('74','Gambia','GM',1),('75','Georgia','GE',1),('76','Ghana','GH',1),('77','Gibraltar','GI',1),('78','Granada','GD',1),('79','Grecia','GR',1),('8','Anguila','AI',1),('80','Groenlandia','GL',1),('81','Guadalupe','GP',1),('82','Guam','GU',1),('83','Guatemala','GT',1),('84','Guayana Francesa','GF',1),('85','Guernsey','GG',1),('86','Guinea','GN',1),('87','Guinea Ecuatorial','GQ',1),('88','Guinea-Bissau','GW',1),('89','Guyana','GY',1),('9','Antártida','AQ',1),('90','Haití','HT',1),('91','Honduras','HN',1),('92','Hong kong','HK',1),('93','Hungría','HU',1),('94','India','IN',1),('95','Indonesia','ID',1),('96','Irán','IR',1),('97','Irak','IQ',1),('98','Irlanda','IE',1),('99','Isla Bouvet','BV',1);

--
-- Table structure for table `typeCountryGlobal`
--

CREATE TABLE `typeCountryGlobal` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCountryGlobal`
--

INSERT INTO `typeCountryGlobal` VALUES (1,'España',1),(2,'Afganistán',1),(3,'Albania',1),(4,'Alemania',1),(5,'Algeria',1),(6,'Andorra',1),(7,'Angola',1),(8,'Anguila',1),(9,'Antártida',1),(10,'Antigua y Barbuda',1),(11,'Antillas Neerlandesas',1),(12,'Arabia Saudita',1),(13,'Argentina',1),(14,'Armenia',1),(15,'Aruba',1),(16,'Australia',1),(17,'Austria',1),(18,'Azerbayán',1),(19,'Bélgica',1),(20,'Bahamas',1),(21,'Bahrein',1),(22,'Bangladesh',1),(23,'Barbados',1),(24,'Belice',1),(25,'Benín',1),(26,'Bhután',1),(27,'Bielorrusia',1),(28,'Birmania',1),(29,'Bolivia',1),(30,'Bosnia y Herzegovina',1),(31,'Botsuana',1),(32,'Brasil',1),(33,'Brunéi',1),(34,'Bulgaria',1),(35,'Burkina Faso',1),(36,'Burundi',1),(37,'Cabo Verde',1),(38,'Camboya',1),(39,'Camerún',1),(40,'Canadá',1),(41,'Chad',1),(42,'Chile',1),(43,'China',1),(44,'Chipre',1),(45,'Ciudad del Vaticano',1),(46,'Colombia',1),(47,'Comoras',1),(48,'Congo',1),(49,'Congo',1),(50,'Corea del Norte',1),(51,'Corea del Sur',1),(52,'Costa de Marfil',1),(53,'Costa Rica',1),(54,'Croacia',1),(55,'Cuba',1),(56,'Dinamarca',1),(57,'Dominica',1),(58,'Ecuador',1),(59,'Egipto',1),(60,'El Salvador',1),(61,'Emiratos Árabes Unidos',1),(62,'Eritrea',1),(63,'Eslovaquia',1),(64,'Eslovenia',1),(66,'Estados Unidos de América',1),(67,'Estonia',1),(68,'Etiopía',1),(69,'Filipinas',1),(70,'Finlandia',1),(71,'Fiyi',1),(72,'Francia',1),(73,'Gabón',1),(74,'Gambia',1),(75,'Georgia',1),(76,'Ghana',1),(77,'Gibraltar',1),(78,'Granada',1),(79,'Grecia',1),(80,'Groenlandia',1),(81,'Guadalupe',1),(82,'Guam',1),(83,'Guatemala',1),(84,'Guayana Francesa',1),(85,'Guernsey',1),(86,'Guinea',1),(87,'Guinea Ecuatorial',1),(88,'Guinea-Bissau',1),(89,'Guyana',1),(90,'Haití',1),(91,'Honduras',1),(92,'Hong kong',1),(93,'Hungría',1),(94,'India',1),(95,'Indonesia',1),(96,'Irán',1),(97,'Irak',1),(98,'Irlanda',1),(99,'Isla Bouvet',1),(100,'Isla de Man',1),(101,'Isla de Navidad',1),(102,'Isla Norfolk',1),(103,'Islandia',1),(104,'Islas Bermudas',1),(105,'Islas Caimán',1),(106,'Islas Cocos (Keeling)',1),(107,'Islas Cook',1),(108,'Islas de Åland',1),(109,'Islas Feroe',1),(110,'Islas Georgias del Sur y Sandwich del Sur',1),(111,'Islas Heard y McDonald',1),(112,'Islas Maldivas',1),(113,'Islas Malvinas',1),(114,'Islas Marianas del Norte',1),(115,'Islas Marshall',1),(116,'Islas Pitcairn',1),(117,'Islas Salomón',1),(118,'Islas Turcas y Caicos',1),(119,'Islas Ultramarinas Menores de Estados Unidos',1),(120,'Islas Vírgenes Británicas',1),(121,'Islas Vírgenes de los Estados Unidos',1),(122,'Israel',1),(123,'Italia',1),(124,'Jamaica',1),(125,'Japón',1),(126,'Jersey',1),(127,'Jordania',1),(128,'Kazajistán',1),(129,'Kenia',1),(130,'Kirgizstán',1),(131,'Kiribati',1),(132,'Kuwait',1),(133,'Líbano',1),(134,'Laos',1),(135,'Lesoto',1),(136,'Letonia',1),(137,'Liberia',1),(138,'Libia',1),(139,'Liechtenstein',1),(140,'Lituania',1),(141,'Luxemburgo',1),(142,'México',1),(143,'Mónaco',1),(144,'Macao',1),(145,'Macedônia',1),(146,'Madagascar',1),(147,'Malasia',1),(148,'Malawi',1),(149,'Mali',1),(150,'Malta',1),(151,'Marruecos',1),(152,'Martinica',1),(153,'Mauricio',1),(154,'Mauritania',1),(155,'Mayotte',1),(156,'Micronesia',1),(157,'Moldavia',1),(158,'Mongolia',1),(159,'Montenegro',1),(160,'Montserrat',1),(161,'Mozambique',1),(162,'Namibia',1),(163,'Nauru',1),(164,'Nepal',1),(165,'Nicaragua',1),(166,'Niger',1),(167,'Nigeria',1),(168,'Niue',1),(169,'Noruega',1),(170,'Nueva Caledonia',1),(171,'Nueva Zelanda',1),(172,'Omán',1),(173,'Países Bajos',1),(174,'Pakistán',1),(175,'Palau',1),(176,'Palestina',1),(177,'Panamá',1),(178,'Papúa Nueva Guinea',1),(179,'Paraguay',1),(180,'Perú',1),(181,'Polinesia Francesa',1),(182,'Polonia',1),(183,'Portugal',1),(184,'Puerto Rico',1),(185,'Qatar',1),(186,'Reino Unido',1),(187,'República Centroafricana',1),(188,'República Checa',1),(189,'República Dominicana',1),(190,'Reunión',1),(191,'Ruanda',1),(192,'Rumanía',1),(193,'Rusia',1),(194,'Sahara Occidental',1),(195,'Samoa',1),(196,'Samoa Americana',1),(197,'San Bartolomé',1),(198,'San Cristóbal y Nieves',1),(199,'San Marino',1),(200,'San Martín (Francia)',1),(201,'San Pedro y Miquelón',1),(202,'San Vicente y las Granadinas',1),(203,'Santa Elena',1),(204,'Santa Lucía',1),(205,'Santo Tomé y Príncipe',1),(206,'Senegal',1),(207,'Serbia',1),(208,'Seychelles',1),(209,'Sierra Leona',1),(210,'Singapur',1),(211,'Siria',1),(212,'Somalia',1),(213,'Sri lanka',1),(214,'Sudáfrica',1),(215,'Sudán',1),(216,'Suecia',1),(217,'Suiza',1),(218,'Surinám',1),(219,'Svalbard y Jan Mayen',1),(220,'Swazilandia',1),(221,'Tadjikistán',1),(222,'Tailandia',1),(223,'Taiwán',1),(224,'Tanzania',1),(225,'Territorio Británico del Océano Índico',1),(226,'Territorios Australes y Antárticas Franceses',1),(227,'Timor Oriental',1),(228,'Togo',1),(229,'Tokelau',1),(230,'Tonga',1),(231,'Trinidad y Tobago',1),(232,'Tunez',1),(233,'Turkmenistán',1),(234,'Turquía',1),(235,'Tuvalu',1),(236,'Ucrania',1),(237,'Uganda',1),(238,'Uruguay',1),(239,'Uzbekistán',1),(240,'Vanuatu',1),(241,'Venezuela',1),(242,'Vietnam',1),(243,'Wallis y Futuna',1),(244,'Yemen',1),(245,'Yibuti',1),(246,'Zambia',1),(247,'Zimbabue',1),(248,'Croacia',1);

--
-- Table structure for table `typeCountryUE`
--

CREATE TABLE `typeCountryUE` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=217 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCountryUE`
--

INSERT INTO `typeCountryUE` VALUES (1,'España',0),(4,'Alemania',0),(17,'Austria',0),(19,'Bélgica',0),(34,'Bulgaria',0),(44,'Chipre',0),(54,'Croacia',0),(56,'Dinamarca',0),(63,'Eslovaquia',0),(64,'Eslovenia',0),(67,'Estonia',0),(70,'Finlandia',0),(72,'Francia',0),(79,'Grecia',0),(93,'Hungría',0),(98,'Irlanda',0),(123,'Italia',0),(136,'Letonia',0),(140,'Lituania',0),(141,'Luxemburgo',0),(150,'Malta',0),(173,'Países Bajos',0),(182,'Polonia',0),(183,'Portugal',0),(186,'Reunio Unido',0),(188,'República Checa',0),(192,'Rumanía',0),(216,'Suecia',0);

--
-- Table structure for table `typeCustomer`
--

CREATE TABLE `typeCustomer` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCustomer`
--

INSERT INTO `typeCustomer` VALUES (1,'Persona física'),(2,'Empresa');

--
-- Table structure for table `typeCustomerSource`
--

CREATE TABLE `typeCustomerSource` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeCustomerSource`
--

INSERT INTO `typeCustomerSource` VALUES (1,'Punto de venta'),(2,'Pedido web');

--
-- Table structure for table `typeDealer`
--

CREATE TABLE `typeDealer` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealer`
--

INSERT INTO `typeDealer` VALUES (1,'Distribuidor'),(2,'Almacenista'),(3,'Importador'),(4,'Fabricante');

--
-- Table structure for table `typeDealerAgent`
--

CREATE TABLE `typeDealerAgent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealerAgent`
--

INSERT INTO `typeDealerAgent` VALUES (1,'Interno'),(2,'Externo');

--
-- Table structure for table `typeDealerCarrier`
--

CREATE TABLE `typeDealerCarrier` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealerCarrier`
--


--
-- Table structure for table `typeDealerCountry`
--

CREATE TABLE `typeDealerCountry` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealerCountry`
--


--
-- Table structure for table `typeDealerDiscount`
--

CREATE TABLE `typeDealerDiscount` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealerDiscount`
--

INSERT INTO `typeDealerDiscount` VALUES (1,'Porcentaje'),(2,'Importe');

--
-- Table structure for table `typeDealerPayment`
--

CREATE TABLE `typeDealerPayment` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealerPayment`
--

INSERT INTO `typeDealerPayment` VALUES (1,'Metálico'),(2,'Cargo en cuenta'),(3,'Transferencia');

--
-- Table structure for table `typeDealerTax`
--

CREATE TABLE `typeDealerTax` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDealerTax`
--


--
-- Table structure for table `typeDiscount`
--

CREATE TABLE `typeDiscount` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDiscount`
--

INSERT INTO `typeDiscount` VALUES (1,'Porcentaje'),(2,'Precio final');

--
-- Table structure for table `typeDocuments`
--

CREATE TABLE `typeDocuments` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeDocuments`
--

INSERT INTO `typeDocuments` VALUES (1,'Notificación'),(2,'Confirmación'),(3,'Devolución'),(4,'Otros'),(5,'Factura'),(6,'Presupuesto');

--
-- Table structure for table `typeFillingGaps`
--

CREATE TABLE `typeFillingGaps` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeFillingGaps`
--

INSERT INTO `typeFillingGaps` VALUES (1,'Proceso normal de reparto'),(2,'Repartir sólo si se ha vendido ya en esa tienda en esa talla'),(4,'Repartir en primer lugar sólo si se ha vendido en esa tienda y continuar repartiendo a resto de tiendas.'),(5,'Reponer unidades vendidas'),(6,'Ordenar tiendas de salida según ventas de menor a mayor. Repartir en primer lugar sólo si se ha vendido en esa tienda y continuar repartiendo a resto de tiendas.');

--
-- Table structure for table `typeFiltersPositionComponent`
--

CREATE TABLE `typeFiltersPositionComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeFiltersPositionComponent`
--

INSERT INTO `typeFiltersPositionComponent` VALUES (1,'A un lado'),(2,'Arriba');

--
-- Table structure for table `typeFontWebsiteComponent`
--

CREATE TABLE `typeFontWebsiteComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cdn` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `css_rules` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeFontWebsiteComponent`
--

INSERT INTO `typeFontWebsiteComponent` VALUES (1,'Montserrat',' <link href=\"https://fonts.googleapis.com/css?family=Montserrat\" rel=\"stylesheet\"> ','font-family: \'Montserrat\', sans-serif !important;'),(2,'Mukta','<link href=\"https://fonts.googleapis.com/css?family=Mukta\" rel=\"stylesheet\"> ','font-family: \'Mukta\', sans-serif !important;'),(3,'Work Sans','<link href=\"https://fonts.googleapis.com/css?family=Work+Sans\" rel=\"stylesheet\"> ','font-family: \'Work Sans\', sans-serif !important;'),(4,'Roboto','<link href=\"https://fonts.googleapis.com/css?family=Roboto\" rel=\"stylesheet\"> ','font-family: \'Roboto\', sans-serif !important;'),(5,'Roboto Condensed',' <link href=\"https://fonts.googleapis.com/css?family=Roboto+Condensed\" rel=\"stylesheet\"> ','font-family: \'Roboto Condensed\', sans-serif !important;'),(6,'Roboto Slab','<link href=\"https://fonts.googleapis.com/css?family=Roboto+Slab\" rel=\"stylesheet\"> ','font-family: \'Roboto Slab\', serif !important;'),(7,'Open Sans','<link href=\"https://fonts.googleapis.com/css?family=Open+Sans\" rel=\"stylesheet\"> ','font-family: \'Open Sans\', sans-serif !important;'),(8,'Open Sans Condensed','<link href=\"https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300\" rel=\"stylesheet\"> ','font-family: \'Open Sans Condensed\', sans-serif !important;'),(9,'Dosis','<link href=\"https://fonts.googleapis.com/css?family=Dosis\" rel=\"stylesheet\"> ','font-family: \'Dosis\', sans-serif !important;'),(10,'Raleway','<link href=\"https://fonts.googleapis.com/css?family=Raleway\" rel=\"stylesheet\">','font-family: \'Raleway\', sans-serif !important;'),(11,'Lato','<link href=\"https://fonts.googleapis.com/css?family=Lato\" rel=\"stylesheet\">','font-family: \'Lato\', sans-serif !important;'),(12,'Ubuntu','<link href=\"https://fonts.googleapis.com/css?family=Ubuntu\" rel=\"stylesheet\">','font-family: \'Ubuntu\', sans-serif !important;'),(13,'Ubuntu Condensed','<link href=\"https://fonts.googleapis.com/css?family=Ubuntu+Condensed\" rel=\"stylesheet\">','font-family: \'Ubuntu Condensed\', sans-serif !important;'),(14,'Nunito','<link href=\"https://fonts.googleapis.com/css?family=Nunito\" rel=\"stylesheet\">','font-family: \'Nunito\', sans-serif !important;'),(15,'Nunito Sans','<link href=\"https://fonts.googleapis.com/css?family=Nunito+Sans\" rel=\"stylesheet\">','font-family: \'Nunito Sans\', sans-serif !important;');

--
-- Table structure for table `typeHorizontalPositionSearcherComponent`
--

CREATE TABLE `typeHorizontalPositionSearcherComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeHorizontalPositionSearcherComponent`
--

INSERT INTO `typeHorizontalPositionSearcherComponent` VALUES (1,'Izquierda'),(2,'Derecha');

--
-- Table structure for table `typeIncidence`
--

CREATE TABLE `typeIncidence` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeIncidence`
--

INSERT INTO `typeIncidence` VALUES (1,'Reparación'),(2,'Mal estado');

--
-- Table structure for table `typeIncidenceStatus`
--

CREATE TABLE `typeIncidenceStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeIncidenceStatus`
--

INSERT INTO `typeIncidenceStatus` VALUES (1,'Abierta','danger'),(5,'Con devoluciones asociadas','purple'),(10,'Cerrada','green-300');

--
-- Table structure for table `typeInfoSubsectionPositionComponent`
--

CREATE TABLE `typeInfoSubsectionPositionComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeInfoSubsectionPositionComponent`
--

INSERT INTO `typeInfoSubsectionPositionComponent` VALUES (1,'Superior'),(2,'Intermedio'),(3,'Inferior');

--
-- Table structure for table `typeLabel`
--

CREATE TABLE `typeLabel` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeLabel`
--

INSERT INTO `typeLabel` VALUES (1,'Caja'),(2,'Zapato'),(3,'Escaparate');

--
-- Table structure for table `typeNavbarComponent`
--

CREATE TABLE `typeNavbarComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeNavbarComponent`
--

INSERT INTO `typeNavbarComponent` VALUES (1,'Enlace a banner 1/3'),(2,'Enlace a secciones');

--
-- Table structure for table `typeOrder`
--

CREATE TABLE `typeOrder` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `is_initial` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_BEC2098FFE54D947` (`group_id`),
  CONSTRAINT `FK_BEC2098FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeOrder`
--

INSERT INTO `typeOrder` VALUES ('471070-57f5-4d61-be10-d11608aae9bb','471070-b212-4109-894e-d6283fe29e74','INICIAL',1),('471070-ad86-4da1-99ae-792497db5847','471070-b212-4109-894e-d6283fe29e74','REPOSICIÓN',0);

--
-- Table structure for table `typePaper`
--

CREATE TABLE `typePaper` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePaper`
--

INSERT INTO `typePaper` VALUES (1,'Continuo (sin espacio entre etiquetas)'),(2,'Discontinuo (con espacio entre etiquetas)');

--
-- Table structure for table `typePaperSize`
--

CREATE TABLE `typePaperSize` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePaperSize`
--

INSERT INTO `typePaperSize` VALUES (1,'A4'),(2,'Carta'),(3,'Ejecutivo'),(4,'A5'),(5,'A6'),(6,'B5'),(7,'B6');

--
-- Table structure for table `typePayment`
--

CREATE TABLE `typePayment` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePayment`
--


--
-- Table structure for table `typePlatformHeight`
--

CREATE TABLE `typePlatformHeight` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePlatformHeight`
--

INSERT INTO `typePlatformHeight` VALUES ('1','1'),('10','10'),('11','11'),('12','12'),('13','13'),('14','14'),('15','15'),('16','16'),('17','17'),('18','18'),('2','2'),('3','3'),('4','4'),('5','5'),('6','6'),('7','7'),('8','8'),('9','9');

--
-- Table structure for table `typePrintConfigurationOrder`
--

CREATE TABLE `typePrintConfigurationOrder` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePrintConfigurationOrder`
--

INSERT INTO `typePrintConfigurationOrder` VALUES (1,'Impresión con desglose por tiendas'),(2,'Impresión sin desglose por tiendas');

--
-- Table structure for table `typePrintOrder`
--

CREATE TABLE `typePrintOrder` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePrintOrder`
--

INSERT INTO `typePrintOrder` VALUES (1,'Standard','clac-clac-placeholder.png'),(2,'Express','clac-clac-placeholder.png');

--
-- Table structure for table `typePrinter`
--

CREATE TABLE `typePrinter` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePrinter`
--

INSERT INTO `typePrinter` VALUES (1,'Impresora'),(2,'Etiquetadora');

--
-- Table structure for table `typePrinterSuggestion`
--

CREATE TABLE `typePrinterSuggestion` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typePrinterSuggestion`
--

INSERT INTO `typePrinterSuggestion` VALUES (1,'Impresora'),(2,'Etiquetadora'),(3,'Impresora y Etiquetadora');

--
-- Table structure for table `typeProvinces`
--

CREATE TABLE `typeProvinces` (
  `id` int NOT NULL AUTO_INCREMENT,
  `type_country_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `active` tinyint(1) NOT NULL,
  `zip_code` varchar(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_ED582C68E42CE855` (`type_country_id`),
  CONSTRAINT `FK_ED582C68E42CE855` FOREIGN KEY (`type_country_id`) REFERENCES `typeCountry` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeProvinces`
--

INSERT INTO `typeProvinces` VALUES (1,NULL,'A Coruña',0,'15'),(2,NULL,'Álava',0,'01'),(3,NULL,'Albacete',0,'02'),(4,NULL,'Alicante',0,'03'),(5,NULL,'Almería',0,'04'),(6,NULL,'Asturias',0,'33'),(7,NULL,'Ávila',0,'05'),(8,NULL,'Badajoz',0,'06'),(9,NULL,'Baleares',0,'07'),(10,NULL,'Barcelona',0,'08'),(11,NULL,'Burgos',0,'09'),(12,NULL,'Cáceres',0,'10'),(13,NULL,'Cádiz',0,'11'),(14,NULL,'Cantabria',0,'39'),(15,NULL,'Castellón',0,'12'),(16,NULL,'Ciudad Real',0,'13'),(17,NULL,'Córdoba',0,'14'),(18,NULL,'Cuenca',0,'16'),(19,NULL,'Girona',0,'17'),(20,NULL,'Granada',0,'18'),(21,NULL,'Guadalajara',0,'19'),(22,NULL,'Guipuzkoa',0,'20'),(23,NULL,'Huelva',0,'21'),(24,NULL,'Huesca',0,'22'),(25,NULL,'Jaén',0,'23'),(26,NULL,'La Rioja',0,'26'),(27,NULL,'Las Palmas',0,'35'),(28,NULL,'León',0,'24'),(29,NULL,'Lérida',0,'25'),(30,NULL,'Lugo',0,'27'),(31,NULL,'Madrid',0,'28'),(32,NULL,'Málaga',0,'29'),(33,NULL,'Murcia',0,'30'),(34,NULL,'Navarra',0,'31'),(35,'1','Ourense',1,'32'),(36,NULL,'Palencia',0,'34'),(37,NULL,'Pontevedra',0,'36'),(38,NULL,'Salamanca',0,'37'),(39,NULL,'Segovia',0,'40'),(40,NULL,'Sevilla',0,'41'),(41,NULL,'Soria',0,'42'),(42,NULL,'Tarragona',0,'43'),(43,NULL,'Santa Cruz de Tenerife',0,'38'),(44,NULL,'Teruel',0,'44'),(45,NULL,'Toledo',0,'45'),(46,NULL,'Valencia',0,'46'),(47,NULL,'Valladolid',0,'47'),(48,NULL,'Vizcaya',0,'48'),(49,NULL,'Zamora',0,'49'),(50,NULL,'Zaragoza',0,'50'),(51,NULL,'Ceuta',0,'51'),(52,NULL,'Melilla',0,'52');

--
-- Table structure for table `typeReport`
--

CREATE TABLE `typeReport` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeReport`
--

INSERT INTO `typeReport` VALUES ('1','Ventas','report.png'),('2','Compras','report.png'),('3','Rentabilidad','report.png'),('4','Sell in Sell Out','report.png'),('5','Beneficio','report.png'),('6','Valoración histórica de stock','report.png'),('7','Sell Out (Tallas)','report.png'),('8','Informe actual por estados','report.png'),('9','Ventas en canales online','report.png');

--
-- Table structure for table `typeReportGrouped`
--

CREATE TABLE `typeReportGrouped` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeReportGrouped`
--

INSERT INTO `typeReportGrouped` VALUES ('1','Marca','report.png'),('10','Rebajas','report.png'),('11','Meses','report.png'),('12','Años','report.png'),('13','Tiendas','report.png'),('14','Modelo, Color, Talla','report.png'),('15','Stock','report.png'),('16','Subcategoría','report.png'),('2','Temporada','report.png'),('3','Proveedor','report.png'),('4','Sección','report.png'),('5','Categoría','report.png'),('6','Serie','report.png'),('7','Talla','report.png'),('8','Tipo de artículo','report.png'),('9','Artículo','report.png');

--
-- Table structure for table `typeReportTemplate`
--

CREATE TABLE `typeReportTemplate` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeReportTemplate`
--

INSERT INTO `typeReportTemplate` VALUES ('1','Usar las fechas selecionadas en el informe'),('2','Usar un número de días desde hoy hacia atrás');

--
-- Table structure for table `typeSEOText`
--

CREATE TABLE `typeSEOText` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSEOText`
--

INSERT INTO `typeSEOText` VALUES ('1','Home',NULL),('2','Sección',NULL),('3','Categoría',NULL),('4','Subcategoría',NULL);

--
-- Table structure for table `typeSEOTextPlacement`
--

CREATE TABLE `typeSEOTextPlacement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSEOTextPlacement`
--

INSERT INTO `typeSEOTextPlacement` VALUES ('1','Arriba',NULL),('2','Abajo',NULL);

--
-- Table structure for table `typeSaleDiscount`
--

CREATE TABLE `typeSaleDiscount` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSaleDiscount`
--

INSERT INTO `typeSaleDiscount` VALUES ('1','Porcentaje'),('2','Importe final'),('3','Restar cantidad');

--
-- Table structure for table `typeSaleElementStatus`
--

CREATE TABLE `typeSaleElementStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSaleElementStatus`
--

INSERT INTO `typeSaleElementStatus` VALUES (1,'Vender al cliente'),(10,'Devuelto por el cliente');

--
-- Table structure for table `typeSalePayment`
--

CREATE TABLE `typeSalePayment` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSalePayment`
--

INSERT INTO `typeSalePayment` VALUES (1,'Metálico'),(2,'Tarjeta de crédito'),(3,'Tarjeta regalo'),(4,'Trasferencia bancaria');

--
-- Table structure for table `typeSalePaymentWhoPay`
--

CREATE TABLE `typeSalePaymentWhoPay` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSalePaymentWhoPay`
--

INSERT INTO `typeSalePaymentWhoPay` VALUES (1,'El cliente paga a la tienda'),(2,'La tienda devuelve al cliente');

--
-- Table structure for table `typeSeason`
--

CREATE TABLE `typeSeason` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSeason`
--

INSERT INTO `typeSeason` VALUES (1,'Primavera - Verano'),(2,'Otoño - Invierno'),(3,'Continuidad');

--
-- Table structure for table `typeSeasonSaleComponent`
--

CREATE TABLE `typeSeasonSaleComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSeasonSaleComponent`
--

INSERT INTO `typeSeasonSaleComponent` VALUES (1,'Selector'),(2,'Todas las opciones visibles');

--
-- Table structure for table `typeSectionComponent`
--

CREATE TABLE `typeSectionComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSectionComponent`
--

INSERT INTO `typeSectionComponent` VALUES (1,'Selector'),(2,'Todas las secciones visibles');

--
-- Table structure for table `typeShoeWidth`
--

CREATE TABLE `typeShoeWidth` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeShoeWidth`
--

INSERT INTO `typeShoeWidth` VALUES ('1','Extra ancho'),('2','Ancho'),('3','Estrecho'),('4','Normal');

--
-- Table structure for table `typeShop`
--

CREATE TABLE `typeShop` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeShop`
--

INSERT INTO `typeShop` VALUES (1,'Tienda'),(2,'Almacén'),(3,'Tienda/Almacén');

--
-- Table structure for table `typeSize`
--

CREATE TABLE `typeSize` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_188E744FFE54D947` (`group_id`),
  KEY `description_idx` (`description`),
  CONSTRAINT `FK_188E744FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSize`
--

INSERT INTO `typeSize` VALUES ('2cdd8339-b069-4d6c-ba48-2b59e840a689','471070-b212-4109-894e-d6283fe29e74','S'),('58e6b3f3-9b1b-4d16-b836-8751ae30fad6','471070-b212-4109-894e-d6283fe29e74','XL'),('6ece4b15-3842-451c-8d40-3433164a0e08','471070-b212-4109-894e-d6283fe29e74','M'),('794cc6a7-803d-459b-9773-276cb8c8d280','471070-b212-4109-894e-d6283fe29e74','L');

--
-- Table structure for table `typeSizeComponent`
--

CREATE TABLE `typeSizeComponent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSizeComponent`
--

INSERT INTO `typeSizeComponent` VALUES (1,'Selector'),(2,'Todas las tallas visibles');

--
-- Table structure for table `typeSizeEquivalence`
--

CREATE TABLE `typeSizeEquivalence` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `size` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `typeSize_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_3633016FFE54D947` (`group_id`),
  KEY `IDX_3633016F5CD41D00` (`typeSize_id`),
  KEY `size` (`size`),
  CONSTRAINT `FK_3633016F5CD41D00` FOREIGN KEY (`typeSize_id`) REFERENCES `typeSize` (`id`),
  CONSTRAINT `FK_3633016FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSizeEquivalence`
--


--
-- Table structure for table `typeSizeOrderEAN`
--

CREATE TABLE `typeSizeOrderEAN` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSizeOrderEAN`
--

INSERT INTO `typeSizeOrderEAN` VALUES ('1','Tallaje original comercial de la marca seleccionada (UK, americano o europeo).'),('2','Tallaje europeo, si no existiera en el pricats automáticamente usar tallaje original.');

--
-- Table structure for table `typeSizeSorted`
--

CREATE TABLE `typeSizeSorted` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `serie_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sort` int DEFAULT NULL,
  `typeSize_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DCE64285CD41D00` (`typeSize_id`),
  KEY `IDX_DCE6428D94388BD` (`serie_id`),
  CONSTRAINT `FK_DCE64285CD41D00` FOREIGN KEY (`typeSize_id`) REFERENCES `typeSize` (`id`),
  CONSTRAINT `FK_DCE6428D94388BD` FOREIGN KEY (`serie_id`) REFERENCES `serie` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSizeSorted`
--

INSERT INTO `typeSizeSorted` VALUES ('51acd9b4-c4e4-4210-9f29-dccd44710972','cc89e992-a73d-49b6-9bd1-4ba472003517',1,'2cdd8339-b069-4d6c-ba48-2b59e840a689'),('a840b10b-d22a-497b-83bc-766f0fa648dc','cc89e992-a73d-49b6-9bd1-4ba472003517',2,'6ece4b15-3842-451c-8d40-3433164a0e08'),('bf035a93-7f99-435e-8552-89d808dbbbb7','cc89e992-a73d-49b6-9bd1-4ba472003517',3,'794cc6a7-803d-459b-9773-276cb8c8d280'),('d3e94aca-0244-45e7-bfed-474d5f930d6d','cc89e992-a73d-49b6-9bd1-4ba472003517',4,'58e6b3f3-9b1b-4d16-b836-8751ae30fad6');

--
-- Table structure for table `typeSpartooCategory`
--

CREATE TABLE `typeSpartooCategory` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=354 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSpartooCategory`
--

INSERT INTO `typeSpartooCategory` VALUES (1,'10036','Alpargatas (Zapatos)'),(2,'10008','Bailarinas-manoletinas (Zapatos)'),(3,'10003','Botas (Zapatos)'),(4,'10011','Botas urbanas (Zapatos)'),(5,'10012','Botas de agua (Zapatos)'),(6,'10021','Botas de nieve (Zapatos)'),(7,'10033','Botas a la rodilla (Zapatos)'),(8,'10013','Botines (Zapatos)'),(9,'10014','Botas de caña baja (Zapatos)'),(10,'10609','Low boots (Zapatos)'),(11,'10044','Chanclas (Zapatos)'),(12,'10019','Fútbol (Zapatos)'),(13,'10020','Rugby (Zapatos)'),(14,'10022','Senderismo (Zapatos)'),(15,'10023','Running / trail (Zapatos)'),(16,'10025','Esquí (Zapatos)'),(17,'10026','Multideporte (Zapatos)'),(18,'10027','Sport Indoor (Zapatos)'),(19,'10028','Tenis (Zapatos)'),(20,'10029','Baloncesto (Zapatos)'),(21,'10031','Equitación (Zapatos)'),(22,'10042','Sandalias de deporte (Zapatos)'),(23,'10570','Zapatos para el agua (Zapatos)'),(24,'10620','Fitness / Training (Zapatos)'),(25,'9845','Ciclismo (Zapatos)'),(26,'10924','Derbie & Richelieu (Zapatos)'),(27,'10034','Derbie (Zapatos)'),(28,'10039','Richelieu (Zapatos)'),(29,'10018','Zapatos náuticos (Zapatos)'),(30,'10037','Mocasín (Zapatos)'),(31,'10016','Pantuflas (Zapatos)'),(32,'10017','Pantuflas para bebé (Zapatos)'),(33,'10041','Sandalias (Zapatos)'),(34,'10024','Zapatos de skate (Zapatos)'),(35,'10043','Slip on (Zapatos)'),(36,'10002','Deportivas Moda (Zapatos)'),(37,'10009','Zapatillas bajas (Zapatos)'),(38,'10010','Zapatillas altas (Zapatos)'),(39,'10525','Zapatos con ruedas (Zapatos)'),(40,'10035','Zapatos de tacón (Zapatos)'),(41,'10015','Zapatos de trabajo (Zapatos)'),(42,'11424','zapatos de seguridad  (Zapatos)'),(43,'11425','sector sanitario  (Zapatos)'),(44,'10038','Zuecos (Mules) (Zapatos)'),(45,'10040','Zuecos (Clogs) (Zapatos)'),(46,'11084','Chanclas (Zapatos)'),(47,'10090','Macuto (Bolsos)'),(48,'10755','Bandolera (Bolsos)'),(49,'10498','Bolsos (Bolsos)'),(50,'10093','Bolso (Bolsos)'),(51,'10596','Bolso para llevar al hombro (Bolsos)'),(52,'10096','Bolso de viaje (Bolsos)'),(53,'10614','Bolso isotérmico (Bolsos)'),(54,'10602','Bolso para pañales (Bolsos)'),(55,'10094','Bolso banana (Bolsos)'),(56,'10678','Bolso pequeño / Cartera (Bolsos)'),(57,'10687','Bolso de fiesta (Bolsos)'),(58,'10676','Bolso shopping (Bolsos)'),(59,'10085','Cartera (Bolsos)'),(60,'10608','Monedero (Bolsos)'),(61,'10611','Cartable (Bolsos)'),(62,'10685','Mochila / Cartera con ruedas (Bolsos)'),(63,'10567','Neceser (Bolsos)'),(64,'10600','Funda ordenador (Bolsos)'),(65,'10598','Funda móvil (Bolsos)'),(66,'10624','Housse de rangement (Bolsos)'),(67,'10098','Maleta (Bolsos)'),(68,'10650','Valise Rigide (Bolsos)'),(69,'10651','Maleta flexible (Bolsos)'),(70,'10657','Pilot Case (Bolsos)'),(71,'10686','Maletín / Portadocumentos (Bolsos)'),(72,'10095','Mochila de deporte (Bolsos)'),(73,'10091','Mochila (Bolsos)'),(74,'10099','Neceser (Bolsos)'),(75,'10639','Trousse de toilette (Bolsos)'),(76,'10050','Abrigos (textil)'),(77,'10773','Plumas (textil)'),(78,'10781','Parkas (textil)'),(79,'10786','Trench (textil)'),(80,'10778','Bañadores (textil)'),(81,'10999','Pareos (textil)'),(82,'9992','Bañador por piezas (textil)'),(83,'9995','Bikini (textil)'),(84,'9996','Bañador (textil)'),(85,'10047','Camisas (textil)'),(86,'10770','Camisas manga corta (textil)'),(87,'10771','Camisas manga larga (textil)'),(88,'9999','Chaquetas (textil)'),(89,'10045','cazadoras (textil)'),(90,'10057','Chaquetas / Americana (textil)'),(91,'10789','Chaquetas de cuero / Polipiel (textil)'),(92,'10790','Chaquetas denim (textil)'),(93,'10800','Cortaviento (textil)'),(94,'9989','Conjunto (textil)'),(95,'11805','Disfraces (textil)'),(96,'10512','Faldas (textil)'),(97,'10053','Jerséis (textil)'),(98,'10695','Chaquetas de punto (textil)'),(99,'10088','Leggings (textil)'),(100,'10792','Monos / Petos (textil)'),(101,'10776','Pantalones de chándal (textil)'),(102,'10788','Chaquetas de deporte (textil)'),(103,'10998','Conjuntos chándal (textil)'),(104,'10004','Pantalones (textil)'),(105,'10061','Pantalones con 5 bolsillos (textil)'),(106,'10772','Pantalones chinos (textil)'),(107,'10779','Pantalones cortos (textil)'),(108,'10797','Pantalones fluidos (textil)'),(109,'10798','Pantalón cargo (textil)'),(110,'9987','Pijama (textil)'),(111,'11655','Albornoz (Casa)'),(112,'11081','Ropa premama (textil)'),(113,'10063','Shorts / Bermudas (textil)'),(114,'10051','Polaire (textil)'),(115,'10054','Sudaderas (textil)'),(116,'11057','Sujetador deportivo  (textil)'),(117,'10065','Túnicas (textil)'),(118,'10511','Tops / Blusas (textil)'),(119,'10001','Tops y Camisetas (textil)'),(120,'10048','Camisetas sin mangas (textil)'),(121,'10052','Polos manga corta (textil)'),(122,'10056','Camisetas manga corta (textil)'),(123,'10697','Camisetas manga larga (textil)'),(124,'10782','Polos manga larga (textil)'),(125,'11061','Trajes y corbatas (textil)'),(126,'11062','Corbatas y accesorios (textil)'),(127,'11063','Chaqueta de traje (textil)'),(128,'11064','Chaleco de traje (textil)'),(129,'11065','Pantalón de traje (textil)'),(130,'11066','Trajes (textil)'),(131,'9998','Vaqueros (textil)'),(132,'10059','Vaqueros rectos (textil)'),(133,'10774','Vaqueros bootcut (textil)'),(134,'10775','Vaqueros slim (textil)'),(135,'10994','Vaqueros slim (textil)'),(136,'10995','Vaqueros ¾ & 7/8 (textil)'),(137,'10996','Vaqueros boyfriend (textil)'),(138,'10000','Vestidos (textil)'),(139,'10062','Vestidos cortos (textil)'),(140,'10784','Vestidos largos (textil)'),(141,'9848','Gafas de sol (Relojes & Joyas)'),(142,'10523','Joyas (Relojes & Joyas)'),(143,'10101','Collar (Relojes & Joyas)'),(144,'10103','Piercing (Relojes & Joyas)'),(145,'10104','Aretes (Relojes & Joyas)'),(146,'10105','Gemelos del puño de la camisa (Relojes & Joyas)'),(147,'10106','Brazalete (Relojes & Joyas)'),(148,'10107','Broches / alfileres (Relojes & Joyas)'),(149,'10108','Conjuntos (Relojes & Joyas)'),(150,'10561','Colgante (Relojes & Joyas)'),(151,'10495','Reloj (Relojes & Joyas)'),(152,'10689','Relojes analógicos (Relojes & Joyas)'),(153,'10691','Relojes digitales (Relojes & Joyas)'),(154,'10693','Relojes mixtos analógico-digital (Relojes & Joyas)'),(155,'10563','Cuelga bolsos (Accesorios textil)'),(156,'10100','Complemento para deporte (Accesorios)'),(157,'10007','Complementos de zapatos (Accesorios)'),(158,'10952','Lengüetas (Accesorios)'),(159,'11180','Cordones (Accesorios)'),(160,'10112','Producto de mantenimiento (Accesorios)'),(161,'10113','Encerado (Accesorios)'),(162,'10114','Impermeabilizante (Accesorios)'),(163,'10633','Porte-clé (Accesorios textil)'),(164,'10078','Cinturones (Accesorios textil)'),(165,'10080','Bufanda (Accesorios textil)'),(166,'10082','Guantes (Accesorios textil)'),(167,'10109','Gorro (Accesorios textil)'),(168,'10110','Gorra (Accesorios textil)'),(169,'10111','Sombrero (Accesorios textil)'),(170,'11587','Mascarilla (Accesorios textil)'),(171,'478','Accesorios belleza > Pinceles (Belleza)'),(172,'479','Accesorios belleza > Tratamiento facial (Belleza)'),(173,'480','Accesorios belleza > Tratamiento para ojos (Belleza)'),(174,'481','Accesorios belleza > Tratamiento capilar (Belleza)'),(175,'482','Accesorios belleza > Tratamiento para uñas (Belleza)'),(176,'483','Accesorios belleza > Tratamiento corporal (Belleza)'),(177,'438','Cremas corporales > Exfoliante & Peeling (Belleza)'),(178,'439','Cremas corporales > Hidratantes & nutritivos (Belleza)'),(179,'440','Cremas corporales > Productos baño (Belleza)'),(180,'441','Cremas corporales > Bio & natural (Belleza)'),(181,'442','Cremas corporales > Tratamiento adelgazante (Belleza)'),(182,'443','Cremas corporales > Desodorantes (Belleza)'),(183,'444','Cremas corporales > Cuidados manos & pies (Belleza)'),(184,'445','Cremas corporales > Protección solar (Belleza)'),(185,'11560','Cuidados Cabello > Coloración (Belleza)'),(186,'475','Cuidados Cabello > Champú (Belleza)'),(187,'476','Cuidados Cabello > Acondicionador (Belleza)'),(188,'477','Cuidados Cabello > Fijadores (Belleza)'),(189,'471','Cuidados afeitado > Cuidado para el afeitado y antes del afeitado (Belleza)'),(190,'472','Cuidados afeitado > Cuidado Aftershave (Belleza)'),(191,'473','Cuidados afeitado > Afeitadoras & cuchillas (Belleza)'),(192,'474','Cuidados afeitado > Cuidado de la barba (Belleza)'),(193,'430','Cuidados faciales > Desmaquillantes & tónicos (Belleza)'),(194,'431','Cuidados faciales > Antiedad & antiarrugas (Belleza)'),(195,'432','Cuidados faciales > Hidratantes & nutritivos (Belleza)'),(196,'433','Cuidados faciales > Bio & natural (Belleza)'),(197,'434','Cuidados faciales > Mascarillas & exfoliantes (Belleza)'),(198,'435','Cuidados faciales > Protección solar (Belleza)'),(199,'436','Cuidados faciales > Cuidados especiales (Belleza)'),(200,'437','Cuidados faciales > Maquillage BB & CC cremas (Belleza)'),(201,'453','Maquillaje Labios > Pintalabios (Belleza)'),(202,'454','Maquillaje Labios > Gloss  (Belleza)'),(203,'455','Maquillaje Labios > Lápiz de labios (Belleza)'),(204,'456','Maquillaje Labios > Cuidado & bases de labios (Belleza)'),(205,'447','Maquillaje Ojos > Sombra de ojos & bases (Belleza)'),(206,'448','Maquillaje Ojos > Paleta de sombras de ojos (Belleza)'),(207,'449','Maquillaje Ojos > Máscaras de pestañas (Belleza)'),(208,'450','Maquillaje Ojos > Lápiz de ojos (Belleza)'),(209,'451','Maquillaje Ojos > Eyeliner (Belleza)'),(210,'452','Maquillaje Ojos > Perfiladores cejas (Belleza)'),(211,'457','Maquillaje Rostro > Base de maquillaje (Belleza)'),(212,'458','Maquillaje Rostro > Colorete & polvos (Belleza)'),(213,'459','Maquillaje Rostro > Antiarrugas & correctores (Belleza)'),(214,'460','Maquillaje Rostro > Iluminador  (Belleza)'),(215,'461','Maquillaje Uñas > Bases & fijador (Belleza)'),(216,'462','Maquillaje Uñas > Esmalte para uñas (Belleza)'),(217,'463','Maquillaje Uñas > Quita esmalte (Belleza)'),(218,'464','Maquillaje Uñas > Cuidado de uñas (Belleza)'),(219,'465','Maquillaje Uñas > Set manicura (Belleza)'),(220,'466','Parfumes > Agua de Colonia (Belleza)'),(221,'467','Parfumes > Perfume (Belleza)'),(222,'468','Parfumes > Colonia (Belleza)'),(223,'469','Parfumes > Agua fresca de Colonia (Belleza)'),(224,'470','Parfumes > Cofres perfumes (Belleza)'),(225,'11475','Boxer (Ropa interior)'),(226,'11477','Braguitas (Ropa interior)'),(227,'11476','Calzoncillos (Ropa interior)'),(228,'11472','Camiseta interior (Ropa interior)'),(229,'11402','Culote y bragas (Ropa interior)'),(230,'11404','Shorty / Boxer (Ropa interior)'),(231,'11406','Strings (Ropa interior)'),(232,'11408','Tangas (Ropa interior)'),(233,'11410','Bragas moldeadoras (Ropa interior)'),(234,'11412','Body (Ropa interior)'),(235,'11414','Liguero (Ropa interior)'),(236,'11416','Corpiño (Ropa interior)'),(237,'11418','Corsé y balconet (Ropa interior)'),(238,'11420','Reductores y moldeadores  (Ropa interior)'),(239,'11394','Envolvente (Ropa interior)'),(240,'11395','Copa / Con Aros (Ropa interior)'),(241,'11396','Relleno (Ropa interior)'),(242,'11397','Reductor (Ropa interior)'),(243,'11400','Tirantes extraíbles (Ropa interior)'),(244,'11470','Triángulo/Sin Aros (Ropa interior)'),(245,'11471','Sujetador (Ropa interior)'),(246,'11593','Jarrones / macetas de interior (Casa)'),(247,'11594','Figuras decorativas (Casa)'),(248,'11595','Plantas artificiales (Casa)'),(249,'11596','Decoraciones festivas (Casa)'),(250,'11597','Decoraciones de Navidad (Casa)'),(251,'11598','Candelabros / portavelas (Casa)'),(252,'11599','Velas / difusor (Casa)'),(253,'11600','Decoración luminosa / linternas (Casa)'),(254,'11616','Marcos de fotos (Casa)'),(255,'11617','Afiches / posters (Casa)'),(256,'11618','Cuadros / pinturas (Casa)'),(257,'11619','Sticker / papeles pintados (Casa)'),(258,'11620','Espejos (Casa)'),(259,'11621','Relojes (Casa)'),(260,'11601','Cojines (Casa)'),(261,'11602','Fundas de cojines (Casa)'),(262,'11603','Mantas (Casa)'),(263,'11604','Cortinas / persianas (Casa)'),(264,'11605','Pufs (Casa)'),(265,'11606','Alfombras (Casa)'),(266,'11865','Cortinas transparentes (Casa)'),(267,'11607','Pantallas y bases de lámparas (Casa)'),(268,'11608','Lámpara pared (Casa)'),(269,'11609','Lámparas de pie (Casa)'),(270,'11610','Lámparas de escritorio (Casa)'),(271,'11611','Lámparas de mesa (Casa)'),(272,'11612','Lámparas de exterior (Casa)'),(273,'11613','Lámparas de techo (Casa)'),(274,'11614','Lámparas de techo (Casa)'),(275,'11615','Apliques de exterior (Casa)'),(276,'11622','Cestas / cajas y papelera (Casa)'),(277,'11623','Baúles / cajas de almacenamiento (Casa)'),(278,'11624','Platito de decoración (Casa)'),(279,'11625','Revistero / archivadores (Casa)'),(280,'11648','Ropa de cama (Casa)'),(281,'11649','Funda de almohada / cojín (Casa)'),(282,'11650','Funda de edredón (Casa)'),(283,'11651','Sábana bajera (Casa)'),(284,'11652','Sábana encimera (Casa)'),(285,'11653','Manta (Casa)'),(286,'11654','Colcha (Casa)'),(287,'11656','Alfombra de baño (Casa)'),(288,'11657','Toalla y manopla de toalla (Casa)'),(289,'11658','Toalla de playa (Casa)'),(290,'11659','Manteles (Casa)'),(291,'11815','Set de mesa (Casa)'),(292,'11816','Servilleta (Casa)'),(293,'11817','Paño de cocina (Casa)'),(294,'11818','Cojín de silla (Casa)'),(295,'10087','Calcetines (Accesorios)'),(296,'11473','Calcetines de deporte (Accesorios)'),(297,'11863','Calcetines altos (Accesorios)'),(298,'11864','Calcetines (Accesorios)'),(299,'11422','Medias (Ropa interior)'),(300,'11878','Medias de embarazo (Ropa interior)'),(301,'11877','Bragas y bóxers de embarazo (Ropa interior)'),(302,'11876','Sujetadores premamá / lactancia (Ropa interior)'),(303,'11884','Librerías y estanterías (Casa)'),(304,'11891','Iluminación de exterior (Casa)'),(305,'11886','Poufs de exterior (Casa)'),(306,'11887','Sillas de exterior (Casa)'),(307,'11888','Mesas de centro de exterior (Casa)'),(308,'11889','Mesas auxiliares de exterior (Casa)'),(309,'11890','Almacenamiento exterior (Casa)'),(310,'11892','Textil de exterior (Casa)'),(311,'11880','Reposapiés o poufs (Casa)'),(312,'11881','Sillas (Casa)'),(313,'11882','Mesas de centro (Casa)'),(314,'11883','Accesorios de sofás / mesas con pedestal (Casa)'),(315,'11893','Jeggins (textil)'),(316,'11894','Vaqueros acampanado / anchos (textil)'),(317,'11895','Vaqueros de tiro alto  (textil)'),(318,'11896','Vaqueros corte cónico (textil)'),(319,'11468','Paraguas (Accesorios textil)'),(320,'11912','Mesas de comedor (Casa)'),(321,'11913','Conjunto de mesas y sillas (Casa)'),(322,'11915','Consolas (Casa)'),(323,'11917','Aparadores (Casa)'),(324,'11914','Mesitas de noche (Casa)'),(325,'11918','Camas individuales (Casa)'),(326,'11919','Cama dobles (Casa)'),(327,'11920','Camas de niño (Casa)'),(328,'11921','Somieres (Casa)'),(329,'11922','Colchónes (Casa)'),(330,'11923','Cómodas (Casa)'),(331,'11924','Armarios (Casa)'),(332,'11925','Zapateros (Casa)'),(333,'11902','Sofás de 2 plazas (Casa)'),(334,'11903','Sofás de 3 plazas (Casa)'),(335,'11904','Sofás de 4 plazas (Casa)'),(336,'11905','Sofás esquineros (Casa)'),(337,'11906','Sofás convertibles (Casa)'),(338,'11907','Butacas (Casa)'),(339,'11908','Muebles de TV (Casa)'),(340,'11909','Escritorios (Casa)'),(341,'11928','Conjunto de mesa y sillas de jardín (Casa)'),(342,'11929','Mesas de jardín (Casa)'),(343,'11930','Mesas de centro de jardín (Casa)'),(344,'11931','Tumbonas / Hamacas (Casa)'),(345,'11933','Papel Pintado (Casa)'),(346,'11813','Fiambreras (Casa)'),(347,'11814','Botellas (Casa)'),(348,'11873','Edredones (Casa)'),(349,'11874','Cubrecolchón (Casa)'),(350,'11875','Almohadas / Travesaño (Casa)'),(351,'10102','Anillo (Relojes & Joyas)'),(352,'12211','Bolsitos para el móvil (Bolsos)'),(353,'12210','Sobrecamisas (textil)');

--
-- Table structure for table `typeSpartooColor`
--

CREATE TABLE `typeSpartooColor` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSpartooColor`
--

INSERT INTO `typeSpartooColor` VALUES (1,'1','Blanco'),(2,'4','Amarillo'),(3,'7','Naranja'),(4,'8','Rojo'),(5,'13','Rosa'),(6,'15','Violeta'),(7,'19','Azul'),(8,'25','Verde'),(9,'28','Marrón'),(10,'35','Gris'),(11,'38','Negro'),(12,'41','Oro'),(13,'46','Plata'),(14,'534','Otros'),(15,'594','Multicolor'),(16,'6887','Beige'),(17,'7124','Kaki'),(18,'7136','Burdeo'),(19,'6889','Marino');

--
-- Table structure for table `typeSpartooSex`
--

CREATE TABLE `typeSpartooSex` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSpartooSex`
--

INSERT INTO `typeSpartooSex` VALUES (1,'H','Hombre'),(2,'F','Mujer'),(3,'M','Unisex'),(4,'K','Niños'),(5,'G','Niña'),(6,'B','Niño');

--
-- Table structure for table `typeStatus`
--

CREATE TABLE `typeStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatus`
--

INSERT INTO `typeStatus` VALUES (1,'Activo'),(2,'Inactivo');

--
-- Table structure for table `typeStatusCoupon`
--

CREATE TABLE `typeStatusCoupon` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusCoupon`
--


--
-- Table structure for table `typeStatusInvoice`
--

CREATE TABLE `typeStatusInvoice` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusInvoice`
--

INSERT INTO `typeStatusInvoice` VALUES (1,'En proceso','bg-warning-600'),(5,'Pendiente de pago','bg-info-600'),(10,'Pagado','bg-success-600');

--
-- Table structure for table `typeStatusManageCashpoint`
--

CREATE TABLE `typeStatusManageCashpoint` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusManageCashpoint`
--

INSERT INTO `typeStatusManageCashpoint` VALUES (1,'Abierta'),(20,'Cerrada');

--
-- Table structure for table `typeStatusOrder`
--

CREATE TABLE `typeStatusOrder` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusOrder`
--

INSERT INTO `typeStatusOrder` VALUES (1,'Proforma'),(2,'Pendiente confirmación'),(3,'Pendiente recepción'),(4,'Recepción parcial'),(5,'Cerrado'),(6,'Anulado'),(7,'Devolución');

--
-- Table structure for table `typeStatusReception`
--

CREATE TABLE `typeStatusReception` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusReception`
--

INSERT INTO `typeStatusReception` VALUES (1,'En proceso','bg-danger-600'),(10,'Completada','bg-success-600');

--
-- Table structure for table `typeStatusReturnItem`
--

CREATE TABLE `typeStatusReturnItem` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusReturnItem`
--

INSERT INTO `typeStatusReturnItem` VALUES (1,'Proforma'),(2,'Enviado'),(3,'Reparado'),(4,'Abonado');

--
-- Table structure for table `typeStatusSale`
--

CREATE TABLE `typeStatusSale` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusSale`
--

INSERT INTO `typeStatusSale` VALUES (1,'En proceso'),(4,'En espera'),(5,'Pausada'),(6,'Reserva'),(10,'Cancelada'),(11,'Reserva anulada'),(20,'Completada'),(100,'Venta offline sincronizada');

--
-- Table structure for table `typeStatusStock`
--

CREATE TABLE `typeStatusStock` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStatusStock`
--

INSERT INTO `typeStatusStock` VALUES (-2,'Recepcionado','label bg-orange'),(-1,'En recepción','label bg-orange'),(1,'Proforma','label bg-yellow'),(2,'Pendiente confirmación','label bg-orange'),(3,'Pendiente recepción','label bg-orange'),(4,'Disponible','label bg-green'),(5,'Vendido','label bg-blue'),(6,'Anulado','label bg-red'),(7,'Devolución','label bg-red'),(8,'Reserva','label bg-grey'),(9,'Tránsito','label bg-info'),(10,'Reparación','label bg-brown'),(11,'Robo/Error','label bg-black'),(12,'Solicitado en traspaso','label bg-info'),(13,'Aceptado en traspaso','label bg-green'),(14,'Reservado web','label bg-purple'),(16,'Envio web','label bg-info'),(100,'Marca blanca en devolución','label bg-black'),(101,'Stock en devolución','label bg-black'),(102,'Stock en devolución sin ticket','label bg-black');

--
-- Table structure for table `typeStockAliasInUse`
--

CREATE TABLE `typeStockAliasInUse` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockAliasInUse`
--

INSERT INTO `typeStockAliasInUse` VALUES (1,'Código de stock'),(2,'Código de stock por Talla'),(3,'Código de stock por EAN');

--
-- Table structure for table `typeStockBarnacleAction`
--

CREATE TABLE `typeStockBarnacleAction` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockBarnacleAction`
--

INSERT INTO `typeStockBarnacleAction` VALUES (1,'Código de barras creado'),(2,'Cambio de PVP'),(3,'Cambio de precio de coste'),(4,'Cambio de estado'),(5,'Cambio de talla'),(6,'Cambio de tienda de localización'),(7,'Cambio de tienda propietaria'),(8,'Cambio de empresa de facturación'),(100,'Inclusión en campaña de rebajas'),(101,'Exclusion de campaña de rebajas'),(102,'Incluído en la web'),(103,'Excluído de la web'),(104,'Incluído en incidecencia'),(105,'Excluído en incidencia');

--
-- Table structure for table `typeStockBarnacleUpdate`
--

CREATE TABLE `typeStockBarnacleUpdate` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockBarnacleUpdate`
--

INSERT INTO `typeStockBarnacleUpdate` VALUES (1,'Manualmente'),(2,'Automáticamente'),(3,'Error inventario');

--
-- Table structure for table `typeStockError`
--

CREATE TABLE `typeStockError` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockError`
--

INSERT INTO `typeStockError` VALUES (1,'Cambiada localización en venta.');

--
-- Table structure for table `typeStockOptimization`
--

CREATE TABLE `typeStockOptimization` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `hours` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockOptimization`
--

INSERT INTO `typeStockOptimization` VALUES ('2','24 horas',24),('3','2 días',48),('4','7 días',168),('5','15 días',360),('6','30 días',720);

--
-- Table structure for table `typeStockOptimizationTime`
--

CREATE TABLE `typeStockOptimizationTime` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `hours` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockOptimizationTime`
--

INSERT INTO `typeStockOptimizationTime` VALUES ('1','06:00 am',6),('2','07:00 am',7),('3','08:00 am',8),('4','09:00 am',9),('5','22:00 pm',22),('6','23:00 pm',23),('7','00:00 pm',0);

--
-- Table structure for table `typeStockOptimizationTransfer`
--

CREATE TABLE `typeStockOptimizationTransfer` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeStockOptimizationTransfer`
--

INSERT INTO `typeStockOptimizationTransfer` VALUES (1,'Fuera de orden','bg-info-300'),(2,'Incluido en orden','bg-purple-300'),(3,'Solicitud de stock','bg-teal-300');

--
-- Table structure for table `typeSubPayment`
--

CREATE TABLE `typeSubPayment` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeSubPayment`
--


--
-- Table structure for table `typeTargetDiscount`
--

CREATE TABLE `typeTargetDiscount` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTargetDiscount`
--

INSERT INTO `typeTargetDiscount` VALUES (1,'Artículo'),(2,'Pedido');

--
-- Table structure for table `typeTax`
--

CREATE TABLE `typeTax` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTax`
--

INSERT INTO `typeTax` VALUES (1,'IVA'),(2,'IVA + Recargo de equivalencia');

--
-- Table structure for table `typeTextJustification`
--

CREATE TABLE `typeTextJustification` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTextJustification`
--

INSERT INTO `typeTextJustification` VALUES (1,'Izquierda'),(2,'Centrada'),(3,'Derecha');

--
-- Table structure for table `typeTransfer`
--

CREATE TABLE `typeTransfer` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTransfer`
--

INSERT INTO `typeTransfer` VALUES (1,'Distribución de stock','bg-grey-600'),(2,'Pedir un stock concreto','bg-green-800'),(3,'Traspaso web','bg-blue-800'),(4,'Solicitud de stock','bg-purple-300'),(5,'Devolución o reparación','bg-primary-300');

--
-- Table structure for table `typeTransferStatus`
--

CREATE TABLE `typeTransferStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `action` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTransferStatus`
--

INSERT INTO `typeTransferStatus` VALUES (1,'Proforma','','bg-orange-300'),(2,'Solicitado','Solicitar traspaso','bg-orange-800'),(3,'Aceptado ','Aceptar traspaso','bg-green'),(4,'Rechazado','Rechazar traspaso por completo','bg-danger'),(5,'Tránsito','Dar salida al traspaso','bg-info'),(6,'Completado','Completar traspaso','bg-blue'),(7,'Completado parcial','','bg-green-300');

--
-- Table structure for table `typeTrendicoPricatCategory`
--

CREATE TABLE `typeTrendicoPricatCategory` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTrendicoPricatCategory`
--

INSERT INTO `typeTrendicoPricatCategory` VALUES (1,'COLECTIVOS'),(2,'SPORTSWEAR'),(3,'RUNNING'),(4,'COMPLEMENTOS'),(5,'BALONCESTO'),(6,'FITNESS'),(7,'ORIGINALS'),(8,'PERFORMANCE'),(9,'OTROS'),(10,'OUTDOOR'),(11,'CHUCK TAYLOR'),(12,'FUTBOL'),(13,'DEPORTES DE RAQUETA'),(14,'GOLF'),(15,'TRAINING'),(16,'BAÃO');

--
-- Table structure for table `typeTrendicoPricatDivision`
--

CREATE TABLE `typeTrendicoPricatDivision` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTrendicoPricatDivision`
--

INSERT INTO `typeTrendicoPricatDivision` VALUES (1,'COMPLEMENTOS'),(2,'CALZADO'),(3,'TEXTIL');

--
-- Table structure for table `typeTrendicoPricatGender`
--

CREATE TABLE `typeTrendicoPricatGender` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTrendicoPricatGender`
--

INSERT INTO `typeTrendicoPricatGender` VALUES (1,'UNISEX'),(2,'MUJER'),(3,'JUNIOR'),(4,'HOMBRE'),(5,'KIDS');

--
-- Table structure for table `typeTrendicoPricatSubcategory`
--

CREATE TABLE `typeTrendicoPricatSubcategory` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeTrendicoPricatSubcategory`
--

INSERT INTO `typeTrendicoPricatSubcategory` VALUES (1,'PROTECCIONES'),(2,'OTROS'),(3,'GUANTES'),(4,'ZAPATOS DE ESTILO DE VIDA'),(5,'ZAPATILLAS'),(6,'CALCETINES / MEDIAS / ESTRIBOS'),(7,'SPORTSWEAR'),(8,'VARIOS ZAPATOS DE OCIO'),(9,'HOODED LONG SLEEVE TOP'),(10,'SHORT SLEEVE T-SHIRT'),(11,'PANTALONES'),(12,'THREE QUARTER HIGH'),(13,'TOPS'),(14,'SPORTWEAR'),(15,'CALCETINES'),(16,'DETACHABLES (SG)'),(17,'CHAQUETAS'),(18,'TEXTIL'),(19,'CALZADO'),(20,'COMPLEMENTOS'),(21,'CAMISAS'),(22,'MOCHILAS'),(23,'PANTALONES LARGOS'),(24,'BA?ADORES'),(25,'CHAQUETAS MULTIFUNCIÓN'),(26,'BERMUDAS');

--
-- Table structure for table `typeWebOrderCarrier`
--

CREATE TABLE `typeWebOrderCarrier` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWebOrderCarrier`
--

INSERT INTO `typeWebOrderCarrier` VALUES (1,'Gestión manual','label bg-purple c-bg-gray'),(2,'MRW','label bg-purple c-bg-red'),(3,'Correos','label bg-purple c-bg-purple'),(4,'Correos Express','label bg-teal c-bg-teal');

--
-- Table structure for table `typeWebOrderPayment`
--

CREATE TABLE `typeWebOrderPayment` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWebOrderPayment`
--

INSERT INTO `typeWebOrderPayment` VALUES (1,'Tarjeta de crédito',''),(2,'Paypal',''),(3,'Transferencia bancaria / Bizum',''),(4,'Contrareembolso',''),(5,'Bizum','');

--
-- Table structure for table `typeWebOrderReturnStatus`
--

CREATE TABLE `typeWebOrderReturnStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWebOrderReturnStatus`
--

INSERT INTO `typeWebOrderReturnStatus` VALUES (1,'Seleccionar stock a devolver','label label-default'),(2,'Devolución solicitada','label label-info'),(10,'Devolución aceptada','label bg-purple c-bg-purple'),(11,'Abonado al cliente','label label-success'),(12,'Cambio de stock','label label-warning'),(20,'Devolución rechazada','label label-danger');

--
-- Table structure for table `typeWebOrderStatus`
--

CREATE TABLE `typeWebOrderStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWebOrderStatus`
--

INSERT INTO `typeWebOrderStatus` VALUES (1,'Solicitado','label label-info'),(2,'Pagado','label label-success'),(3,'Empaquetar','label bg-purple c-bg-purple'),(4,'Pendiente envío','label bg-orange c-bg-orange label-warning'),(5,'Recoger en tienda','label bg-purple c-bg-purple'),(10,'Enviado','label label-warning'),(15,'Entregado','label label-success'),(20,'Devolución','label label-danger'),(21,'Anulado','label label-danger'),(22,'Devolución Parcial','label label-danger');

--
-- Table structure for table `typeWebOrderStockAssignment`
--

CREATE TABLE `typeWebOrderStockAssignment` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWebOrderStockAssignment`
--

INSERT INTO `typeWebOrderStockAssignment` VALUES (1,'Artículos con más stock sin tener en cuenta la tienda');

--
-- Table structure for table `typeWebsiteCarrierException`
--

CREATE TABLE `typeWebsiteCarrierException` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWebsiteCarrierException`
--

INSERT INTO `typeWebsiteCarrierException` VALUES (1,'Nacionales'),(2,'Intracomunitario'),(3,'Extracomunitario');

--
-- Table structure for table `typeWorkingOrder`
--

CREATE TABLE `typeWorkingOrder` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `background` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `typeWorkingOrder`
--

INSERT INTO `typeWorkingOrder` VALUES (1,'Completa automática','bg-orange-300'),(2,'Completa manual','bg-orange-800'),(3,'Desde recepción','bg-purple-300'),(4,'Movimiento de artículos','bg-info-300'),(5,'Solicitud de stock','bg-teal-300');

--
-- Table structure for table `type_dealer_payment_method`
--

CREATE TABLE `type_dealer_payment_method` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dealer_payment_method_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `order_info_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A7B734E74D16C4DD` (`shop_id`),
  KEY `IDX_A7B734E776FD5658` (`dealer_payment_method_id`),
  KEY `IDX_A7B734E7ABF168B3` (`order_info_id`),
  CONSTRAINT `FK_A7B734E74D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_A7B734E776FD5658` FOREIGN KEY (`dealer_payment_method_id`) REFERENCES `dealerPaymentMethod` (`id`),
  CONSTRAINT `FK_A7B734E7ABF168B3` FOREIGN KEY (`order_info_id`) REFERENCES `order_info` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_dealer_payment_method`
--

INSERT INTO `type_dealer_payment_method` VALUES ('3a194cad-94c2-423e-b2f4-17c88cbcc13d','471070-2727-4f98-9701-b52069b84918',NULL,'87819cc1-ac61-42a3-b6a4-5a096d325a19');

--
-- Table structure for table `type_max_date_of_service`
--

CREATE TABLE `type_max_date_of_service` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `order_info_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `max_date_of_service` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CB9D49E34D16C4DD` (`shop_id`),
  KEY `IDX_CB9D49E3ABF168B3` (`order_info_id`),
  CONSTRAINT `FK_CB9D49E34D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_CB9D49E3ABF168B3` FOREIGN KEY (`order_info_id`) REFERENCES `order_info` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_max_date_of_service`
--

INSERT INTO `type_max_date_of_service` VALUES ('6acb8331-7e08-44b9-8103-904fca395bba','471070-2727-4f98-9701-b52069b84918','87819cc1-ac61-42a3-b6a4-5a096d325a19',NULL);

--
-- Table structure for table `type_reason_return`
--

CREATE TABLE `type_reason_return` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_reason_return`
--

INSERT INTO `type_reason_return` VALUES (1,'Fecha fuera de servicio'),(2,'Fabricación incorrecta'),(3,'Fabricación defectuosa'),(4,'Artículos no incluidos en compra');

--
-- Table structure for table `type_return`
--

CREATE TABLE `type_return` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_return`
--

INSERT INTO `type_return` VALUES (1,'Abono'),(2,'Reparación/Mal Estado'),(3,'Pendiente de Respuesta');

--
-- Table structure for table `type_return_status`
--

CREATE TABLE `type_return_status` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_return_status`
--

INSERT INTO `type_return_status` VALUES (1,'Proforma'),(10,'Pendiente'),(20,'Cerrado');

--
-- Table structure for table `type_round`
--

CREATE TABLE `type_round` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` double NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_round`
--

INSERT INTO `type_round` VALUES (1,0),(2,0.25),(3,0.5),(4,0.75),(5,0.95),(6,0.99);

--
-- Table structure for table `type_shop_observation`
--

CREATE TABLE `type_shop_observation` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `order_info_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `observation` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_409EAC414D16C4DD` (`shop_id`),
  KEY `IDX_409EAC41ABF168B3` (`order_info_id`),
  CONSTRAINT `FK_409EAC414D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_409EAC41ABF168B3` FOREIGN KEY (`order_info_id`) REFERENCES `order_info` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_shop_observation`
--

INSERT INTO `type_shop_observation` VALUES ('4eb605e0-2acd-4958-9b45-637e0a77c015','471070-2727-4f98-9701-b52069b84918','87819cc1-ac61-42a3-b6a4-5a096d325a19',NULL);

--
-- Table structure for table `type_shop_order_address`
--

CREATE TABLE `type_shop_order_address` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_82492A154D16C4DD` (`shop_id`),
  CONSTRAINT `FK_82492A154D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `type_shop_order_address`
--

INSERT INTO `type_shop_order_address` VALUES ('b030bc14-8866-4892-b032-6decb9dca15c','471070-2727-4f98-9701-b52069b84918');

--
-- Table structure for table `userTaskTracking`
--

CREATE TABLE `userTaskTracking` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_start` datetime NOT NULL,
  `date_end` datetime DEFAULT NULL,
  `hours` int DEFAULT NULL,
  `minutes` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D5346B4EA76ED395` (`user_id`),
  CONSTRAINT `FK_D5346B4EA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `userTaskTracking`
--


--
-- Table structure for table `user_shop_roleRights`
--

CREATE TABLE `user_shop_roleRights` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `roleRights_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1387512FA76ED395` (`user_id`),
  KEY `IDX_1387512F4D16C4DD` (`shop_id`),
  KEY `IDX_1387512F3774CF9C` (`roleRights_id`),
  CONSTRAINT `FK_1387512F3774CF9C` FOREIGN KEY (`roleRights_id`) REFERENCES `role_rights` (`id`),
  CONSTRAINT `FK_1387512F4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_1387512FA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `user_shop_roleRights`
--

INSERT INTO `user_shop_roleRights` VALUES ('471070-d925-4bab-b051-2f3e6964990e','471070-55d6-44da-af80-76054353d13f','471070-2727-4f98-9701-b52069b84918','1');

--
-- Table structure for table `webOrder`
--

CREATE TABLE `webOrder` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `customer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `date_sent` datetime DEFAULT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  `typeWebOrderStatus_id` int DEFAULT NULL,
  `typeWebOrderPayment_id` int DEFAULT NULL,
  `charge_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_payed` datetime DEFAULT NULL,
  `cif` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `address` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `city` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `telephone` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name_customer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `surname_customer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeProvince_id` int DEFAULT NULL,
  `shopOut_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_invoiced` tinyint(1) NOT NULL,
  `invoice_number` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `invoice_iterator` int DEFAULT NULL,
  `date_done` datetime DEFAULT NULL,
  `carrier_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_tracking_code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_tracking_url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filename` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_amount` double DEFAULT NULL,
  `coupon_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `total_pay` double DEFAULT NULL,
  `discount` double DEFAULT NULL,
  `fidelityCard_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `amazon_order_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_cancelled` datetime DEFAULT NULL,
  `pickup_in_ashop` tinyint(1) NOT NULL,
  `cost_extra` double DEFAULT NULL,
  `paypal_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeWebOrderCarrier_id` int DEFAULT NULL,
  `carrier_tracking_mrw_url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeCountry_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_sent_to_waadby` tinyint(1) NOT NULL,
  `logText` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `is_amazon_prime` tinyint(1) NOT NULL,
  `couponCode_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `is_spartoo` tinyint(1) NOT NULL,
  `is_zalando` tinyint(1) NOT NULL,
  `is_fom` tinyint(1) NOT NULL,
  `is_atleet` tinyint(1) NOT NULL,
  `is_sotkatt` tinyint(1) NOT NULL,
  `is_carrefour` tinyint(1) NOT NULL,
  `is_miinto` tinyint(1) NOT NULL,
  `latitude` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `longitude` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `connector_id` int DEFAULT NULL,
  `is_hipercalzado` tinyint(1) NOT NULL,
  `is_prestashop` tinyint(1) NOT NULL,
  `url_website` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_aliexpress` tinyint(1) NOT NULL,
  `is_bulevip` tinyint(1) NOT NULL,
  `is_decathlon` tinyint(1) NOT NULL,
  `is_colizey` tinyint(1) NOT NULL,
  `is_amaranto` tinyint(1) NOT NULL,
  `observations` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `is_miravia` tinyint(1) NOT NULL,
  `is_oddo` tinyint(1) NOT NULL,
  `is_tradeinn` tinyint(1) NOT NULL,
  `is_venca` tinyint(1) NOT NULL,
  `is_worten` tinyint(1) NOT NULL,
  `typeCorreosCodigoProducto_id` int DEFAULT NULL,
  `typeCorreosModalidadEntrega_id` int DEFAULT NULL,
  `typeCorreosPais_id` int DEFAULT NULL,
  `is_shein` tinyint(1) NOT NULL,
  `typeCorreosExpressCodigoProducto_id` int DEFAULT NULL,
  `date_invoice` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_ADCFC172FE54D947` (`group_id`),
  KEY `IDX_ADCFC172CE750549` (`typeWebOrderStatus_id`),
  KEY `IDX_ADCFC172BEB617BB` (`typeWebOrderPayment_id`),
  KEY `IDX_ADCFC1729395C3F3` (`customer_id`),
  KEY `IDX_ADCFC1721192B8C0` (`typeProvince_id`),
  KEY `IDX_ADCFC1724E8DEB82` (`shopOut_id`),
  KEY `IDX_ADCFC17259FD88CD` (`websiteConfig_id`),
  KEY `IDX_ADCFC1729A5606AA` (`fidelityCard_id`),
  KEY `IDX_ADCFC17266C5951B` (`coupon_id`),
  KEY `IDX_ADCFC1729BAA7397` (`typeWebOrderCarrier_id`),
  KEY `IDX_ADCFC1724F28DDAD` (`typeCountry_id`),
  KEY `IDX_ADCFC172AC079C4B` (`couponCode_id`),
  KEY `IDX_ADCFC1727627E342` (`typeCorreosCodigoProducto_id`),
  KEY `IDX_ADCFC1725CAE9FA7` (`typeCorreosModalidadEntrega_id`),
  KEY `IDX_ADCFC172767C83D2` (`typeCorreosPais_id`),
  KEY `alias_idx` (`alias`),
  KEY `amazonOrderId_idx` (`amazon_order_id`),
  KEY `invoice_iterator_idx` (`invoice_iterator`),
  KEY `dateCreation_idx` (`date_creation`),
  KEY `IDX_ADCFC172B19C75BE` (`typeCorreosExpressCodigoProducto_id`),
  CONSTRAINT `FK_ADCFC1721192B8C0` FOREIGN KEY (`typeProvince_id`) REFERENCES `typeProvinces` (`id`),
  CONSTRAINT `FK_ADCFC1724E8DEB82` FOREIGN KEY (`shopOut_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_ADCFC1724F28DDAD` FOREIGN KEY (`typeCountry_id`) REFERENCES `typeCountry` (`id`),
  CONSTRAINT `FK_ADCFC17259FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_ADCFC1725CAE9FA7` FOREIGN KEY (`typeCorreosModalidadEntrega_id`) REFERENCES `typeCorreosModalidadEntrega` (`id`),
  CONSTRAINT `FK_ADCFC17266C5951B` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`),
  CONSTRAINT `FK_ADCFC1727627E342` FOREIGN KEY (`typeCorreosCodigoProducto_id`) REFERENCES `typeCorreosCodigoProducto` (`id`),
  CONSTRAINT `FK_ADCFC172767C83D2` FOREIGN KEY (`typeCorreosPais_id`) REFERENCES `typeCorreosPais` (`id`),
  CONSTRAINT `FK_ADCFC1729395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`),
  CONSTRAINT `FK_ADCFC1729A5606AA` FOREIGN KEY (`fidelityCard_id`) REFERENCES `fidelityCard` (`id`),
  CONSTRAINT `FK_ADCFC1729BAA7397` FOREIGN KEY (`typeWebOrderCarrier_id`) REFERENCES `typeWebOrderCarrier` (`id`),
  CONSTRAINT `FK_ADCFC172AC079C4B` FOREIGN KEY (`couponCode_id`) REFERENCES `couponsCode` (`id`),
  CONSTRAINT `FK_ADCFC172B19C75BE` FOREIGN KEY (`typeCorreosExpressCodigoProducto_id`) REFERENCES `typeCorreosExpressCodigoProducto` (`id`),
  CONSTRAINT `FK_ADCFC172BEB617BB` FOREIGN KEY (`typeWebOrderPayment_id`) REFERENCES `typeWebOrderPayment` (`id`),
  CONSTRAINT `FK_ADCFC172CE750549` FOREIGN KEY (`typeWebOrderStatus_id`) REFERENCES `typeWebOrderStatus` (`id`),
  CONSTRAINT `FK_ADCFC172FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `webOrder`
--


--
-- Table structure for table `webOrderElement`
--

CREATE TABLE `webOrderElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `webOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `pvp_original` decimal(14,2) DEFAULT NULL,
  `pvp_sale` decimal(14,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FBFAD564E80E408D` (`webOrder_id`),
  KEY `IDX_FBFAD564DCD6110` (`stock_id`),
  KEY `IDX_FBFAD5644C7C611F` (`discount_id`),
  CONSTRAINT `FK_FBFAD5644C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `discounts` (`id`),
  CONSTRAINT `FK_FBFAD564DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`),
  CONSTRAINT `FK_FBFAD564E80E408D` FOREIGN KEY (`webOrder_id`) REFERENCES `webOrder` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `webOrderElement`
--


--
-- Table structure for table `webOrderReturn`
--

CREATE TABLE `webOrderReturn` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_invoiced` tinyint(1) NOT NULL,
  `invoice_number` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `invoice_iterator` int DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `date_payed` datetime DEFAULT NULL,
  `date_done` datetime DEFAULT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  `notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `carrier_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_tracking_code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_tracking_url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeWebOrderReturnStatus_id` int DEFAULT NULL,
  `webOrder_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CD2367FBFE54D947` (`group_id`),
  KEY `IDX_CD2367FBFBC156D` (`typeWebOrderReturnStatus_id`),
  KEY `IDX_CD2367FBE80E408D` (`webOrder_id`),
  KEY `IDX_CD2367FB59FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_CD2367FB59FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_CD2367FBE80E408D` FOREIGN KEY (`webOrder_id`) REFERENCES `webOrder` (`id`),
  CONSTRAINT `FK_CD2367FBFBC156D` FOREIGN KEY (`typeWebOrderReturnStatus_id`) REFERENCES `typeWebOrderReturnStatus` (`id`),
  CONSTRAINT `FK_CD2367FBFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `webOrderReturn`
--


--
-- Table structure for table `webOrderReturnElement`
--

CREATE TABLE `webOrderReturnElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `discount_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `pvp_original` decimal(14,2) DEFAULT NULL,
  `pvp_sale` decimal(14,2) DEFAULT NULL,
  `webOrderReturn_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FF33556B570BD5DE` (`webOrderReturn_id`),
  KEY `IDX_FF33556BDCD6110` (`stock_id`),
  KEY `IDX_FF33556B4C7C611F` (`discount_id`),
  CONSTRAINT `FK_FF33556B4C7C611F` FOREIGN KEY (`discount_id`) REFERENCES `discounts` (`id`),
  CONSTRAINT `FK_FF33556B570BD5DE` FOREIGN KEY (`webOrderReturn_id`) REFERENCES `webOrderReturn` (`id`),
  CONSTRAINT `FK_FF33556BDCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `webOrderReturnElement`
--


--
-- Table structure for table `webSiteConfig_stock`
--

CREATE TABLE `webSiteConfig_stock` (
  `website_config_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`website_config_id`,`stock_id`),
  KEY `IDX_EC2DEFD2B703EE57` (`website_config_id`),
  KEY `IDX_EC2DEFD2DCD6110` (`stock_id`),
  CONSTRAINT `FK_EC2DEFD2B703EE57` FOREIGN KEY (`website_config_id`) REFERENCES `websiteConfig` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_EC2DEFD2DCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `webSiteConfig_stock`
--


--
-- Table structure for table `websiteBanner`
--

CREATE TABLE `websiteBanner` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subtitle` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sort` int DEFAULT NULL,
  `typeBanner_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_necessary_show_title` tinyint(1) NOT NULL,
  `title_color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_necessary_show_subtitle` tinyint(1) NOT NULL,
  `subtitle_color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title_justification_id` int DEFAULT NULL,
  `subtitle_justification_id` int DEFAULT NULL,
  `filenameResponsive` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B563E181FE54D947` (`group_id`),
  KEY `IDX_B563E181980280C` (`typeBanner_id`),
  KEY `IDX_B563E181608B5A8D` (`title_justification_id`),
  KEY `IDX_B563E181E26FE731` (`subtitle_justification_id`),
  KEY `IDX_B563E18159FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_B563E18159FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_B563E181608B5A8D` FOREIGN KEY (`title_justification_id`) REFERENCES `typeTextJustification` (`id`),
  CONSTRAINT `FK_B563E181980280C` FOREIGN KEY (`typeBanner_id`) REFERENCES `typeBanner` (`id`),
  CONSTRAINT `FK_B563E181E26FE731` FOREIGN KEY (`subtitle_justification_id`) REFERENCES `typeTextJustification` (`id`),
  CONSTRAINT `FK_B563E181FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteBanner`
--


--
-- Table structure for table `websiteBrand`
--

CREATE TABLE `websiteBrand` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_visits` int DEFAULT NULL,
  `exclude_from_website` tinyint(1) NOT NULL,
  `sort` int DEFAULT NULL,
  `hide_from_home_and_filters_on_website` tinyint(1) NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteBrand_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_last_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_82B34F33FE54D947` (`group_id`),
  KEY `IDX_82B34F3359FD88CD` (`websiteConfig_id`),
  KEY `IDX_82B34F3365E52F87` (`websiteBrand_id`),
  CONSTRAINT `FK_82B34F3359FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_82B34F3365E52F87` FOREIGN KEY (`websiteBrand_id`) REFERENCES `brand` (`id`),
  CONSTRAINT `FK_82B34F33FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteBrand`
--

INSERT INTO `websiteBrand` VALUES ('c7af57fc-bc3f-4556-95e9-0138459857a7','471070-b212-4109-894e-d6283fe29e74',0,0,NULL,0,'d403379c-0666-45a9-a217-0357881987f2','1e6b7d9c-3e48-4e09-92c2-ad355e37cf63','2024-08-09 11:04:55');

--
-- Table structure for table `websiteCarrierException`
--

CREATE TABLE `websiteCarrierException` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_amount` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `carrier_amount_free` int DEFAULT NULL,
  `typeWebsiteCarrierException_id` int DEFAULT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4CF1AA43FE54D947` (`group_id`),
  KEY `IDX_4CF1AA4368DE65C1` (`typeWebsiteCarrierException_id`),
  KEY `IDX_4CF1AA4359FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_4CF1AA4359FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_4CF1AA4368DE65C1` FOREIGN KEY (`typeWebsiteCarrierException_id`) REFERENCES `typeWebsiteCarrierException` (`id`),
  CONSTRAINT `FK_4CF1AA43FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteCarrierException`
--


--
-- Table structure for table `websiteCarrierException_typeCountryGlobal`
--

CREATE TABLE `websiteCarrierException_typeCountryGlobal` (
  `website_carrier_exception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_country_global_id` int NOT NULL,
  PRIMARY KEY (`website_carrier_exception_id`,`type_country_global_id`),
  KEY `IDX_3447C4D6701A62D1` (`website_carrier_exception_id`),
  KEY `IDX_3447C4D624FDCCF5` (`type_country_global_id`),
  CONSTRAINT `FK_3447C4D624FDCCF5` FOREIGN KEY (`type_country_global_id`) REFERENCES `typeCountryGlobal` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_3447C4D6701A62D1` FOREIGN KEY (`website_carrier_exception_id`) REFERENCES `websiteCarrierException` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteCarrierException_typeCountryGlobal`
--


--
-- Table structure for table `websiteCarrierException_typeCountryUE`
--

CREATE TABLE `websiteCarrierException_typeCountryUE` (
  `website_carrier_exception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_country_ue_id` int NOT NULL,
  PRIMARY KEY (`website_carrier_exception_id`,`type_country_ue_id`),
  KEY `IDX_88CBB81B701A62D1` (`website_carrier_exception_id`),
  KEY `IDX_88CBB81BB5E5216E` (`type_country_ue_id`),
  CONSTRAINT `FK_88CBB81B701A62D1` FOREIGN KEY (`website_carrier_exception_id`) REFERENCES `websiteCarrierException` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_88CBB81BB5E5216E` FOREIGN KEY (`type_country_ue_id`) REFERENCES `typeCountryUE` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteCarrierException_typeCountryUE`
--


--
-- Table structure for table `websiteCarrierException_typeProvince`
--

CREATE TABLE `websiteCarrierException_typeProvince` (
  `website_carrier_exception_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_province_id` int NOT NULL,
  PRIMARY KEY (`website_carrier_exception_id`,`type_province_id`),
  KEY `IDX_EBD3A4E2701A62D1` (`website_carrier_exception_id`),
  KEY `IDX_EBD3A4E2A25FC6DB` (`type_province_id`),
  CONSTRAINT `FK_EBD3A4E2701A62D1` FOREIGN KEY (`website_carrier_exception_id`) REFERENCES `websiteCarrierException` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_EBD3A4E2A25FC6DB` FOREIGN KEY (`type_province_id`) REFERENCES `typeProvinces` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteCarrierException_typeProvince`
--


--
-- Table structure for table `websiteCategory`
--

CREATE TABLE `websiteCategory` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_visits` int DEFAULT NULL,
  `exclude_from_website` tinyint(1) NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteCategory_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_last_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_275CE64EFE54D947` (`group_id`),
  KEY `IDX_275CE64E59FD88CD` (`websiteConfig_id`),
  KEY `IDX_275CE64E76BC2C68` (`websiteCategory_id`),
  CONSTRAINT `FK_275CE64E59FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_275CE64E76BC2C68` FOREIGN KEY (`websiteCategory_id`) REFERENCES `category` (`id`),
  CONSTRAINT `FK_275CE64EFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteCategory`
--

INSERT INTO `websiteCategory` VALUES ('f9215a70-b2a8-443f-b6bd-c45e7d0fd31d','471070-b212-4109-894e-d6283fe29e74',0,0,'d403379c-0666-45a9-a217-0357881987f2','be811958-0e46-4f6e-a2e0-0315de12c1e3','2024-08-09 11:07:27');

--
-- Table structure for table `websiteConfig`
--

CREATE TABLE `websiteConfig` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `about_footer` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `about_text_section` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `carrier` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `carrier_amount` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `email` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `telephone` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `address` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `city` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url_facebook` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url_twitter` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url_instagram` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url_google` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `script_google_analytics` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `script_facebook_pixel` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `script_google_ad_words` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `typeProvince_id` int DEFAULT NULL,
  `envio_devoluciones` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `filenameFavicon` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `web_order_logistic_shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cif` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `companyInvoice_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `carrier_amount_free` int DEFAULT NULL,
  `url` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `websiteTheme_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_enabled_subsection_info` tinyint(1) NOT NULL,
  `website_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_title_home` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_seo_description` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `text_for_pickup_from_shop` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `weborder_payment_use_paypal` tinyint(1) NOT NULL,
  `weborder_payment_use_transfer` tinyint(1) NOT NULL,
  `weborder_payment_use_money_back` tinyint(1) NOT NULL,
  `weborder_payment_text_paypal` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `weborder_payment_text_transfer` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `weborder_payment_text_money_back` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `weborder_payment_account_transfer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `weborder_payment_text_redsys` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `weborder_payment_paypal_merchant_id` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `script_header` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `script_footer` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `web_order_return_conditions` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_main_website` tinyint(1) NOT NULL,
  `about_desistimiento_form` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `filenameDesistimiento` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `about_save_payment` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `about_online_trust` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `legal_text` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `text_form_registration` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `typeStatus_id` int DEFAULT NULL,
  `minutesBlockingStockOnWeborder` int DEFAULT NULL,
  `privacy_text` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `whatsapp_phone` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `weborder_payment_use_bizum` tinyint(1) NOT NULL,
  `weborder_payment_text_bizum` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `daysBlockingStockOnWeborder` int DEFAULT NULL,
  `cookie_text` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_E74761A1192B8C0` (`typeProvince_id`),
  KEY `IDX_E74761A1853D9C0` (`companyInvoice_id`),
  KEY `IDX_E74761A78128B08` (`websiteTheme_id`),
  KEY `IDX_E74761AFE54D947` (`group_id`) USING BTREE,
  KEY `IDX_E74761A77A613BA` (`web_order_logistic_shop_id`) USING BTREE,
  KEY `IDX_E74761AA39E082` (`typeStatus_id`),
  CONSTRAINT `FK_E74761A1192B8C0` FOREIGN KEY (`typeProvince_id`) REFERENCES `typeProvinces` (`id`),
  CONSTRAINT `FK_E74761A1853D9C0` FOREIGN KEY (`companyInvoice_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_E74761A77A613BA` FOREIGN KEY (`web_order_logistic_shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_E74761A78128B08` FOREIGN KEY (`websiteTheme_id`) REFERENCES `websiteTheme` (`id`),
  CONSTRAINT `FK_E74761AA39E082` FOREIGN KEY (`typeStatus_id`) REFERENCES `typeStatus` (`id`),
  CONSTRAINT `FK_E74761AFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteConfig`
--

INSERT INTO `websiteConfig` VALUES ('d403379c-0666-45a9-a217-0357881987f2','471070-b212-4109-894e-d6283fe29e74',NULL,NULL,NULL,NULL,'juanjo.labella@clacclac.com','695642200','clac-clac-placeholder.png','CALLE CIERZO, 45','23002','JAEN',NULL,NULL,NULL,NULL,NULL,NULL,NULL,25,NULL,NULL,NULL,'B23777758',NULL,NULL,'http://google.es','4',1,'clacclac.clacclac-app1.com','clacclac.clacclac-app1.com',NULL,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,40,NULL,NULL,0,NULL,60,NULL);

--
-- Table structure for table `websiteEmail`
--

CREATE TABLE `websiteEmail` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_welcome_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_welcome` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `send_email_welcome` tinyint(1) NOT NULL,
  `email_order_payed_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_order_payed` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `send_email_order_payed` tinyint(1) NOT NULL,
  `email_order_sent_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_order_sent` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `send_email_order_sent` tinyint(1) NOT NULL,
  `email_order_completed_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_order_completed` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `send_email_order_completed` tinyint(1) NOT NULL,
  `email_order_returned_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_order_returned` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `send_email_order_returned` tinyint(1) NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_7973CA1F59FD88CD` (`websiteConfig_id`),
  KEY `IDX_7973CA1FFE54D947` (`group_id`) USING BTREE,
  CONSTRAINT `FK_7973CA1F59FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_7973CA1FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteEmail`
--


--
-- Table structure for table `websiteInfoSubsectionConfig`
--

CREATE TABLE `websiteInfoSubsectionConfig` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `icon_id` int DEFAULT NULL,
  `color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sort` int NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B9C4DAF659FD88CD` (`websiteConfig_id`),
  KEY `IDX_B9C4DAF654B9D732` (`icon_id`),
  CONSTRAINT `FK_B9C4DAF654B9D732` FOREIGN KEY (`icon_id`) REFERENCES `infoIcon` (`id`),
  CONSTRAINT `FK_B9C4DAF659FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteInfoSubsectionConfig`
--


--
-- Table structure for table `websiteSEOSectionCategorySubcategory`
--

CREATE TABLE `websiteSEOSectionCategorySubcategory` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `section_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `category_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subcategory_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `slug` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `brand_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DF6CE238FE54D947` (`group_id`),
  KEY `IDX_DF6CE238D823E37A` (`section_id`),
  KEY `IDX_DF6CE23812469DE2` (`category_id`),
  KEY `IDX_DF6CE2385DC6FE57` (`subcategory_id`),
  KEY `IDX_DF6CE23859FD88CD` (`websiteConfig_id`),
  KEY `slug_idx` (`slug`),
  KEY `IDX_DF6CE23844F5D008` (`brand_id`),
  CONSTRAINT `FK_DF6CE23812469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`),
  CONSTRAINT `FK_DF6CE23844F5D008` FOREIGN KEY (`brand_id`) REFERENCES `brand` (`id`),
  CONSTRAINT `FK_DF6CE23859FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_DF6CE2385DC6FE57` FOREIGN KEY (`subcategory_id`) REFERENCES `subcategory` (`id`),
  CONSTRAINT `FK_DF6CE238D823E37A` FOREIGN KEY (`section_id`) REFERENCES `section` (`id`),
  CONSTRAINT `FK_DF6CE238FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSEOSectionCategorySubcategory`
--


--
-- Table structure for table `websiteSEOText`
--

CREATE TABLE `websiteSEOText` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `text` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `sort` int DEFAULT NULL,
  `is_enabled` tinyint(1) NOT NULL,
  `typeSEOText_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeSEOTextPlacement_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DB2CAC5EFE54D947` (`group_id`),
  KEY `IDX_DB2CAC5E1717F093` (`typeSEOText_id`),
  KEY `IDX_DB2CAC5EA7D854BC` (`typeSEOTextPlacement_id`),
  KEY `IDX_DB2CAC5E59FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_DB2CAC5E1717F093` FOREIGN KEY (`typeSEOText_id`) REFERENCES `typeSEOText` (`id`),
  CONSTRAINT `FK_DB2CAC5E59FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_DB2CAC5EA7D854BC` FOREIGN KEY (`typeSEOTextPlacement_id`) REFERENCES `typeSEOTextPlacement` (`id`),
  CONSTRAINT `FK_DB2CAC5EFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSEOText`
--


--
-- Table structure for table `websiteSEOText_category`
--

CREATE TABLE `websiteSEOText_category` (
  `website_seotext_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `category_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`website_seotext_id`,`category_id`),
  KEY `IDX_1F1A8B8294070402` (`website_seotext_id`),
  KEY `IDX_1F1A8B8212469DE2` (`category_id`),
  CONSTRAINT `FK_1F1A8B8212469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1F1A8B8294070402` FOREIGN KEY (`website_seotext_id`) REFERENCES `websiteSEOText` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSEOText_category`
--


--
-- Table structure for table `websiteSEOText_section`
--

CREATE TABLE `websiteSEOText_section` (
  `website_seotext_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `section_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`website_seotext_id`,`section_id`),
  KEY `IDX_17D7487994070402` (`website_seotext_id`),
  KEY `IDX_17D74879D823E37A` (`section_id`),
  CONSTRAINT `FK_17D7487994070402` FOREIGN KEY (`website_seotext_id`) REFERENCES `websiteSEOText` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_17D74879D823E37A` FOREIGN KEY (`section_id`) REFERENCES `section` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSEOText_section`
--


--
-- Table structure for table `websiteSEOText_subcategory`
--

CREATE TABLE `websiteSEOText_subcategory` (
  `website_seotext_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `subcategory_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`website_seotext_id`,`subcategory_id`),
  KEY `IDX_BE7F8B9194070402` (`website_seotext_id`),
  KEY `IDX_BE7F8B915DC6FE57` (`subcategory_id`),
  CONSTRAINT `FK_BE7F8B915DC6FE57` FOREIGN KEY (`subcategory_id`) REFERENCES `subcategory` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_BE7F8B9194070402` FOREIGN KEY (`website_seotext_id`) REFERENCES `websiteSEOText` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSEOText_subcategory`
--


--
-- Table structure for table `websiteSection`
--

CREATE TABLE `websiteSection` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `website_visits` int DEFAULT NULL,
  `exclude_from_website` tinyint(1) NOT NULL,
  `image_position_on_website` tinyint(1) NOT NULL,
  `hide_image_on_website` tinyint(1) NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `websiteSection_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `sort` int DEFAULT NULL,
  `date_last_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_897840DBFE54D947` (`group_id`),
  KEY `IDX_897840DB59FD88CD` (`websiteConfig_id`),
  KEY `IDX_897840DB493AA963` (`websiteSection_id`),
  CONSTRAINT `FK_897840DB493AA963` FOREIGN KEY (`websiteSection_id`) REFERENCES `section` (`id`),
  CONSTRAINT `FK_897840DB59FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_897840DBFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSection`
--

INSERT INTO `websiteSection` VALUES ('8c23fbea-a82f-4380-b9f8-82d10eccf498','471070-b212-4109-894e-d6283fe29e74',0,0,0,0,'d403379c-0666-45a9-a217-0357881987f2','1d5db8fe-1dbc-4a2c-96d1-454adc4b0af9',1,'2024-08-09 11:07:15');

--
-- Table structure for table `websiteSortingArticle`
--

CREATE TABLE `websiteSortingArticle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `sort` int NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_973EF04B7294869C` (`article_id`),
  KEY `IDX_973EF04B59FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_973EF04B59FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_973EF04B7294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSortingArticle`
--


--
-- Table structure for table `websiteSortingArticleCategory`
--

CREATE TABLE `websiteSortingArticleCategory` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `category_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `sort` int NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B2E502287294869C` (`article_id`),
  KEY `IDX_B2E5022812469DE2` (`category_id`),
  KEY `IDX_B2E5022859FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_B2E5022812469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`),
  CONSTRAINT `FK_B2E5022859FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_B2E502287294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSortingArticleCategory`
--


--
-- Table structure for table `websiteSortingArticleSection`
--

CREATE TABLE `websiteSortingArticleSection` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `article_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `section_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datecreation` datetime NOT NULL,
  `sort` int NOT NULL,
  `websiteConfig_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8FD6A4137294869C` (`article_id`),
  KEY `IDX_8FD6A413D823E37A` (`section_id`),
  KEY `IDX_8FD6A41359FD88CD` (`websiteConfig_id`),
  CONSTRAINT `FK_8FD6A41359FD88CD` FOREIGN KEY (`websiteConfig_id`) REFERENCES `websiteConfig` (`id`),
  CONSTRAINT `FK_8FD6A4137294869C` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
  CONSTRAINT `FK_8FD6A413D823E37A` FOREIGN KEY (`section_id`) REFERENCES `section` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteSortingArticleSection`
--


--
-- Table structure for table `websiteTheme`
--

CREATE TABLE `websiteTheme` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filename` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `websiteTheme`
--

INSERT INTO `websiteTheme` VALUES ('1','Classic',NULL),('2','Modern',NULL),('3','Visual menu',NULL),('4','Full width',NULL);

--
-- Table structure for table `wholeSalerBudgeArticle`
--

CREATE TABLE `wholeSalerBudgeArticle` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `serie_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_of_creation` datetime DEFAULT NULL,
  `brand` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `model` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `color` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reference` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pvp` decimal(8,2) DEFAULT NULL,
  `costPrice` decimal(8,2) DEFAULT NULL,
  `distribution` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `units_ordered` int NOT NULL,
  `total_cost_price` decimal(14,2) DEFAULT NULL,
  `total_pvp` decimal(14,2) DEFAULT NULL,
  `totalArticle` decimal(8,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `loop_index` int DEFAULT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `wholeSalerBudget_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_9B98101FFE54D947` (`group_id`),
  KEY `IDX_9B98101F66E4D7CC` (`wholeSalerBudget_id`),
  KEY `IDX_9B98101FD94388BD` (`serie_id`),
  CONSTRAINT `FK_9B98101F66E4D7CC` FOREIGN KEY (`wholeSalerBudget_id`) REFERENCES `wholeSalerBudget` (`id`),
  CONSTRAINT `FK_9B98101FD94388BD` FOREIGN KEY (`serie_id`) REFERENCES `serie` (`id`),
  CONSTRAINT `FK_9B98101FFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerBudgeArticle`
--


--
-- Table structure for table `wholeSalerBudget`
--

CREATE TABLE `wholeSalerBudget` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `modified_at` datetime NOT NULL,
  `date_for_printing` datetime DEFAULT NULL,
  `order_notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `num_articles` int NOT NULL,
  `num_stock` int NOT NULL,
  `total_valoration` decimal(14,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `invoice_iterator` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FE2C50D7FE54D947` (`group_id`),
  KEY `IDX_FE2C50D7979B1AD6` (`company_id`),
  KEY `IDX_FE2C50D79395C3F3` (`customer_id`),
  KEY `IDX_FE2C50D761220EA6` (`creator_id`),
  KEY `alias_idx` (`alias`),
  KEY `invoice_iterator_idx` (`invoice_iterator`),
  CONSTRAINT `FK_FE2C50D761220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_FE2C50D79395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `customerWholeSaler` (`id`),
  CONSTRAINT `FK_FE2C50D7979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_FE2C50D7FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerBudget`
--


--
-- Table structure for table `wholeSalerDeliveryNote`
--

CREATE TABLE `wholeSalerDeliveryNote` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shop_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `modified_at` datetime NOT NULL,
  `date_for_printing` datetime DEFAULT NULL,
  `date_closed` datetime DEFAULT NULL,
  `is_closed` tinyint(1) NOT NULL,
  `notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `num_articles` int NOT NULL,
  `num_stock` int NOT NULL,
  `total_base` decimal(14,2) DEFAULT NULL,
  `total_valoration` decimal(14,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `wholeSalerBudget_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `invoice_iterator` int NOT NULL,
  `is_cancelled` tinyint(1) NOT NULL,
  `is_reopen` tinyint(1) NOT NULL,
  `text_binnacle_returning` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_86F4F31EFE54D947` (`group_id`),
  KEY `IDX_86F4F31E4D16C4DD` (`shop_id`),
  KEY `IDX_86F4F31E9395C3F3` (`customer_id`),
  KEY `IDX_86F4F31E66E4D7CC` (`wholeSalerBudget_id`),
  KEY `IDX_86F4F31E61220EA6` (`creator_id`),
  KEY `IDX_86F4F31E979B1AD6` (`company_id`),
  KEY `alias_idx` (`alias`),
  KEY `invoice_iterator_idx` (`invoice_iterator`),
  CONSTRAINT `FK_86F4F31E4D16C4DD` FOREIGN KEY (`shop_id`) REFERENCES `shop` (`id`),
  CONSTRAINT `FK_86F4F31E61220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_86F4F31E66E4D7CC` FOREIGN KEY (`wholeSalerBudget_id`) REFERENCES `wholeSalerBudget` (`id`),
  CONSTRAINT `FK_86F4F31E9395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `customerWholeSaler` (`id`),
  CONSTRAINT `FK_86F4F31E979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_86F4F31EFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerDeliveryNote`
--


--
-- Table structure for table `wholeSalerDeliveryNoteElement`
--

CREATE TABLE `wholeSalerDeliveryNoteElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stock_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `pvpFinal` decimal(14,2) DEFAULT NULL,
  `pvpFinalForSale` decimal(14,2) DEFAULT NULL,
  `discount_percentage` decimal(14,2) DEFAULT NULL,
  `wholeSalerDeliveryNote_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_5F9CF4FBF5B8CFB7` (`wholeSalerDeliveryNote_id`),
  KEY `IDX_5F9CF4FBDCD6110` (`stock_id`),
  CONSTRAINT `FK_5F9CF4FBDCD6110` FOREIGN KEY (`stock_id`) REFERENCES `stock` (`id`),
  CONSTRAINT `FK_5F9CF4FBF5B8CFB7` FOREIGN KEY (`wholeSalerDeliveryNote_id`) REFERENCES `wholeSalerDeliveryNote` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerDeliveryNoteElement`
--


--
-- Table structure for table `wholeSalerDeliveryNotePayment`
--

CREATE TABLE `wholeSalerDeliveryNotePayment` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `amount` double DEFAULT NULL,
  `wholeSalerDeliveryNote_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeSalePayment_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_73F42ECFFE54D947` (`group_id`),
  KEY `IDX_73F42ECFA76ED395` (`user_id`),
  KEY `IDX_73F42ECFF5B8CFB7` (`wholeSalerDeliveryNote_id`),
  KEY `IDX_73F42ECF22C6B0AF` (`typeSalePayment_id`),
  KEY `dateCreation_idx` (`created_at`),
  CONSTRAINT `FK_73F42ECF22C6B0AF` FOREIGN KEY (`typeSalePayment_id`) REFERENCES `typeSalePayment` (`id`),
  CONSTRAINT `FK_73F42ECFA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_73F42ECFF5B8CFB7` FOREIGN KEY (`wholeSalerDeliveryNote_id`) REFERENCES `wholeSalerDeliveryNote` (`id`),
  CONSTRAINT `FK_73F42ECFFE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerDeliveryNotePayment`
--


--
-- Table structure for table `wholeSalerInvoice`
--

CREATE TABLE `wholeSalerInvoice` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `group_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `creator_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `company_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `date_invoiced` datetime DEFAULT NULL,
  `date_payed` datetime DEFAULT NULL,
  `code_invoice` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `total` decimal(14,2) DEFAULT NULL,
  `totalCustom` decimal(14,2) DEFAULT NULL,
  `discount` decimal(14,2) DEFAULT NULL,
  `is_total_manual` tinyint(1) NOT NULL,
  `articles` int DEFAULT NULL,
  `stocks` int DEFAULT NULL,
  `payment_description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_payment` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `days_payment` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bank_account_description_dealer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bank_account_number_dealer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bank_account_description_company` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bank_account_number_company` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `notes` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `typeStatusInvoice_id` int NOT NULL,
  `invoice_iterator_auto` int DEFAULT NULL,
  `totalBase` decimal(14,2) DEFAULT NULL,
  `totalTaxes` decimal(14,2) DEFAULT NULL,
  `text_binnacle` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `customerWholeSaler_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4F882620FE54D947` (`group_id`),
  KEY `IDX_4F88262061220EA6` (`creator_id`),
  KEY `IDX_4F882620979B1AD6` (`company_id`),
  KEY `IDX_4F8826203E0DDB94` (`typeStatusInvoice_id`),
  KEY `codeInvoice_idx` (`code_invoice`),
  KEY `dateCreation_idx` (`date_creation`),
  KEY `dateInvoiced_idx` (`date_invoiced`),
  KEY `datePayed_idx` (`date_payed`),
  KEY `IDX_4F8826209FE97E5B` (`customerWholeSaler_id`),
  KEY `invoice_iterator_auto_idx` (`invoice_iterator_auto`),
  CONSTRAINT `FK_4F8826203E0DDB94` FOREIGN KEY (`typeStatusInvoice_id`) REFERENCES `typeStatusInvoice` (`id`),
  CONSTRAINT `FK_4F88262061220EA6` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`),
  CONSTRAINT `FK_4F882620979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`),
  CONSTRAINT `FK_4F8826209FE97E5B` FOREIGN KEY (`customerWholeSaler_id`) REFERENCES `customerWholeSaler` (`id`),
  CONSTRAINT `FK_4F882620FE54D947` FOREIGN KEY (`group_id`) REFERENCES `groupcc` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerInvoice`
--


--
-- Table structure for table `wholeSalerInvoiceElement`
--

CREATE TABLE `wholeSalerInvoiceElement` (
  `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `wholeSalerInvoice_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `wholeSalerDeliveryNote_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D2540B2A7EB10BA9` (`wholeSalerInvoice_id`),
  KEY `IDX_D2540B2AF5B8CFB7` (`wholeSalerDeliveryNote_id`),
  KEY `createAt_idx` (`created_at`),
  CONSTRAINT `FK_D2540B2A7EB10BA9` FOREIGN KEY (`wholeSalerInvoice_id`) REFERENCES `wholeSalerInvoice` (`id`),
  CONSTRAINT `FK_D2540B2AF5B8CFB7` FOREIGN KEY (`wholeSalerDeliveryNote_id`) REFERENCES `wholeSalerDeliveryNote` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `wholeSalerInvoiceElement`
--



