diff --git a/db/dump/.dump/data.sql b/db/dump/.dump/data.sql index bb63784b1f..0adedb7357 100644 --- a/db/dump/.dump/data.sql +++ b/db/dump/.dump/data.sql @@ -4,7 +4,7 @@ USE `util`; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -INSERT INTO `version` VALUES ('vn-database','11436','f83055057e5eb15c800033882ea117e6ee646673','2025-02-18 09:15:11','11445'); +INSERT INTO `version` VALUES ('vn-database','11457','80a27e44d935caee5409068a332f13f3e808889d','2025-03-04 07:56:33','11475'); INSERT INTO `versionLog` VALUES ('vn-database','10107','00-firstScript.sql','jenkins@10.0.2.69','2022-04-23 10:53:53',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','10112','00-firstScript.sql','jenkins@10.0.2.69','2022-05-09 09:14:53',NULL,NULL); @@ -739,6 +739,7 @@ INSERT INTO `versionLog` VALUES ('vn-database','10930','05-payroll_centros.sql', INSERT INTO `versionLog` VALUES ('vn-database','10930','06-payroll_conceptos.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-04-18 07:40:52',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','10930','07-Permisos.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-04-18 07:40:52',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','10932','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-04-04 07:34:53',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','10936','00-updateACL.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:44',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','10940','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-03-06 16:48:18',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','10941','00-restoreVn2008Jerarquia.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-03-07 09:36:57',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','10942','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-03-07 10:24:45',NULL,NULL); @@ -921,6 +922,7 @@ INSERT INTO `versionLog` VALUES ('vn-database','11128','00-firstScript.sql','jen INSERT INTO `versionLog` VALUES ('vn-database','11129','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-07-23 08:22:15',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11130','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-07-23 08:22:15',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11131','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-07-23 08:22:15',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11132','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:44',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11134','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-07-05 11:02:07',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11135','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-07-23 08:22:16',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11136','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-07-23 08:22:16',NULL,NULL); @@ -1073,6 +1075,7 @@ INSERT INTO `versionLog` VALUES ('vn-database','11297','01-firstScript.sql','jen INSERT INTO `versionLog` VALUES ('vn-database','11298','00-closure.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-12 08:00:37',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11300','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-10-18 08:27:05',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11302','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-12 08:00:57',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11306','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:44',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11308','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2024-10-23 12:41:55',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11311','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-12 08:00:57',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11312','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-12-10 07:20:04',NULL,NULL); @@ -1091,6 +1094,7 @@ INSERT INTO `versionLog` VALUES ('vn-database','11327','00-firstScript.sql','jen INSERT INTO `versionLog` VALUES ('vn-database','11330','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-26 07:05:30',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11331','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-26 07:05:30',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11332','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-12-10 07:20:04',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11334','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:44',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11336','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-26 07:05:30',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11337','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-26 07:05:30',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11338','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2024-11-12 09:14:12',NULL,NULL); @@ -1147,16 +1151,20 @@ INSERT INTO `versionLog` VALUES ('vn-database','11383','02-province.sql','jenkin INSERT INTO `versionLog` VALUES ('vn-database','11384','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-01-07 07:46:32',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11385','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-01-07 07:46:33',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11387','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:58',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11389','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:45',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11390','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-14 07:32:08',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11391','00-itemAlter.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-14 07:32:08',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11393','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-02-18 08:53:36',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11394','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:46',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11396','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:58',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11398','00-zoneEventPriceOptimum.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:59',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11398','00-zonePriceOptimum.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:59',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11398','01-zoneUpdate.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:59',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11398','02-clientAlter.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:59',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11398','03-clientConfig.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:43:59',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11399','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:46',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11400','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-01-09 09:55:24',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11404','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:46',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11405','00-entryAlter.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:44:00',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11406','00-currrencyAlter.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:44:00',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11406','01-currrencyUpdate.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-01-28 07:44:00',NULL,NULL); @@ -1191,6 +1199,15 @@ INSERT INTO `versionLog` VALUES ('vn-database','11436','00-firstScript.sql','jen INSERT INTO `versionLog` VALUES ('vn-database','11436','01-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-02-18 08:53:47',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11436','02-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-02-18 08:53:47',NULL,NULL); INSERT INTO `versionLog` VALUES ('vn-database','11436','03-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-02-18 08:53:47',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11441','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:53:49',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11441','01-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:56:30',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11445','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-02-18 09:52:08',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11447','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-02-20 07:31:17',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11454','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:56:30',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11457','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-03-04 07:56:30',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11458','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-02-26 12:58:55',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11463','00-firstScript.sql','jenkins@db-proxy1.servers.dc.verdnatura.es','2025-02-27 19:24:32',NULL,NULL); +INSERT INTO `versionLog` VALUES ('vn-database','11468','00-firstScript.sql','jenkins@db-proxy2.servers.dc.verdnatura.es','2025-03-03 14:42:24',NULL,NULL); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; @@ -1291,6 +1308,7 @@ INSERT INTO `role` VALUES (130,'reviewer','Revisor de producción',1,'2024-06-11 INSERT INTO `role` VALUES (131,'supplier','Privilegios básicos de un proveedor',1,'2024-07-05 10:18:58','2024-07-05 10:18:58',19295); INSERT INTO `role` VALUES (132,'salesPersonClaim','Departamento de ventas con funciones de reclamaciones',1,'2025-01-17 07:07:40','2025-01-17 07:07:40',19295); INSERT INTO `role` VALUES (133,'deliveryFreelancer','Repartidor autónomo',1,'2025-02-18 08:53:36','2025-02-18 08:53:36',10578); +INSERT INTO `role` VALUES (134,'productionHr','Jefe de producción con permisos de hr',1,'2025-02-27 12:25:45','2025-02-27 12:25:45',13657); INSERT INTO `roleInherit` VALUES (1,1,2,NULL); INSERT INTO `roleInherit` VALUES (2,1,3,NULL); @@ -1554,7 +1572,6 @@ INSERT INTO `roleInherit` VALUES (364,35,18,NULL); INSERT INTO `roleInherit` VALUES (365,123,119,NULL); INSERT INTO `roleInherit` VALUES (366,30,37,NULL); INSERT INTO `roleInherit` VALUES (367,30,73,NULL); -INSERT INTO `roleInherit` VALUES (368,130,49,10578); INSERT INTO `roleInherit` VALUES (369,50,130,10578); INSERT INTO `roleInherit` VALUES (370,72,130,10578); INSERT INTO `roleInherit` VALUES (371,36,35,NULL); @@ -1573,6 +1590,10 @@ INSERT INTO `roleInherit` VALUES (386,109,132,19295); INSERT INTO `roleInherit` VALUES (387,101,122,19295); INSERT INTO `roleInherit` VALUES (388,59,58,13657); INSERT INTO `roleInherit` VALUES (389,59,111,19295); +INSERT INTO `roleInherit` VALUES (390,59,35,35559); +INSERT INTO `roleInherit` VALUES (391,134,50,13657); +INSERT INTO `roleInherit` VALUES (392,134,37,13657); +INSERT INTO `roleInherit` VALUES (393,130,49,24503); INSERT INTO `userPassword` VALUES (1,7,1,0,2,1); @@ -2468,6 +2489,46 @@ INSERT INTO `ACL` VALUES (1038,'Route','sendSms','WRITE','ALLOW','ROLE','deliver INSERT INTO `ACL` VALUES (1039,'Ticket','updateAttributes','WRITE','ALLOW','ROLE','deliveryFreelancer',10578); INSERT INTO `ACL` VALUES (1040,'Client','findById','READ','ALLOW','ROLE','deliveryFreelancer',10578); INSERT INTO `ACL` VALUES (1041,'Entry','transfer','WRITE','ALLOW','ROLE','coolerBoss',10578); +INSERT INTO `ACL` VALUES (1042,'Ticket','itemLack','READ','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1043,'Ticket','itemLackDetail','READ','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1044,'Ticket','split','WRITE','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1045,'Sale','replaceItem','WRITE','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1046,'Ticket','getTicketProblems','READ','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1047,'Vehicle','filter','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1048,'Vehicle','filter','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1049,'Vehicle','find','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1050,'Vehicle','find','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1051,'Vehicle','findById','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1052,'Vehicle','findById','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1053,'Vehicle','__get__active','READ','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1054,'Vehicle','updateAttributes','WRITE','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1055,'Vehicle','updateAttributes','WRITE','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1056,'Vehicle','deleteById','WRITE','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1057,'Vehicle','deleteById','WRITE','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1058,'Vehicle','create','WRITE','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1059,'Vehicle','create','WRITE','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1060,'BankPolicy','find','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1061,'BankPolicy','find','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1062,'VehicleState','find','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1063,'VehicleState','find','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1064,'Ppe','find','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1065,'Ppe','find','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1066,'VehicleType','find','READ','ALLOW','ROLE','employee',10578); +INSERT INTO `ACL` VALUES (1067,'DeliveryPoint','find','READ','ALLOW','ROLE','deliveryAssistant',10578); +INSERT INTO `ACL` VALUES (1068,'DeliveryPoint','find','READ','ALLOW','ROLE','administrative',10578); +INSERT INTO `ACL` VALUES (1069,'Entry','getBuyList','READ','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1070,'Entry','getBuyUltimate','READ','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1071,'Entry','search','READ','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1072,'Entry','create','WRITE','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1073,'Entry','cloneEntry','WRITE','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1074,'Entry','deleteEntry','WRITE','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1075,'Entry','recalcEntryPrices','WRITE','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1076,'EntryType','find','READ','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1077,'EntryConfig','findOne','READ','ALLOW','ROLE','buyer',10578); +INSERT INTO `ACL` VALUES (1078,'WorkerDms','hasHighPrivs','READ','ALLOW','ROLE','hr',10578); +INSERT INTO `ACL` VALUES (1079,'Business','updateAttributes','WRITE','ALLOW','ROLE','hr',10578); +INSERT INTO `ACL` VALUES (1080,'Worker','__get__business','READ','ALLOW','ROLE','hr',10578); +INSERT INTO `ACL` VALUES (1081,'Worker','getWorkerBusiness','READ','ALLOW','ROLE','hr',10578); INSERT INTO `fieldAcl` VALUES (1,'Client','name','update','employee'); INSERT INTO `fieldAcl` VALUES (2,'Client','contact','update','employee'); @@ -2766,7 +2827,7 @@ INSERT INTO `continent` VALUES (3,'África','AF'); INSERT INTO `continent` VALUES (4,'Europa','EU'); INSERT INTO `continent` VALUES (5,'Oceanía','OC'); -INSERT INTO `department` VALUES (1,'VN','VERDNATURA',1,134,763,0,0,0,0,26,NULL,'/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (1,'VN','VERDNATURA',1,136,763,0,0,0,0,26,NULL,'/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (22,'shopping','COMPRAS',2,5,NULL,72,0,0,1,1,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (23,'CMA','CAMARA',15,16,NULL,72,1,1,2,0,37,'/1/37/',NULL,0,NULL,0,1,1,1,NULL,NULL,NULL,'PREVIOUS'); INSERT INTO `department` VALUES (31,'it','INFORMATICA',6,7,NULL,72,0,0,1,0,1,'/1/','informatica-cau',1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); @@ -2777,28 +2838,28 @@ INSERT INTO `department` VALUES (37,'PROD','PRODUCCION',14,41,NULL,72,1,1,1,13,1 INSERT INTO `department` VALUES (38,'picking','SACADO',17,18,NULL,72,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,1,0,1,NULL,NULL,NULL,'ON_PREPARATION'); INSERT INTO `department` VALUES (39,'packing','ENCAJADO',19,20,NULL,72,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,1,NULL,NULL,NULL,'PACKING'); INSERT INTO `department` VALUES (41,'administration','ADMINISTRACION',42,43,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (43,'VT','VENTAS',44,93,NULL,0,0,0,1,24,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (44,'management','GERENCIA',94,95,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (45,'logistic','LOGISTICA',96,97,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (46,'delivery','REPARTO',98,99,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,'DELIVERY'); -INSERT INTO `department` VALUES (48,'storage','ALMACENAJE',100,101,NULL,0,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,'STORAGE'); -INSERT INTO `department` VALUES (49,NULL,'PROPIEDAD',102,103,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (52,NULL,'CARGA AEREA',104,105,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (43,'VT','VENTAS',44,95,NULL,0,0,0,1,25,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (44,'management','GERENCIA',96,97,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (45,'logistic','LOGISTICA',98,99,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (46,'delivery','REPARTO',100,101,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,'DELIVERY'); +INSERT INTO `department` VALUES (48,'storage','ALMACENAJE',102,103,NULL,0,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,'STORAGE'); +INSERT INTO `department` VALUES (49,NULL,'PROPIEDAD',104,105,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (52,NULL,'CARGA AEREA',106,107,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (53,'marketing','MARKETING Y COMUNICACIÓN',45,46,NULL,72,0,0,2,0,43,'/1/43/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (54,NULL,'ORNAMENTALES',106,107,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (54,NULL,'ORNAMENTALES',108,109,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (55,NULL,'TALLER NATURAL',21,22,14548,72,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,1,1,0,1118,NULL,NULL,NULL); INSERT INTO `department` VALUES (56,NULL,'TALLER ARTIFICIAL',23,24,8470,72,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,1,1,0,1927,NULL,NULL,NULL); -INSERT INTO `department` VALUES (58,'CMP','CAMPOS',108,111,NULL,72,0,0,1,1,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,'FIELD'); -INSERT INTO `department` VALUES (59,'maintenance','MANTENIMIENTO',112,113,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (58,'CMP','CAMPOS',110,113,NULL,72,0,0,1,1,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,'FIELD'); +INSERT INTO `department` VALUES (59,'maintenance','MANTENIMIENTO',114,115,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (60,'claims','RECLAMACIONES',47,48,NULL,72,0,0,2,0,43,'/1/43/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,'CLAIM'); -INSERT INTO `department` VALUES (61,NULL,'VNH',114,117,NULL,73,0,0,1,1,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (66,NULL,'VERDNAMADRID',118,119,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (61,NULL,'VNH',116,119,NULL,73,0,0,1,1,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (66,NULL,'VERDNAMADRID',120,121,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (68,NULL,'COMPLEMENTOS',25,26,NULL,72,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (69,NULL,'VERDNABARNA',120,121,NULL,74,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (69,NULL,'VERDNABARNA',122,123,NULL,74,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (80,'spainTeam5','EQUIPO ESPAÑA 5',49,50,4250,0,0,0,2,0,43,'/1/43/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (86,NULL,'LIMPIEZA',122,123,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (89,NULL,'COORDINACION',124,125,NULL,0,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (90,NULL,'TRAILER',115,116,NULL,0,0,0,2,0,61,'/1/61/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (86,NULL,'LIMPIEZA',124,125,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (89,NULL,'COORDINACION',126,127,NULL,0,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (90,NULL,'TRAILER',117,118,NULL,0,0,0,2,0,61,'/1/61/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (91,'artificial','ARTIFICIAL',27,28,NULL,0,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,'PREVIOUS'); INSERT INTO `department` VALUES (92,NULL,'EQUIPO SILVERIO',51,52,1203,0,0,0,2,0,43,'/1/43/','sdc_equipo',0,'gestioncomercial@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (94,'spainTeam2','EQUIPO ESPAÑA 2',53,54,3797,0,0,0,2,0,43,'/1/43/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); @@ -2806,18 +2867,18 @@ INSERT INTO `department` VALUES (95,'spainTeam1','EQUIPO ESPAÑA 1',55,56,24065, INSERT INTO `department` VALUES (96,NULL,'EQUIPO C LOPEZ',57,58,4661,0,0,0,2,0,43,'/1/43/','cla_equipo',0,'gestioncomercial@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (115,NULL,'EQUIPO CLAUDI',59,60,3810,0,0,0,2,0,43,'/1/43/','csr_equipo',0,'gestioncomercial@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (123,NULL,'EQUIPO ELENA BASCUÑANA',61,62,7102,0,0,0,2,0,43,'/1/43/','ebt_equipo',0,'gestioncomercial@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (124,NULL,'CONTROL INTERNO',126,127,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (124,NULL,'CONTROL INTERNO',128,129,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (125,'spainTeam3','EQUIPO ESPAÑA 3',63,64,1118,0,0,0,2,0,43,'/1/43/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (126,'preserved','PRESERVADO',29,30,NULL,0,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,1,1,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (128,NULL,'PALETIZADO',31,32,NULL,0,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,'PALLETIZING'); INSERT INTO `department` VALUES (130,'reviewers','REVISION',33,34,NULL,0,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,1,NULL,NULL,NULL,'ON_CHECKING'); -INSERT INTO `department` VALUES (131,'greenhouse','INVERNADERO',109,110,NULL,0,0,0,2,0,58,'/1/58/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (131,'greenhouse','INVERNADERO',111,112,NULL,0,0,0,2,0,58,'/1/58/',NULL,0,NULL,0,1,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (132,NULL,'EQUIPO DC',65,66,1731,0,0,0,2,0,43,'/1/43/','dc_equipo',1,'gestioncomercial@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (133,'franceTeamManagement','EQUIPO GESTIÓN FRANCIA',67,68,9751,72,0,0,2,0,43,'/1/43/','fr_equipo',1,'gestionfrancia@verdnatura.es',0,0,0,0,NULL,NULL,'3300',NULL); INSERT INTO `department` VALUES (134,'portugalTeam','EQUIPO PORTUGAL',69,70,8964,0,0,0,2,0,43,'/1/43/','pt_equipo',1,'portugal@verdnatura.es',0,0,0,0,NULL,NULL,'3500',NULL); -INSERT INTO `department` VALUES (135,'routers','ENRUTADORES',128,129,NULL,0,0,0,1,0,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (136,'heavyVehicles','VEHICULOS PESADOS',130,131,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); -INSERT INTO `department` VALUES (137,'sorter','SORTER',132,133,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (135,'routers','ENRUTADORES',130,131,NULL,0,0,0,1,0,1,'/1/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (136,'heavyVehicles','VEHICULOS PESADOS',132,133,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (137,'sorter','SORTER',134,135,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (139,'spainTeam4','EQUIPO ESPAÑA 4',71,72,3803,0,0,0,2,0,43,'/1/43/',NULL,1,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (140,'internationalTeam','EQUIPO INTERNACIONAL',73,74,24065,0,0,0,2,0,43,'/1/43/','int_equipo',1,'international@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (141,NULL,'PREVIA',35,36,NULL,0,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,1,NULL,NULL,NULL,'PREVIOUS'); @@ -2833,6 +2894,7 @@ INSERT INTO `department` VALUES (154,'spainTeamCenter','EQUIPO ESPAÑA CENTRO',8 INSERT INTO `department` VALUES (155,'spainTeamVip','EQUIPO ESPAÑA VIP',91,92,5432,0,0,0,2,0,43,'/1/43/','es_vip_equipo',1,'es_vip@verdnatura.es',0,0,0,0,NULL,NULL,'5600',NULL); INSERT INTO `department` VALUES (156,NULL,'COCINA',37,38,NULL,0,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `department` VALUES (157,NULL,'RECICLAJE',39,40,NULL,0,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL,NULL,NULL,NULL); +INSERT INTO `department` VALUES (158,'franceTeamVip','EQUIPO FRANCIA VIP',93,94,NULL,0,0,0,2,0,43,'/1/43/','fr_vip_equipo',0,'fr_vip@verdnatura.es',0,0,0,0,NULL,NULL,NULL,NULL); INSERT INTO `docuware` VALUES (1,'deliveryNote','Albaranes cliente','find','find','N__ALBAR_N',NULL); INSERT INTO `docuware` VALUES (2,'deliveryNote','Albaranes cliente','store','Archivar','N__ALBAR_N',NULL); @@ -2964,7 +3026,7 @@ INSERT INTO `ticketUpdateAction` VALUES (2,'Convertir en maná','mana'); INSERT INTO `ticketCanAdvanceConfig` VALUES (1,5); -INSERT INTO `volumeConfig` VALUES (1,2.67,1.60,0.8,150,0.30,120,57,2.0,50,200,10,167.0); +INSERT INTO `volumeConfig` VALUES (1,2.67,1.60,0.8,150,0.30,120,57,2.0,50,200,10,167.0,1.70); INSERT INTO `workerActivityType` VALUES ('CLAIM','RECLAMACIONES'); INSERT INTO `workerActivityType` VALUES ('DELIVERY','REPARTO'); diff --git a/db/dump/.dump/privileges.sql b/db/dump/.dump/privileges.sql index 634cdc95f6..2d2a2f57b5 100644 --- a/db/dump/.dump/privileges.sql +++ b/db/dump/.dump/privileges.sql @@ -751,11 +751,9 @@ INSERT IGNORE INTO `tables_priv` VALUES ('','vn','buyer','dua','alexm@%','0000-0 INSERT IGNORE INTO `tables_priv` VALUES ('','vn','buyer','duaEntry','alexm@%','0000-00-00 00:00:00','Insert,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','buyer','expeditionTruck','alexm@%','0000-00-00 00:00:00','Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','srt','maintenance','moving','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Delete',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hrBoss','machineDetail','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hrBoss','machineDms','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn2008','adminBoss','gastos_resumen','alexm@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','claimManager','vehicle','alexm@%','0000-00-00 00:00:00','Select',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','buyer','awb','alexm@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hrBoss','machine','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn2008','logistic','Entradas_dits','alexm@%','0000-00-00 00:00:00','Insert,Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','workerTimeControlMail','alexm@%','0000-00-00 00:00:00','Select,Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','bi','coolerBoss','rotacion','alexm@%','0000-00-00 00:00:00','Select',''); @@ -769,7 +767,6 @@ INSERT IGNORE INTO `tables_priv` VALUES ('','srt','maintenance','lastRFID','alex INSERT IGNORE INTO `tables_priv` VALUES ('','vn','employee','person__','alexm@%','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','srt','maintenance','config','alexm@%','0000-00-00 00:00:00','Select',''); INSERT IGNORE INTO `tables_priv` VALUES ('','srt','maintenance','expedition','alexm@%','0000-00-00 00:00:00','Select',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','coolerAssist','travel','alexm@%','0000-00-00 00:00:00','Insert',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','itemPicker','buy','alexm@%','0000-00-00 00:00:00','Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn2008','logistic','Entradas_Auto','alexm@%','0000-00-00 00:00:00','Select,Insert,Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','administrative','machine','alexm@%','0000-00-00 00:00:00','Select',''); @@ -916,7 +913,7 @@ INSERT IGNORE INTO `tables_priv` VALUES ('','vn','productionAssi','train','alexm INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','trainingCenter','alexm@%','0000-00-00 00:00:00','Select',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','trainingCourse','alexm@%','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','trainingCourseType','alexm@%','0000-00-00 00:00:00','Select',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','employee','travel','alexm@%','0000-00-00 00:00:00','Update',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','grafana','workerBusinessType','guillermo@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','logistic','travelClonedWeekly','alexm@%','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','bi','employee','facturacion_media_anual','alexm@%','0000-00-00 00:00:00','Select',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','buyer','travelObservation','alexm@%','0000-00-00 00:00:00','Select',''); @@ -1504,10 +1501,10 @@ INSERT IGNORE INTO `tables_priv` VALUES ('','vn','logisticAssist','itemSoldOutTa INSERT IGNORE INTO `tables_priv` VALUES ('','vn','logisticAssist','itemDurationTag','jenkins@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','logisticAssist','itemGrowingTag','jenkins@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','adminBoss','receipt','guillermo@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Update,Delete',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','machine','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','machine','guillermo@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','packagerBoss','awb','alexm@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','machineDetail','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','machineDms','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','machineDetail','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','hr','machineDms','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','logisticAssist','tag','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','packagerBoss','buy','carlosap@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','packagerBoss','genericAllocation','carlosap@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); @@ -1526,7 +1523,14 @@ INSERT IGNORE INTO `tables_priv` VALUES ('','vn','delivery','roadmapAddress','je INSERT IGNORE INTO `tables_priv` VALUES ('','vn','deliveryBoss','roadmap','jenkins@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','deliveryBoss','roadmapStop','jenkins@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); INSERT IGNORE INTO `tables_priv` VALUES ('','vn','deliveryBoss','roadmapAddress','jenkins@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); -INSERT IGNORE INTO `tables_priv` VALUES ('','vn','deliveryBoss','volumeConfig','jenkins@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','','Update'); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','deliveryBoss','volumeConfig','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','','Update'); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','buyer','travel','guillermo@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Insert,Update,Delete',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','grafana','supplierExpense','carlosap@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn2008','administrative','gastos_resumen','jgallego@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select,Insert,Update,Delete',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','grafana','temperature','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','productionBoss','packaging','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Update',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','deliveryBoss','roadmapEta','guillermo@db-proxy2.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); +INSERT IGNORE INTO `tables_priv` VALUES ('','vn','grafana','town','guillermo@db-proxy1.servers.dc.verdnatura.es','0000-00-00 00:00:00','Select',''); /*!40000 ALTER TABLE `tables_priv` ENABLE KEYS */; /*!40000 ALTER TABLE `columns_priv` DISABLE KEYS */; @@ -1586,7 +1590,7 @@ INSERT IGNORE INTO `columns_priv` VALUES ('','pbx','grafana','sip','user_id','00 INSERT IGNORE INTO `columns_priv` VALUES ('','pbx','grafana','sip','extension','0000-00-00 00:00:00','Select'); INSERT IGNORE INTO `columns_priv` VALUES ('','account','grafana','user','name','0000-00-00 00:00:00','Select'); INSERT IGNORE INTO `columns_priv` VALUES ('','account','grafana','user','active','0000-00-00 00:00:00','Select'); -INSERT IGNORE INTO `columns_priv` VALUES ('','vn','deliveryBoss','volumeConfig','palletM3','0000-00-00 00:00:00','Update'); +INSERT IGNORE INTO `columns_priv` VALUES ('','vn','deliveryBoss','volumeConfig','localPalletM3','0000-00-00 00:00:00','Update'); INSERT IGNORE INTO `columns_priv` VALUES ('','vn2008','administrative','Tickets','Bultos','0000-00-00 00:00:00','Update'); INSERT IGNORE INTO `columns_priv` VALUES ('','vn','employee','business','workerFk','0000-00-00 00:00:00','Select'); INSERT IGNORE INTO `columns_priv` VALUES ('','vn','employee','business','id','0000-00-00 00:00:00','Select'); @@ -1906,7 +1910,6 @@ INSERT IGNORE INTO `procs_priv` VALUES ('','util','grafana','firstdayofmonth','F INSERT IGNORE INTO `procs_priv` VALUES ('','vn','financial','addAccountReconciliation','PROCEDURE','jenkins@db-proxy1.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','claimManager','buy_getVolumeByEntry','PROCEDURE','alexm@%','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','buyer','buy_getVolumeByEntry','PROCEDURE','alexm@%','Execute','0000-00-00 00:00:00'); -INSERT IGNORE INTO `procs_priv` VALUES ('','vn','employee','entry_moveNotPrinted','PROCEDURE','alexm@%','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','employee','buy_getVolume','FUNCTION','alexm@%','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','buyer','stockBuyedByWorker','PROCEDURE','guillermo@db-proxy2.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','employee','buy_getsplit','PROCEDURE','juan@db-proxy2.static.verdnatura.es','Execute','0000-00-00 00:00:00'); @@ -1921,7 +1924,7 @@ INSERT IGNORE INTO `procs_priv` VALUES ('','vn','employee','entry_getCommission' INSERT IGNORE INTO `procs_priv` VALUES ('','vn','deliveryAssistant','expeditionstate_addbypallet','PROCEDURE','alexm@db-proxy2.static.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','administrative','ledger_nextTx','PROCEDURE','guillermo@10.5.1.3','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','hr','mail_insert','PROCEDURE','alexm@%','Execute','0000-00-00 00:00:00'); -INSERT IGNORE INTO `procs_priv` VALUES ('','vn','employee','entry_fixMisfit','PROCEDURE','alexm@%','Execute','0000-00-00 00:00:00'); +INSERT IGNORE INTO `procs_priv` VALUES ('','vn','coolerBoss','entry_moveNotPrinted','PROCEDURE','carlosap@db-proxy1.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','financial','entry_updateComission','PROCEDURE','guillermo@db-proxy2.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','util','guest','VN_CURDATE','FUNCTION','juan@db-proxy1.static.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','marketingBoss','clientTaxArea','FUNCTION','alexm@%','Execute','0000-00-00 00:00:00'); @@ -2273,6 +2276,9 @@ INSERT IGNORE INTO `procs_priv` VALUES ('','vn','packagerBoss','buy_getUltimate' INSERT IGNORE INTO `procs_priv` VALUES ('','vn','salesAssistant','ticket_clone','PROCEDURE','guillermo@db-proxy1.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','deliveryBoss','roadmap_cloneDay','PROCEDURE','guillermo@db-proxy1.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); INSERT IGNORE INTO `procs_priv` VALUES ('','vn','deliveryBoss','getTimeBetweenRoadmapAddresses','FUNCTION','guillermo@db-proxy1.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); +INSERT IGNORE INTO `procs_priv` VALUES ('','vn','marketingBoss','zone_getLeaves','PROCEDURE','guillermo@db-proxy2.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); +INSERT IGNORE INTO `procs_priv` VALUES ('','vn','administrative','balance_create','PROCEDURE','jgallego@db-proxy2.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); +INSERT IGNORE INTO `procs_priv` VALUES ('','vn','coolerBoss','entry_fixMisfit','PROCEDURE','carlosap@db-proxy1.servers.dc.verdnatura.es','Execute','0000-00-00 00:00:00'); /*!40000 ALTER TABLE `procs_priv` ENABLE KEYS */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; diff --git a/db/dump/.dump/structure.sql b/db/dump/.dump/structure.sql index ca8d360044..848f7dd13b 100644 --- a/db/dump/.dump/structure.sql +++ b/db/dump/.dump/structure.sql @@ -1,5 +1,5 @@ /*M!999999\- enable the sandbox mode */ --- MariaDB dump 10.19 Distrib 10.5.26-MariaDB, for debian-linux-gnu (x86_64) +-- MariaDB dump 10.19 Distrib 10.5.28-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: db.verdnatura.es Database: account -- ------------------------------------------------------ @@ -30,7 +30,7 @@ USE `account`; DROP TABLE IF EXISTS `account`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `account` ( `id` int(10) unsigned NOT NULL, `editorFk` int(10) unsigned DEFAULT NULL, @@ -47,7 +47,7 @@ CREATE TABLE `account` ( DROP TABLE IF EXISTS `accountConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountConfig` ( `id` tinyint(3) unsigned NOT NULL, `homedir` varchar(50) NOT NULL COMMENT 'The base folder for users home directory', @@ -69,7 +69,7 @@ CREATE TABLE `accountConfig` ( DROP TABLE IF EXISTS `accountDovecot`; /*!50001 DROP VIEW IF EXISTS `accountDovecot`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `accountDovecot` AS SELECT 1 AS `name`, 1 AS `password` */; @@ -82,7 +82,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `emailUser`; /*!50001 DROP VIEW IF EXISTS `emailUser`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `emailUser` AS SELECT 1 AS `userFk`, 1 AS `email` */; @@ -94,7 +94,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ldapConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ldapConfig` ( `id` int(10) unsigned NOT NULL, `server` varchar(255) NOT NULL COMMENT 'The LDAP server access url', @@ -113,7 +113,7 @@ CREATE TABLE `ldapConfig` ( DROP TABLE IF EXISTS `mailAlias`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailAlias` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `alias` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -133,7 +133,7 @@ CREATE TABLE `mailAlias` ( DROP TABLE IF EXISTS `mailAliasAccount`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailAliasAccount` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mailAlias` int(10) unsigned NOT NULL, @@ -155,7 +155,7 @@ CREATE TABLE `mailAliasAccount` ( DROP TABLE IF EXISTS `mailAliasAcl`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailAliasAcl` ( `mailAliasFk` int(10) unsigned NOT NULL, `roleFk` int(10) unsigned NOT NULL, @@ -172,7 +172,7 @@ CREATE TABLE `mailAliasAcl` ( DROP TABLE IF EXISTS `mailConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailConfig` ( `id` int(10) unsigned NOT NULL, `domain` varchar(255) NOT NULL, @@ -187,7 +187,7 @@ CREATE TABLE `mailConfig` ( DROP TABLE IF EXISTS `mailForward`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailForward` ( `account` int(10) unsigned NOT NULL, `forwardTo` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -206,7 +206,7 @@ CREATE TABLE `mailForward` ( DROP TABLE IF EXISTS `myRole`; /*!50001 DROP VIEW IF EXISTS `myRole`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myRole` AS SELECT 1 AS `id` */; SET character_set_client = @saved_cs_client; @@ -218,7 +218,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myUser`; /*!50001 DROP VIEW IF EXISTS `myUser`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myUser` AS SELECT 1 AS `id`, 1 AS `name`, @@ -235,7 +235,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `role` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(79) NOT NULL COMMENT 'MariaDB doesn''t support more than 79 chars for proxied user names', @@ -257,7 +257,7 @@ CREATE TABLE `role` ( DROP TABLE IF EXISTS `roleConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roleConfig` ( `id` int(10) unsigned NOT NULL, `mysqlPassword` varchar(255) NOT NULL COMMENT 'The password used for MySQL user roles, base64 encoded', @@ -276,7 +276,7 @@ CREATE TABLE `roleConfig` ( DROP TABLE IF EXISTS `roleInherit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roleInherit` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role` int(10) unsigned NOT NULL, @@ -298,7 +298,7 @@ CREATE TABLE `roleInherit` ( DROP TABLE IF EXISTS `roleLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roleLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -327,7 +327,7 @@ CREATE TABLE `roleLog` ( DROP TABLE IF EXISTS `roleRole`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roleRole` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role` int(10) unsigned NOT NULL, @@ -343,7 +343,7 @@ CREATE TABLE `roleRole` ( DROP TABLE IF EXISTS `sambaConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sambaConfig` ( `id` tinyint(3) unsigned NOT NULL, `adDomain` varchar(255) NOT NULL COMMENT 'Active directory domain', @@ -363,7 +363,7 @@ CREATE TABLE `sambaConfig` ( DROP TABLE IF EXISTS `signInLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `signInLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `token` varchar(255) NOT NULL, @@ -385,7 +385,7 @@ CREATE TABLE `signInLog` ( DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `realm` varchar(512) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -428,7 +428,7 @@ CREATE TABLE `user` ( DROP TABLE IF EXISTS `userConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userConfig` ( `id` int(10) unsigned NOT NULL, `loginKey` varchar(255) DEFAULT NULL, @@ -443,7 +443,7 @@ CREATE TABLE `userConfig` ( DROP TABLE IF EXISTS `userLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -472,7 +472,7 @@ CREATE TABLE `userLog` ( DROP TABLE IF EXISTS `userPassword`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userPassword` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `length` tinyint(3) unsigned NOT NULL COMMENT 'Minimal length', @@ -490,7 +490,7 @@ CREATE TABLE `userPassword` ( DROP TABLE IF EXISTS `userSync`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userSync` ( `name` varchar(30) NOT NULL COMMENT 'The user name', PRIMARY KEY (`name`) @@ -2194,7 +2194,7 @@ USE `bi`; DROP TABLE IF EXISTS `Equalizator`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Equalizator` ( `Vista` int(11) NOT NULL, `Pedido` int(11) DEFAULT NULL, @@ -2210,7 +2210,7 @@ CREATE TABLE `Equalizator` ( DROP TABLE IF EXISTS `Greuge_Evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Greuge_Evolution` ( `Id_Cliente` int(11) NOT NULL, `Fecha` date NOT NULL, @@ -2229,7 +2229,7 @@ CREATE TABLE `Greuge_Evolution` ( DROP TABLE IF EXISTS `Greuge_comercial_recobro`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Greuge_comercial_recobro` ( `Id_Trabajador` int(11) NOT NULL, `recobro` decimal(10,2) NOT NULL DEFAULT 0.00, @@ -2244,7 +2244,7 @@ CREATE TABLE `Greuge_comercial_recobro` ( DROP TABLE IF EXISTS `Ticket_Portes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Ticket_Portes` ( `Id_Ticket` int(11) NOT NULL, `rate` tinyint(4) NOT NULL COMMENT 'Tarifa', @@ -2260,7 +2260,7 @@ CREATE TABLE `Ticket_Portes` ( DROP TABLE IF EXISTS `XDiario_ALL`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XDiario_ALL` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `empresa_id` int(5) NOT NULL, @@ -2282,7 +2282,7 @@ CREATE TABLE `XDiario_ALL` ( DROP TABLE IF EXISTS `analisis_grafico_simple`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_grafico_simple` ( `Año` smallint(5) unsigned NOT NULL, `Semana` tinyint(3) unsigned NOT NULL, @@ -2298,7 +2298,7 @@ CREATE TABLE `analisis_grafico_simple` ( DROP TABLE IF EXISTS `analisis_grafico_ventas`; /*!50001 DROP VIEW IF EXISTS `analisis_grafico_ventas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `analisis_grafico_ventas` AS SELECT 1 AS `Año`, 1 AS `Semana`, @@ -2311,7 +2311,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `analisis_ventas`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_ventas` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `Familia` varchar(30) NOT NULL, @@ -2336,7 +2336,7 @@ CREATE TABLE `analisis_ventas` ( DROP TABLE IF EXISTS `analisis_ventas_almacen_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_ventas_almacen_evolution` ( `Semana` int(11) NOT NULL, `Almacen` varchar(20) NOT NULL, @@ -2354,7 +2354,7 @@ CREATE TABLE `analisis_ventas_almacen_evolution` ( DROP TABLE IF EXISTS `analisis_ventas_provincia_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_ventas_provincia_evolution` ( `semana` int(11) NOT NULL, `provincia` varchar(30) NOT NULL, @@ -2373,7 +2373,7 @@ CREATE TABLE `analisis_ventas_provincia_evolution` ( DROP TABLE IF EXISTS `analisis_ventas_reino_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_ventas_reino_evolution` ( `semana` int(11) NOT NULL, `reino` varchar(20) NOT NULL, @@ -2392,7 +2392,7 @@ CREATE TABLE `analisis_ventas_reino_evolution` ( DROP TABLE IF EXISTS `analisis_ventas_simple`; /*!50001 DROP VIEW IF EXISTS `analisis_ventas_simple`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `analisis_ventas_simple` AS SELECT 1 AS `Año`, 1 AS `Semana`, @@ -2405,7 +2405,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `analisis_ventas_vendedor_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_ventas_vendedor_evolution` ( `semana` int(11) NOT NULL, `vendedor` varchar(3) NOT NULL, @@ -2423,7 +2423,7 @@ CREATE TABLE `analisis_ventas_vendedor_evolution` ( DROP TABLE IF EXISTS `analisis_ventas_vista_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `analisis_ventas_vista_evolution` ( `semana` int(11) NOT NULL, `vista` varchar(45) NOT NULL, @@ -2441,7 +2441,7 @@ CREATE TABLE `analisis_ventas_vista_evolution` ( DROP TABLE IF EXISTS `calidad_detalle`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calidad_detalle` ( `Id_Cliente` int(11) NOT NULL, `calidad_parametros_id` int(2) NOT NULL, @@ -2458,7 +2458,7 @@ CREATE TABLE `calidad_detalle` ( DROP TABLE IF EXISTS `calidad_parametros`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calidad_parametros` ( `calidad_parametros_id` int(2) NOT NULL, `descripcion` varchar(45) NOT NULL, @@ -2473,7 +2473,7 @@ CREATE TABLE `calidad_parametros` ( DROP TABLE IF EXISTS `claims_ratio`; /*!50001 DROP VIEW IF EXISTS `claims_ratio`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `claims_ratio` AS SELECT 1 AS `Id_Cliente`, 1 AS `Consumo`, @@ -2489,7 +2489,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `customerDebtInventory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `customerDebtInventory` ( `Id_Cliente` int(11) NOT NULL, `Debt` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'CREATE TABLE bi.customerDebtInventory\n\nSELECT Id_Cliente, sum(Euros) as Debt\n\nFROM \n(\nSELECT Id_Cliente, Entregado as Euros\n\nFROM Recibos \n\nWHERE Fechacobro < ''2017-01-01\n''\nUNION ALL\n\nSELECT Id_Cliente, - Importe \nFROM Facturas\nWHERE Fecha < ''2017-01-01''\n) sub \nGROUP BY Id_Cliente', @@ -2504,7 +2504,7 @@ CREATE TABLE `customerDebtInventory` ( DROP TABLE IF EXISTS `customerRiskOverdue`; /*!50001 DROP VIEW IF EXISTS `customerRiskOverdue`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `customerRiskOverdue` AS SELECT 1 AS `customer_id`, 1 AS `amount`, @@ -2518,7 +2518,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `defaulters`; /*!50001 DROP VIEW IF EXISTS `defaulters`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `defaulters` AS SELECT 1 AS `client`, 1 AS `date`, @@ -2534,7 +2534,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `defaulting`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `defaulting` ( `date` date NOT NULL, `amount` double NOT NULL, @@ -2548,7 +2548,7 @@ CREATE TABLE `defaulting` ( DROP TABLE IF EXISTS `f_tvc__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `f_tvc__` ( `Id_Ticket` int(11) NOT NULL, PRIMARY KEY (`Id_Ticket`), @@ -2563,7 +2563,7 @@ CREATE TABLE `f_tvc__` ( DROP TABLE IF EXISTS `facturacion_media_anual`; /*!50001 DROP VIEW IF EXISTS `facturacion_media_anual`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `facturacion_media_anual` AS SELECT 1 AS `Id_Cliente`, 1 AS `Consumo` */; @@ -2575,7 +2575,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `rutasBoard`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `rutasBoard` ( `id` int(11) NOT NULL AUTO_INCREMENT, `Id_Ruta` int(10) unsigned NOT NULL DEFAULT 0, @@ -2597,7 +2597,7 @@ CREATE TABLE `rutasBoard` ( DROP TABLE IF EXISTS `tarifa_componentes`; /*!50001 DROP VIEW IF EXISTS `tarifa_componentes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tarifa_componentes` AS SELECT 1 AS `Id_Componente`, 1 AS `Componente`, @@ -2615,7 +2615,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tarifa_componentes_series`; /*!50001 DROP VIEW IF EXISTS `tarifa_componentes_series`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tarifa_componentes_series` AS SELECT 1 AS `tarifa_componentes_series_id`, 1 AS `Serie`, @@ -3633,7 +3633,7 @@ USE `bs`; DROP TABLE IF EXISTS `bancos_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bancos_evolution` ( `Fecha` date NOT NULL, `Id_Banco` int(11) NOT NULL, @@ -3655,7 +3655,7 @@ CREATE TABLE `bancos_evolution` ( DROP TABLE IF EXISTS `carteras`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `carteras` ( `CodigoTrabajador` varchar(3) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, `Año` int(11) NOT NULL, @@ -3671,7 +3671,7 @@ CREATE TABLE `carteras` ( DROP TABLE IF EXISTS `clientAnnualConsumption`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientAnnualConsumption` ( `clientFk` int(11) NOT NULL, `invoiced` double(17,0) DEFAULT NULL, @@ -3686,7 +3686,7 @@ CREATE TABLE `clientAnnualConsumption` ( DROP TABLE IF EXISTS `clientDied`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientDied` ( `clientFk` int(11) NOT NULL DEFAULT 0, `lastInvoiced` date DEFAULT NULL, @@ -3701,7 +3701,7 @@ CREATE TABLE `clientDied` ( DROP TABLE IF EXISTS `clientDiedPeriod`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientDiedPeriod` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `countryFk` mediumint(8) unsigned NOT NULL, @@ -3718,7 +3718,7 @@ CREATE TABLE `clientDiedPeriod` ( DROP TABLE IF EXISTS `clientNewBorn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientNewBorn` ( `clientFk` int(11) NOT NULL, `firstShipped` date NOT NULL COMMENT 'Primer pedido o de la relacion comercial, o después de un año de inactividad', @@ -3736,7 +3736,7 @@ CREATE TABLE `clientNewBorn` ( DROP TABLE IF EXISTS `compradores_evolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `compradores_evolution` ( `Id_Trabajador` int(10) unsigned NOT NULL, `fecha` date NOT NULL, @@ -3752,7 +3752,7 @@ CREATE TABLE `compradores_evolution` ( DROP TABLE IF EXISTS `customerEvolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `customerEvolution` ( `dated` date NOT NULL, `quantity` int(11) NOT NULL, @@ -3766,7 +3766,7 @@ CREATE TABLE `customerEvolution` ( DROP TABLE IF EXISTS `defaulter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `defaulter` ( `clientFk` int(11) NOT NULL, `created` date NOT NULL, @@ -3787,7 +3787,7 @@ CREATE TABLE `defaulter` ( DROP TABLE IF EXISTS `experienceIberflora2016`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `experienceIberflora2016` ( `Id_Cliente` int(11) NOT NULL, `isVisitor` tinyint(4) NOT NULL DEFAULT 0, @@ -3801,7 +3801,7 @@ CREATE TABLE `experienceIberflora2016` ( DROP TABLE IF EXISTS `fondo_maniobra`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `fondo_maniobra` ( `fecha` date NOT NULL, `fondo` double DEFAULT NULL, @@ -3820,7 +3820,7 @@ CREATE TABLE `fondo_maniobra` ( DROP TABLE IF EXISTS `indicators`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `indicators` ( `updated` date NOT NULL, `lastYearSales` int(11) DEFAULT NULL, @@ -3845,7 +3845,7 @@ CREATE TABLE `indicators` ( DROP TABLE IF EXISTS `inspeccionSS_2021`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inspeccionSS_2021` ( `business_id` int(11) DEFAULT NULL, `id` int(11) NOT NULL DEFAULT 0, @@ -3867,7 +3867,7 @@ CREATE TABLE `inspeccionSS_2021` ( DROP TABLE IF EXISTS `inventoryDiscrepancy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inventoryDiscrepancy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `warehouseFk` int(11) NOT NULL, @@ -3884,7 +3884,7 @@ CREATE TABLE `inventoryDiscrepancy` ( DROP TABLE IF EXISTS `inventoryDiscrepancyDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inventoryDiscrepancyDetail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `warehouseFk` int(11) NOT NULL, @@ -3905,7 +3905,7 @@ CREATE TABLE `inventoryDiscrepancyDetail` ( DROP TABLE IF EXISTS `lastIndicators`; /*!50001 DROP VIEW IF EXISTS `lastIndicators`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `lastIndicators` AS SELECT 1 AS `updated`, 1 AS `lastYearSales`, @@ -3938,7 +3938,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `m3`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `m3` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fecha` date NOT NULL, @@ -3961,7 +3961,7 @@ CREATE TABLE `m3` ( DROP TABLE IF EXISTS `nightTask`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `nightTask` ( `id` int(11) NOT NULL AUTO_INCREMENT, `started` datetime DEFAULT NULL, @@ -3982,7 +3982,7 @@ CREATE TABLE `nightTask` ( DROP TABLE IF EXISTS `nightTaskConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `nightTaskConfig` ( `id` int(10) unsigned NOT NULL, `logMail` varchar(255) DEFAULT NULL, @@ -3998,7 +3998,7 @@ CREATE TABLE `nightTaskConfig` ( DROP TABLE IF EXISTS `packingSpeed`; /*!50001 DROP VIEW IF EXISTS `packingSpeed`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `packingSpeed` AS SELECT 1 AS `hora`, 1 AS `minuto`, @@ -4013,7 +4013,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payMethodClient`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payMethodClient` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -4034,7 +4034,7 @@ CREATE TABLE `payMethodClient` ( DROP TABLE IF EXISTS `payMethodClientEvolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payMethodClientEvolution` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -4052,7 +4052,7 @@ CREATE TABLE `payMethodClientEvolution` ( DROP TABLE IF EXISTS `sale`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sale` ( `saleFk` int(11) NOT NULL, `amount` decimal(10,3) NOT NULL DEFAULT 0.000, @@ -4080,7 +4080,7 @@ CREATE TABLE `sale` ( DROP TABLE IF EXISTS `salesByItemTypeDay`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salesByItemTypeDay` ( `itemTypeFk` smallint(5) unsigned NOT NULL, `dated` date NOT NULL, @@ -4106,7 +4106,7 @@ CREATE TABLE `salesByItemTypeDay` ( DROP TABLE IF EXISTS `salesByWeek`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salesByWeek` ( `week` int(11) NOT NULL, `year` int(11) NOT NULL, @@ -4121,7 +4121,7 @@ CREATE TABLE `salesByWeek` ( DROP TABLE IF EXISTS `salesByclientSalesPerson`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salesByclientSalesPerson` ( `dated` date NOT NULL DEFAULT '0000-00-00', `salesPersonFk` int(10) unsigned DEFAULT NULL, @@ -4144,7 +4144,7 @@ CREATE TABLE `salesByclientSalesPerson` ( DROP TABLE IF EXISTS `salesPersonEvolution`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salesPersonEvolution` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL DEFAULT '0000-00-00', @@ -4165,7 +4165,7 @@ CREATE TABLE `salesPersonEvolution` ( DROP TABLE IF EXISTS `ventas`; /*!50001 DROP VIEW IF EXISTS `ventas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ventas` AS SELECT 1 AS `Id_Movimiento`, 1 AS `importe`, @@ -4183,7 +4183,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ventas_contables`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ventas_contables` ( `year` int(4) NOT NULL, `month` int(2) NOT NULL, @@ -4205,7 +4205,7 @@ CREATE TABLE `ventas_contables` ( DROP TABLE IF EXISTS `waste`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `waste` ( `year` int(4) NOT NULL, `week` int(2) NOT NULL, @@ -4235,7 +4235,7 @@ CREATE TABLE `waste` ( DROP TABLE IF EXISTS `workerLabourDataByMonth`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerLabourDataByMonth` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(25) NOT NULL, @@ -4254,7 +4254,7 @@ CREATE TABLE `workerLabourDataByMonth` ( DROP TABLE IF EXISTS `workerProductivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerProductivity` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -4281,7 +4281,7 @@ CREATE TABLE `workerProductivity` ( DROP TABLE IF EXISTS `workerProductivityConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerProductivityConfig` ( `id` int(10) unsigned NOT NULL, `minSeconsPackager` int(11) DEFAULT NULL, @@ -6588,7 +6588,7 @@ USE `cache`; DROP TABLE IF EXISTS `addressFriendship`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `addressFriendship` ( `addressFk1` int(11) NOT NULL DEFAULT 0, `addressFk2` int(11) NOT NULL DEFAULT 0, @@ -6606,7 +6606,7 @@ CREATE TABLE `addressFriendship` ( DROP TABLE IF EXISTS `available`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `available` ( `calc_id` int(10) unsigned NOT NULL, `item_id` int(11) NOT NULL, @@ -6622,7 +6622,7 @@ CREATE TABLE `available` ( DROP TABLE IF EXISTS `availableNoRaids`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `availableNoRaids` ( `calc_id` int(10) unsigned NOT NULL, `item_id` int(11) NOT NULL, @@ -6638,7 +6638,7 @@ CREATE TABLE `availableNoRaids` ( DROP TABLE IF EXISTS `cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cache` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -6654,7 +6654,7 @@ CREATE TABLE `cache` ( DROP TABLE IF EXISTS `cache_calc`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cache_calc` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cache_id` int(10) unsigned NOT NULL, @@ -6678,7 +6678,7 @@ CREATE TABLE `cache_calc` ( DROP TABLE IF EXISTS `cache_valid`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cache_valid` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `valid` tinyint(3) unsigned NOT NULL, @@ -6692,7 +6692,7 @@ CREATE TABLE `cache_valid` ( DROP TABLE IF EXISTS `departure_limit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `departure_limit` ( `warehouse_id` smallint(6) unsigned NOT NULL, `fecha` date NOT NULL, @@ -6709,16 +6709,15 @@ CREATE TABLE `departure_limit` ( DROP TABLE IF EXISTS `last_buy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `last_buy` ( `item_id` int(10) unsigned NOT NULL, `warehouse_id` smallint(5) unsigned NOT NULL, `buy_id` int(11) DEFAULT NULL, `landing` date DEFAULT NULL, - UNIQUE KEY `item_id` (`item_id`,`warehouse_id`) USING HASH, + UNIQUE KEY `item_id` (`item_id`,`warehouse_id`), KEY `buy_id` (`buy_id`), - KEY `warehouse_id` (`warehouse_id`) USING BTREE, - CONSTRAINT `last_buy_FK_1` FOREIGN KEY (`warehouse_id`) REFERENCES `vn`.`warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE + KEY `warehouse_id` (`warehouse_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; @@ -6728,7 +6727,7 @@ CREATE TABLE `last_buy` ( DROP TABLE IF EXISTS `stock`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `stock` ( `warehouse_id` smallint(5) unsigned NOT NULL, `item_id` int(10) unsigned NOT NULL, @@ -6744,7 +6743,7 @@ CREATE TABLE `stock` ( DROP TABLE IF EXISTS `visible`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `visible` ( `calc_id` int(10) unsigned NOT NULL, `item_id` int(11) NOT NULL, @@ -6760,7 +6759,7 @@ CREATE TABLE `visible` ( DROP TABLE IF EXISTS `zoneAgencyFriendship`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneAgencyFriendship` ( `agencyModeFk` int(11) NOT NULL, `zoneFk` int(11) NOT NULL, @@ -7129,13 +7128,15 @@ proc: BEGIN AND (ir.ended IS NULL OR i.shipped <= ir.ended) AND i.warehouseFk = vWarehouse UNION ALL - SELECT i.itemFk, i.landed, i.quantity + SELECT i.itemFk, IFNULL(i.availabled, i.landed), i.quantity FROM vn.itemEntryIn i JOIN itemRange ir ON ir.itemFk = i.itemFk - WHERE i.landed >= vStartDate + LEFT JOIN edi.warehouseFloramondo wf ON wf.entryFk = i.entryFk + WHERE IFNULL(i.availabled, i.landed) >= vStartDate AND IFNULL(i.availabled, i.landed) <= vAvailabled - AND (ir.ended IS NULL OR i.landed <= ir.ended) + AND (ir.ended IS NULL OR IFNULL(i.availabled, i.landed) <= ir.ended) AND i.warehouseInFk = vWarehouse + AND wf.entryFk IS NULL UNION ALL SELECT i.itemFk, i.shipped, i.quantity FROM vn.itemEntryOut i @@ -7766,7 +7767,7 @@ USE `dipole`; DROP TABLE IF EXISTS `expeditionControl`; /*!50001 DROP VIEW IF EXISTS `expeditionControl`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionControl` AS SELECT 1 AS `fecha`, 1 AS `total`, @@ -7779,7 +7780,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expedition_PrintOut`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expedition_PrintOut` ( `expeditionFk` int(11) NOT NULL, `ticketFk` int(11) NOT NULL, @@ -7817,7 +7818,7 @@ CREATE TABLE `expedition_PrintOut` ( DROP TABLE IF EXISTS `expedition_Read`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expedition_Read` ( `expeditionFk` int(11) NOT NULL, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -7834,7 +7835,7 @@ CREATE TABLE `expedition_Read` ( DROP TABLE IF EXISTS `printer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printer` ( `id` int(10) unsigned NOT NULL, `description` varchar(50) NOT NULL, @@ -7849,7 +7850,7 @@ CREATE TABLE `printer` ( DROP TABLE IF EXISTS `readingPoint`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `readingPoint` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -7994,7 +7995,7 @@ USE `edi`; DROP TABLE IF EXISTS `PriceDetails`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PriceDetails` ( `ID` int(11) NOT NULL, `SuplyResponseID` int(11) NOT NULL, @@ -8021,7 +8022,7 @@ CREATE TABLE `PriceDetails` ( DROP TABLE IF EXISTS `VMPSettings`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `VMPSettings` ( `VMPID` int(11) NOT NULL, `name` varchar(45) DEFAULT NULL, @@ -8057,7 +8058,7 @@ CREATE TABLE `VMPSettings` ( DROP TABLE IF EXISTS `bucket`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bucket` ( `bucket_id` int(11) unsigned NOT NULL, `bucket_type_id` mediumint(8) unsigned NOT NULL, @@ -8080,7 +8081,7 @@ CREATE TABLE `bucket` ( DROP TABLE IF EXISTS `bucket_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bucket_type` ( `bucket_type_id` mediumint(8) unsigned NOT NULL, `description` varchar(100) NOT NULL, @@ -8097,7 +8098,7 @@ CREATE TABLE `bucket_type` ( DROP TABLE IF EXISTS `clientFHAdminNumber`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientFHAdminNumber` ( `fhAdminNumber` int(11) NOT NULL, `clientFk` int(11) NOT NULL, @@ -8113,7 +8114,7 @@ CREATE TABLE `clientFHAdminNumber` ( DROP TABLE IF EXISTS `deliveryInformation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deliveryInformation` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `DeliveryType` varchar(255) DEFAULT NULL, @@ -8145,7 +8146,7 @@ CREATE TABLE `deliveryInformation` ( DROP TABLE IF EXISTS `di`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `di` ( `ID` int(11) NOT NULL DEFAULT 0, `Location` varchar(255) DEFAULT NULL, @@ -8164,7 +8165,7 @@ CREATE TABLE `di` ( DROP TABLE IF EXISTS `ekt`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ekt` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id', `barcode` char(25) DEFAULT NULL COMMENT 'Generated auction barcode', @@ -8229,7 +8230,7 @@ CREATE TABLE `ekt` ( DROP TABLE IF EXISTS `ektConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ektConfig` ( `usefulAuctionLeftSegmentLength` int(11) NOT NULL DEFAULT 13 COMMENT 'Segmento aprovechable del codigo de barras de Floricode', `standardBarcodeLength` int(11) NOT NULL DEFAULT 20 COMMENT 'Longitud del código de barras standard de Floricode', @@ -8246,7 +8247,7 @@ CREATE TABLE `ektConfig` ( DROP TABLE IF EXISTS `ektK1`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ektK1` ( `id` smallint(6) unsigned NOT NULL, `description` varchar(50) NOT NULL, @@ -8261,7 +8262,7 @@ CREATE TABLE `ektK1` ( DROP TABLE IF EXISTS `ektK2`; /*!50001 DROP VIEW IF EXISTS `ektK2`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ektK2` AS SELECT 1 AS `id`, 1 AS `description` */; @@ -8273,7 +8274,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ektK3`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ektK3` ( `id` smallint(6) unsigned NOT NULL, `description` varchar(50) NOT NULL, @@ -8287,7 +8288,7 @@ CREATE TABLE `ektK3` ( DROP TABLE IF EXISTS `ektK4`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ektK4` ( `id` smallint(6) unsigned NOT NULL, `description` varchar(50) NOT NULL, @@ -8302,7 +8303,7 @@ CREATE TABLE `ektK4` ( DROP TABLE IF EXISTS `ektRecent`; /*!50001 DROP VIEW IF EXISTS `ektRecent`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ektRecent` AS SELECT 1 AS `id`, 1 AS `entryYear`, @@ -8360,7 +8361,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `errorList`; /*!50001 DROP VIEW IF EXISTS `errorList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `errorList` AS SELECT 1 AS `id`, 1 AS `name`, @@ -8380,7 +8381,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `exchange`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `exchange` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mailFk` int(10) unsigned NOT NULL, @@ -8401,7 +8402,7 @@ CREATE TABLE `exchange` ( DROP TABLE IF EXISTS `exchangeConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `exchangeConfig` ( `id` tinyint(3) unsigned NOT NULL, `logMail` varchar(150) DEFAULT NULL COMMENT 'Mail where the log information is sent', @@ -8421,7 +8422,7 @@ CREATE TABLE `exchangeConfig` ( DROP TABLE IF EXISTS `exchangeType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `exchangeType` ( `id` mediumint(8) unsigned NOT NULL, `description` varchar(50) NOT NULL, @@ -8435,7 +8436,7 @@ CREATE TABLE `exchangeType` ( DROP TABLE IF EXISTS `feature`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `feature` ( `item_id` int(11) unsigned NOT NULL, `feature_type_id` varchar(3) NOT NULL, @@ -8454,7 +8455,7 @@ CREATE TABLE `feature` ( DROP TABLE IF EXISTS `fileMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `fileMultiConfig` ( `name` varchar(25) NOT NULL, `checksum` text DEFAULT NULL, @@ -8470,7 +8471,7 @@ CREATE TABLE `fileMultiConfig` ( DROP TABLE IF EXISTS `floraHollandConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `floraHollandConfig` ( `defaultAdminNumber` int(11) NOT NULL DEFAULT 66011, `floramondoMargin` decimal(10,2) NOT NULL DEFAULT 0.17 @@ -8483,7 +8484,7 @@ CREATE TABLE `floraHollandConfig` ( DROP TABLE IF EXISTS `ftpConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ftpConfig` ( `id` tinyint(3) unsigned NOT NULL, `host` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -8500,7 +8501,7 @@ CREATE TABLE `ftpConfig` ( DROP TABLE IF EXISTS `genus`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `genus` ( `genus_id` mediumint(8) unsigned NOT NULL, `latin_genus_name` varchar(100) NOT NULL, @@ -8518,7 +8519,7 @@ CREATE TABLE `genus` ( DROP TABLE IF EXISTS `goodCharacteristic`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `goodCharacteristic` ( `supplyResponse` varchar(26) NOT NULL, `type` varchar(3) DEFAULT NULL COMMENT 'edi.type', @@ -8533,7 +8534,7 @@ CREATE TABLE `goodCharacteristic` ( DROP TABLE IF EXISTS `imapMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `imapMultiConfig` ( `id` tinyint(3) unsigned NOT NULL, `environment` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -8554,7 +8555,7 @@ CREATE TABLE `imapMultiConfig` ( DROP TABLE IF EXISTS `item`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item` ( `id` int(11) unsigned NOT NULL, `product_name` varchar(100) DEFAULT NULL, @@ -8576,7 +8577,7 @@ CREATE TABLE `item` ( DROP TABLE IF EXISTS `item_defaultType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item_defaultType` ( `item_id` int(11) NOT NULL, `itemTypeFk` int(11) NOT NULL, @@ -8591,7 +8592,7 @@ CREATE TABLE `item_defaultType` ( DROP TABLE IF EXISTS `item_feature`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item_feature` ( `item_id` int(11) NOT NULL, `presentation_order` tinyint(11) unsigned NOT NULL, @@ -8610,7 +8611,7 @@ CREATE TABLE `item_feature` ( DROP TABLE IF EXISTS `item_free`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item_free` ( `id` int(11) NOT NULL, `token` int(11) DEFAULT NULL COMMENT 'campo para asegurar que solo el usuario coge uno de los valores', @@ -8624,7 +8625,7 @@ CREATE TABLE `item_free` ( DROP TABLE IF EXISTS `item_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item_group` ( `group_code` int(11) unsigned NOT NULL, `dutch_group_description` varchar(100) NOT NULL, @@ -8641,7 +8642,7 @@ CREATE TABLE `item_group` ( DROP TABLE IF EXISTS `item_groupToOffer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item_groupToOffer` ( `group_code` int(11) unsigned NOT NULL, `itemTypeFk` smallint(5) unsigned NOT NULL, @@ -8666,7 +8667,7 @@ CREATE TABLE `item_groupToOffer` ( DROP TABLE IF EXISTS `item_track`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item_track` ( `item_id` int(10) unsigned NOT NULL, `s1` tinyint(3) NOT NULL DEFAULT 0, @@ -8693,7 +8694,7 @@ CREATE TABLE `item_track` ( DROP TABLE IF EXISTS `log`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `tableName` varchar(100) NOT NULL, @@ -8710,7 +8711,7 @@ CREATE TABLE `log` ( DROP TABLE IF EXISTS `mail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mail` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `senderFk` int(10) unsigned DEFAULT NULL, @@ -8733,7 +8734,7 @@ CREATE TABLE `mail` ( DROP TABLE IF EXISTS `mailSender`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailSender` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mail` varchar(150) NOT NULL, @@ -8749,7 +8750,7 @@ CREATE TABLE `mailSender` ( DROP TABLE IF EXISTS `marketPlace`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `marketPlace` ( `id` varchar(13) NOT NULL, `name` varchar(45) NOT NULL, @@ -8771,7 +8772,7 @@ CREATE TABLE `marketPlace` ( DROP TABLE IF EXISTS `offerList`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `offerList` ( `supplier` varchar(100) NOT NULL, `total` int(11) DEFAULT NULL COMMENT 'Total de oferta', @@ -8788,7 +8789,7 @@ CREATE TABLE `offerList` ( DROP TABLE IF EXISTS `offerRefreshConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `offerRefreshConfig` ( `id` int(10) unsigned NOT NULL, `dayRange` int(10) unsigned DEFAULT NULL COMMENT 'range of days to update the photos of an article in seconds', @@ -8803,7 +8804,7 @@ CREATE TABLE `offerRefreshConfig` ( DROP TABLE IF EXISTS `param`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `param` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(30) NOT NULL, @@ -8824,7 +8825,7 @@ CREATE TABLE `param` ( DROP TABLE IF EXISTS `plant`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `plant` ( `plant_id` mediumint(8) unsigned NOT NULL, `genus_id` mediumint(8) unsigned NOT NULL, @@ -8842,7 +8843,7 @@ CREATE TABLE `plant` ( DROP TABLE IF EXISTS `putOrder`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `putOrder` ( `id` int(11) NOT NULL AUTO_INCREMENT, `deliveryInformationID` int(11) DEFAULT NULL, @@ -8874,7 +8875,7 @@ CREATE TABLE `putOrder` ( DROP TABLE IF EXISTS `specie`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `specie` ( `specie_id` mediumint(8) unsigned NOT NULL, `genus_id` mediumint(8) unsigned NOT NULL, @@ -8892,7 +8893,7 @@ CREATE TABLE `specie` ( DROP TABLE IF EXISTS `supplier`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplier` ( `supplier_id` int(10) unsigned NOT NULL COMMENT 'FHRegistrationNr', `glnAddressCode` varchar(13) DEFAULT NULL, @@ -8915,7 +8916,7 @@ CREATE TABLE `supplier` ( DROP TABLE IF EXISTS `supplyOffer`; /*!50001 DROP VIEW IF EXISTS `supplyOffer`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `supplyOffer` AS SELECT 1 AS `vmpID`, 1 AS `diId`, @@ -8968,7 +8969,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `supplyResponse`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplyResponse` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `NumberBunchesPerCask` int(11) DEFAULT NULL, @@ -9045,7 +9046,7 @@ CREATE TABLE `supplyResponse` ( DROP TABLE IF EXISTS `supplyResponseLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplyResponseLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplyResponseFk` int(11) NOT NULL, @@ -9065,7 +9066,7 @@ CREATE TABLE `supplyResponseLog` ( DROP TABLE IF EXISTS `tableMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tableMultiConfig` ( `fileName` varchar(2) NOT NULL, `toTable` varchar(15) NOT NULL, @@ -9082,7 +9083,7 @@ CREATE TABLE `tableMultiConfig` ( DROP TABLE IF EXISTS `type`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `type` ( `type_id` varchar(3) NOT NULL, `type_group_id` tinyint(3) unsigned NOT NULL, @@ -9100,7 +9101,7 @@ CREATE TABLE `type` ( DROP TABLE IF EXISTS `value`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `value` ( `type_id` varchar(3) NOT NULL, `type_value` varchar(3) NOT NULL, @@ -9118,7 +9119,7 @@ CREATE TABLE `value` ( DROP TABLE IF EXISTS `warehouseFloramondo`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `warehouseFloramondo` ( `warehouseFk` smallint(6) unsigned NOT NULL, `travellingDays` int(11) NOT NULL DEFAULT 1, @@ -10162,7 +10163,7 @@ USE `floranet`; DROP TABLE IF EXISTS `addressPostCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `addressPostCode` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `addressFk` int(11) NOT NULL, @@ -10183,7 +10184,7 @@ CREATE TABLE `addressPostCode` ( DROP TABLE IF EXISTS `catalogue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `catalogue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -10211,7 +10212,7 @@ CREATE TABLE `catalogue` ( DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `email` varchar(255) NOT NULL DEFAULT 'floranet@verdnatura.es' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; @@ -10223,7 +10224,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `order`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `order` ( `id` int(11) NOT NULL AUTO_INCREMENT, `catalogueFk` int(11) DEFAULT NULL, @@ -10250,7 +10251,7 @@ CREATE TABLE `order` ( DROP TABLE IF EXISTS `recipe`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `recipe` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL COMMENT 'Bouquet or plant name', @@ -10721,7 +10722,7 @@ USE `hedera`; DROP TABLE IF EXISTS `androidUser`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `androidUser` ( `androidId` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `userFk` int(10) unsigned NOT NULL, @@ -10736,7 +10737,7 @@ CREATE TABLE `androidUser` ( DROP TABLE IF EXISTS `browser`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `browser` ( `name` varchar(30) NOT NULL COMMENT 'Browser name in browscap', `version` float NOT NULL COMMENT 'Minimal version', @@ -10750,7 +10751,7 @@ CREATE TABLE `browser` ( DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `id` tinyint(3) unsigned NOT NULL, `defaultLang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The default language if none is specified', @@ -10777,7 +10778,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `contact` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `recipient` varchar(255) NOT NULL, @@ -10791,7 +10792,7 @@ CREATE TABLE `contact` ( DROP TABLE IF EXISTS `image`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `image` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `collectionFk` varchar(50) NOT NULL, @@ -10810,7 +10811,7 @@ CREATE TABLE `image` ( DROP TABLE IF EXISTS `imageCollection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `imageCollection` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -10839,7 +10840,7 @@ CREATE TABLE `imageCollection` ( DROP TABLE IF EXISTS `imageCollectionSize`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `imageCollectionSize` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `collectionFk` int(10) unsigned NOT NULL, @@ -10858,7 +10859,7 @@ CREATE TABLE `imageCollectionSize` ( DROP TABLE IF EXISTS `imageConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `imageConfig` ( `id` tinyint(3) unsigned NOT NULL, `maxSize` int(10) unsigned NOT NULL COMMENT 'Maximun size for uploaded images in MB', @@ -10875,7 +10876,7 @@ CREATE TABLE `imageConfig` ( DROP TABLE IF EXISTS `language`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `language` ( `code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `name` varchar(20) NOT NULL, @@ -10891,7 +10892,7 @@ CREATE TABLE `language` ( DROP TABLE IF EXISTS `link`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `link` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, @@ -10908,7 +10909,7 @@ CREATE TABLE `link` ( DROP TABLE IF EXISTS `location`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `location` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `lat` varchar(12) NOT NULL, @@ -10930,7 +10931,7 @@ CREATE TABLE `location` ( DROP TABLE IF EXISTS `mailConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailConfig` ( `id` tinyint(3) unsigned NOT NULL, `host` varchar(255) NOT NULL DEFAULT 'localhost' COMMENT 'SMTP host', @@ -10951,7 +10952,7 @@ CREATE TABLE `mailConfig` ( DROP TABLE IF EXISTS `mainAccount`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mainAccount` ( `accountFk` mediumint(8) unsigned NOT NULL, PRIMARY KEY (`accountFk`) @@ -10965,7 +10966,7 @@ CREATE TABLE `mainAccount` ( DROP TABLE IF EXISTS `mainAccountBank`; /*!50001 DROP VIEW IF EXISTS `mainAccountBank`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `mainAccountBank` AS SELECT 1 AS `name`, 1 AS `iban` */; @@ -10977,7 +10978,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `menu`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `menu` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(30) NOT NULL, @@ -10998,7 +10999,7 @@ CREATE TABLE `menu` ( DROP TABLE IF EXISTS `message`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `message` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `code` char(35) NOT NULL, @@ -11014,7 +11015,7 @@ CREATE TABLE `message` ( DROP TABLE IF EXISTS `messageI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `messageI18n` ( `code` char(35) NOT NULL, `lang` char(2) NOT NULL, @@ -11031,7 +11032,7 @@ CREATE TABLE `messageI18n` ( DROP TABLE IF EXISTS `messageL10n`; /*!50001 DROP VIEW IF EXISTS `messageL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `messageL10n` AS SELECT 1 AS `code`, 1 AS `description` */; @@ -11043,7 +11044,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `metatag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `metatag` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, @@ -11060,7 +11061,7 @@ CREATE TABLE `metatag` ( DROP TABLE IF EXISTS `myAddress`; /*!50001 DROP VIEW IF EXISTS `myAddress`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myAddress` AS SELECT 1 AS `id`, 1 AS `clientFk`, @@ -11083,7 +11084,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myBasketDefaults`; /*!50001 DROP VIEW IF EXISTS `myBasketDefaults`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myBasketDefaults` AS SELECT 1 AS `deliveryMethod`, 1 AS `agencyModeFk`, @@ -11098,7 +11099,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myClient`; /*!50001 DROP VIEW IF EXISTS `myClient`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myClient` AS SELECT 1 AS `id`, 1 AS `isToBeMailed`, @@ -11113,7 +11114,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myInvoice`; /*!50001 DROP VIEW IF EXISTS `myInvoice`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myInvoice` AS SELECT 1 AS `id`, 1 AS `ref`, @@ -11129,7 +11130,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myMenu`; /*!50001 DROP VIEW IF EXISTS `myMenu`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myMenu` AS SELECT 1 AS `id`, 1 AS `path`, @@ -11144,7 +11145,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myOrder`; /*!50001 DROP VIEW IF EXISTS `myOrder`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myOrder` AS SELECT 1 AS `id`, 1 AS `sent`, @@ -11171,7 +11172,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myOrderRow`; /*!50001 DROP VIEW IF EXISTS `myOrderRow`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myOrderRow` AS SELECT 1 AS `id`, 1 AS `orderFk`, @@ -11192,7 +11193,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myOrderTicket`; /*!50001 DROP VIEW IF EXISTS `myOrderTicket`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myOrderTicket` AS SELECT 1 AS `orderFk`, 1 AS `ticketFk` */; @@ -11205,7 +11206,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myTicket`; /*!50001 DROP VIEW IF EXISTS `myTicket`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myTicket` AS SELECT 1 AS `id`, 1 AS `clientFk`, @@ -11227,7 +11228,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myTicketRow`; /*!50001 DROP VIEW IF EXISTS `myTicketRow`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myTicketRow` AS SELECT 1 AS `id`, 1 AS `itemFk`, @@ -11247,7 +11248,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myTicketService`; /*!50001 DROP VIEW IF EXISTS `myTicketService`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myTicketService` AS SELECT 1 AS `id`, 1 AS `description`, @@ -11265,7 +11266,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myTicketState`; /*!50001 DROP VIEW IF EXISTS `myTicketState`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myTicketState` AS SELECT 1 AS `id`, 1 AS `clientFk`, @@ -11289,7 +11290,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `myTpvTransaction`; /*!50001 DROP VIEW IF EXISTS `myTpvTransaction`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `myTpvTransaction` AS SELECT 1 AS `id`, 1 AS `merchantFk`, @@ -11307,7 +11308,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `news`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `news` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(150) NOT NULL, @@ -11331,7 +11332,7 @@ CREATE TABLE `news` ( DROP TABLE IF EXISTS `newsTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `newsTag` ( `name` varchar(15) NOT NULL, `description` varchar(25) NOT NULL, @@ -11345,7 +11346,7 @@ CREATE TABLE `newsTag` ( DROP TABLE IF EXISTS `order`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date_send` date NOT NULL DEFAULT '0000-00-00', @@ -11387,7 +11388,7 @@ CREATE TABLE `order` ( DROP TABLE IF EXISTS `orderConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `orderConfig` ( `id` int(10) unsigned NOT NULL, `employeeFk` int(10) unsigned NOT NULL, @@ -11416,7 +11417,7 @@ CREATE TABLE `orderConfig` ( DROP TABLE IF EXISTS `orderRow`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `orderRow` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `orderFk` int(10) unsigned NOT NULL DEFAULT 0, @@ -11446,7 +11447,7 @@ CREATE TABLE `orderRow` ( DROP TABLE IF EXISTS `orderRowComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `orderRowComponent` ( `rowFk` int(10) unsigned NOT NULL, `componentFk` int(11) NOT NULL, @@ -11464,7 +11465,7 @@ CREATE TABLE `orderRowComponent` ( DROP TABLE IF EXISTS `orderTicket`; /*!50001 DROP VIEW IF EXISTS `orderTicket`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `orderTicket` AS SELECT 1 AS `orderFk`, 1 AS `ticketFk` */; @@ -11477,7 +11478,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `order_component`; /*!50001 DROP VIEW IF EXISTS `order_component`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `order_component` AS SELECT 1 AS `order_row_id`, 1 AS `component_id`, @@ -11491,7 +11492,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `order_row`; /*!50001 DROP VIEW IF EXISTS `order_row`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `order_row` AS SELECT 1 AS `id`, 1 AS `order_id`, @@ -11511,7 +11512,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `restPriv`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `restPriv` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `methodPath` varchar(255) NOT NULL, @@ -11528,7 +11529,7 @@ CREATE TABLE `restPriv` ( DROP TABLE IF EXISTS `shelf`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `shelf` ( `id` int(10) unsigned NOT NULL, `name` varchar(30) NOT NULL, @@ -11547,7 +11548,7 @@ CREATE TABLE `shelf` ( DROP TABLE IF EXISTS `shelfMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `shelfMultiConfig` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, @@ -11574,7 +11575,7 @@ CREATE TABLE `shelfMultiConfig` ( DROP TABLE IF EXISTS `social`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `social` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, @@ -11592,7 +11593,7 @@ CREATE TABLE `social` ( DROP TABLE IF EXISTS `survey`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `survey` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `question` varchar(255) NOT NULL, @@ -11606,7 +11607,7 @@ CREATE TABLE `survey` ( DROP TABLE IF EXISTS `surveyAnswer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `surveyAnswer` ( `id` int(10) unsigned NOT NULL, `surveyFk` int(10) unsigned NOT NULL, @@ -11623,7 +11624,7 @@ CREATE TABLE `surveyAnswer` ( DROP TABLE IF EXISTS `surveyVote`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `surveyVote` ( `surveyFk` int(10) unsigned NOT NULL, `userFk` int(10) unsigned NOT NULL, @@ -11640,7 +11641,7 @@ CREATE TABLE `surveyVote` ( DROP TABLE IF EXISTS `tpvConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvConfig` ( `id` tinyint(3) unsigned NOT NULL, `currency` smallint(5) unsigned NOT NULL, @@ -11666,7 +11667,7 @@ CREATE TABLE `tpvConfig` ( DROP TABLE IF EXISTS `tpvError`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvError` ( `code` char(7) NOT NULL, `message` varchar(255) NOT NULL, @@ -11680,7 +11681,7 @@ CREATE TABLE `tpvError` ( DROP TABLE IF EXISTS `tpvImapConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvImapConfig` ( `id` tinyint(3) unsigned NOT NULL, `host` varchar(150) NOT NULL, @@ -11700,7 +11701,7 @@ CREATE TABLE `tpvImapConfig` ( DROP TABLE IF EXISTS `tpvMerchant`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvMerchant` ( `id` int(10) unsigned NOT NULL COMMENT 'Merchant identifier', `description` varchar(50) NOT NULL COMMENT 'Small description', @@ -11720,7 +11721,7 @@ CREATE TABLE `tpvMerchant` ( DROP TABLE IF EXISTS `tpvMerchantEnable`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvMerchantEnable` ( `merchantFk` int(10) unsigned NOT NULL DEFAULT 0, `companyFk` int(10) unsigned NOT NULL, @@ -11737,7 +11738,7 @@ CREATE TABLE `tpvMerchantEnable` ( DROP TABLE IF EXISTS `tpvResponse`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvResponse` ( `id` smallint(5) unsigned NOT NULL, `message` varchar(255) NOT NULL, @@ -11751,7 +11752,7 @@ CREATE TABLE `tpvResponse` ( DROP TABLE IF EXISTS `tpvTransaction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tpvTransaction` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `merchantFk` int(10) unsigned NOT NULL, @@ -11785,7 +11786,7 @@ CREATE TABLE `tpvTransaction` ( DROP TABLE IF EXISTS `userSession`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userSession` ( `created` datetime NOT NULL DEFAULT current_timestamp(), `lastUpdate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), @@ -11804,7 +11805,7 @@ CREATE TABLE `userSession` ( DROP TABLE IF EXISTS `visit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `visit` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `firstAgentFk` int(10) unsigned DEFAULT NULL, @@ -11820,7 +11821,7 @@ CREATE TABLE `visit` ( DROP TABLE IF EXISTS `visitAccess`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `visitAccess` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `agentFk` int(10) unsigned NOT NULL, @@ -11840,7 +11841,7 @@ CREATE TABLE `visitAccess` ( DROP TABLE IF EXISTS `visitAgent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `visitAgent` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `visitFk` int(10) unsigned NOT NULL, @@ -11865,7 +11866,7 @@ CREATE TABLE `visitAgent` ( DROP TABLE IF EXISTS `visitUser`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `visitUser` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `accessFk` int(10) unsigned NOT NULL, @@ -15012,7 +15013,7 @@ USE `pbx`; DROP TABLE IF EXISTS `blacklist`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `blacklist` ( `phone` varchar(20) NOT NULL, PRIMARY KEY (`phone`) @@ -15025,7 +15026,7 @@ CREATE TABLE `blacklist` ( DROP TABLE IF EXISTS `cdr`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cdr` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `call_date` datetime NOT NULL DEFAULT current_timestamp(), @@ -15061,7 +15062,7 @@ CREATE TABLE `cdr` ( DROP TABLE IF EXISTS `cdrConf`; /*!50001 DROP VIEW IF EXISTS `cdrConf`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cdrConf` AS SELECT 1 AS `calldate`, 1 AS `clid`, @@ -15087,7 +15088,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `id` int(10) unsigned NOT NULL, `defaultPrefix` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -15102,7 +15103,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `followme`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `followme` ( `extension` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `phone` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -15118,7 +15119,7 @@ CREATE TABLE `followme` ( DROP TABLE IF EXISTS `followmeConf`; /*!50001 DROP VIEW IF EXISTS `followmeConf`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `followmeConf` AS SELECT 1 AS `name`, 1 AS `music`, @@ -15133,7 +15134,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `followmeConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `followmeConfig` ( `id` int(10) unsigned NOT NULL, `music` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -15153,7 +15154,7 @@ CREATE TABLE `followmeConfig` ( DROP TABLE IF EXISTS `followmeNumberConf`; /*!50001 DROP VIEW IF EXISTS `followmeNumberConf`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `followmeNumberConf` AS SELECT 1 AS `name`, 1 AS `ordinal`, @@ -15167,7 +15168,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `holiday`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `holiday` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `country` char(2) NOT NULL, @@ -15183,7 +15184,7 @@ CREATE TABLE `holiday` ( DROP TABLE IF EXISTS `prefix`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `prefix` ( `country` char(2) NOT NULL COMMENT 'Country code', `prefix` varchar(100) NOT NULL COMMENT 'Country prefix', @@ -15197,7 +15198,7 @@ CREATE TABLE `prefix` ( DROP TABLE IF EXISTS `queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -15218,7 +15219,7 @@ CREATE TABLE `queue` ( DROP TABLE IF EXISTS `queueConf`; /*!50001 DROP VIEW IF EXISTS `queueConf`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `queueConf` AS SELECT 1 AS `name`, 1 AS `strategy`, @@ -15235,7 +15236,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `queueMember`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queueMember` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `queue` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -15255,7 +15256,7 @@ CREATE TABLE `queueMember` ( DROP TABLE IF EXISTS `queueMemberConf`; /*!50001 DROP VIEW IF EXISTS `queueMemberConf`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `queueMemberConf` AS SELECT 1 AS `uniqueid`, 1 AS `queue_name`, @@ -15269,7 +15270,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `queueMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queueMultiConfig` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `strategy` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -15288,7 +15289,7 @@ CREATE TABLE `queueMultiConfig` ( DROP TABLE IF EXISTS `queuePhone`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queuePhone` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `queue` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -15305,7 +15306,7 @@ CREATE TABLE `queuePhone` ( DROP TABLE IF EXISTS `schedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `schedule` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `weekDays` set('mon','tue','wed','thu','fri','sat','sun') NOT NULL COMMENT '0 = Monday, 6 = Sunday', @@ -15322,7 +15323,7 @@ CREATE TABLE `schedule` ( DROP TABLE IF EXISTS `sip`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sip` ( `user_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'The user id', `extension` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The softphone extension', @@ -15342,7 +15343,7 @@ CREATE TABLE `sip` ( DROP TABLE IF EXISTS `sipConf`; /*!50001 DROP VIEW IF EXISTS `sipConf`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `sipConf` AS SELECT 1 AS `id`, 1 AS `name`, @@ -15379,7 +15380,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `sipConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sipConfig` ( `id` mediumint(8) unsigned NOT NULL, `host` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -15413,7 +15414,7 @@ CREATE TABLE `sipConfig` ( DROP TABLE IF EXISTS `sipReg`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sipReg` ( `userId` int(10) unsigned NOT NULL, `ipAddr` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -15678,7 +15679,7 @@ USE `psico`; DROP TABLE IF EXISTS `answer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `answer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(155) NOT NULL, @@ -15697,7 +15698,7 @@ CREATE TABLE `answer` ( DROP TABLE IF EXISTS `exam`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `exam` ( `id` int(11) NOT NULL AUTO_INCREMENT, `duration` int(11) NOT NULL COMMENT 'minutos de duracion de la prueba', @@ -15720,7 +15721,7 @@ CREATE TABLE `exam` ( DROP TABLE IF EXISTS `examQuestion`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `examQuestion` ( `id` int(11) NOT NULL AUTO_INCREMENT, `examFk` int(11) NOT NULL, @@ -15742,7 +15743,7 @@ CREATE TABLE `examQuestion` ( DROP TABLE IF EXISTS `examType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `examType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -15757,7 +15758,7 @@ CREATE TABLE `examType` ( DROP TABLE IF EXISTS `examView`; /*!50001 DROP VIEW IF EXISTS `examView`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `examView` AS SELECT 1 AS `text`, 1 AS `examFk`, @@ -15772,7 +15773,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `fellow`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `fellow` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -15786,7 +15787,7 @@ CREATE TABLE `fellow` ( DROP TABLE IF EXISTS `question`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `question` ( `id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(155) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -15801,7 +15802,7 @@ CREATE TABLE `question` ( DROP TABLE IF EXISTS `questionType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `questionType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `examTypeFk` int(11) NOT NULL, @@ -15821,7 +15822,7 @@ CREATE TABLE `questionType` ( DROP TABLE IF EXISTS `results`; /*!50001 DROP VIEW IF EXISTS `results`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `results` AS SELECT 1 AS `examFk`, 1 AS `aciertos`, @@ -16013,7 +16014,7 @@ USE `sage`; DROP TABLE IF EXISTS `ClavesOperacion`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ClavesOperacion` ( `ClaveOperacionFactura_` varchar(1) NOT NULL, `Descripcion` varchar(250) NOT NULL, @@ -16028,7 +16029,7 @@ CREATE TABLE `ClavesOperacion` ( DROP TABLE IF EXISTS `Municipios`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Municipios` ( `Codigo` varchar(7) NOT NULL, `Municipio` varchar(25) NOT NULL, @@ -16048,7 +16049,7 @@ CREATE TABLE `Municipios` ( DROP TABLE IF EXISTS `Naciones`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Naciones` ( `countryFk` mediumint(8) NOT NULL, `CodigoNacion` smallint(6) NOT NULL DEFAULT 108, @@ -16073,7 +16074,7 @@ CREATE TABLE `Naciones` ( DROP TABLE IF EXISTS `Provincias`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Provincias` ( `provinceFk` smallint(6) NOT NULL, `CodigoProvincia` varchar(5) NOT NULL DEFAULT '', @@ -16090,7 +16091,7 @@ CREATE TABLE `Provincias` ( DROP TABLE IF EXISTS `TiposIva`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `TiposIva` ( `CodigoIva` smallint(6) NOT NULL DEFAULT 0, `CodigoTerritorio` smallint(6) NOT NULL DEFAULT 0, @@ -16127,7 +16128,7 @@ CREATE TABLE `TiposIva` ( DROP TABLE IF EXISTS `TiposRetencion`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `TiposRetencion` ( `CodigoRetencion` smallint(6) NOT NULL DEFAULT 0, `Retencion` varchar(50) NOT NULL DEFAULT '', @@ -16148,7 +16149,7 @@ CREATE TABLE `TiposRetencion` ( DROP TABLE IF EXISTS `TiposTransacciones`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `TiposTransacciones` ( `CodigoTransaccion` tinyint(4) NOT NULL DEFAULT 0, `Transaccion` varchar(50) NOT NULL DEFAULT '', @@ -16165,7 +16166,7 @@ CREATE TABLE `TiposTransacciones` ( DROP TABLE IF EXISTS `accountingEntryError`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountingEntryError` ( `accountingEntryFk` int(10) unsigned NOT NULL, PRIMARY KEY (`accountingEntryFk`) @@ -16179,7 +16180,7 @@ CREATE TABLE `accountingEntryError` ( DROP TABLE IF EXISTS `clientLastTwoMonths`; /*!50001 DROP VIEW IF EXISTS `clientLastTwoMonths`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `clientLastTwoMonths` AS SELECT 1 AS `clientFk`, 1 AS `companyFk` */; @@ -16191,7 +16192,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `clientSupplier`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientSupplier` ( `companyFk` smallint(6) NOT NULL, `type` enum('C','P') NOT NULL, @@ -16207,7 +16208,7 @@ CREATE TABLE `clientSupplier` ( DROP TABLE IF EXISTS `clientesProveedores`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientesProveedores` ( `CodigoEmpresa` smallint(6) NOT NULL, `ClienteOProveedor` varchar(1) NOT NULL, @@ -16339,7 +16340,7 @@ CREATE TABLE `clientesProveedores` ( DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `id` int(10) unsigned NOT NULL, `pendingTaxAccount` varchar(100) DEFAULT NULL COMMENT 'Cuenta contable IVA pendiente', @@ -16358,7 +16359,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `invoiceType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceType` ( `code` varchar(11) NOT NULL, `codeSage` varchar(1) NOT NULL, @@ -16374,7 +16375,7 @@ CREATE TABLE `invoiceType` ( DROP TABLE IF EXISTS `movConta`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `movConta` ( `OrdenMovimientos` int(11) NOT NULL AUTO_INCREMENT, `MovPosicion` varchar(64) NOT NULL, @@ -16553,7 +16554,7 @@ CREATE TABLE `movConta` ( DROP TABLE IF EXISTS `movContaIVA`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `movContaIVA` ( `id` int(11) NOT NULL, `CodigoDivisa` varchar(3) NOT NULL, @@ -16635,7 +16636,7 @@ CREATE TABLE `movContaIVA` ( DROP TABLE IF EXISTS `pgcToSage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pgcToSage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `taxCodeSage` int(11) NOT NULL, @@ -16652,7 +16653,7 @@ CREATE TABLE `pgcToSage` ( DROP TABLE IF EXISTS `planCuentasPGC`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `planCuentasPGC` ( `CodigoEmpresa` smallint(6) NOT NULL, `CodigoCuenta` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -16686,7 +16687,7 @@ CREATE TABLE `planCuentasPGC` ( DROP TABLE IF EXISTS `supplierLastThreeMonths`; /*!50001 DROP VIEW IF EXISTS `supplierLastThreeMonths`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `supplierLastThreeMonths` AS SELECT 1 AS `supplierFk`, 1 AS `companyFk` */; @@ -16698,7 +16699,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `taxType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `taxType` ( `id` int(11) NOT NULL, `code` varchar(25) DEFAULT NULL, @@ -18345,7 +18346,7 @@ USE `salix`; DROP TABLE IF EXISTS `ACL`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ACL` ( `id` int(11) NOT NULL AUTO_INCREMENT, `model` varchar(512) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -18368,7 +18369,7 @@ CREATE TABLE `ACL` ( DROP TABLE IF EXISTS `ACLLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ACLLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -18397,7 +18398,7 @@ CREATE TABLE `ACLLog` ( DROP TABLE IF EXISTS `AccessToken`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AccessToken` ( `id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `ttl` int(11) DEFAULT NULL, @@ -18417,7 +18418,7 @@ CREATE TABLE `AccessToken` ( DROP TABLE IF EXISTS `Account`; /*!50001 DROP VIEW IF EXISTS `Account`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Account` AS SELECT 1 AS `id`, 1 AS `name`, @@ -18436,7 +18437,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Role`; /*!50001 DROP VIEW IF EXISTS `Role`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Role` AS SELECT 1 AS `id`, 1 AS `name`, @@ -18452,7 +18453,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `RoleMapping`; /*!50001 DROP VIEW IF EXISTS `RoleMapping`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `RoleMapping` AS SELECT 1 AS `id`, 1 AS `principalType`, @@ -18467,7 +18468,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `User`; /*!50001 DROP VIEW IF EXISTS `User`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `User` AS SELECT 1 AS `id`, 1 AS `realm`, @@ -18484,7 +18485,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `accessTokenConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accessTokenConfig` ( `id` int(10) unsigned NOT NULL, `renewPeriod` int(10) unsigned DEFAULT NULL, @@ -18501,7 +18502,7 @@ CREATE TABLE `accessTokenConfig` ( DROP TABLE IF EXISTS `authCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `authCode` ( `userFk` int(10) unsigned NOT NULL, `code` int(11) NOT NULL, @@ -18518,7 +18519,7 @@ CREATE TABLE `authCode` ( DROP TABLE IF EXISTS `defaultViewMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `defaultViewMultiConfig` ( `tableCode` varchar(25) NOT NULL, `columns` text NOT NULL @@ -18531,7 +18532,7 @@ CREATE TABLE `defaultViewMultiConfig` ( DROP TABLE IF EXISTS `fieldAcl`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `fieldAcl` ( `id` int(11) NOT NULL AUTO_INCREMENT, `model` varchar(255) DEFAULT NULL, @@ -18548,7 +18549,7 @@ CREATE TABLE `fieldAcl` ( DROP TABLE IF EXISTS `module`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `module` ( `code` varchar(45) NOT NULL, PRIMARY KEY (`code`) @@ -18561,7 +18562,7 @@ CREATE TABLE `module` ( DROP TABLE IF EXISTS `printConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printConfig` ( `id` int(10) unsigned NOT NULL, `itRecipient` varchar(50) DEFAULT NULL COMMENT 'IT recipients for report mailing', @@ -18577,7 +18578,7 @@ CREATE TABLE `printConfig` ( DROP TABLE IF EXISTS `url`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `url` ( `appName` varchar(100) NOT NULL, `environment` varchar(100) NOT NULL, @@ -18592,7 +18593,7 @@ CREATE TABLE `url` ( DROP TABLE IF EXISTS `userConfigView`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userConfigView` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned NOT NULL, @@ -18669,7 +18670,7 @@ USE `srt`; DROP TABLE IF EXISTS `antenna`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `antenna` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -18683,7 +18684,7 @@ CREATE TABLE `antenna` ( DROP TABLE IF EXISTS `buffer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `buffer` ( `id` int(11) NOT NULL, `x` int(11) DEFAULT NULL, @@ -18720,7 +18721,7 @@ CREATE TABLE `buffer` ( DROP TABLE IF EXISTS `bufferDayMinute`; /*!50001 DROP VIEW IF EXISTS `bufferDayMinute`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `bufferDayMinute` AS SELECT 1 AS `bufferFk`, 1 AS `expeditionFk`, @@ -18740,7 +18741,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `bufferFreeLength`; /*!50001 DROP VIEW IF EXISTS `bufferFreeLength`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `bufferFreeLength` AS SELECT 1 AS `bufferFk`, 1 AS `bufferName`, @@ -18760,7 +18761,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `bufferGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bufferGroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bufferFk` int(11) NOT NULL, @@ -18777,7 +18778,7 @@ CREATE TABLE `bufferGroup` ( DROP TABLE IF EXISTS `bufferLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bufferLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -18806,7 +18807,7 @@ CREATE TABLE `bufferLog` ( DROP TABLE IF EXISTS `bufferPool`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bufferPool` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bufferFk` int(11) NOT NULL, @@ -18822,7 +18823,7 @@ CREATE TABLE `bufferPool` ( DROP TABLE IF EXISTS `bufferState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bufferState` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(20) NOT NULL, @@ -18838,7 +18839,7 @@ CREATE TABLE `bufferState` ( DROP TABLE IF EXISTS `bufferStock`; /*!50001 DROP VIEW IF EXISTS `bufferStock`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `bufferStock` AS SELECT 1 AS `expeditionFk`, 1 AS `bufferFk`, @@ -18863,7 +18864,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `bufferType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bufferType` ( `id` int(11) NOT NULL, `typeName` varchar(100) NOT NULL, @@ -18878,7 +18879,7 @@ CREATE TABLE `bufferType` ( DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `readingPointDelay` int(11) NOT NULL DEFAULT 5 COMMENT 'tiempo de espera de la antena para considerar la lectura como una nueva ', `boxGap` int(11) NOT NULL COMMENT 'separacion teorica entre cajas en el buffer', @@ -18919,7 +18920,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `enteringLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `enteringLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `expeditionFk` int(11) DEFAULT NULL, @@ -18935,7 +18936,7 @@ CREATE TABLE `enteringLog` ( DROP TABLE IF EXISTS `expedition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expedition` ( `id` int(11) NOT NULL, `weight` decimal(10,2) DEFAULT NULL COMMENT 'peso en kg', @@ -18961,7 +18962,7 @@ CREATE TABLE `expedition` ( DROP TABLE IF EXISTS `expeditionLoading`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionLoading` ( `id` int(11) NOT NULL AUTO_INCREMENT, `expeditionFk` int(11) NOT NULL, @@ -18981,7 +18982,7 @@ CREATE TABLE `expeditionLoading` ( DROP TABLE IF EXISTS `expeditionLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `expeditionFk` int(11) DEFAULT NULL, @@ -19005,7 +19006,7 @@ CREATE TABLE `expeditionLog` ( DROP TABLE IF EXISTS `expeditionState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionState` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -19022,7 +19023,7 @@ CREATE TABLE `expeditionState` ( DROP TABLE IF EXISTS `expeditionVolume`; /*!50001 DROP VIEW IF EXISTS `expeditionVolume`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionVolume` AS SELECT 1 AS `dayMinute`, 1 AS `ETD`, @@ -19039,7 +19040,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `failureLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `failureLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -19054,7 +19055,7 @@ CREATE TABLE `failureLog` ( DROP TABLE IF EXISTS `lastRFID`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `lastRFID` ( `code` varchar(20) NOT NULL, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -19077,7 +19078,7 @@ CREATE TABLE `lastRFID` ( DROP TABLE IF EXISTS `moving`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `moving` ( `id` int(11) NOT NULL AUTO_INCREMENT, `expeditionFk` int(11) DEFAULT NULL, @@ -19104,7 +19105,7 @@ CREATE TABLE `moving` ( DROP TABLE IF EXISTS `movingLast`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `movingLast` ( `id` int(11) NOT NULL, `expeditionFk` int(11) DEFAULT NULL, @@ -19121,7 +19122,7 @@ CREATE TABLE `movingLast` ( DROP TABLE IF EXISTS `movingLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `movingLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `expeditionFk` int(11) DEFAULT NULL, @@ -19142,7 +19143,7 @@ CREATE TABLE `movingLog` ( DROP TABLE IF EXISTS `movingState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `movingState` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(20) NOT NULL, @@ -19159,7 +19160,7 @@ CREATE TABLE `movingState` ( DROP TABLE IF EXISTS `photocell`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `photocell` ( `bufferFk` int(11) NOT NULL, `position` int(11) NOT NULL COMMENT 'Posición relativa al celluveyor de dentro a fuera, siendo 1 la más cercana a este', @@ -19176,7 +19177,7 @@ CREATE TABLE `photocell` ( DROP TABLE IF EXISTS `routePalletized`; /*!50001 DROP VIEW IF EXISTS `routePalletized`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `routePalletized` AS SELECT 1 AS `routeFk`, 1 AS `expediciones`, @@ -19190,7 +19191,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `routeVolume`; /*!50001 DROP VIEW IF EXISTS `routeVolume`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `routeVolume` AS SELECT 1 AS `dayMinute`, 1 AS `ETD`, @@ -19208,7 +19209,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `sorterLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sorterLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -19224,7 +19225,7 @@ CREATE TABLE `sorterLog` ( DROP TABLE IF EXISTS `ticketPalletized`; /*!50001 DROP VIEW IF EXISTS `ticketPalletized`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketPalletized` AS SELECT 1 AS `ticketFk`, 1 AS `routeFk`, @@ -19239,7 +19240,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `upperStickers`; /*!50001 DROP VIEW IF EXISTS `upperStickers`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `upperStickers` AS SELECT 1 AS `expeditionFk`, 1 AS `expedition`, @@ -22254,7 +22255,7 @@ USE `stock`; DROP TABLE IF EXISTS `inbound`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inbound` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tableName` set('buy','sale') NOT NULL, @@ -22280,7 +22281,7 @@ CREATE TABLE `inbound` ( DROP TABLE IF EXISTS `inboundPick`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inboundPick` ( `inboundFk` int(10) unsigned NOT NULL, `outboundFk` int(10) unsigned NOT NULL, @@ -22297,7 +22298,7 @@ CREATE TABLE `inboundPick` ( DROP TABLE IF EXISTS `log`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `operation` set('insert','delete') NOT NULL, @@ -22314,7 +22315,7 @@ CREATE TABLE `log` ( DROP TABLE IF EXISTS `outbound`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `outbound` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tableName` set('sale','buy','orderRow') NOT NULL, @@ -22342,7 +22343,7 @@ CREATE TABLE `outbound` ( DROP TABLE IF EXISTS `visible`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `visible` ( `itemFk` int(10) unsigned NOT NULL, `warehouseFk` int(10) unsigned NOT NULL, @@ -23409,7 +23410,7 @@ USE `util`; DROP TABLE IF EXISTS `binlogQueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `binlogQueue` ( `code` varchar(255) NOT NULL, `logName` varchar(255) NOT NULL, @@ -23424,7 +23425,7 @@ CREATE TABLE `binlogQueue` ( DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `id` int(10) unsigned NOT NULL, `environment` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT 'The current Database environment', @@ -23443,7 +23444,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `debug`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `debug` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), @@ -23463,7 +23464,7 @@ CREATE TABLE `debug` ( DROP TABLE IF EXISTS `eventLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `eventLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date` datetime NOT NULL, @@ -23481,7 +23482,7 @@ CREATE TABLE `eventLog` ( DROP TABLE IF EXISTS `eventLogGrouped`; /*!50001 DROP VIEW IF EXISTS `eventLogGrouped`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `eventLogGrouped` AS SELECT 1 AS `lastHappened`, 1 AS `nErrors`, @@ -23495,7 +23496,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `logCleanMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `logCleanMultiConfig` ( `schemaName` varchar(64) NOT NULL, `tableName` varchar(64) NOT NULL, @@ -23513,7 +23514,7 @@ CREATE TABLE `logCleanMultiConfig` ( DROP TABLE IF EXISTS `notification`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `notification` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, @@ -23529,7 +23530,7 @@ CREATE TABLE `notification` ( DROP TABLE IF EXISTS `notificationAcl`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `notificationAcl` ( `notificationFk` int(11) NOT NULL, `roleFk` int(10) unsigned NOT NULL, @@ -23546,7 +23547,7 @@ CREATE TABLE `notificationAcl` ( DROP TABLE IF EXISTS `notificationConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `notificationConfig` ( `id` int(10) unsigned NOT NULL, `cleanDays` mediumint(9) DEFAULT NULL, @@ -23561,7 +23562,7 @@ CREATE TABLE `notificationConfig` ( DROP TABLE IF EXISTS `notificationQueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `notificationQueue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `notificationFk` varchar(255) DEFAULT NULL, @@ -23584,7 +23585,7 @@ CREATE TABLE `notificationQueue` ( DROP TABLE IF EXISTS `notificationSubscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `notificationSubscription` ( `notificationFk` int(11) NOT NULL, `userFk` int(10) unsigned NOT NULL, @@ -23604,7 +23605,7 @@ CREATE TABLE `notificationSubscription` ( DROP TABLE IF EXISTS `version`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `version` ( `code` varchar(50) NOT NULL, `number` char(11) DEFAULT NULL, @@ -23621,7 +23622,7 @@ CREATE TABLE `version` ( DROP TABLE IF EXISTS `versionConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `versionConfig` ( `id` int(10) unsigned NOT NULL, `realm` varchar(16) DEFAULT NULL COMMENT 'Data set on which the project runs', @@ -23636,7 +23637,7 @@ CREATE TABLE `versionConfig` ( DROP TABLE IF EXISTS `versionLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `versionLog` ( `code` varchar(50) NOT NULL, `number` char(11) NOT NULL, @@ -25616,7 +25617,7 @@ USE `vn`; DROP TABLE IF EXISTS `NewView`; /*!50001 DROP VIEW IF EXISTS `NewView`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `NewView` AS SELECT 1 AS `clientFk`, 1 AS `lastShipped`, @@ -25629,7 +25630,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `XDiario`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XDiario` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ASIEN` double DEFAULT NULL, @@ -25640,8 +25641,8 @@ CREATE TABLE `XDiario` ( `EURODEBE` decimal(10,2) DEFAULT NULL, `EUROHABER` decimal(10,2) DEFAULT NULL, `BASEEURO` decimal(10,2) DEFAULT NULL, - `SERIE` varchar(1) DEFAULT NULL, - `FACTURA` varchar(8) DEFAULT '0', + `SERIE` varchar(2) DEFAULT NULL, + `FACTURA` varchar(25) DEFAULT '0', `IVA` decimal(10,2) DEFAULT NULL, `RECEQUIV` decimal(10,2) DEFAULT 0.00, `CLAVE` int(11) DEFAULT NULL, @@ -25699,7 +25700,7 @@ CREATE TABLE `XDiario` ( DROP TABLE IF EXISTS `absenceType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `absenceType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, @@ -25724,7 +25725,7 @@ CREATE TABLE `absenceType` ( DROP TABLE IF EXISTS `accountDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountDetail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(50) NOT NULL, @@ -25744,7 +25745,7 @@ CREATE TABLE `accountDetail` ( DROP TABLE IF EXISTS `accountDetailType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountDetailType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(255) DEFAULT NULL, @@ -25760,7 +25761,7 @@ CREATE TABLE `accountDetailType` ( DROP TABLE IF EXISTS `accountReconciliation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountReconciliation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplierAccountFk` mediumint(8) unsigned NOT NULL, @@ -25785,7 +25786,7 @@ CREATE TABLE `accountReconciliation` ( DROP TABLE IF EXISTS `accountReconciliationConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountReconciliationConfig` ( `id` int(11) NOT NULL AUTO_INCREMENT, `currencyFk` tinyint(3) unsigned DEFAULT NULL, @@ -25804,7 +25805,7 @@ CREATE TABLE `accountReconciliationConfig` ( DROP TABLE IF EXISTS `accounting`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accounting` ( `id` int(11) NOT NULL DEFAULT 0, `bank` varchar(50) DEFAULT NULL, @@ -25831,7 +25832,7 @@ CREATE TABLE `accounting` ( DROP TABLE IF EXISTS `accountingConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountingConfig` ( `id` int(10) unsigned NOT NULL, `minDate` date NOT NULL, @@ -25847,7 +25848,7 @@ CREATE TABLE `accountingConfig` ( DROP TABLE IF EXISTS `accountingType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `accountingType` ( `id` smallint(6) NOT NULL DEFAULT 0, `description` varchar(100) NOT NULL, @@ -25867,7 +25868,7 @@ CREATE TABLE `accountingType` ( DROP TABLE IF EXISTS `activityTaxDismissed`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `activityTaxDismissed` ( `clientFk` int(11) NOT NULL, `isNotified` tinyint(1) DEFAULT 0, @@ -25884,7 +25885,7 @@ CREATE TABLE `activityTaxDismissed` ( DROP TABLE IF EXISTS `address`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `address` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL DEFAULT 0, @@ -25933,7 +25934,7 @@ CREATE TABLE `address` ( DROP TABLE IF EXISTS `addressFilter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `addressFilter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -25961,7 +25962,7 @@ CREATE TABLE `addressFilter` ( DROP TABLE IF EXISTS `addressForPackaging`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `addressForPackaging` ( `addressFk` int(11) NOT NULL, `packagingValue` decimal(10,2) NOT NULL DEFAULT 0.04, @@ -25976,7 +25977,7 @@ CREATE TABLE `addressForPackaging` ( DROP TABLE IF EXISTS `addressObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `addressObservation` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `addressFk` int(11) NOT NULL, @@ -25996,7 +25997,7 @@ CREATE TABLE `addressObservation` ( DROP TABLE IF EXISTS `addressWaste`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `addressWaste` ( `addressFk` int(11) NOT NULL, `type` enum('external','fault','container','break','other') NOT NULL, @@ -26011,7 +26012,7 @@ CREATE TABLE `addressWaste` ( DROP TABLE IF EXISTS `agency`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agency` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, @@ -26036,7 +26037,7 @@ CREATE TABLE `agency` ( DROP TABLE IF EXISTS `agencyExtraCharge`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyExtraCharge` ( `id` int(11) NOT NULL, `agencyFk` smallint(5) unsigned NOT NULL, @@ -26056,7 +26057,7 @@ CREATE TABLE `agencyExtraCharge` ( DROP TABLE IF EXISTS `agencyIncoming`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyIncoming` ( `agencyModeFk` int(11) NOT NULL, PRIMARY KEY (`agencyModeFk`), @@ -26070,7 +26071,7 @@ CREATE TABLE `agencyIncoming` ( DROP TABLE IF EXISTS `agencyLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyLog` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `originFk` smallint(5) unsigned DEFAULT NULL, @@ -26100,7 +26101,7 @@ CREATE TABLE `agencyLog` ( DROP TABLE IF EXISTS `agencyMode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyMode` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -26135,7 +26136,7 @@ CREATE TABLE `agencyMode` ( DROP TABLE IF EXISTS `agencyModeIncoming`; /*!50001 DROP VIEW IF EXISTS `agencyModeIncoming`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `agencyModeIncoming` AS SELECT 1 AS `id`, 1 AS `name` */; @@ -26147,7 +26148,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `agencyModeItemType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyModeItemType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `agencyModeFk` int(11) NOT NULL, @@ -26166,7 +26167,7 @@ CREATE TABLE `agencyModeItemType` ( DROP TABLE IF EXISTS `agencyModePricePercentage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyModePricePercentage` ( `agencyModeFk` int(11) NOT NULL, `percentage` double NOT NULL, @@ -26182,7 +26183,7 @@ CREATE TABLE `agencyModePricePercentage` ( DROP TABLE IF EXISTS `agencyTerm`; /*!50001 DROP VIEW IF EXISTS `agencyTerm`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `agencyTerm` AS SELECT 1 AS `agencyFk`, 1 AS `minimumPackages`, @@ -26200,7 +26201,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `agencyTermConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyTermConfig` ( `expenseFk` varchar(10) DEFAULT NULL, `vatAccountSupported` varchar(15) DEFAULT NULL, @@ -26217,7 +26218,7 @@ CREATE TABLE `agencyTermConfig` ( DROP TABLE IF EXISTS `agencyWorkCenter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `agencyWorkCenter` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `agencyFk` smallint(5) unsigned NOT NULL, @@ -26239,7 +26240,7 @@ CREATE TABLE `agencyWorkCenter` ( DROP TABLE IF EXISTS `airline`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `airline` ( `id` smallint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, @@ -26253,7 +26254,7 @@ CREATE TABLE `airline` ( DROP TABLE IF EXISTS `airport`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `airport` ( `id` smallint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) DEFAULT NULL, @@ -26267,7 +26268,7 @@ CREATE TABLE `airport` ( DROP TABLE IF EXISTS `alertLevel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `alertLevel` ( `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `id` int(11) NOT NULL, @@ -26282,7 +26283,7 @@ CREATE TABLE `alertLevel` ( DROP TABLE IF EXISTS `amortizationType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `amortizationType` ( `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `description` varchar(255) DEFAULT NULL, @@ -26297,7 +26298,7 @@ CREATE TABLE `amortizationType` ( DROP TABLE IF EXISTS `annualAverageInvoiced`; /*!50001 DROP VIEW IF EXISTS `annualAverageInvoiced`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `annualAverageInvoiced` AS SELECT 1 AS `clientFk`, 1 AS `invoiced` */; @@ -26309,7 +26310,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `arcRead`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `arcRead` ( `id` smallint(2) unsigned NOT NULL AUTO_INCREMENT, `printerFk` int(10) unsigned DEFAULT NULL, @@ -26330,7 +26331,7 @@ CREATE TABLE `arcRead` ( DROP TABLE IF EXISTS `assignedTicketToWorker`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `assignedTicketToWorker` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idWorker` int(11) DEFAULT NULL, @@ -26347,7 +26348,7 @@ CREATE TABLE `assignedTicketToWorker` ( DROP TABLE IF EXISTS `auctionConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `auctionConfig` ( `id` int(10) unsigned NOT NULL, `conversionCoefficient` double NOT NULL DEFAULT 1 COMMENT 'value used to calculate the used space of an item in a container', @@ -26365,7 +26366,7 @@ CREATE TABLE `auctionConfig` ( DROP TABLE IF EXISTS `autoRadioConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `autoRadioConfig` ( `id` int(10) unsigned NOT NULL, `password` varchar(45) DEFAULT NULL, @@ -26384,7 +26385,7 @@ CREATE TABLE `autoRadioConfig` ( DROP TABLE IF EXISTS `autoRadioLogCall`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `autoRadioLogCall` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ticketFk` int(11) NOT NULL, @@ -26402,7 +26403,7 @@ CREATE TABLE `autoRadioLogCall` ( DROP TABLE IF EXISTS `autonomy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `autonomy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -26424,7 +26425,7 @@ CREATE TABLE `autonomy` ( DROP TABLE IF EXISTS `awb`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awb` ( `id` smallint(11) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(18) NOT NULL, @@ -26480,7 +26481,7 @@ CREATE TABLE `awb` ( DROP TABLE IF EXISTS `awbComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbComponent` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `awbFk` smallint(11) unsigned DEFAULT NULL, @@ -26510,7 +26511,7 @@ CREATE TABLE `awbComponent` ( DROP TABLE IF EXISTS `awbComponentTemplate`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbComponentTemplate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `freightFk` int(11) DEFAULT NULL, @@ -26547,7 +26548,7 @@ CREATE TABLE `awbComponentTemplate` ( DROP TABLE IF EXISTS `awbComponentType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbComponentType` ( `id` mediumint(3) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(45) DEFAULT NULL, @@ -26562,7 +26563,7 @@ CREATE TABLE `awbComponentType` ( DROP TABLE IF EXISTS `awbDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbDms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `awbFk` smallint(11) unsigned NOT NULL, @@ -26581,7 +26582,7 @@ CREATE TABLE `awbDms` ( DROP TABLE IF EXISTS `awbInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbInvoiceIn` ( `awbFk` smallint(5) unsigned NOT NULL, `invoiceInFk` mediumint(8) unsigned NOT NULL, @@ -26599,7 +26600,7 @@ CREATE TABLE `awbInvoiceIn` ( DROP TABLE IF EXISTS `awbRole`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbRole` ( `id` tinyint(1) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -26613,7 +26614,7 @@ CREATE TABLE `awbRole` ( DROP TABLE IF EXISTS `awbUnit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `awbUnit` ( `id` varchar(10) NOT NULL DEFAULT '', `operation` varchar(45) DEFAULT NULL, @@ -26628,7 +26629,7 @@ CREATE TABLE `awbUnit` ( DROP TABLE IF EXISTS `awbVolume`; /*!50001 DROP VIEW IF EXISTS `awbVolume`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awbVolume` AS SELECT 1 AS `awbFk`, 1 AS `volume`, @@ -26641,7 +26642,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `balanceNestTree`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `balanceNestTree` ( `lft` int(11) DEFAULT NULL, `rgt` int(11) DEFAULT NULL, @@ -26661,7 +26662,7 @@ CREATE TABLE `balanceNestTree` ( DROP TABLE IF EXISTS `bankEntity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bankEntity` ( `countryFk` mediumint(8) unsigned NOT NULL DEFAULT 1, `id` int(10) unsigned NOT NULL AUTO_INCREMENT, @@ -26679,7 +26680,7 @@ CREATE TABLE `bankEntity` ( DROP TABLE IF EXISTS `bankEntityConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bankEntityConfig` ( `id` int(10) unsigned NOT NULL, `bicLength` tinyint(4) DEFAULT 11 COMMENT 'Tamaño del campo bic', @@ -26695,7 +26696,7 @@ CREATE TABLE `bankEntityConfig` ( DROP TABLE IF EXISTS `bankErrorCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bankErrorCode` ( `code` char(5) NOT NULL, `description` varchar(255) NOT NULL, @@ -26709,7 +26710,7 @@ CREATE TABLE `bankErrorCode` ( DROP TABLE IF EXISTS `bankPolicy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bankPolicy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ref` varchar(45) DEFAULT NULL, @@ -26754,7 +26755,7 @@ CREATE TABLE `bankPolicy` ( DROP TABLE IF EXISTS `bankPolicyDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bankPolicyDetail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bankPolicyFk` int(11) NOT NULL, @@ -26774,7 +26775,7 @@ CREATE TABLE `bankPolicyDetail` ( DROP TABLE IF EXISTS `bankPolicyReview`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bankPolicyReview` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bankPolicyFk` int(11) NOT NULL, @@ -26790,7 +26791,7 @@ CREATE TABLE `bankPolicyReview` ( DROP TABLE IF EXISTS `beach`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `beach` ( `code` varchar(45) NOT NULL, `warehouseFk` smallint(6) NOT NULL DEFAULT 60, @@ -26804,7 +26805,7 @@ CREATE TABLE `beach` ( DROP TABLE IF EXISTS `bionicConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bionicConfig` ( `id` int(10) unsigned NOT NULL, `generalInflationCoeficient` double(10,2) NOT NULL, @@ -26822,7 +26823,7 @@ CREATE TABLE `bionicConfig` ( DROP TABLE IF EXISTS `bookingPlanner`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `bookingPlanner` ( `id` int(10) NOT NULL AUTO_INCREMENT, `effectived` timestamp NOT NULL DEFAULT current_timestamp(), @@ -26849,7 +26850,7 @@ CREATE TABLE `bookingPlanner` ( DROP TABLE IF EXISTS `budget`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `budget` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -26883,7 +26884,7 @@ CREATE TABLE `budget` ( DROP TABLE IF EXISTS `budgetDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `budgetDms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `budgetFk` int(11) NOT NULL, @@ -26902,7 +26903,7 @@ CREATE TABLE `budgetDms` ( DROP TABLE IF EXISTS `budgetInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `budgetInvoiceIn` ( `id` int(11) NOT NULL AUTO_INCREMENT, `budgetFk` int(11) NOT NULL, @@ -26923,7 +26924,7 @@ CREATE TABLE `budgetInvoiceIn` ( DROP TABLE IF EXISTS `budgetNotes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `budgetNotes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `budgetFk` int(11) NOT NULL, @@ -26944,7 +26945,7 @@ CREATE TABLE `budgetNotes` ( DROP TABLE IF EXISTS `budgetState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `budgetState` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(45) NOT NULL, @@ -26960,7 +26961,7 @@ CREATE TABLE `budgetState` ( DROP TABLE IF EXISTS `business`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `business` ( `id` int(11) NOT NULL AUTO_INCREMENT, `companyCodeFk` char(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, @@ -27017,7 +27018,7 @@ CREATE TABLE `business` ( DROP TABLE IF EXISTS `businessCalendar`; /*!50001 DROP VIEW IF EXISTS `businessCalendar`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `businessCalendar` AS SELECT 1 AS `id`, 1 AS `businessFk`, @@ -27031,7 +27032,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `businessReasonEnd`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `businessReasonEnd` ( `id` tinyint(3) NOT NULL AUTO_INCREMENT, `reason` varchar(255) DEFAULT NULL, @@ -27045,7 +27046,7 @@ CREATE TABLE `businessReasonEnd` ( DROP TABLE IF EXISTS `businessSchedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `businessSchedule` ( `id` int(11) NOT NULL AUTO_INCREMENT, `weekday` smallint(6) NOT NULL DEFAULT 1 COMMENT 'Lunes = 1 \nDomingo = 7', @@ -27065,7 +27066,7 @@ CREATE TABLE `businessSchedule` ( DROP TABLE IF EXISTS `businessType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `businessType` ( `code` varchar(100) NOT NULL DEFAULT '', `description` varchar(100) NOT NULL, @@ -27079,7 +27080,7 @@ CREATE TABLE `businessType` ( DROP TABLE IF EXISTS `buy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `buy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entryFk` int(11) NOT NULL DEFAULT 0, @@ -27140,7 +27141,7 @@ CREATE TABLE `buy` ( DROP TABLE IF EXISTS `buyConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `buyConfig` ( `id` int(10) unsigned NOT NULL, `monthsAgo` int(11) NOT NULL DEFAULT 6 COMMENT 'Meses desde la última compra', @@ -27156,7 +27157,7 @@ CREATE TABLE `buyConfig` ( DROP TABLE IF EXISTS `buyer`; /*!50001 DROP VIEW IF EXISTS `buyer`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buyer` AS SELECT 1 AS `userFk`, 1 AS `nickname` */; @@ -27169,7 +27170,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `buyerSales`; /*!50001 DROP VIEW IF EXISTS `buyerSales`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buyerSales` AS SELECT 1 AS `importe`, 1 AS `comprador`, @@ -27183,7 +27184,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `calendar`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calendar` ( `id` int(11) NOT NULL AUTO_INCREMENT, `businessFk` int(11) NOT NULL, @@ -27209,7 +27210,7 @@ CREATE TABLE `calendar` ( DROP TABLE IF EXISTS `calendarHolidays`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calendarHolidays` ( `id` int(11) NOT NULL AUTO_INCREMENT, `calendarHolidaysTypeFk` int(11) NOT NULL, @@ -27233,7 +27234,7 @@ CREATE TABLE `calendarHolidays` ( DROP TABLE IF EXISTS `calendarHolidaysName`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calendarHolidaysName` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, @@ -27247,7 +27248,7 @@ CREATE TABLE `calendarHolidaysName` ( DROP TABLE IF EXISTS `calendarHolidaysType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calendarHolidaysType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -27262,7 +27263,7 @@ CREATE TABLE `calendarHolidaysType` ( DROP TABLE IF EXISTS `calendarType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `calendarType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(50) DEFAULT NULL, @@ -27279,7 +27280,7 @@ CREATE TABLE `calendarType` ( DROP TABLE IF EXISTS `campaign`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `campaign` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` enum('mothersDay','allSaints','valentinesDay','frenchMothersDay') NOT NULL, @@ -27297,7 +27298,7 @@ CREATE TABLE `campaign` ( DROP TABLE IF EXISTS `category`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -27313,7 +27314,7 @@ CREATE TABLE `category` ( DROP TABLE IF EXISTS `chain`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `chain` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -27331,7 +27332,7 @@ CREATE TABLE `chain` ( DROP TABLE IF EXISTS `chat`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `chat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `senderFk` int(10) unsigned DEFAULT NULL, @@ -27354,7 +27355,7 @@ CREATE TABLE `chat` ( DROP TABLE IF EXISTS `chatConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `chatConfig` ( `id` int(10) unsigned NOT NULL, `host` varchar(255) NOT NULL, @@ -27372,7 +27373,7 @@ CREATE TABLE `chatConfig` ( DROP TABLE IF EXISTS `claim`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claim` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ticketCreated` date NOT NULL, @@ -27407,7 +27408,7 @@ CREATE TABLE `claim` ( DROP TABLE IF EXISTS `claimBeginning`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimBeginning` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `claimFk` int(10) unsigned NOT NULL, @@ -27430,12 +27431,13 @@ CREATE TABLE `claimBeginning` ( DROP TABLE IF EXISTS `claimConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimConfig` ( `id` int(10) unsigned NOT NULL, `maxResponsibility` int(11) DEFAULT NULL, `monthsToRefund` int(11) DEFAULT NULL, `minShipped` date DEFAULT NULL, + `daysToClaim` int(11) NOT NULL DEFAULT 7 COMMENT 'Dias para reclamar', PRIMARY KEY (`id`), CONSTRAINT `claimConfig_check` CHECK (`id` = 1) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; @@ -27447,7 +27449,7 @@ CREATE TABLE `claimConfig` ( DROP TABLE IF EXISTS `claimDestination`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimDestination` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(15) NOT NULL, @@ -27465,7 +27467,7 @@ CREATE TABLE `claimDestination` ( DROP TABLE IF EXISTS `claimDevelopment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimDevelopment` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `claimFk` int(10) unsigned NOT NULL, @@ -27502,7 +27504,7 @@ CREATE TABLE `claimDevelopment` ( DROP TABLE IF EXISTS `claimDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimDms` ( `claimFk` int(10) unsigned NOT NULL, `dmsFk` int(11) NOT NULL, @@ -27522,7 +27524,7 @@ CREATE TABLE `claimDms` ( DROP TABLE IF EXISTS `claimEnd`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimEnd` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `saleFk` int(11) DEFAULT NULL, @@ -27550,7 +27552,7 @@ CREATE TABLE `claimEnd` ( DROP TABLE IF EXISTS `claimLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -27579,7 +27581,7 @@ CREATE TABLE `claimLog` ( DROP TABLE IF EXISTS `claimObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimObservation` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `claimFk` int(10) unsigned NOT NULL, @@ -27604,7 +27606,7 @@ CREATE TABLE `claimObservation` ( DROP TABLE IF EXISTS `claimRatio`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimRatio` ( `clientFk` int(11) NOT NULL DEFAULT 0, `yearSale` decimal(10,2) DEFAULT NULL, @@ -27623,7 +27625,7 @@ CREATE TABLE `claimRatio` ( DROP TABLE IF EXISTS `claimReason`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimReason` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -27638,7 +27640,7 @@ CREATE TABLE `claimReason` ( DROP TABLE IF EXISTS `claimRedelivery`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimRedelivery` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -27652,7 +27654,7 @@ CREATE TABLE `claimRedelivery` ( DROP TABLE IF EXISTS `claimResponsible`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimResponsible` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -27669,7 +27671,7 @@ CREATE TABLE `claimResponsible` ( DROP TABLE IF EXISTS `claimResult`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimResult` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -27683,7 +27685,7 @@ CREATE TABLE `claimResult` ( DROP TABLE IF EXISTS `claimState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `claimState` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -27706,7 +27708,7 @@ CREATE TABLE `claimState` ( DROP TABLE IF EXISTS `client`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `client` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -27810,7 +27812,7 @@ CREATE TABLE `client` ( DROP TABLE IF EXISTS `clientChain`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientChain` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -27829,7 +27831,7 @@ CREATE TABLE `clientChain` ( DROP TABLE IF EXISTS `clientConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientConfig` ( `id` int(10) unsigned NOT NULL, `riskTolerance` int(11) DEFAULT NULL COMMENT 'Maximo riesgo de un cliente para preparar su pedido', @@ -27860,7 +27862,7 @@ CREATE TABLE `clientConfig` ( DROP TABLE IF EXISTS `clientConsumptionQueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientConsumptionQueue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`params`)), @@ -27877,7 +27879,7 @@ CREATE TABLE `clientConsumptionQueue` ( DROP TABLE IF EXISTS `clientContact`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientContact` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -27898,7 +27900,7 @@ CREATE TABLE `clientContact` ( DROP TABLE IF EXISTS `clientCredit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientCredit` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -27919,7 +27921,7 @@ CREATE TABLE `clientCredit` ( DROP TABLE IF EXISTS `clientDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientDms` ( `clientFk` int(11) NOT NULL, `dmsFk` int(11) NOT NULL, @@ -27940,7 +27942,7 @@ CREATE TABLE `clientDms` ( DROP TABLE IF EXISTS `clientInforma`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientInforma` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -27962,7 +27964,7 @@ CREATE TABLE `clientInforma` ( DROP TABLE IF EXISTS `clientItemType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientItemType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -27982,7 +27984,7 @@ CREATE TABLE `clientItemType` ( DROP TABLE IF EXISTS `clientLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -28012,7 +28014,7 @@ CREATE TABLE `clientLog` ( DROP TABLE IF EXISTS `clientLost`; /*!50001 DROP VIEW IF EXISTS `clientLost`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `clientLost` AS SELECT 1 AS `clientFk`, 1 AS `lastShipped`, @@ -28025,7 +28027,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `clientManaCache`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientManaCache` ( `clientFk` int(11) NOT NULL, `mana` decimal(10,0) NOT NULL DEFAULT 0, @@ -28042,7 +28044,7 @@ CREATE TABLE `clientManaCache` ( DROP TABLE IF EXISTS `clientObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientObservation` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -28070,7 +28072,7 @@ CREATE TABLE `clientObservation` ( DROP TABLE IF EXISTS `clientPackagingGifts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientPackagingGifts` ( `clientFk` int(11) NOT NULL, `giftFk` int(11) NOT NULL, @@ -28089,7 +28091,7 @@ CREATE TABLE `clientPackagingGifts` ( DROP TABLE IF EXISTS `clientPhoneBook`; /*!50001 DROP VIEW IF EXISTS `clientPhoneBook`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `clientPhoneBook` AS SELECT 1 AS `clientFk`, 1 AS `phone` */; @@ -28101,7 +28103,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `clientProtected`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientProtected` ( `clientFk` int(11) NOT NULL, PRIMARY KEY (`clientFk`), @@ -28115,7 +28117,7 @@ CREATE TABLE `clientProtected` ( DROP TABLE IF EXISTS `clientRate`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientRate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -28133,7 +28135,7 @@ CREATE TABLE `clientRate` ( DROP TABLE IF EXISTS `clientRisk`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientRisk` ( `clientFk` int(11) NOT NULL DEFAULT 0, `companyFk` int(10) unsigned NOT NULL DEFAULT 0, @@ -28151,7 +28153,7 @@ CREATE TABLE `clientRisk` ( DROP TABLE IF EXISTS `clientSample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientSample` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -28178,7 +28180,7 @@ CREATE TABLE `clientSample` ( DROP TABLE IF EXISTS `clientSms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientSms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -28200,7 +28202,7 @@ CREATE TABLE `clientSms` ( DROP TABLE IF EXISTS `clientType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientType` ( `code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `type` varchar(45) NOT NULL, @@ -28216,7 +28218,7 @@ CREATE TABLE `clientType` ( DROP TABLE IF EXISTS `clientUnpaid`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientUnpaid` ( `clientFk` int(11) NOT NULL, `dated` date NOT NULL, @@ -28235,7 +28237,7 @@ CREATE TABLE `clientUnpaid` ( DROP TABLE IF EXISTS `clientYoke`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `clientYoke` ( `leftOx` int(11) NOT NULL, `rightOx` int(11) NOT NULL, @@ -28252,7 +28254,7 @@ CREATE TABLE `clientYoke` ( DROP TABLE IF EXISTS `cmr`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cmr` ( `id` int(11) NOT NULL AUTO_INCREMENT, `truckPlate` varchar(30) DEFAULT NULL, @@ -28288,7 +28290,7 @@ CREATE TABLE `cmr` ( DROP TABLE IF EXISTS `cmrConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cmrConfig` ( `dayOfMonth` int(11) DEFAULT NULL, `landingDays` tinyint(4) NOT NULL DEFAULT 1 @@ -28301,7 +28303,7 @@ CREATE TABLE `cmrConfig` ( DROP TABLE IF EXISTS `cmrPallet`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cmrPallet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cmrFk` int(11) NOT NULL, @@ -28321,7 +28323,7 @@ CREATE TABLE `cmrPallet` ( DROP TABLE IF EXISTS `collection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `collection` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -28355,7 +28357,7 @@ CREATE TABLE `collection` ( DROP TABLE IF EXISTS `collectionColors`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `collectionColors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(20) NOT NULL, @@ -28376,7 +28378,7 @@ CREATE TABLE `collectionColors` ( DROP TABLE IF EXISTS `collectionHotbed`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `collectionHotbed` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(11) NOT NULL, @@ -28391,7 +28393,7 @@ CREATE TABLE `collectionHotbed` ( DROP TABLE IF EXISTS `collectionVolumetry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `collectionVolumetry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `level` int(10) unsigned NOT NULL DEFAULT 0, @@ -28414,7 +28416,7 @@ CREATE TABLE `collectionVolumetry` ( DROP TABLE IF EXISTS `collectionWagon`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `collectionWagon` ( `collectionFk` int(11) NOT NULL, `wagonFk` int(11) unsigned NOT NULL, @@ -28433,7 +28435,7 @@ CREATE TABLE `collectionWagon` ( DROP TABLE IF EXISTS `collectionWagonTicket`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `collectionWagonTicket` ( `ticketFk` int(11) NOT NULL, `wagonFk` int(11) unsigned NOT NULL, @@ -28456,7 +28458,7 @@ CREATE TABLE `collectionWagonTicket` ( DROP TABLE IF EXISTS `commissionConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `commissionConfig` ( `rate` decimal(5,4) NOT NULL DEFAULT 0.0000, `plusTeamAmount` int(11) DEFAULT NULL, @@ -28486,7 +28488,7 @@ CREATE TABLE `commissionConfig` ( DROP TABLE IF EXISTS `company`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `company` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` char(3) DEFAULT NULL, @@ -28532,7 +28534,7 @@ CREATE TABLE `company` ( DROP TABLE IF EXISTS `companyGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `companyGroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(45) NOT NULL, @@ -28546,7 +28548,7 @@ CREATE TABLE `companyGroup` ( DROP TABLE IF EXISTS `companyI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `companyI18n` ( `companyFk` int(10) unsigned NOT NULL, `lang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -28563,7 +28565,7 @@ CREATE TABLE `companyI18n` ( DROP TABLE IF EXISTS `companyL10n`; /*!50001 DROP VIEW IF EXISTS `companyL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `companyL10n` AS SELECT 1 AS `id`, 1 AS `footnotes` */; @@ -28575,7 +28577,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `comparative`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `comparative` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `timePeriod` int(11) DEFAULT NULL, @@ -28601,7 +28603,7 @@ CREATE TABLE `comparative` ( DROP TABLE IF EXISTS `comparativeAddConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `comparativeAddConfig` ( `id` int(10) unsigned NOT NULL, `period` int(10) unsigned DEFAULT NULL COMMENT 'The number of periods to be regressed for insertion in vn.comparative', @@ -28617,7 +28619,7 @@ CREATE TABLE `comparativeAddConfig` ( DROP TABLE IF EXISTS `comparativeConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `comparativeConfig` ( `id` int(10) unsigned NOT NULL, `defaultDayRange` int(10) unsigned DEFAULT NULL COMMENT 'Rango de días predeterminado si no se especifica', @@ -28635,7 +28637,7 @@ CREATE TABLE `comparativeConfig` ( DROP TABLE IF EXISTS `comparativeFilter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `comparativeFilter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned NOT NULL, @@ -28664,7 +28666,7 @@ CREATE TABLE `comparativeFilter` ( DROP TABLE IF EXISTS `comparativeFilterType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `comparativeFilterType` ( `comparativeFilterFk` int(11) NOT NULL, `itemTypeFk` int(11) NOT NULL, @@ -28679,7 +28681,7 @@ CREATE TABLE `comparativeFilterType` ( DROP TABLE IF EXISTS `component`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `component` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -28702,7 +28704,7 @@ CREATE TABLE `component` ( DROP TABLE IF EXISTS `componentType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `componentType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(20) DEFAULT NULL, @@ -28720,7 +28722,7 @@ CREATE TABLE `componentType` ( DROP TABLE IF EXISTS `confectionType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `confectionType` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -28734,7 +28736,7 @@ CREATE TABLE `confectionType` ( DROP TABLE IF EXISTS `config`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `config` ( `id` int(10) unsigned NOT NULL, `ochoa` int(10) unsigned NOT NULL, @@ -28786,7 +28788,7 @@ CREATE TABLE `config` ( DROP TABLE IF EXISTS `contactChannel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `contactChannel` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -28800,7 +28802,7 @@ CREATE TABLE `contactChannel` ( DROP TABLE IF EXISTS `continent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `continent` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -28816,7 +28818,7 @@ CREATE TABLE `continent` ( DROP TABLE IF EXISTS `conveyor`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `conveyor` ( `id` int(11) NOT NULL AUTO_INCREMENT, `typeFk` int(11) NOT NULL, @@ -28842,7 +28844,7 @@ CREATE TABLE `conveyor` ( DROP TABLE IF EXISTS `conveyorBuildingClass`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `conveyorBuildingClass` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(255) DEFAULT NULL, @@ -28858,7 +28860,7 @@ CREATE TABLE `conveyorBuildingClass` ( DROP TABLE IF EXISTS `conveyorExpedition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `conveyorExpedition` ( `expeditionFk` int(11) NOT NULL, `conveyorFk` int(11) DEFAULT NULL, @@ -28890,7 +28892,7 @@ CREATE TABLE `conveyorExpedition` ( DROP TABLE IF EXISTS `conveyorMode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `conveyorMode` ( `code` varchar(20) NOT NULL, `saturacion` int(11) NOT NULL, @@ -28906,7 +28908,7 @@ CREATE TABLE `conveyorMode` ( DROP TABLE IF EXISTS `conveyorMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `conveyorMultiConfig` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemName` varchar(45) NOT NULL, @@ -28924,7 +28926,7 @@ CREATE TABLE `conveyorMultiConfig` ( DROP TABLE IF EXISTS `conveyorType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `conveyorType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) DEFAULT NULL, @@ -28939,7 +28941,7 @@ CREATE TABLE `conveyorType` ( DROP TABLE IF EXISTS `corridor`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `corridor` ( `code` varchar(1) NOT NULL COMMENT 'letra que da nombre al pasillo', `isAscendent` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'TRUE cuando se prepara de menor a mayor, FALSE cuando es a la inversa', @@ -28954,7 +28956,7 @@ CREATE TABLE `corridor` ( DROP TABLE IF EXISTS `country`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `country` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, @@ -28988,7 +28990,7 @@ CREATE TABLE `country` ( DROP TABLE IF EXISTS `cplusCorrectingType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cplusCorrectingType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -29002,7 +29004,7 @@ CREATE TABLE `cplusCorrectingType` ( DROP TABLE IF EXISTS `cplusRectificationType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cplusRectificationType` ( `id` int(10) unsigned NOT NULL, `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -29016,7 +29018,7 @@ CREATE TABLE `cplusRectificationType` ( DROP TABLE IF EXISTS `cplusSubjectOp`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cplusSubjectOp` ( `id` int(10) unsigned NOT NULL, `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -29030,7 +29032,7 @@ CREATE TABLE `cplusSubjectOp` ( DROP TABLE IF EXISTS `cplusTaxBreak`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cplusTaxBreak` ( `id` int(10) unsigned NOT NULL, `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -29044,7 +29046,7 @@ CREATE TABLE `cplusTaxBreak` ( DROP TABLE IF EXISTS `cplusTerIdNif`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cplusTerIdNif` ( `id` int(11) NOT NULL, `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -29058,7 +29060,7 @@ CREATE TABLE `cplusTerIdNif` ( DROP TABLE IF EXISTS `creditClassification`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `creditClassification` ( `id` int(11) NOT NULL AUTO_INCREMENT, `client` int(11) NOT NULL, @@ -29077,7 +29079,7 @@ CREATE TABLE `creditClassification` ( DROP TABLE IF EXISTS `creditInsurance`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `creditInsurance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `credit` int(11) DEFAULT NULL, @@ -29096,7 +29098,7 @@ CREATE TABLE `creditInsurance` ( DROP TABLE IF EXISTS `currency`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `currency` ( `id` tinyint(3) unsigned NOT NULL, `code` varchar(3) NOT NULL, @@ -29114,7 +29116,7 @@ CREATE TABLE `currency` ( DROP TABLE IF EXISTS `customsAgent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `customsAgent` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fiscalName` varchar(50) NOT NULL, @@ -29133,7 +29135,7 @@ CREATE TABLE `customsAgent` ( DROP TABLE IF EXISTS `dayMinute`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `dayMinute` ( `id` int(10) unsigned NOT NULL, `hh` int(10) unsigned NOT NULL, @@ -29151,7 +29153,7 @@ CREATE TABLE `dayMinute` ( DROP TABLE IF EXISTS `defaulter`; /*!50001 DROP VIEW IF EXISTS `defaulter`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `defaulter` AS SELECT 1 AS `clientFk`, 1 AS `created`, @@ -29168,7 +29170,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `delivery`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `delivery` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -29188,7 +29190,7 @@ CREATE TABLE `delivery` ( DROP TABLE IF EXISTS `deliveryMethod`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deliveryMethod` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) DEFAULT NULL, @@ -29204,7 +29206,7 @@ CREATE TABLE `deliveryMethod` ( DROP TABLE IF EXISTS `deliveryNote`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deliveryNote` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ref` varchar(45) DEFAULT NULL, @@ -29245,7 +29247,7 @@ CREATE TABLE `deliveryNote` ( DROP TABLE IF EXISTS `deliveryNoteDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deliveryNoteDms` ( `dmsFk` int(11) NOT NULL, `deliveryNoteFk` int(11) NOT NULL, @@ -29263,7 +29265,7 @@ CREATE TABLE `deliveryNoteDms` ( DROP TABLE IF EXISTS `deliveryNoteState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deliveryNoteState` ( `id` int(11) NOT NULL AUTO_INCREMENT, `state` varchar(45) NOT NULL, @@ -29277,7 +29279,7 @@ CREATE TABLE `deliveryNoteState` ( DROP TABLE IF EXISTS `deliveryPoint`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deliveryPoint` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -29292,7 +29294,7 @@ CREATE TABLE `deliveryPoint` ( DROP TABLE IF EXISTS `delivery_zip`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `delivery_zip` ( `postal_code` varchar(2) NOT NULL, `country_code` varchar(5) DEFAULT NULL, @@ -29322,7 +29324,7 @@ CREATE TABLE `delivery_zip` ( DROP TABLE IF EXISTS `department`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `department` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(45) DEFAULT NULL, @@ -29372,7 +29374,7 @@ CREATE TABLE `department` ( DROP TABLE IF EXISTS `departmentTree`; /*!50001 DROP VIEW IF EXISTS `departmentTree`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `departmentTree` AS SELECT 1 AS `id`, 1 AS `dep` */; @@ -29384,7 +29386,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `department_recalc`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `department_recalc` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `isChanged` tinyint(4) NOT NULL, @@ -29398,7 +29400,7 @@ CREATE TABLE `department_recalc` ( DROP TABLE IF EXISTS `device`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `device` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sn` varchar(50) DEFAULT NULL, @@ -29416,7 +29418,7 @@ CREATE TABLE `device` ( DROP TABLE IF EXISTS `deviceLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `android_id` varchar(64) NOT NULL, @@ -29437,7 +29439,7 @@ CREATE TABLE `deviceLog` ( DROP TABLE IF EXISTS `deviceProduction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceProduction` ( `id` int(11) NOT NULL AUTO_INCREMENT, `imei` varchar(50) DEFAULT NULL, @@ -29471,7 +29473,7 @@ CREATE TABLE `deviceProduction` ( DROP TABLE IF EXISTS `deviceProductionConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceProductionConfig` ( `id` int(10) unsigned NOT NULL, `isAllUsersallowed` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Permite que cualquier usuario pueda loguearse', @@ -29488,7 +29490,7 @@ CREATE TABLE `deviceProductionConfig` ( DROP TABLE IF EXISTS `deviceProductionLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceProductionLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -29517,7 +29519,7 @@ CREATE TABLE `deviceProductionLog` ( DROP TABLE IF EXISTS `deviceProductionModels`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceProductionModels` ( `code` varchar(50) NOT NULL, `editorFk` int(10) unsigned DEFAULT NULL, @@ -29533,7 +29535,7 @@ CREATE TABLE `deviceProductionModels` ( DROP TABLE IF EXISTS `deviceProductionState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceProductionState` ( `code` varchar(50) NOT NULL, `description` varchar(50) NOT NULL, @@ -29550,7 +29552,7 @@ CREATE TABLE `deviceProductionState` ( DROP TABLE IF EXISTS `deviceProductionUser`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `deviceProductionUser` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `deviceProductionFk` int(11) NOT NULL, @@ -29576,7 +29578,7 @@ CREATE TABLE `deviceProductionUser` ( DROP TABLE IF EXISTS `disabilityGrade`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `disabilityGrade` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Grados de discapacidad Modelo 145 IRPF', `description` varchar(45) NOT NULL, @@ -29590,7 +29592,7 @@ CREATE TABLE `disabilityGrade` ( DROP TABLE IF EXISTS `dms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `dms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dmsTypeFk` int(11) NOT NULL DEFAULT 1, @@ -29623,7 +29625,7 @@ CREATE TABLE `dms` ( DROP TABLE IF EXISTS `dmsStorageBox`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `dmsStorageBox` ( `id` int(11) NOT NULL, `companyFk` int(10) unsigned NOT NULL, @@ -29642,7 +29644,7 @@ CREATE TABLE `dmsStorageBox` ( DROP TABLE IF EXISTS `dmsType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `dmsType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(45) NOT NULL, @@ -29665,7 +29667,7 @@ CREATE TABLE `dmsType` ( DROP TABLE IF EXISTS `dock`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `dock` ( `code` varchar(10) NOT NULL DEFAULT '', `description` varchar(50) DEFAULT NULL, @@ -29679,7 +29681,7 @@ CREATE TABLE `dock` ( DROP TABLE IF EXISTS `docuware`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `docuware` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(50) NOT NULL, @@ -29700,7 +29702,7 @@ CREATE TABLE `docuware` ( DROP TABLE IF EXISTS `docuwareConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `docuwareConfig` ( `id` int(10) unsigned NOT NULL, `url` varchar(75) DEFAULT NULL, @@ -29720,7 +29722,7 @@ CREATE TABLE `docuwareConfig` ( DROP TABLE IF EXISTS `docuwareTablet`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `docuwareTablet` ( `tablet` varchar(100) NOT NULL, `description` varchar(255) DEFAULT NULL, @@ -29734,7 +29736,7 @@ CREATE TABLE `docuwareTablet` ( DROP TABLE IF EXISTS `dua`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `dua` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(45) DEFAULT NULL, @@ -29762,7 +29764,7 @@ CREATE TABLE `dua` ( DROP TABLE IF EXISTS `duaEntry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `duaEntry` ( `duaFk` int(11) NOT NULL, `entryFk` int(11) NOT NULL, @@ -29783,7 +29785,7 @@ CREATE TABLE `duaEntry` ( DROP TABLE IF EXISTS `duaIntrastat`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `duaIntrastat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `duaFk` int(11) NOT NULL, @@ -29803,7 +29805,7 @@ CREATE TABLE `duaIntrastat` ( DROP TABLE IF EXISTS `duaInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `duaInvoiceIn` ( `id` int(11) NOT NULL AUTO_INCREMENT, `duaFk` int(11) NOT NULL, @@ -29823,7 +29825,7 @@ CREATE TABLE `duaInvoiceIn` ( DROP TABLE IF EXISTS `duaTax`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `duaTax` ( `id` int(11) NOT NULL AUTO_INCREMENT, `duaFk` int(11) NOT NULL, @@ -29846,7 +29848,7 @@ CREATE TABLE `duaTax` ( DROP TABLE IF EXISTS `ediGenus`; /*!50001 DROP VIEW IF EXISTS `ediGenus`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ediGenus` AS SELECT 1 AS `id`, 1 AS `latinGenusName`, @@ -29862,7 +29864,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ediSpecie`; /*!50001 DROP VIEW IF EXISTS `ediSpecie`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ediSpecie` AS SELECT 1 AS `id`, 1 AS `genusFk`, @@ -29878,7 +29880,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `educationLevel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `educationLevel` ( `id` smallint(6) NOT NULL, `name` varchar(200) DEFAULT NULL, @@ -29892,7 +29894,7 @@ CREATE TABLE `educationLevel` ( DROP TABLE IF EXISTS `ektEntryAssign`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ektEntryAssign` ( `id` int(11) NOT NULL AUTO_INCREMENT, `kop` int(11) DEFAULT NULL, @@ -29921,7 +29923,7 @@ CREATE TABLE `ektEntryAssign` ( DROP TABLE IF EXISTS `ektSubAddress`; /*!50001 DROP VIEW IF EXISTS `ektSubAddress`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ektSubAddress` AS SELECT 1 AS `sub`, 1 AS `clientFk`, @@ -29935,7 +29937,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `emergencyMedia`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `emergencyMedia` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -29950,7 +29952,7 @@ CREATE TABLE `emergencyMedia` ( DROP TABLE IF EXISTS `energyInput`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `energyInput` ( `input` int(11) NOT NULL COMMENT 'The input number', `description` varchar(255) NOT NULL, @@ -29965,7 +29967,7 @@ CREATE TABLE `energyInput` ( DROP TABLE IF EXISTS `energyMeter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `energyMeter` ( `input` int(11) NOT NULL COMMENT 'The input number', `period` datetime NOT NULL COMMENT 'Consumption period in hours interval', @@ -29981,7 +29983,7 @@ CREATE TABLE `energyMeter` ( DROP TABLE IF EXISTS `entry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplierFk` int(10) unsigned NOT NULL DEFAULT 644, @@ -30046,7 +30048,7 @@ CREATE TABLE `entry` ( DROP TABLE IF EXISTS `entryConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryConfig` ( `defaultEntry` int(11) NOT NULL, `mailToNotify` varchar(255) DEFAULT NULL, @@ -30063,7 +30065,7 @@ CREATE TABLE `entryConfig` ( DROP TABLE IF EXISTS `entryDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryDms` ( `entryFk` int(11) NOT NULL, `dmsFk` int(11) NOT NULL, @@ -30083,7 +30085,7 @@ CREATE TABLE `entryDms` ( DROP TABLE IF EXISTS `entryLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -30112,7 +30114,7 @@ CREATE TABLE `entryLog` ( DROP TABLE IF EXISTS `entryObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryObservation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entryFk` int(11) NOT NULL, @@ -30135,7 +30137,7 @@ CREATE TABLE `entryObservation` ( DROP TABLE IF EXISTS `entryOrder`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryOrder` ( `entryFk` int(11) NOT NULL, `order` int(11) NOT NULL DEFAULT 1 COMMENT '1.- Ordenar por articulo\n2.- Ordenar por compra\n', @@ -30150,7 +30152,7 @@ CREATE TABLE `entryOrder` ( DROP TABLE IF EXISTS `entryType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryType` ( `code` varchar(100) NOT NULL, `description` varchar(100) NOT NULL, @@ -30165,7 +30167,7 @@ CREATE TABLE `entryType` ( DROP TABLE IF EXISTS `entryVirtual__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `entryVirtual__` ( `entryFk` int(11) NOT NULL, PRIMARY KEY (`entryFk`), @@ -30179,7 +30181,7 @@ CREATE TABLE `entryVirtual__` ( DROP TABLE IF EXISTS `envialiaAgency`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `envialiaAgency` ( `id` varchar(6) NOT NULL, `route` varchar(3) DEFAULT NULL, @@ -30195,7 +30197,7 @@ CREATE TABLE `envialiaAgency` ( DROP TABLE IF EXISTS `envialiaCity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `envialiaCity` ( `id` int(11) NOT NULL AUTO_INCREMENT, `city` varchar(255) NOT NULL, @@ -30213,7 +30215,7 @@ CREATE TABLE `envialiaCity` ( DROP TABLE IF EXISTS `envialiaConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `envialiaConfig` ( `serviceType` varchar(3) NOT NULL DEFAULT '024' COMMENT 'Tipo de servicio en horas. 024 -> servicio las 24h', `numBox` varchar(3) DEFAULT '001' COMMENT 'cajas por envio', @@ -30233,7 +30235,7 @@ CREATE TABLE `envialiaConfig` ( DROP TABLE IF EXISTS `errorLogApp`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `errorLogApp` ( `id` int(11) NOT NULL AUTO_INCREMENT, `error` varchar(55) DEFAULT NULL, @@ -30249,7 +30251,7 @@ CREATE TABLE `errorLogApp` ( DROP TABLE IF EXISTS `erte`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `erte` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(11) NOT NULL, @@ -30274,7 +30276,7 @@ CREATE TABLE `erte` ( DROP TABLE IF EXISTS `especialPrice`; /*!50001 DROP VIEW IF EXISTS `especialPrice`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `especialPrice` AS SELECT 1 AS `id`, 1 AS `clientFk`, @@ -30288,7 +30290,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `exchangeInsurance`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `exchangeInsurance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `amount` decimal(10,2) NOT NULL, @@ -30320,7 +30322,7 @@ CREATE TABLE `exchangeInsurance` ( DROP TABLE IF EXISTS `exchangeInsuranceEntry`; /*!50001 DROP VIEW IF EXISTS `exchangeInsuranceEntry`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `exchangeInsuranceEntry` AS SELECT 1 AS `dated`, 1 AS `Dolares`, @@ -30334,7 +30336,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `exchangeInsuranceIn`; /*!50001 DROP VIEW IF EXISTS `exchangeInsuranceIn`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `exchangeInsuranceIn` AS SELECT 1 AS `dated`, 1 AS `amount`, @@ -30348,7 +30350,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `exchangeInsuranceInPrevious`; /*!50001 DROP VIEW IF EXISTS `exchangeInsuranceInPrevious`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `exchangeInsuranceInPrevious` AS SELECT 1 AS `dated`, 1 AS `amount`, @@ -30362,7 +30364,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `exchangeInsuranceOut`; /*!50001 DROP VIEW IF EXISTS `exchangeInsuranceOut`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `exchangeInsuranceOut` AS SELECT 1 AS `received`, 1 AS `divisa`, @@ -30375,7 +30377,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `excuse`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `excuse` ( `id` int(11) NOT NULL AUTO_INCREMENT, `txt` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, @@ -30390,7 +30392,7 @@ CREATE TABLE `excuse` ( DROP TABLE IF EXISTS `expedition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expedition` ( `id` int(11) NOT NULL AUTO_INCREMENT, `agencyModeFk` int(11) NOT NULL, @@ -30402,7 +30404,7 @@ CREATE TABLE `expedition` ( `externalId` varchar(20) DEFAULT NULL, `packagingFk` varchar(10) DEFAULT NULL, `itemPackingTypeFk` varchar(1) DEFAULT NULL, - `hostFk` varchar(6) NOT NULL, + `hostFk` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `stateTypeFk` int(11) DEFAULT NULL COMMENT 'Ultimo estado de la expedicion', `hasNewRoute` tinyint(1) NOT NULL DEFAULT 0, `isBox` int(11) GENERATED ALWAYS AS (`freightItemFk`) VIRTUAL COMMENT 'Columna virtual provisional para Salix', @@ -30422,6 +30424,7 @@ CREATE TABLE `expedition` ( KEY `expedition_FK` (`stateTypeFk`), KEY `expedition_fk_editor` (`editorFk`), KEY `expedition_FK_1` (`packingSiteFk`), + KEY `fk_expedition_host_code` (`hostFk`), CONSTRAINT `expedition_FK` FOREIGN KEY (`stateTypeFk`) REFERENCES `expeditionStateType` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `expedition_FK_1` FOREIGN KEY (`packingSiteFk`) REFERENCES `packingSite` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `expedition_fk1` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON UPDATE CASCADE, @@ -30429,7 +30432,8 @@ CREATE TABLE `expedition` ( CONSTRAINT `expedition_fk3` FOREIGN KEY (`packagingFk`) REFERENCES `packaging` (`id`) ON UPDATE CASCADE, CONSTRAINT `expedition_fk_editor` FOREIGN KEY (`editorFk`) REFERENCES `account`.`user` (`id`), CONSTRAINT `expedition_ibfk_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`), - CONSTRAINT `expedition_itemPackingTypeFk` FOREIGN KEY (`itemPackingTypeFk`) REFERENCES `itemPackingType` (`code`) ON UPDATE CASCADE + CONSTRAINT `expedition_itemPackingTypeFk` FOREIGN KEY (`itemPackingTypeFk`) REFERENCES `itemPackingType` (`code`) ON UPDATE CASCADE, + CONSTRAINT `fk_expedition_host_code` FOREIGN KEY (`hostFk`) REFERENCES `host` (`code`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; @@ -30439,7 +30443,7 @@ CREATE TABLE `expedition` ( DROP TABLE IF EXISTS `expeditionBoxVol`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionBoxVol` ( `boxFk` int(11) NOT NULL, `m3` double NOT NULL, @@ -30457,7 +30461,7 @@ CREATE TABLE `expeditionBoxVol` ( DROP TABLE IF EXISTS `expeditionCommon`; /*!50001 DROP VIEW IF EXISTS `expeditionCommon`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionCommon` AS SELECT 1 AS `truckFk`, 1 AS `eta`, @@ -30478,7 +30482,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionMistake`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionMistake` ( `expeditionFk` int(11) NOT NULL, `workerFk` int(10) unsigned NOT NULL COMMENT 'Quien marca el error', @@ -30499,7 +30503,7 @@ CREATE TABLE `expeditionMistake` ( DROP TABLE IF EXISTS `expeditionMistakeType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionMistakeType` ( `code` varchar(15) NOT NULL, `description` varchar(45) NOT NULL, @@ -30513,7 +30517,7 @@ CREATE TABLE `expeditionMistakeType` ( DROP TABLE IF EXISTS `expeditionPallet`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionPallet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `truckFk` int(11) NOT NULL, @@ -30533,7 +30537,7 @@ CREATE TABLE `expeditionPallet` ( DROP TABLE IF EXISTS `expeditionPallet_Print`; /*!50001 DROP VIEW IF EXISTS `expeditionPallet_Print`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionPallet_Print` AS SELECT 1 AS `truck`, 1 AS `routeFk`, @@ -30552,7 +30556,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionRoute_Monitor`; /*!50001 DROP VIEW IF EXISTS `expeditionRoute_Monitor`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionRoute_Monitor` AS SELECT 1 AS `routeFk`, 1 AS `tickets`, @@ -30569,7 +30573,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionRoute_freeTickets`; /*!50001 DROP VIEW IF EXISTS `expeditionRoute_freeTickets`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionRoute_freeTickets` AS SELECT 1 AS `routeFk`, 1 AS `ticket`, @@ -30585,7 +30589,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionScan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionScan` ( `id` int(11) NOT NULL AUTO_INCREMENT, `expeditionFk` int(11) NOT NULL, @@ -30610,7 +30614,7 @@ CREATE TABLE `expeditionScan` ( DROP TABLE IF EXISTS `expeditionScan_Monitor`; /*!50001 DROP VIEW IF EXISTS `expeditionScan_Monitor`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionScan_Monitor` AS SELECT 1 AS `truckFk`, 1 AS `ETD`, @@ -30629,7 +30633,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionState` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -30654,7 +30658,7 @@ CREATE TABLE `expeditionState` ( DROP TABLE IF EXISTS `expeditionStateType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expeditionStateType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -30670,7 +30674,7 @@ CREATE TABLE `expeditionStateType` ( DROP TABLE IF EXISTS `expeditionSticker`; /*!50001 DROP VIEW IF EXISTS `expeditionSticker`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionSticker` AS SELECT 1 AS `expeditionFk`, 1 AS `ticketFk`, @@ -30695,7 +30699,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionTicket_NoBoxes`; /*!50001 DROP VIEW IF EXISTS `expeditionTicket_NoBoxes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionTicket_NoBoxes` AS SELECT 1 AS `ticketFk`, 1 AS `warehouseFk`, @@ -30710,7 +30714,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionTimeExpended`; /*!50001 DROP VIEW IF EXISTS `expeditionTimeExpended`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionTimeExpended` AS SELECT 1 AS `ticketFk`, 1 AS `started`, @@ -30727,7 +30731,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expeditionTruck`; /*!50001 DROP VIEW IF EXISTS `expeditionTruck`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `expeditionTruck` AS SELECT 1 AS `id`, 1 AS `roadmapFk`, @@ -30744,7 +30748,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `expense`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expense` ( `id` varchar(10) NOT NULL, `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, @@ -30761,7 +30765,7 @@ CREATE TABLE `expense` ( DROP TABLE IF EXISTS `expenseManual`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `expenseManual` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `expenseFk` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -30783,7 +30787,7 @@ CREATE TABLE `expenseManual` ( DROP TABLE IF EXISTS `farming`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `farming` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -30808,7 +30812,7 @@ CREATE TABLE `farming` ( DROP TABLE IF EXISTS `farmingDeliveryNote`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `farmingDeliveryNote` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `farmingFk` int(10) unsigned NOT NULL, @@ -30828,7 +30832,7 @@ CREATE TABLE `farmingDeliveryNote` ( DROP TABLE IF EXISTS `farmingDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `farmingDms` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `farmingFk` int(10) unsigned NOT NULL, @@ -30847,7 +30851,7 @@ CREATE TABLE `farmingDms` ( DROP TABLE IF EXISTS `farmingInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `farmingInvoiceIn` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `farmingFk` int(10) unsigned NOT NULL, @@ -30867,7 +30871,7 @@ CREATE TABLE `farmingInvoiceIn` ( DROP TABLE IF EXISTS `farmingNotes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `farmingNotes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `farmingFk` int(10) unsigned NOT NULL, @@ -30887,7 +30891,7 @@ CREATE TABLE `farmingNotes` ( DROP TABLE IF EXISTS `financialProductType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `financialProductType` ( `id` varchar(2) NOT NULL, `description` varchar(45) NOT NULL, @@ -30904,7 +30908,7 @@ CREATE TABLE `financialProductType` ( DROP TABLE IF EXISTS `firstTicketShipped`; /*!50001 DROP VIEW IF EXISTS `firstTicketShipped`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `firstTicketShipped` AS SELECT 1 AS `shipped`, 1 AS `clientFk` */; @@ -30916,7 +30920,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `flight`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `flight` ( `id` varchar(10) NOT NULL, `duration` tinyint(2) unsigned NOT NULL, @@ -30938,7 +30942,7 @@ CREATE TABLE `flight` ( DROP TABLE IF EXISTS `floraHollandBuyedItems`; /*!50001 DROP VIEW IF EXISTS `floraHollandBuyedItems`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `floraHollandBuyedItems` AS SELECT 1 AS `itemFk`, 1 AS `longName`, @@ -30954,7 +30958,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `floramondoConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `floramondoConfig` ( `id` int(10) unsigned NOT NULL, `nextLanded` datetime DEFAULT NULL, @@ -30977,7 +30981,7 @@ CREATE TABLE `floramondoConfig` ( DROP TABLE IF EXISTS `franceExpressConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `franceExpressConfig` ( `id` int(10) unsigned NOT NULL, `path` varchar(100) DEFAULT '\\\\server\\agencies\\franceexpress\\expeditions', @@ -30992,7 +30996,7 @@ CREATE TABLE `franceExpressConfig` ( DROP TABLE IF EXISTS `fuelType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `fuelType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -31008,7 +31012,7 @@ CREATE TABLE `fuelType` ( DROP TABLE IF EXISTS `gateArea`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `gateArea` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -31023,7 +31027,7 @@ CREATE TABLE `gateArea` ( DROP TABLE IF EXISTS `genericAllocation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `genericAllocation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -31059,7 +31063,7 @@ CREATE TABLE `genericAllocation` ( DROP TABLE IF EXISTS `genus`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `genus` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -31074,7 +31078,7 @@ CREATE TABLE `genus` ( DROP TABLE IF EXISTS `glsConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `glsConfig` ( `id` int(10) unsigned NOT NULL, `service` int(1) DEFAULT NULL, @@ -31097,7 +31101,7 @@ CREATE TABLE `glsConfig` ( DROP TABLE IF EXISTS `glsExpedition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `glsExpedition` ( `expeditionFk` int(11) NOT NULL, `barcode` varchar(20) DEFAULT NULL, @@ -31115,7 +31119,7 @@ CREATE TABLE `glsExpedition` ( DROP TABLE IF EXISTS `greuge`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `greuge` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -31148,7 +31152,7 @@ CREATE TABLE `greuge` ( DROP TABLE IF EXISTS `greugeConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `greugeConfig` ( `id` int(10) unsigned NOT NULL, `freightPickUpPrice` decimal(10,2) NOT NULL, @@ -31167,7 +31171,7 @@ CREATE TABLE `greugeConfig` ( DROP TABLE IF EXISTS `greugeType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `greugeType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -31182,7 +31186,7 @@ CREATE TABLE `greugeType` ( DROP TABLE IF EXISTS `host`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `host` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -31218,7 +31222,7 @@ CREATE TABLE `host` ( DROP TABLE IF EXISTS `improvedGeneralLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `improvedGeneralLog` ( `user` char(128) NOT NULL DEFAULT '', `db` char(64) NOT NULL DEFAULT '', @@ -31234,7 +31238,7 @@ CREATE TABLE `improvedGeneralLog` ( DROP TABLE IF EXISTS `improvedGeneralLogProcedures`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `improvedGeneralLogProcedures` ( `user` char(128) NOT NULL DEFAULT '', `db` varchar(250) NOT NULL DEFAULT '', @@ -31250,7 +31254,7 @@ CREATE TABLE `improvedGeneralLogProcedures` ( DROP TABLE IF EXISTS `incoterms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `incoterms` ( `code` varchar(3) NOT NULL DEFAULT '', `name` varchar(45) DEFAULT NULL, @@ -31264,7 +31268,7 @@ CREATE TABLE `incoterms` ( DROP TABLE IF EXISTS `ink`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ink` ( `id` char(3) NOT NULL, `name` varchar(50) DEFAULT NULL, @@ -31275,6 +31279,7 @@ CREATE TABLE `ink` ( `dutchCode` varchar(3) DEFAULT NULL, `hex` varchar(6) DEFAULT NULL, `isRealColor` tinyint(1) NOT NULL DEFAULT 1, + `hexJson` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `dutchCode_UNIQUE` (`dutchCode`), CONSTRAINT `ink_fk1` FOREIGN KEY (`dutchCode`) REFERENCES `edi`.`feature` (`feature_value`) ON DELETE SET NULL ON UPDATE CASCADE @@ -31287,7 +31292,7 @@ CREATE TABLE `ink` ( DROP TABLE IF EXISTS `inkI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inkI18n` ( `inkFk` char(3) NOT NULL, `lang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -31304,7 +31309,7 @@ CREATE TABLE `inkI18n` ( DROP TABLE IF EXISTS `inkL10n`; /*!50001 DROP VIEW IF EXISTS `inkL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `inkL10n` AS SELECT 1 AS `id`, 1 AS `name` */; @@ -31316,7 +31321,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `integra2`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `integra2` ( `postCode` varchar(10) NOT NULL, `frequency` decimal(10,2) NOT NULL, @@ -31334,7 +31339,7 @@ CREATE TABLE `integra2` ( DROP TABLE IF EXISTS `integra2Province`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `integra2Province` ( `provinceFk` smallint(6) unsigned NOT NULL, `franchise` varchar(65) NOT NULL, @@ -31349,7 +31354,7 @@ CREATE TABLE `integra2Province` ( DROP TABLE IF EXISTS `intrastat`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `intrastat` ( `id` int(8) unsigned zerofill NOT NULL, `description` varchar(50) DEFAULT NULL, @@ -31367,7 +31372,7 @@ CREATE TABLE `intrastat` ( DROP TABLE IF EXISTS `inventoryConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inventoryConfig` ( `id` int(10) unsigned NOT NULL, `maxRecentInventories` int(11) DEFAULT NULL COMMENT 'The maximum number of recent inventories to retain without deletion', @@ -31392,7 +31397,7 @@ CREATE TABLE `inventoryConfig` ( DROP TABLE IF EXISTS `inventoryFailureCause__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inventoryFailureCause__` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -31406,7 +31411,7 @@ CREATE TABLE `inventoryFailureCause__` ( DROP TABLE IF EXISTS `inventoryFailure__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `inventoryFailure__` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -31438,7 +31443,7 @@ CREATE TABLE `inventoryFailure__` ( DROP TABLE IF EXISTS `invoiceCorrection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceCorrection` ( `correctingFk` int(10) unsigned NOT NULL COMMENT 'Factura rectificativa', `correctedFk` int(10) unsigned NOT NULL COMMENT 'Factura rectificada', @@ -31465,7 +31470,7 @@ CREATE TABLE `invoiceCorrection` ( DROP TABLE IF EXISTS `invoiceCorrectionDataSource`; /*!50001 DROP VIEW IF EXISTS `invoiceCorrectionDataSource`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `invoiceCorrectionDataSource` AS SELECT 1 AS `itemFk`, 1 AS `quantity`, @@ -31483,7 +31488,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `invoiceCorrectionType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceCorrectionType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -31498,7 +31503,7 @@ CREATE TABLE `invoiceCorrectionType` ( DROP TABLE IF EXISTS `invoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceIn` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `serialNumber` mediumint(11) unsigned DEFAULT NULL COMMENT 'insertado por Trigger', @@ -31559,7 +31564,7 @@ CREATE TABLE `invoiceIn` ( DROP TABLE IF EXISTS `invoiceInConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInConfig` ( `id` int(10) unsigned NOT NULL, `retentionRate` int(3) NOT NULL, @@ -31582,7 +31587,7 @@ CREATE TABLE `invoiceInConfig` ( DROP TABLE IF EXISTS `invoiceInCorrection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInCorrection` ( `correctingFk` mediumint(8) unsigned NOT NULL COMMENT 'Factura rectificativa', `correctedFk` mediumint(8) unsigned NOT NULL COMMENT 'Factura rectificada', @@ -31608,7 +31613,7 @@ CREATE TABLE `invoiceInCorrection` ( DROP TABLE IF EXISTS `invoiceInDueDay`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInDueDay` ( `id` int(11) NOT NULL AUTO_INCREMENT, `invoiceInFk` mediumint(8) unsigned NOT NULL, @@ -31634,7 +31639,7 @@ CREATE TABLE `invoiceInDueDay` ( DROP TABLE IF EXISTS `invoiceInIntrastat`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInIntrastat` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `invoiceInFk` mediumint(8) unsigned NOT NULL, @@ -31659,7 +31664,7 @@ CREATE TABLE `invoiceInIntrastat` ( DROP TABLE IF EXISTS `invoiceInLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInLog` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `originFk` mediumint(8) unsigned DEFAULT NULL, @@ -31688,7 +31693,7 @@ CREATE TABLE `invoiceInLog` ( DROP TABLE IF EXISTS `invoiceInSage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInSage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `taxClassFk` varchar(1) NOT NULL, @@ -31721,7 +31726,7 @@ CREATE TABLE `invoiceInSage` ( DROP TABLE IF EXISTS `invoiceInSerial`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInSerial` ( `code` varchar(2) NOT NULL, `description` varchar(45) DEFAULT NULL, @@ -31741,7 +31746,7 @@ CREATE TABLE `invoiceInSerial` ( DROP TABLE IF EXISTS `invoiceInTax`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInTax` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `invoiceInFk` mediumint(8) unsigned NOT NULL, @@ -31774,7 +31779,7 @@ CREATE TABLE `invoiceInTax` ( DROP TABLE IF EXISTS `invoiceInTaxBookingAccount`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceInTaxBookingAccount` ( `id` int(10) NOT NULL AUTO_INCREMENT, `effectived` timestamp NOT NULL DEFAULT current_timestamp(), @@ -31800,10 +31805,10 @@ CREATE TABLE `invoiceInTaxBookingAccount` ( DROP TABLE IF EXISTS `invoiceOut`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceOut` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ref` varchar(20) NOT NULL, + `ref` varchar(25) NOT NULL, `serial` varchar(2) DEFAULT NULL, `issued` date DEFAULT NULL, `amount` decimal(12,2) DEFAULT 0.00, @@ -31851,7 +31856,7 @@ CREATE TABLE `invoiceOut` ( DROP TABLE IF EXISTS `invoiceOutConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceOutConfig` ( `id` int(10) unsigned NOT NULL, `parallelism` int(10) unsigned NOT NULL DEFAULT 1, @@ -31867,7 +31872,7 @@ CREATE TABLE `invoiceOutConfig` ( DROP TABLE IF EXISTS `invoiceOutExpense`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceOutExpense` ( `id` int(11) NOT NULL AUTO_INCREMENT, `invoiceOutFk` int(10) unsigned NOT NULL, @@ -31888,7 +31893,7 @@ CREATE TABLE `invoiceOutExpense` ( DROP TABLE IF EXISTS `invoiceOutSerial`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceOutSerial` ( `code` varchar(2) NOT NULL, `description` varchar(45) DEFAULT NULL, @@ -31912,7 +31917,7 @@ CREATE TABLE `invoiceOutSerial` ( DROP TABLE IF EXISTS `invoiceOutTax`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceOutTax` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `invoiceOutFk` int(10) unsigned NOT NULL, @@ -31935,7 +31940,7 @@ CREATE TABLE `invoiceOutTax` ( DROP TABLE IF EXISTS `invoiceOutTaxMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `invoiceOutTaxMultiConfig` ( `id` int(11) NOT NULL AUTO_INCREMENT, `taxClassCodeFk` varchar(1) DEFAULT NULL, @@ -31961,7 +31966,7 @@ CREATE TABLE `invoiceOutTaxMultiConfig` ( DROP TABLE IF EXISTS `item`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `item` ( `id` int(11) NOT NULL AUTO_INCREMENT, `equivalent` int(11) unsigned DEFAULT NULL, @@ -32070,7 +32075,7 @@ CREATE TABLE `item` ( DROP TABLE IF EXISTS `itemBarcode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemBarcode` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -32092,7 +32097,7 @@ CREATE TABLE `itemBarcode` ( DROP TABLE IF EXISTS `itemBaseTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemBaseTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -32107,7 +32112,7 @@ CREATE TABLE `itemBaseTag` ( DROP TABLE IF EXISTS `itemBotanical`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemBotanical` ( `itemFk` int(11) NOT NULL, `genusFk` int(11) NOT NULL, @@ -32131,7 +32136,7 @@ CREATE TABLE `itemBotanical` ( DROP TABLE IF EXISTS `itemBotanicalWithGenus`; /*!50001 DROP VIEW IF EXISTS `itemBotanicalWithGenus`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemBotanicalWithGenus` AS SELECT 1 AS `itemFk`, 1 AS `ediBotanic` */; @@ -32143,7 +32148,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemBreederTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemBreederTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -32158,7 +32163,7 @@ CREATE TABLE `itemBreederTag` ( DROP TABLE IF EXISTS `itemCampaign`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemCampaign` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -32179,7 +32184,7 @@ CREATE TABLE `itemCampaign` ( DROP TABLE IF EXISTS `itemCategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemCategory` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -32207,7 +32212,7 @@ CREATE TABLE `itemCategory` ( DROP TABLE IF EXISTS `itemCategoryI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemCategoryI18n` ( `categoryFk` int(10) unsigned NOT NULL, `lang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -32223,7 +32228,7 @@ CREATE TABLE `itemCategoryI18n` ( DROP TABLE IF EXISTS `itemCategoryL10n`; /*!50001 DROP VIEW IF EXISTS `itemCategoryL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemCategoryL10n` AS SELECT 1 AS `id`, 1 AS `name` */; @@ -32235,7 +32240,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemCleanLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemCleanLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemDeleted` int(11) DEFAULT NULL COMMENT 'Indica la cantidad de items que ha eliminado', @@ -32251,7 +32256,7 @@ CREATE TABLE `itemCleanLog` ( DROP TABLE IF EXISTS `itemColor`; /*!50001 DROP VIEW IF EXISTS `itemColor`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemColor` AS SELECT 1 AS `itemFk`, 1 AS `color` */; @@ -32263,7 +32268,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemConfig` ( `id` int(10) unsigned NOT NULL, `isItemTagTriggerDisabled` tinyint(1) NOT NULL DEFAULT 1, @@ -32288,7 +32293,7 @@ CREATE TABLE `itemConfig` ( DROP TABLE IF EXISTS `itemCost`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemCost` ( `itemFk` int(11) NOT NULL, `warehouseFk` smallint(6) unsigned NOT NULL, @@ -32315,7 +32320,7 @@ CREATE TABLE `itemCost` ( DROP TABLE IF EXISTS `itemDurationTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemDurationTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -32331,7 +32336,7 @@ CREATE TABLE `itemDurationTag` ( DROP TABLE IF EXISTS `itemEntryIn`; /*!50001 DROP VIEW IF EXISTS `itemEntryIn`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemEntryIn` AS SELECT 1 AS `warehouseInFk`, 1 AS `landed`, @@ -32350,7 +32355,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemEntryOut`; /*!50001 DROP VIEW IF EXISTS `itemEntryOut`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemEntryOut` AS SELECT 1 AS `warehouseOutFk`, 1 AS `shipped`, @@ -32366,7 +32371,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemFamily`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemFamily` ( `code` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `description` varchar(45) NOT NULL, @@ -32380,7 +32385,7 @@ CREATE TABLE `itemFamily` ( DROP TABLE IF EXISTS `itemFarmingTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemFarmingTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -32395,7 +32400,7 @@ CREATE TABLE `itemFarmingTag` ( DROP TABLE IF EXISTS `itemGrowingTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemGrowingTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -32410,7 +32415,7 @@ CREATE TABLE `itemGrowingTag` ( DROP TABLE IF EXISTS `itemImageQueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemImageQueue` ( `itemFk` int(11) NOT NULL, `url` varchar(255) NOT NULL, @@ -32431,7 +32436,7 @@ CREATE TABLE `itemImageQueue` ( DROP TABLE IF EXISTS `itemInk`; /*!50001 DROP VIEW IF EXISTS `itemInk`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemInk` AS SELECT 1 AS `longName`, 1 AS `inkFk`, @@ -32444,7 +32449,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemLabel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemLabel` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) DEFAULT NULL, @@ -32461,7 +32466,7 @@ CREATE TABLE `itemLabel` ( DROP TABLE IF EXISTS `itemLanguageTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemLanguageTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -32476,7 +32481,7 @@ CREATE TABLE `itemLanguageTag` ( DROP TABLE IF EXISTS `itemLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -32505,7 +32510,7 @@ CREATE TABLE `itemLog` ( DROP TABLE IF EXISTS `itemMatchProperties`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemMatchProperties` ( `itemFk` int(11) NOT NULL, `name` varchar(80) NOT NULL, @@ -32522,7 +32527,7 @@ CREATE TABLE `itemMatchProperties` ( DROP TABLE IF EXISTS `itemMinimumQuantity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemMinimumQuantity` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(10) NOT NULL, @@ -32553,7 +32558,7 @@ CREATE TABLE `itemMinimumQuantity` ( DROP TABLE IF EXISTS `itemPackingType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemPackingType` ( `code` varchar(1) NOT NULL, `description` varchar(100) NOT NULL, @@ -32568,7 +32573,7 @@ CREATE TABLE `itemPackingType` ( DROP TABLE IF EXISTS `itemPlacementSupply`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemPlacementSupply` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -32597,7 +32602,7 @@ CREATE TABLE `itemPlacementSupply` ( DROP TABLE IF EXISTS `itemPlacementSupplyList`; /*!50001 DROP VIEW IF EXISTS `itemPlacementSupplyList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemPlacementSupplyList` AS SELECT 1 AS `id`, 1 AS `itemFk`, @@ -32622,7 +32627,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemProductor`; /*!50001 DROP VIEW IF EXISTS `itemProductor`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemProductor` AS SELECT 1 AS `itemFk`, 1 AS `productor` */; @@ -32634,7 +32639,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemProposal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemProposal` ( `itemFk` int(11) NOT NULL, `mateFk` int(11) NOT NULL, @@ -32653,7 +32658,7 @@ CREATE TABLE `itemProposal` ( DROP TABLE IF EXISTS `itemSearch`; /*!50001 DROP VIEW IF EXISTS `itemSearch`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemSearch` AS SELECT 1 AS `itemFk`, 1 AS `concept`, @@ -32668,7 +32673,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelving`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemShelving` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -32705,7 +32710,7 @@ CREATE TABLE `itemShelving` ( DROP TABLE IF EXISTS `itemShelvingAvailable`; /*!50001 DROP VIEW IF EXISTS `itemShelvingAvailable`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingAvailable` AS SELECT 1 AS `saleFk`, 1 AS `Modificado`, @@ -32738,7 +32743,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelvingList`; /*!50001 DROP VIEW IF EXISTS `itemShelvingList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingList` AS SELECT 1 AS `shelvingFk`, 1 AS `visible`, @@ -32758,7 +32763,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelvingLog__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemShelvingLog__` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemShelvingFk` int(10) unsigned DEFAULT NULL, @@ -32786,7 +32791,7 @@ CREATE TABLE `itemShelvingLog__` ( DROP TABLE IF EXISTS `itemShelvingPlacementSupply`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemShelvingPlacementSupply` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `itemShelvingFk` int(10) unsigned NOT NULL, @@ -32811,7 +32816,7 @@ CREATE TABLE `itemShelvingPlacementSupply` ( DROP TABLE IF EXISTS `itemShelvingPlacementSupplyStock`; /*!50001 DROP VIEW IF EXISTS `itemShelvingPlacementSupplyStock`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingPlacementSupplyStock` AS SELECT 1 AS `itemShelvingFk`, 1 AS `itemFk`, @@ -32834,7 +32839,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelvingSale`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemShelvingSale` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemShelvingFk` int(10) unsigned NOT NULL, @@ -32859,7 +32864,7 @@ CREATE TABLE `itemShelvingSale` ( DROP TABLE IF EXISTS `itemShelvingSaleReserve`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemShelvingSaleReserve` ( `id` int(11) NOT NULL AUTO_INCREMENT, `saleFk` int(11) NOT NULL, @@ -32878,7 +32883,7 @@ CREATE TABLE `itemShelvingSaleReserve` ( DROP TABLE IF EXISTS `itemShelvingSaleSum`; /*!50001 DROP VIEW IF EXISTS `itemShelvingSaleSum`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingSaleSum` AS SELECT 1 AS `id`, 1 AS `itemShelvingFk`, @@ -32895,7 +32900,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelvingStock`; /*!50001 DROP VIEW IF EXISTS `itemShelvingStock`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingStock` AS SELECT 1 AS `itemFk`, 1 AS `visible`, @@ -32921,7 +32926,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelvingStockFull`; /*!50001 DROP VIEW IF EXISTS `itemShelvingStockFull`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingStockFull` AS SELECT 1 AS `itemFk`, 1 AS `quantity`, @@ -32945,7 +32950,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemShelvingStockRemoved`; /*!50001 DROP VIEW IF EXISTS `itemShelvingStockRemoved`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemShelvingStockRemoved` AS SELECT 1 AS `itemShelvingFk`, 1 AS `itemFk`, @@ -32958,7 +32963,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemSoldOutTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemSoldOutTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, @@ -32973,7 +32978,7 @@ CREATE TABLE `itemSoldOutTag` ( DROP TABLE IF EXISTS `itemStateTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemStateTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -32988,7 +32993,7 @@ CREATE TABLE `itemStateTag` ( DROP TABLE IF EXISTS `itemStemTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemStemTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -33003,7 +33008,7 @@ CREATE TABLE `itemStemTag` ( DROP TABLE IF EXISTS `itemTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTag` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -33033,7 +33038,7 @@ CREATE TABLE `itemTag` ( DROP TABLE IF EXISTS `itemTagged`; /*!50001 DROP VIEW IF EXISTS `itemTagged`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemTagged` AS SELECT 1 AS `itemFk` */; SET character_set_client = @saved_cs_client; @@ -33044,7 +33049,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemTaxCountry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTaxCountry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) DEFAULT NULL, @@ -33071,7 +33076,7 @@ CREATE TABLE `itemTaxCountry` ( DROP TABLE IF EXISTS `itemTaxCountrySpain`; /*!50001 DROP VIEW IF EXISTS `itemTaxCountrySpain`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemTaxCountrySpain` AS SELECT 1 AS `id`, 1 AS `name`, @@ -33093,7 +33098,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemTextureTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTextureTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -33109,7 +33114,7 @@ CREATE TABLE `itemTextureTag` ( DROP TABLE IF EXISTS `itemTicketOut`; /*!50001 DROP VIEW IF EXISTS `itemTicketOut`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemTicketOut` AS SELECT 1 AS `warehouseFk`, 1 AS `shipped`, @@ -33128,7 +33133,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemType` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(3) NOT NULL, @@ -33175,7 +33180,7 @@ CREATE TABLE `itemType` ( DROP TABLE IF EXISTS `itemTypeI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTypeI18n` ( `typeFk` smallint(5) unsigned NOT NULL, `lang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -33191,7 +33196,7 @@ CREATE TABLE `itemTypeI18n` ( DROP TABLE IF EXISTS `itemTypeL10n`; /*!50001 DROP VIEW IF EXISTS `itemTypeL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `itemTypeL10n` AS SELECT 1 AS `id`, 1 AS `name` */; @@ -33203,7 +33208,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `itemTypeLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTypeLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -33232,7 +33237,7 @@ CREATE TABLE `itemTypeLog` ( DROP TABLE IF EXISTS `itemTypeRestriction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTypeRestriction` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemTypeFk` smallint(5) unsigned NOT NULL, @@ -33251,7 +33256,7 @@ CREATE TABLE `itemTypeRestriction` ( DROP TABLE IF EXISTS `itemTypeTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemTypeTag` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemTypeFk` smallint(5) unsigned NOT NULL, @@ -33272,7 +33277,7 @@ CREATE TABLE `itemTypeTag` ( DROP TABLE IF EXISTS `itemVatRateTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemVatRateTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -33287,7 +33292,7 @@ CREATE TABLE `itemVatRateTag` ( DROP TABLE IF EXISTS `itemWrappingTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `itemWrappingTag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -33303,7 +33308,7 @@ CREATE TABLE `itemWrappingTag` ( DROP TABLE IF EXISTS `item_Free_Id`; /*!50001 DROP VIEW IF EXISTS `item_Free_Id`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `item_Free_Id` AS SELECT 1 AS `newId` */; SET character_set_client = @saved_cs_client; @@ -33315,7 +33320,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `labelInfo`; /*!50001 DROP VIEW IF EXISTS `labelInfo`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `labelInfo` AS SELECT 1 AS `itemId`, 1 AS `itemName`, @@ -33341,7 +33346,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `labourTree`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `labourTree` ( `id` int(11) NOT NULL DEFAULT 0, `name` varchar(45) NOT NULL, @@ -33360,7 +33365,7 @@ CREATE TABLE `labourTree` ( DROP TABLE IF EXISTS `lastHourProduction`; /*!50001 DROP VIEW IF EXISTS `lastHourProduction`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `lastHourProduction` AS SELECT 1 AS `warehouseFk`, 1 AS `m3` */; @@ -33373,7 +33378,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `lastPurchases`; /*!50001 DROP VIEW IF EXISTS `lastPurchases`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `lastPurchases` AS SELECT 1 AS `landed`, 1 AS `warehouseFk`, @@ -33397,7 +33402,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `lastTopClaims`; /*!50001 DROP VIEW IF EXISTS `lastTopClaims`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `lastTopClaims` AS SELECT 1 AS `itemFk`, 1 AS `itemName`, @@ -33413,7 +33418,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ledgerCompany`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ledgerCompany` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fiscalYear` int(10) unsigned NOT NULL COMMENT 'Año del ejercicio contable', @@ -33429,7 +33434,7 @@ CREATE TABLE `ledgerCompany` ( DROP TABLE IF EXISTS `ledgerConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ledgerConfig` ( `maxTolerance` decimal(10,2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; @@ -33441,7 +33446,7 @@ CREATE TABLE `ledgerConfig` ( DROP TABLE IF EXISTS `locker`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `locker` ( `id` int(100) NOT NULL AUTO_INCREMENT, `code` varchar(10) DEFAULT NULL, @@ -33460,7 +33465,7 @@ CREATE TABLE `locker` ( DROP TABLE IF EXISTS `lungSize`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `lungSize` ( `hora` time NOT NULL, `size` decimal(5,0) NOT NULL, @@ -33475,7 +33480,7 @@ CREATE TABLE `lungSize` ( DROP TABLE IF EXISTS `machine`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `machine` ( `id` int(11) NOT NULL AUTO_INCREMENT, `plate` varchar(20) DEFAULT NULL, @@ -33511,7 +33516,7 @@ CREATE TABLE `machine` ( DROP TABLE IF EXISTS `machineDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `machineDetail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `machineFk` int(11) NOT NULL, @@ -33536,7 +33541,7 @@ CREATE TABLE `machineDetail` ( DROP TABLE IF EXISTS `machineDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `machineDms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `machineFk` int(11) NOT NULL, @@ -33555,7 +33560,7 @@ CREATE TABLE `machineDms` ( DROP TABLE IF EXISTS `machineWorkerConfig__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `machineWorkerConfig__` ( `id` int(10) unsigned NOT NULL, `maxHours` smallint(5) unsigned NOT NULL COMMENT 'Indicates how many hours a user record is reviewed to update or insert', @@ -33570,7 +33575,7 @@ CREATE TABLE `machineWorkerConfig__` ( DROP TABLE IF EXISTS `machineWorker__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `machineWorker__` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -33591,7 +33596,7 @@ CREATE TABLE `machineWorker__` ( DROP TABLE IF EXISTS `mail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mail` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `receiver` varchar(255) DEFAULT NULL, @@ -33622,7 +33627,7 @@ CREATE TABLE `mail` ( DROP TABLE IF EXISTS `mailTemplates`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mailTemplates` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -33637,7 +33642,7 @@ CREATE TABLE `mailTemplates` ( DROP TABLE IF EXISTS `mandate`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mandate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL, @@ -33663,7 +33668,7 @@ CREATE TABLE `mandate` ( DROP TABLE IF EXISTS `mandateLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mandateLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -33693,7 +33698,7 @@ CREATE TABLE `mandateLog` ( DROP TABLE IF EXISTS `mandateType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mandateType` ( `id` smallint(5) NOT NULL AUTO_INCREMENT, `code` varchar(45) NOT NULL, @@ -33708,7 +33713,7 @@ CREATE TABLE `mandateType` ( DROP TABLE IF EXISTS `manuscript`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `manuscript` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -33725,7 +33730,7 @@ CREATE TABLE `manuscript` ( DROP TABLE IF EXISTS `material`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `material` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -33740,7 +33745,7 @@ CREATE TABLE `material` ( DROP TABLE IF EXISTS `mdbApp`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mdbApp` ( `app` varchar(100) NOT NULL, `baselineBranchFk` varchar(255) NOT NULL, @@ -33760,7 +33765,7 @@ CREATE TABLE `mdbApp` ( DROP TABLE IF EXISTS `mdbBranch`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mdbBranch` ( `name` varchar(255) NOT NULL DEFAULT '', `dsName` varchar(255) DEFAULT NULL, @@ -33774,7 +33779,7 @@ CREATE TABLE `mdbBranch` ( DROP TABLE IF EXISTS `mdbConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mdbConfig` ( `id` int(10) unsigned NOT NULL, `issueTrackerUrl` varchar(255) NOT NULL, @@ -33791,7 +33796,7 @@ CREATE TABLE `mdbConfig` ( DROP TABLE IF EXISTS `mdbVersion`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mdbVersion` ( `app` varchar(255) NOT NULL, `branchFk` varchar(255) NOT NULL, @@ -33808,7 +33813,7 @@ CREATE TABLE `mdbVersion` ( DROP TABLE IF EXISTS `mdbVersionTree`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mdbVersionTree` ( `app` varchar(255) NOT NULL, `version` int(10) unsigned NOT NULL, @@ -33831,7 +33836,7 @@ CREATE TABLE `mdbVersionTree` ( DROP TABLE IF EXISTS `medicalCenter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `medicalCenter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -33845,7 +33850,7 @@ CREATE TABLE `medicalCenter` ( DROP TABLE IF EXISTS `medicalReview`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `medicalReview` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -33870,7 +33875,7 @@ CREATE TABLE `medicalReview` ( DROP TABLE IF EXISTS `message`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `message` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -33891,7 +33896,7 @@ CREATE TABLE `message` ( DROP TABLE IF EXISTS `messageInbox`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `messageInbox` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -33914,7 +33919,7 @@ CREATE TABLE `messageInbox` ( DROP TABLE IF EXISTS `mistake`; /*!50001 DROP VIEW IF EXISTS `mistake`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `mistake` AS SELECT 1 AS `revisador`, 1 AS `concept`, @@ -33933,7 +33938,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `mistakeRatio`; /*!50001 DROP VIEW IF EXISTS `mistakeRatio`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `mistakeRatio` AS SELECT 1 AS `revisador`, 1 AS `sacador`, @@ -33951,7 +33956,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `mistakeType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mistakeType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(50) DEFAULT NULL, @@ -33967,7 +33972,7 @@ CREATE TABLE `mistakeType` ( DROP TABLE IF EXISTS `mobileAppVersionControl`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mobileAppVersionControl` ( `id` int(11) NOT NULL AUTO_INCREMENT, `appName` varchar(45) DEFAULT NULL, @@ -33987,7 +33992,7 @@ CREATE TABLE `mobileAppVersionControl` ( DROP TABLE IF EXISTS `mrw`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mrw` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ticketFk` int(11) NOT NULL, @@ -34004,7 +34009,7 @@ CREATE TABLE `mrw` ( DROP TABLE IF EXISTS `mrwConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mrwConfig` ( `id` int(10) unsigned NOT NULL, `url` varchar(100) DEFAULT NULL, @@ -34033,7 +34038,7 @@ CREATE TABLE `mrwConfig` ( DROP TABLE IF EXISTS `mrwService`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mrwService` ( `agencyModeCodeFk` varchar(45) NOT NULL, `clientType` int(11) unsigned NOT NULL, @@ -34050,7 +34055,7 @@ CREATE TABLE `mrwService` ( DROP TABLE IF EXISTS `mrwServiceWeekday`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `mrwServiceWeekday` ( `agencyModeCodeFk` varchar(45) NOT NULL, `weekdays` set('mon','tue','wed','thu','fri','sat','sun') NOT NULL, @@ -34067,7 +34072,7 @@ CREATE TABLE `mrwServiceWeekday` ( DROP TABLE IF EXISTS `negativeOrigin`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `negativeOrigin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -34086,7 +34091,7 @@ CREATE TABLE `negativeOrigin` ( DROP TABLE IF EXISTS `newBornSales`; /*!50001 DROP VIEW IF EXISTS `newBornSales`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `newBornSales` AS SELECT 1 AS `amount`, 1 AS `clientFk`, @@ -34101,7 +34106,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `noticeCategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `noticeCategory` ( `id` int(11) NOT NULL AUTO_INCREMENT, `keyName` varchar(50) DEFAULT NULL, @@ -34121,7 +34126,7 @@ CREATE TABLE `noticeCategory` ( DROP TABLE IF EXISTS `noticeSubscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `noticeSubscription` ( `noticeCategoryFk` int(11) NOT NULL DEFAULT 0, `userFk` int(10) unsigned NOT NULL DEFAULT 0, @@ -34138,7 +34143,7 @@ CREATE TABLE `noticeSubscription` ( DROP TABLE IF EXISTS `observationType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `observationType` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(15) NOT NULL, @@ -34154,7 +34159,7 @@ CREATE TABLE `observationType` ( DROP TABLE IF EXISTS `occupationCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `occupationCode` ( `code` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `name` varchar(100) DEFAULT NULL, @@ -34168,7 +34173,7 @@ CREATE TABLE `occupationCode` ( DROP TABLE IF EXISTS `operator`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `operator` ( `workerFk` int(10) unsigned NOT NULL, `numberOfWagons` int(11) DEFAULT 2, @@ -34206,7 +34211,7 @@ CREATE TABLE `operator` ( DROP TABLE IF EXISTS `operatorWorkerCode`; /*!50001 DROP VIEW IF EXISTS `operatorWorkerCode`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `operatorWorkerCode` AS SELECT 1 AS `workerFk`, 1 AS `fullName`, @@ -34220,7 +34225,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `orderTicket`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `orderTicket` ( `orderFk` int(10) unsigned NOT NULL, `ticketFk` int(11) NOT NULL DEFAULT 0, @@ -34237,7 +34242,7 @@ CREATE TABLE `orderTicket` ( DROP TABLE IF EXISTS `origin`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `origin` ( `id` tinyint(2) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(3) NOT NULL, @@ -34258,7 +34263,7 @@ CREATE TABLE `origin` ( DROP TABLE IF EXISTS `originI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `originI18n` ( `originFk` tinyint(2) unsigned NOT NULL, `lang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -34274,7 +34279,7 @@ CREATE TABLE `originI18n` ( DROP TABLE IF EXISTS `originL10n`; /*!50001 DROP VIEW IF EXISTS `originL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `originL10n` AS SELECT 1 AS `id`, 1 AS `name` */; @@ -34286,7 +34291,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ormConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ormConfig` ( `id` int(11) NOT NULL, `selectLimit` int(5) NOT NULL, @@ -34301,7 +34306,7 @@ CREATE TABLE `ormConfig` ( DROP TABLE IF EXISTS `osTicketConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `osTicketConfig` ( `id` int(10) unsigned NOT NULL, `host` varchar(100) DEFAULT NULL, @@ -34329,7 +34334,7 @@ CREATE TABLE `osTicketConfig` ( DROP TABLE IF EXISTS `osrmConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `osrmConfig` ( `id` int(10) unsigned NOT NULL, `url` varchar(100) NOT NULL COMMENT 'Dirección base de la API', @@ -34345,7 +34350,7 @@ CREATE TABLE `osrmConfig` ( DROP TABLE IF EXISTS `outgoingInvoiceVat`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `outgoingInvoiceVat` ( `outgoingInvoice` mediumint(8) NOT NULL, `taxBase` decimal(12,2) DEFAULT NULL, @@ -34361,7 +34366,7 @@ CREATE TABLE `outgoingInvoiceVat` ( DROP TABLE IF EXISTS `packageChecked`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packageChecked` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -34377,7 +34382,7 @@ CREATE TABLE `packageChecked` ( DROP TABLE IF EXISTS `packageEquivalent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packageEquivalent` ( `packagingFk` varchar(10) NOT NULL, `equivalentFk` varchar(10) NOT NULL, @@ -34395,7 +34400,7 @@ CREATE TABLE `packageEquivalent` ( DROP TABLE IF EXISTS `packageEquivalentItem`; /*!50001 DROP VIEW IF EXISTS `packageEquivalentItem`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `packageEquivalentItem` AS SELECT 1 AS `itemFk`, 1 AS `equivalentFk` */; @@ -34407,7 +34412,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `packaging`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packaging` ( `id` varchar(10) NOT NULL, `volume` decimal(10,2) DEFAULT NULL CHECK (`volume` >= coalesce(`width`,1) * coalesce(`depth`,1) * coalesce(`height`,1)), @@ -34453,7 +34458,7 @@ CREATE TABLE `packaging` ( DROP TABLE IF EXISTS `packagingConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packagingConfig` ( `id` int(10) unsigned NOT NULL, `upperGap` int(11) NOT NULL, @@ -34479,7 +34484,7 @@ CREATE TABLE `packagingConfig` ( DROP TABLE IF EXISTS `packagingGifts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packagingGifts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(255) NOT NULL, @@ -34505,7 +34510,7 @@ CREATE TABLE `packagingGifts` ( DROP TABLE IF EXISTS `packagingWithFreight`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packagingWithFreight` ( `packagingFk` varchar(10) NOT NULL, `priority` int(11) NOT NULL, @@ -34521,7 +34526,7 @@ CREATE TABLE `packagingWithFreight` ( DROP TABLE IF EXISTS `packagingWithoutFreight`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packagingWithoutFreight` ( `packagingFk` varchar(10) NOT NULL, `priority` int(11) NOT NULL, @@ -34537,7 +34542,7 @@ CREATE TABLE `packagingWithoutFreight` ( DROP TABLE IF EXISTS `packingSite`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packingSite` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(10) DEFAULT NULL, @@ -34575,7 +34580,7 @@ CREATE TABLE `packingSite` ( DROP TABLE IF EXISTS `packingSiteAdvanced`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packingSiteAdvanced` ( `ticketFk` int(11) NOT NULL, `workerFk` int(10) unsigned DEFAULT NULL, @@ -34592,7 +34597,7 @@ CREATE TABLE `packingSiteAdvanced` ( DROP TABLE IF EXISTS `packingSiteConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packingSiteConfig` ( `id` int(10) unsigned NOT NULL, `shinobiUrl` varchar(255) NOT NULL, @@ -34610,7 +34615,7 @@ CREATE TABLE `packingSiteConfig` ( DROP TABLE IF EXISTS `packingSiteDeviceLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packingSiteDeviceLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -34639,7 +34644,7 @@ CREATE TABLE `packingSiteDeviceLog` ( DROP TABLE IF EXISTS `packingSiteLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packingSiteLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `packingSiteFk` varchar(10) DEFAULT NULL, @@ -34668,7 +34673,7 @@ CREATE TABLE `packingSiteLog` ( DROP TABLE IF EXISTS `packingSiteTypeError`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `packingSiteTypeError` ( `code` varchar(30) NOT NULL, `description` varchar(100) DEFAULT NULL, @@ -34682,7 +34687,7 @@ CREATE TABLE `packingSiteTypeError` ( DROP TABLE IF EXISTS `paperSize`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `paperSize` ( `code` varchar(100) NOT NULL, `color` varchar(100) NOT NULL, @@ -34697,12 +34702,9 @@ CREATE TABLE `paperSize` ( DROP TABLE IF EXISTS `parking`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `parking` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `column` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '--', - `row` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '--', - `floor` varchar(5) DEFAULT NULL, `sectorFk` int(11) NOT NULL, `code` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `pickingOrder` int(11) DEFAULT NULL, @@ -34715,13 +34717,30 @@ CREATE TABLE `parking` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tabla con los parkings del altillo'; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `parkingCoordinates` +-- + +DROP TABLE IF EXISTS `parkingCoordinates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `parkingCoordinates` ( + `parkingFk` int(11) NOT NULL, + `x` varchar(5) NOT NULL, + `y` varchar(5) NOT NULL, + `z` varchar(5) NOT NULL, + PRIMARY KEY (`parkingFk`), + CONSTRAINT `parkingCoordinates_parking_FK` FOREIGN KEY (`parkingFk`) REFERENCES `parking` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `parkingLog` -- DROP TABLE IF EXISTS `parkingLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `parkingLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -34751,7 +34770,7 @@ CREATE TABLE `parkingLog` ( DROP TABLE IF EXISTS `payDem`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payDem` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `payDem` varchar(15) NOT NULL, @@ -34765,7 +34784,7 @@ CREATE TABLE `payDem` ( DROP TABLE IF EXISTS `payDemDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payDemDetail` ( `id` tinyint(3) unsigned NOT NULL, `detail` tinyint(3) unsigned NOT NULL, @@ -34779,7 +34798,7 @@ CREATE TABLE `payDemDetail` ( DROP TABLE IF EXISTS `payMethod`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payMethod` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -34802,7 +34821,7 @@ CREATE TABLE `payMethod` ( DROP TABLE IF EXISTS `payment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payment` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `received` date NOT NULL, @@ -34843,7 +34862,7 @@ CREATE TABLE `payment` ( DROP TABLE IF EXISTS `paymentExchangeInsurance`; /*!50001 DROP VIEW IF EXISTS `paymentExchangeInsurance`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `paymentExchangeInsurance` AS SELECT 1 AS `pago_sdc_id`, 1 AS `importe`, @@ -34865,7 +34884,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payrollCategories`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payrollCategories` ( `id` int(11) NOT NULL, `description` varchar(255) NOT NULL, @@ -34881,7 +34900,7 @@ CREATE TABLE `payrollCategories` ( DROP TABLE IF EXISTS `payrollCenter`; /*!50001 DROP VIEW IF EXISTS `payrollCenter`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `payrollCenter` AS SELECT 1 AS `codCenter`, 1 AS `companyCode` */; @@ -34893,7 +34912,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payrollComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payrollComponent` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, @@ -34910,7 +34929,7 @@ CREATE TABLE `payrollComponent` ( DROP TABLE IF EXISTS `payrollWorkCenter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payrollWorkCenter` ( `workCenterFkA3` int(11) NOT NULL COMMENT 'Columna que hace referencia a A3.', `companyFkA3` int(11) DEFAULT NULL COMMENT 'Columna que hace referencia a A3.' @@ -34923,7 +34942,7 @@ CREATE TABLE `payrollWorkCenter` ( DROP TABLE IF EXISTS `payrollWorker`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payrollWorker` ( `workerFkA3` int(11) NOT NULL COMMENT 'Columna que hace referencia a A3.', `companyFkA3` int(10) NOT NULL COMMENT 'Columna que hace referencia a A3.', @@ -34941,7 +34960,7 @@ CREATE TABLE `payrollWorker` ( DROP TABLE IF EXISTS `pcs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pcs` ( `created` timestamp NULL DEFAULT current_timestamp(), `routeFk` int(10) unsigned DEFAULT NULL, @@ -34958,7 +34977,7 @@ CREATE TABLE `pcs` ( DROP TABLE IF EXISTS `pcs_graf`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pcs_graf` ( `id` int(11) NOT NULL DEFAULT 0, `dia` date DEFAULT NULL, @@ -34980,7 +34999,7 @@ CREATE TABLE `pcs_graf` ( DROP TABLE IF EXISTS `pedidosInternos`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pedidosInternos` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idArticle` int(11) DEFAULT NULL, @@ -34995,7 +35014,7 @@ CREATE TABLE `pedidosInternos` ( DROP TABLE IF EXISTS `periodicityType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `periodicityType` ( `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `description` varchar(45) DEFAULT NULL, @@ -35010,7 +35029,7 @@ CREATE TABLE `periodicityType` ( DROP TABLE IF EXISTS `personMedia`; /*!50001 DROP VIEW IF EXISTS `personMedia`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `personMedia` AS SELECT 1 AS `workerFk`, 1 AS `mediaValue` */; @@ -35022,7 +35041,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `personalProtectionEquipment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `personalProtectionEquipment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, @@ -35036,7 +35055,7 @@ CREATE TABLE `personalProtectionEquipment` ( DROP TABLE IF EXISTS `pgc`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pgc` ( `code` varchar(10) NOT NULL, `rate` decimal(10,2) NOT NULL, @@ -35060,7 +35079,7 @@ CREATE TABLE `pgc` ( DROP TABLE IF EXISTS `pgcEqu`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pgcEqu` ( `vatFk` varchar(10) NOT NULL COMMENT 'Cuenta de IVA', `equFk` varchar(10) NOT NULL COMMENT 'Cuenta de recargo de equivalencia', @@ -35077,7 +35096,7 @@ CREATE TABLE `pgcEqu` ( DROP TABLE IF EXISTS `pgcMaster`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `pgcMaster` ( `code` varchar(10) NOT NULL, `description` varchar(100) DEFAULT NULL, @@ -35092,7 +35111,7 @@ CREATE TABLE `pgcMaster` ( DROP TABLE IF EXISTS `phoneBook`; /*!50001 DROP VIEW IF EXISTS `phoneBook`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `phoneBook` AS SELECT 1 AS `Tipo`, 1 AS `Id`, @@ -35106,7 +35125,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `plantpassport`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `plantpassport` ( `producerFk` mediumint(3) unsigned NOT NULL, `plantpassportAuthorityFk` mediumint(3) unsigned NOT NULL, @@ -35126,7 +35145,7 @@ CREATE TABLE `plantpassport` ( DROP TABLE IF EXISTS `plantpassportAuthority`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `plantpassportAuthority` ( `id` mediumint(3) unsigned NOT NULL, `denomination` varchar(45) DEFAULT NULL, @@ -35144,7 +35163,7 @@ CREATE TABLE `plantpassportAuthority` ( DROP TABLE IF EXISTS `postCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `postCode` ( `code` varchar(30) NOT NULL, `townFk` int(11) NOT NULL, @@ -35163,7 +35182,7 @@ CREATE TABLE `postCode` ( DROP TABLE IF EXISTS `ppe`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ppe` ( `id` int(11) NOT NULL AUTO_INCREMENT, `amortization` decimal(10,2) NOT NULL DEFAULT 0.00, @@ -35212,7 +35231,7 @@ CREATE TABLE `ppe` ( DROP TABLE IF EXISTS `ppeComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ppeComponent` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ppeFk` int(11) NOT NULL, @@ -35232,7 +35251,7 @@ CREATE TABLE `ppeComponent` ( DROP TABLE IF EXISTS `ppeDMS`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ppeDMS` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dmsFk` int(11) NOT NULL, @@ -35251,7 +35270,7 @@ CREATE TABLE `ppeDMS` ( DROP TABLE IF EXISTS `ppeGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ppeGroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -35265,7 +35284,7 @@ CREATE TABLE `ppeGroup` ( DROP TABLE IF EXISTS `ppeLocation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ppeLocation` ( `code` varchar(10) NOT NULL DEFAULT '', `description` varchar(100) DEFAULT NULL, @@ -35279,7 +35298,7 @@ CREATE TABLE `ppeLocation` ( DROP TABLE IF EXISTS `ppePlan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ppePlan` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rate` decimal(3,2) NOT NULL DEFAULT 1.00, @@ -35294,7 +35313,7 @@ CREATE TABLE `ppePlan` ( DROP TABLE IF EXISTS `priceDelta`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `priceDelta` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `itemTypeFk` smallint(5) unsigned NOT NULL, @@ -35311,6 +35330,7 @@ CREATE TABLE `priceDelta` ( `created` timestamp NOT NULL DEFAULT current_timestamp(), `editorFk` int(10) unsigned DEFAULT NULL, `zoneGeoFk` int(11) DEFAULT NULL COMMENT 'Application area for the bonus component', + `isHidden` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Hides the itemType when building de catalog recordset', PRIMARY KEY (`id`), KEY `priceDelta_itemType_FK` (`itemTypeFk`), KEY `priceDelta_ink_FK` (`inkFk`), @@ -35333,7 +35353,7 @@ CREATE TABLE `priceDelta` ( DROP TABLE IF EXISTS `priceFixed`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `priceFixed` ( `itemFk` int(10) NOT NULL, `rate0` double NOT NULL, @@ -35366,7 +35386,7 @@ CREATE TABLE `priceFixed` ( DROP TABLE IF EXISTS `printQueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printQueue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `printerFk` int(10) unsigned DEFAULT NULL, @@ -35398,7 +35418,7 @@ CREATE TABLE `printQueue` ( DROP TABLE IF EXISTS `printQueueArgs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printQueueArgs` ( `printQueueFk` int(10) unsigned NOT NULL, `name` varchar(255) NOT NULL, @@ -35415,7 +35435,7 @@ CREATE TABLE `printQueueArgs` ( DROP TABLE IF EXISTS `printQueueConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printQueueConfig` ( `networkDrive` varchar(10) NOT NULL DEFAULT 'X:\\', `dmsPath` varchar(45) NOT NULL DEFAULT ' \\\\server\\dms', @@ -35429,7 +35449,7 @@ CREATE TABLE `printQueueConfig` ( DROP TABLE IF EXISTS `printer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printer` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -35462,7 +35482,7 @@ CREATE TABLE `printer` ( DROP TABLE IF EXISTS `printerModel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printerModel` ( `code` varchar(50) NOT NULL, PRIMARY KEY (`code`) @@ -35475,7 +35495,7 @@ CREATE TABLE `printerModel` ( DROP TABLE IF EXISTS `printingQueueCheck`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `printingQueueCheck` ( `lastCount` int(11) unsigned NOT NULL DEFAULT 0, `lastCheckSum` int(11) unsigned NOT NULL DEFAULT 0, @@ -35490,7 +35510,7 @@ CREATE TABLE `printingQueueCheck` ( DROP TABLE IF EXISTS `producer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `producer` ( `id` mediumint(3) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -35507,7 +35527,7 @@ CREATE TABLE `producer` ( DROP TABLE IF EXISTS `productionConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `productionConfig` ( `id` int(10) unsigned NOT NULL, `isPreviousPreparationRequired` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Impide que los sacadores reciban tickets que tengan productos de prep previa', @@ -35567,7 +35587,7 @@ CREATE TABLE `productionConfig` ( DROP TABLE IF EXISTS `productionConfigLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `productionConfigLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -35596,7 +35616,7 @@ CREATE TABLE `productionConfigLog` ( DROP TABLE IF EXISTS `productionCountry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `productionCountry` ( `countryFk` mediumint(8) unsigned NOT NULL, `volumeGrowthEstimatePercent` decimal(6,2) DEFAULT NULL COMMENT 'Porcentaje estimado de crecimiento del volumen', @@ -35611,7 +35631,7 @@ CREATE TABLE `productionCountry` ( DROP TABLE IF EXISTS `productionError`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `productionError` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(11) DEFAULT NULL, @@ -35637,7 +35657,7 @@ CREATE TABLE `productionError` ( DROP TABLE IF EXISTS `productionVolume`; /*!50001 DROP VIEW IF EXISTS `productionVolume`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `productionVolume` AS SELECT 1 AS `hora`, 1 AS `minuto`, @@ -35653,7 +35673,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `productionVolume_LastHour`; /*!50001 DROP VIEW IF EXISTS `productionVolume_LastHour`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `productionVolume_LastHour` AS SELECT 1 AS `m3`, 1 AS `warehouseFk` */; @@ -35665,7 +35685,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `professionalCategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `professionalCategory` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(50) NOT NULL, @@ -35682,7 +35702,7 @@ CREATE TABLE `professionalCategory` ( DROP TABLE IF EXISTS `profileType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `profileType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(15) NOT NULL, @@ -35696,7 +35716,7 @@ CREATE TABLE `profileType` ( DROP TABLE IF EXISTS `project`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `project` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -35728,7 +35748,7 @@ CREATE TABLE `project` ( DROP TABLE IF EXISTS `projectNotes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `projectNotes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -35749,7 +35769,7 @@ CREATE TABLE `projectNotes` ( DROP TABLE IF EXISTS `projectState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `projectState` ( `code` varchar(25) NOT NULL, `description` varchar(100) NOT NULL, @@ -35763,7 +35783,7 @@ CREATE TABLE `projectState` ( DROP TABLE IF EXISTS `promissoryNote`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `promissoryNote` ( `id` int(11) NOT NULL AUTO_INCREMENT, `issued` timestamp NOT NULL DEFAULT current_timestamp(), @@ -35781,7 +35801,7 @@ CREATE TABLE `promissoryNote` ( DROP TABLE IF EXISTS `property`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `property` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, @@ -35825,7 +35845,7 @@ CREATE TABLE `property` ( DROP TABLE IF EXISTS `propertyDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `propertyDms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dmsFk` int(11) NOT NULL, @@ -35844,7 +35864,7 @@ CREATE TABLE `propertyDms` ( DROP TABLE IF EXISTS `propertyGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `propertyGroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -35858,7 +35878,7 @@ CREATE TABLE `propertyGroup` ( DROP TABLE IF EXISTS `propertyNotes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `propertyNotes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `propertyFk` int(11) NOT NULL, @@ -35879,7 +35899,7 @@ CREATE TABLE `propertyNotes` ( DROP TABLE IF EXISTS `province`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `province` ( `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, @@ -35909,7 +35929,7 @@ CREATE TABLE `province` ( DROP TABLE IF EXISTS `punchState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `punchState` ( `workerFk` int(11) NOT NULL, `state` tinyint(4) DEFAULT 1, @@ -35924,7 +35944,7 @@ CREATE TABLE `punchState` ( DROP TABLE IF EXISTS `quality`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `quality` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -35941,7 +35961,7 @@ CREATE TABLE `quality` ( DROP TABLE IF EXISTS `queuePriority`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queuePriority` ( `id` tinyint(3) unsigned NOT NULL DEFAULT 0, `priority` varchar(50) DEFAULT NULL, @@ -35956,7 +35976,7 @@ CREATE TABLE `queuePriority` ( DROP TABLE IF EXISTS `rankBonus`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `rankBonus` ( `rank` int(11) DEFAULT NULL, `bonus` int(11) DEFAULT NULL @@ -35969,7 +35989,7 @@ CREATE TABLE `rankBonus` ( DROP TABLE IF EXISTS `rate`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `rate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -35993,7 +36013,7 @@ CREATE TABLE `rate` ( DROP TABLE IF EXISTS `rateConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `rateConfig` ( `id` int(10) unsigned NOT NULL, `rate0` int(11) DEFAULT NULL, @@ -36011,7 +36031,7 @@ CREATE TABLE `rateConfig` ( DROP TABLE IF EXISTS `rateLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `rateLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -36040,7 +36060,7 @@ CREATE TABLE `rateLog` ( DROP TABLE IF EXISTS `receipt`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `receipt` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `invoiceFk` varchar(50) DEFAULT NULL COMMENT 'nombre incorrecto, renombrar a description', @@ -36072,7 +36092,7 @@ CREATE TABLE `receipt` ( DROP TABLE IF EXISTS `recipe`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `recipe` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL COMMENT 'bouquet al que hace referencia la receta', @@ -36098,7 +36118,7 @@ CREATE TABLE `recipe` ( DROP TABLE IF EXISTS `recipe_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `recipe_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `recipe_ItemFk` int(11) NOT NULL, @@ -36119,7 +36139,7 @@ CREATE TABLE `recipe_log` ( DROP TABLE IF EXISTS `recovery`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `recovery` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL DEFAULT 0, @@ -36142,7 +36162,7 @@ CREATE TABLE `recovery` ( DROP TABLE IF EXISTS `referenceCurrent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `referenceCurrent` ( `dated` date NOT NULL DEFAULT current_timestamp(), `value` decimal(10,4) NOT NULL, @@ -36159,7 +36179,7 @@ CREATE TABLE `referenceCurrent` ( DROP TABLE IF EXISTS `referenceRate`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `referenceRate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `currencyFk` tinyint(3) unsigned NOT NULL, @@ -36177,7 +36197,7 @@ CREATE TABLE `referenceRate` ( DROP TABLE IF EXISTS `referenceRateConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `referenceRateConfig` ( `simulatedValue` float unsigned NOT NULL DEFAULT 1.2309, PRIMARY KEY (`simulatedValue`) @@ -36190,7 +36210,7 @@ CREATE TABLE `referenceRateConfig` ( DROP TABLE IF EXISTS `remittance`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `remittance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` datetime DEFAULT NULL, @@ -36210,7 +36230,7 @@ CREATE TABLE `remittance` ( DROP TABLE IF EXISTS `report`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `report` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -36228,7 +36248,7 @@ CREATE TABLE `report` ( DROP TABLE IF EXISTS `returnBuckets`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `returnBuckets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `freightContainerType` varchar(15) NOT NULL, @@ -36244,7 +36264,7 @@ CREATE TABLE `returnBuckets` ( DROP TABLE IF EXISTS `roadmap`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roadmap` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -36293,7 +36313,7 @@ CREATE TABLE `roadmap` ( DROP TABLE IF EXISTS `roadmapAddress`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roadmapAddress` ( `addressFk` int(11) NOT NULL, `isActive` tinyint(4) DEFAULT 1, @@ -36309,7 +36329,7 @@ CREATE TABLE `roadmapAddress` ( DROP TABLE IF EXISTS `roadmapEta`; /*!50001 DROP VIEW IF EXISTS `roadmapEta`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `roadmapEta` AS SELECT 1 AS `id`, 1 AS `eta` */; @@ -36321,7 +36341,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `roadmapStop`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roadmapStop` ( `id` int(11) NOT NULL AUTO_INCREMENT, `roadmapFk` int(10) unsigned DEFAULT NULL, @@ -36351,7 +36371,7 @@ CREATE TABLE `roadmapStop` ( DROP TABLE IF EXISTS `role`; /*!50001 DROP VIEW IF EXISTS `role`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `role` AS SELECT 1 AS `id`, 1 AS `name`, @@ -36365,7 +36385,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `roleCreditLimit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `roleCreditLimit` ( `id` int(11) NOT NULL, `maxAmount` int(10) unsigned NOT NULL, @@ -36382,7 +36402,7 @@ CREATE TABLE `roleCreditLimit` ( DROP TABLE IF EXISTS `route`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `route` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned DEFAULT NULL, @@ -36438,7 +36458,7 @@ CREATE TABLE `route` ( DROP TABLE IF EXISTS `routeAction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeAction` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -36454,7 +36474,7 @@ CREATE TABLE `routeAction` ( DROP TABLE IF EXISTS `routeCommission`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeCommission` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `routeFk` int(10) unsigned NOT NULL, @@ -36486,7 +36506,7 @@ CREATE TABLE `routeCommission` ( DROP TABLE IF EXISTS `routeComplement`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeComplement` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -36507,7 +36527,7 @@ CREATE TABLE `routeComplement` ( DROP TABLE IF EXISTS `routeConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeConfig` ( `id` int(10) unsigned NOT NULL, `m3Distribution` decimal(10,4) DEFAULT NULL, @@ -36563,7 +36583,7 @@ CREATE TABLE `routeConfig` ( DROP TABLE IF EXISTS `routeDefaultAgencyMode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeDefaultAgencyMode` ( `id` int(11) NOT NULL DEFAULT 0, `workcenterFk` int(11) DEFAULT NULL, @@ -36582,7 +36602,7 @@ CREATE TABLE `routeDefaultAgencyMode` ( DROP TABLE IF EXISTS `routeLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -36611,7 +36631,7 @@ CREATE TABLE `routeLog` ( DROP TABLE IF EXISTS `routeMaster`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeMaster` ( `id` int(11) NOT NULL AUTO_INCREMENT, `warehouseFk` smallint(6) unsigned DEFAULT NULL, @@ -36643,7 +36663,7 @@ CREATE TABLE `routeMaster` ( DROP TABLE IF EXISTS `routeRecalc`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routeRecalc` ( `routeFk` int(11) NOT NULL, PRIMARY KEY (`routeFk`) @@ -36657,7 +36677,7 @@ CREATE TABLE `routeRecalc` ( DROP TABLE IF EXISTS `routesControl`; /*!50001 DROP VIEW IF EXISTS `routesControl`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `routesControl` AS SELECT 1 AS `routeFk`, 1 AS `expeditions`, @@ -36674,7 +36694,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `routesMonitor`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routesMonitor` ( `routeFk` int(10) unsigned NOT NULL, `name` varchar(45) DEFAULT NULL, @@ -36714,7 +36734,7 @@ CREATE TABLE `routesMonitor` ( DROP TABLE IF EXISTS `sale`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sale` ( `id` int(11) NOT NULL AUTO_INCREMENT, `itemFk` int(11) NOT NULL, @@ -36750,7 +36770,7 @@ CREATE TABLE `sale` ( DROP TABLE IF EXISTS `saleBuy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleBuy` ( `saleFk` int(11) NOT NULL, `buyFk` int(11) NOT NULL, @@ -36769,7 +36789,7 @@ CREATE TABLE `saleBuy` ( DROP TABLE IF EXISTS `saleCloned`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleCloned` ( `saleClonedFk` int(11) NOT NULL, `saleOriginalFk` int(11) NOT NULL, @@ -36786,7 +36806,7 @@ CREATE TABLE `saleCloned` ( DROP TABLE IF EXISTS `saleComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleComponent` ( `saleFk` int(11) NOT NULL, `componentFk` int(11) NOT NULL, @@ -36807,7 +36827,7 @@ CREATE TABLE `saleComponent` ( DROP TABLE IF EXISTS `saleCost`; /*!50001 DROP VIEW IF EXISTS `saleCost`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleCost` AS SELECT 1 AS `itemFk`, 1 AS `ticketFk`, @@ -36825,7 +36845,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `saleGoal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleGoal` ( `id` int(11) NOT NULL AUTO_INCREMENT, `month` int(11) DEFAULT NULL, @@ -36845,7 +36865,7 @@ CREATE TABLE `saleGoal` ( DROP TABLE IF EXISTS `saleGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleGroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -36875,7 +36895,7 @@ CREATE TABLE `saleGroup` ( DROP TABLE IF EXISTS `saleGroupDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleGroupDetail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -36895,7 +36915,7 @@ CREATE TABLE `saleGroupDetail` ( DROP TABLE IF EXISTS `saleGroupLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleGroupLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -36925,7 +36945,7 @@ CREATE TABLE `saleGroupLog` ( DROP TABLE IF EXISTS `saleLabel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleLabel` ( `saleFk` int(11) NOT NULL, `label` mediumint(8) unsigned NOT NULL, @@ -36942,7 +36962,7 @@ CREATE TABLE `saleLabel` ( DROP TABLE IF EXISTS `saleMistake`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleMistake` ( `id` int(11) NOT NULL AUTO_INCREMENT, `saleFk` int(11) NOT NULL, @@ -36966,7 +36986,7 @@ CREATE TABLE `saleMistake` ( DROP TABLE IF EXISTS `saleMistakeList`; /*!50001 DROP VIEW IF EXISTS `saleMistakeList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleMistakeList` AS SELECT 1 AS `saleFk`, 1 AS `workerFk`, @@ -36984,7 +37004,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `saleMistake_list__2`; /*!50001 DROP VIEW IF EXISTS `saleMistake_list__2`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleMistake_list__2` AS SELECT 1 AS `saleFk`, 1 AS `workerFk`, @@ -37002,7 +37022,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `saleSaleTracking`; /*!50001 DROP VIEW IF EXISTS `saleSaleTracking`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleSaleTracking` AS SELECT 1 AS `saleFk` */; SET character_set_client = @saved_cs_client; @@ -37013,7 +37033,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `saleState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleState` ( `saleFk` int(11) NOT NULL, `stateFk` tinyint(3) unsigned NOT NULL, @@ -37030,7 +37050,7 @@ CREATE TABLE `saleState` ( DROP TABLE IF EXISTS `saleTracking`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleTracking` ( `saleFk` int(11) NOT NULL, `isChecked` tinyint(3) unsigned NOT NULL DEFAULT 0, @@ -37058,7 +37078,7 @@ CREATE TABLE `saleTracking` ( DROP TABLE IF EXISTS `saleUnit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saleUnit` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -37076,7 +37096,7 @@ CREATE TABLE `saleUnit` ( DROP TABLE IF EXISTS `saleValue`; /*!50001 DROP VIEW IF EXISTS `saleValue`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleValue` AS SELECT 1 AS `warehouse`, 1 AS `client`, @@ -37100,7 +37120,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `saleVolume`; /*!50001 DROP VIEW IF EXISTS `saleVolume`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleVolume` AS SELECT 1 AS `ticketFk`, 1 AS `saleFk`, @@ -37127,7 +37147,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `saleVolume_Today_VNH`; /*!50001 DROP VIEW IF EXISTS `saleVolume_Today_VNH`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `saleVolume_Today_VNH` AS SELECT 1 AS `Cliente`, 1 AS `Provincia`, @@ -37142,7 +37162,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `sale_freightComponent`; /*!50001 DROP VIEW IF EXISTS `sale_freightComponent`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `sale_freightComponent` AS SELECT 1 AS `ticketFk`, 1 AS `amount`, @@ -37155,7 +37175,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `salesPersonGoal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salesPersonGoal` ( `salesPersonName` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '', `month` int(11) DEFAULT NULL, @@ -37171,7 +37191,7 @@ CREATE TABLE `salesPersonGoal` ( DROP TABLE IF EXISTS `salesPersonProtected`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salesPersonProtected` ( `salesPersonFk` int(10) unsigned NOT NULL, PRIMARY KEY (`salesPersonFk`), @@ -37186,7 +37206,7 @@ CREATE TABLE `salesPersonProtected` ( DROP TABLE IF EXISTS `salesPersonSince`; /*!50001 DROP VIEW IF EXISTS `salesPersonSince`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `salesPersonSince` AS SELECT 1 AS `workerFk`, 1 AS `started` */; @@ -37199,7 +37219,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `salesPreparedLastHour`; /*!50001 DROP VIEW IF EXISTS `salesPreparedLastHour`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `salesPreparedLastHour` AS SELECT 1 AS `warehouseFk`, 1 AS `saleFk`, @@ -37222,7 +37242,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `salesPreviousPreparated`; /*!50001 DROP VIEW IF EXISTS `salesPreviousPreparated`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `salesPreviousPreparated` AS SELECT 1 AS `saleFk` */; SET character_set_client = @saved_cs_client; @@ -37233,7 +37253,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `salespersonConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `salespersonConfig` ( `id` int(10) unsigned NOT NULL, `manaMaxRate` decimal(3,2) DEFAULT 0.05 COMMENT 'Valor máximo a recficar en una línea por el maná de un comercial', @@ -37252,7 +37272,7 @@ CREATE TABLE `salespersonConfig` ( DROP TABLE IF EXISTS `sample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sample` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -37272,7 +37292,7 @@ CREATE TABLE `sample` ( DROP TABLE IF EXISTS `saySimpleConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saySimpleConfig` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(255) NOT NULL, @@ -37287,7 +37307,7 @@ CREATE TABLE `saySimpleConfig` ( DROP TABLE IF EXISTS `saySimpleCountry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `saySimpleCountry` ( `countryFk` mediumint(8) unsigned NOT NULL, `channel` varchar(128) DEFAULT NULL, @@ -37302,7 +37322,7 @@ CREATE TABLE `saySimpleCountry` ( DROP TABLE IF EXISTS `scanner`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `scanner` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -37319,7 +37339,7 @@ CREATE TABLE `scanner` ( DROP TABLE IF EXISTS `scannerModel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `scannerModel` ( `code` varchar(50) NOT NULL, PRIMARY KEY (`code`) @@ -37332,7 +37352,7 @@ CREATE TABLE `scannerModel` ( DROP TABLE IF EXISTS `screen`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `screen` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -37349,7 +37369,7 @@ CREATE TABLE `screen` ( DROP TABLE IF EXISTS `screenModel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `screenModel` ( `code` varchar(50) NOT NULL, PRIMARY KEY (`code`) @@ -37362,7 +37382,7 @@ CREATE TABLE `screenModel` ( DROP TABLE IF EXISTS `sector`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sector` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -37398,7 +37418,7 @@ CREATE TABLE `sector` ( DROP TABLE IF EXISTS `sectorCollection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sectorCollection` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -37418,7 +37438,7 @@ CREATE TABLE `sectorCollection` ( DROP TABLE IF EXISTS `sectorCollectionSaleGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sectorCollectionSaleGroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -37438,7 +37458,7 @@ CREATE TABLE `sectorCollectionSaleGroup` ( DROP TABLE IF EXISTS `sectorProductivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sectorProductivity` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(11) DEFAULT NULL, @@ -37461,7 +37481,7 @@ CREATE TABLE `sectorProductivity` ( DROP TABLE IF EXISTS `sectorType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sectorType` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(100) NOT NULL, @@ -37475,7 +37495,7 @@ CREATE TABLE `sectorType` ( DROP TABLE IF EXISTS `sendingConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sendingConfig` ( `id` int(10) unsigned NOT NULL, `defaultWeight` int(11) NOT NULL DEFAULT 13, @@ -37491,7 +37511,7 @@ CREATE TABLE `sendingConfig` ( DROP TABLE IF EXISTS `sendingService`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sendingService` ( `agencyModeCodeFk` varchar(45) NOT NULL, `serviceType` varchar(45) NOT NULL DEFAULT '01', @@ -37507,7 +37527,7 @@ CREATE TABLE `sendingService` ( DROP TABLE IF EXISTS `sendingServiceWeekday`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sendingServiceWeekday` ( `id` int(11) NOT NULL AUTO_INCREMENT, `weekdays` set('mon','tue','wed','thu','fri','sat','sun') NOT NULL, @@ -37522,7 +37542,7 @@ CREATE TABLE `sendingServiceWeekday` ( DROP TABLE IF EXISTS `sharingCart`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sharingCart` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -37544,7 +37564,7 @@ CREATE TABLE `sharingCart` ( DROP TABLE IF EXISTS `sharingCartDaily`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sharingCartDaily` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ownerFk` int(10) unsigned NOT NULL, @@ -37565,7 +37585,7 @@ CREATE TABLE `sharingCartDaily` ( DROP TABLE IF EXISTS `sharingClient`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sharingClient` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -37586,7 +37606,7 @@ CREATE TABLE `sharingClient` ( DROP TABLE IF EXISTS `shelving`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `shelving` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -37617,7 +37637,7 @@ CREATE TABLE `shelving` ( DROP TABLE IF EXISTS `shelvingLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `shelvingLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -37646,7 +37666,7 @@ CREATE TABLE `shelvingLog` ( DROP TABLE IF EXISTS `siiTrascendencyInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `siiTrascendencyInvoiceIn` ( `id` int(10) unsigned NOT NULL, `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -37660,7 +37680,7 @@ CREATE TABLE `siiTrascendencyInvoiceIn` ( DROP TABLE IF EXISTS `siiTrascendencyInvoiceOut`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `siiTrascendencyInvoiceOut` ( `id` int(10) unsigned NOT NULL, `description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -37674,7 +37694,7 @@ CREATE TABLE `siiTrascendencyInvoiceOut` ( DROP TABLE IF EXISTS `siiTypeInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `siiTypeInvoiceIn` ( `id` int(10) unsigned NOT NULL, `code` varchar(2) NOT NULL, @@ -37690,7 +37710,7 @@ CREATE TABLE `siiTypeInvoiceIn` ( DROP TABLE IF EXISTS `siiTypeInvoiceOut`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `siiTypeInvoiceOut` ( `id` int(10) unsigned NOT NULL, `code` varchar(2) NOT NULL, @@ -37706,7 +37726,7 @@ CREATE TABLE `siiTypeInvoiceOut` ( DROP TABLE IF EXISTS `sim`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sim` ( `code` varchar(25) NOT NULL COMMENT 'No se ha puesto BIGINT por incompatibilidad con Access', `line` varchar(15) NOT NULL CHECK (`line` regexp '^[0-9]+$'), @@ -37723,7 +37743,7 @@ CREATE TABLE `sim` ( DROP TABLE IF EXISTS `sinister`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sinister` ( `id` int(11) NOT NULL, `supplierFk` int(10) unsigned NOT NULL, @@ -37752,7 +37772,7 @@ CREATE TABLE `sinister` ( DROP TABLE IF EXISTS `sinisterDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sinisterDetail` ( `id` int(11) NOT NULL, `sinisterFk` int(11) NOT NULL, @@ -37778,7 +37798,7 @@ CREATE TABLE `sinisterDetail` ( DROP TABLE IF EXISTS `smartTag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `smartTag` ( `code` varchar(12) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `shelvingFk` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -37795,7 +37815,7 @@ CREATE TABLE `smartTag` ( DROP TABLE IF EXISTS `sms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sms` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `senderFk` int(10) unsigned NOT NULL, @@ -37817,7 +37837,7 @@ CREATE TABLE `sms` ( DROP TABLE IF EXISTS `smsConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `smsConfig` ( `id` int(10) unsigned NOT NULL, `uri` varchar(255) NOT NULL, @@ -37834,7 +37854,7 @@ CREATE TABLE `smsConfig` ( DROP TABLE IF EXISTS `solunionCAP`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `solunionCAP` ( `creditInsurance` int(11) NOT NULL, `dateStart` date NOT NULL, @@ -37852,7 +37872,7 @@ CREATE TABLE `solunionCAP` ( DROP TABLE IF EXISTS `sorter__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sorter__` ( `id` int(11) NOT NULL DEFAULT 0, `created` datetime NOT NULL, @@ -37879,7 +37899,7 @@ CREATE TABLE `sorter__` ( DROP TABLE IF EXISTS `specialLabels`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `specialLabels` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL, @@ -37896,7 +37916,7 @@ CREATE TABLE `specialLabels` ( DROP TABLE IF EXISTS `specialPrice`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `specialPrice` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) DEFAULT NULL, @@ -37920,7 +37940,7 @@ CREATE TABLE `specialPrice` ( DROP TABLE IF EXISTS `specie`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `specie` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -37935,7 +37955,7 @@ CREATE TABLE `specie` ( DROP TABLE IF EXISTS `specieGeoInvasive`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `specieGeoInvasive` ( `id` int(11) NOT NULL AUTO_INCREMENT, `genusFk` int(11) NOT NULL, @@ -37958,7 +37978,7 @@ CREATE TABLE `specieGeoInvasive` ( DROP TABLE IF EXISTS `split`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `split` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ticketFk` int(11) DEFAULT NULL, @@ -37976,7 +37996,7 @@ CREATE TABLE `split` ( DROP TABLE IF EXISTS `splitFilter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `splitFilter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `autonomyFk` int(11) DEFAULT NULL, @@ -37998,7 +38018,7 @@ CREATE TABLE `splitFilter` ( DROP TABLE IF EXISTS `splitLine__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `splitLine__` ( `id` int(11) NOT NULL AUTO_INCREMENT, `splitFk` int(11) NOT NULL, @@ -38018,7 +38038,7 @@ CREATE TABLE `splitLine__` ( DROP TABLE IF EXISTS `starredModule`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `starredModule` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -38038,7 +38058,7 @@ CREATE TABLE `starredModule` ( DROP TABLE IF EXISTS `state`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `state` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, @@ -38071,7 +38091,7 @@ CREATE TABLE `state` ( DROP TABLE IF EXISTS `stateI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `stateI18n` ( `stateFk` tinyint(3) unsigned NOT NULL, `lang` char(2) NOT NULL, @@ -38087,7 +38107,7 @@ CREATE TABLE `stateI18n` ( DROP TABLE IF EXISTS `stockBought`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `stockBought` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -38106,7 +38126,7 @@ CREATE TABLE `stockBought` ( DROP TABLE IF EXISTS `stockBuyed`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `stockBuyed` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned DEFAULT NULL, @@ -38128,7 +38148,7 @@ CREATE TABLE `stockBuyed` ( DROP TABLE IF EXISTS `stowaway`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `stowaway` ( `id` int(11) NOT NULL COMMENT 'ticket pequeño', `shipFk` int(11) NOT NULL COMMENT 'ticket grande', @@ -38143,7 +38163,7 @@ CREATE TABLE `stowaway` ( DROP TABLE IF EXISTS `supplier`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplier` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, @@ -38216,7 +38236,7 @@ CREATE TABLE `supplier` ( DROP TABLE IF EXISTS `supplierAccount`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierAccount` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `supplierFk` int(10) unsigned DEFAULT NULL, @@ -38249,7 +38269,7 @@ CREATE TABLE `supplierAccount` ( DROP TABLE IF EXISTS `supplierActivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierActivity` ( `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `name` varchar(45) NOT NULL, @@ -38263,7 +38283,7 @@ CREATE TABLE `supplierActivity` ( DROP TABLE IF EXISTS `supplierAddress`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierAddress` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplierFk` int(10) unsigned DEFAULT NULL, @@ -38291,7 +38311,7 @@ CREATE TABLE `supplierAddress` ( DROP TABLE IF EXISTS `supplierAgencyTerm`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierAgencyTerm` ( `agencyFk` smallint(5) unsigned NOT NULL, `supplierFk` int(10) unsigned DEFAULT NULL, @@ -38315,7 +38335,7 @@ CREATE TABLE `supplierAgencyTerm` ( DROP TABLE IF EXISTS `supplierContact`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierContact` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplierFk` int(10) unsigned DEFAULT NULL, @@ -38339,7 +38359,7 @@ CREATE TABLE `supplierContact` ( DROP TABLE IF EXISTS `supplierDebtConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierDebtConfig` ( `dated` date NOT NULL DEFAULT '2014-12-31' COMMENT 'date from which we start counting', `invalidBalances` double NOT NULL DEFAULT 0.5 COMMENT 'balances not to be paid' @@ -38352,7 +38372,7 @@ CREATE TABLE `supplierDebtConfig` ( DROP TABLE IF EXISTS `supplierDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierDms` ( `supplierFk` int(10) unsigned NOT NULL, `dmsFk` int(11) NOT NULL, @@ -38372,7 +38392,7 @@ CREATE TABLE `supplierDms` ( DROP TABLE IF EXISTS `supplierExpense`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierExpense` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -38405,7 +38425,7 @@ CREATE TABLE `supplierExpense` ( DROP TABLE IF EXISTS `supplierFreight`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierFreight` ( `supplierFk` int(10) unsigned NOT NULL, PRIMARY KEY (`supplierFk`), @@ -38419,7 +38439,7 @@ CREATE TABLE `supplierFreight` ( DROP TABLE IF EXISTS `supplierLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `supplierLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -38449,7 +38469,7 @@ CREATE TABLE `supplierLog` ( DROP TABLE IF EXISTS `supplierPackaging`; /*!50001 DROP VIEW IF EXISTS `supplierPackaging`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `supplierPackaging` AS SELECT 1 AS `supplierFk`, 1 AS `itemFk`, @@ -38469,7 +38489,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tablet`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tablet` ( `uuid` varchar(100) NOT NULL, `name` varchar(45) DEFAULT NULL, @@ -38485,7 +38505,7 @@ CREATE TABLE `tablet` ( DROP TABLE IF EXISTS `tabletDepartment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tabletDepartment` ( `tabletFk` varchar(100) NOT NULL, `departmentFk` int(11) NOT NULL, @@ -38502,7 +38522,7 @@ CREATE TABLE `tabletDepartment` ( DROP TABLE IF EXISTS `tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tag` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, @@ -38526,7 +38546,7 @@ CREATE TABLE `tag` ( DROP TABLE IF EXISTS `tagAbbreviation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tagAbbreviation` ( `value` varchar(20) NOT NULL, `abbreviation` varchar(10) NOT NULL, @@ -38543,7 +38563,7 @@ CREATE TABLE `tagAbbreviation` ( DROP TABLE IF EXISTS `tagI18n`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tagI18n` ( `tagFk` int(10) unsigned NOT NULL, `lang` char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -38559,7 +38579,7 @@ CREATE TABLE `tagI18n` ( DROP TABLE IF EXISTS `tagL10n`; /*!50001 DROP VIEW IF EXISTS `tagL10n`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tagL10n` AS SELECT 1 AS `id`, 1 AS `name` */; @@ -38571,7 +38591,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `taxArea`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `taxArea` ( `code` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `ClaveOperacionFactura` varchar(1) DEFAULT NULL, @@ -38586,7 +38606,7 @@ CREATE TABLE `taxArea` ( DROP TABLE IF EXISTS `taxClass`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `taxClass` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(30) NOT NULL, @@ -38602,7 +38622,7 @@ CREATE TABLE `taxClass` ( DROP TABLE IF EXISTS `taxClassCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `taxClassCode` ( `taxClassFk` tinyint(3) unsigned NOT NULL, `effectived` date NOT NULL, @@ -38620,7 +38640,7 @@ CREATE TABLE `taxClassCode` ( DROP TABLE IF EXISTS `taxCode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `taxCode` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -38651,7 +38671,7 @@ CREATE TABLE `taxCode` ( DROP TABLE IF EXISTS `taxType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `taxType` ( `id` tinyint(2) NOT NULL AUTO_INCREMENT, `nickname` varchar(6) NOT NULL, @@ -38673,7 +38693,7 @@ CREATE TABLE `taxType` ( DROP TABLE IF EXISTS `temperature`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `temperature` ( `code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `description` text DEFAULT NULL, @@ -38688,7 +38708,7 @@ CREATE TABLE `temperature` ( DROP TABLE IF EXISTS `thermograph`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `thermograph` ( `id` varchar(45) NOT NULL, `model` enum('TL30','SENSITECH','TREKVIEW1','TREKVIEW2','DISPOSABLE','TEMPMATE') NOT NULL, @@ -38702,14 +38722,14 @@ CREATE TABLE `thermograph` ( DROP TABLE IF EXISTS `ticket`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticket` ( `id` int(11) NOT NULL AUTO_INCREMENT, `clientFk` int(11) NOT NULL DEFAULT 0, `warehouseFk` smallint(6) unsigned DEFAULT NULL, `shipped` datetime NOT NULL, `nickname` varchar(50) DEFAULT NULL, - `refFk` varchar(20) DEFAULT NULL, + `refFk` varchar(25) DEFAULT NULL, `addressFk` int(11) NOT NULL DEFAULT 0, `workerFk` int(11) DEFAULT NULL, `observations` varchar(255) DEFAULT NULL COMMENT 'eliminar', @@ -38776,7 +38796,7 @@ CREATE TABLE `ticket` ( DROP TABLE IF EXISTS `ticketCanAdvanceConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketCanAdvanceConfig` ( `id` int(10) unsigned NOT NULL, `destinationOrder` int(11) DEFAULT NULL, @@ -38791,7 +38811,7 @@ CREATE TABLE `ticketCanAdvanceConfig` ( DROP TABLE IF EXISTS `ticketCollection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketCollection` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ticketFk` int(11) NOT NULL, @@ -38821,7 +38841,7 @@ CREATE TABLE `ticketCollection` ( DROP TABLE IF EXISTS `ticketConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketConfig` ( `id` int(10) unsigned NOT NULL, `scopeDays` tinyint(3) DEFAULT NULL, @@ -38831,6 +38851,8 @@ CREATE TABLE `ticketConfig` ( `daysForWarningClaim` int(11) NOT NULL DEFAULT 2 COMMENT 'dias restantes hasta que salte el aviso de reclamación fuera de plazo', `defaultAttenderFk` int(10) unsigned DEFAULT NULL, `closureDaysAgo` int(11) NOT NULL DEFAULT 2 COMMENT 'Number of days to look back for ticket closure', + `lackAlertPrice` int(11) NOT NULL DEFAULT 30 COMMENT 'Value to alert when item proposal exceed price', + `lackScopeDays` int(11) NOT NULL DEFAULT 2 COMMENT 'Number of days to look back for ticket with negatives', PRIMARY KEY (`id`), KEY `ticketConfig_worker_FK` (`defaultAttenderFk`), CONSTRAINT `ticketConfig_worker_FK` FOREIGN KEY (`defaultAttenderFk`) REFERENCES `worker` (`id`), @@ -38845,7 +38867,7 @@ CREATE TABLE `ticketConfig` ( DROP TABLE IF EXISTS `ticketDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketDms` ( `ticketFk` int(11) NOT NULL, `dmsFk` int(11) NOT NULL, @@ -38865,7 +38887,7 @@ CREATE TABLE `ticketDms` ( DROP TABLE IF EXISTS `ticketDocumentation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketDocumentation` ( `ticketFk` int(11) NOT NULL, PRIMARY KEY (`ticketFk`) @@ -38878,7 +38900,7 @@ CREATE TABLE `ticketDocumentation` ( DROP TABLE IF EXISTS `ticketDown`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketDown` ( `ticketFk` int(11) NOT NULL, `created` timestamp NOT NULL DEFAULT current_timestamp(), @@ -38901,7 +38923,7 @@ CREATE TABLE `ticketDown` ( DROP TABLE IF EXISTS `ticketDownBuffer`; /*!50001 DROP VIEW IF EXISTS `ticketDownBuffer`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketDownBuffer` AS SELECT 1 AS `ticketFk`, 1 AS `created`, @@ -38916,7 +38938,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketDown_SelectionType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketDown_SelectionType` ( `id` int(11) NOT NULL, `description` varchar(45) NOT NULL, @@ -38931,7 +38953,7 @@ CREATE TABLE `ticketDown_SelectionType` ( DROP TABLE IF EXISTS `ticketLastState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketLastState` ( `ticketFk` int(11) NOT NULL DEFAULT 0, `ticketTrackingFk` int(11) NOT NULL, @@ -38950,7 +38972,7 @@ CREATE TABLE `ticketLastState` ( DROP TABLE IF EXISTS `ticketLastUpdated`; /*!50001 DROP VIEW IF EXISTS `ticketLastUpdated`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketLastUpdated` AS SELECT 1 AS `ticketFk`, 1 AS `lastUpdated` */; @@ -38963,7 +38985,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketLastUpdatedList`; /*!50001 DROP VIEW IF EXISTS `ticketLastUpdatedList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketLastUpdatedList` AS SELECT 1 AS `ticketFk`, 1 AS `created` */; @@ -38975,7 +38997,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -39005,7 +39027,7 @@ CREATE TABLE `ticketLog` ( DROP TABLE IF EXISTS `ticketNotInvoiced`; /*!50001 DROP VIEW IF EXISTS `ticketNotInvoiced`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketNotInvoiced` AS SELECT 1 AS `companyFk`, 1 AS `companyCode`, @@ -39021,7 +39043,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketObservation` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `ticketFk` int(11) NOT NULL, @@ -39044,7 +39066,7 @@ CREATE TABLE `ticketObservation` ( DROP TABLE IF EXISTS `ticketPackage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketPackage` ( `ticket` int(11) NOT NULL, `counter` int(10) unsigned NOT NULL DEFAULT 0, @@ -39059,7 +39081,7 @@ CREATE TABLE `ticketPackage` ( DROP TABLE IF EXISTS `ticketPackaging`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketPackaging` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ticketFk` int(11) NOT NULL, @@ -39084,7 +39106,7 @@ CREATE TABLE `ticketPackaging` ( DROP TABLE IF EXISTS `ticketPackagingStartingStock`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketPackagingStartingStock` ( `clientFk` int(11) NOT NULL, `packagingFk` varchar(10) NOT NULL, @@ -39108,7 +39130,7 @@ CREATE TABLE `ticketPackagingStartingStock` ( DROP TABLE IF EXISTS `ticketPackingList`; /*!50001 DROP VIEW IF EXISTS `ticketPackingList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketPackingList` AS SELECT 1 AS `nickname`, 1 AS `ticketFk`, @@ -39128,7 +39150,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketParking`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketParking` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ticketFk` int(11) NOT NULL, @@ -39151,7 +39173,7 @@ CREATE TABLE `ticketParking` ( DROP TABLE IF EXISTS `ticketPreviousPreparingList`; /*!50001 DROP VIEW IF EXISTS `ticketPreviousPreparingList`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketPreviousPreparingList` AS SELECT 1 AS `ticketFk`, 1 AS `code`, @@ -39170,7 +39192,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketRefund`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketRefund` ( `id` int(11) NOT NULL AUTO_INCREMENT, `refundTicketFk` int(11) NOT NULL, @@ -39192,7 +39214,7 @@ CREATE TABLE `ticketRefund` ( DROP TABLE IF EXISTS `ticketRequest`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketRequest` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(255) DEFAULT NULL, @@ -39237,7 +39259,7 @@ CREATE TABLE `ticketRequest` ( DROP TABLE IF EXISTS `ticketService`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketService` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) DEFAULT NULL, @@ -39265,7 +39287,7 @@ CREATE TABLE `ticketService` ( DROP TABLE IF EXISTS `ticketServiceType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketServiceType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, @@ -39283,7 +39305,7 @@ CREATE TABLE `ticketServiceType` ( DROP TABLE IF EXISTS `ticketState`; /*!50001 DROP VIEW IF EXISTS `ticketState`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketState` AS SELECT 1 AS `updated`, 1 AS `stateFk`, @@ -39304,7 +39326,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketStateToday`; /*!50001 DROP VIEW IF EXISTS `ticketStateToday`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticketStateToday` AS SELECT 1 AS `ticketFk`, 1 AS `state`, @@ -39322,7 +39344,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticketTracking`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketTracking` ( `id` int(11) NOT NULL AUTO_INCREMENT, `stateFk` tinyint(3) unsigned NOT NULL, @@ -39355,7 +39377,7 @@ CREATE TABLE `ticketTracking` ( DROP TABLE IF EXISTS `ticketTrolley`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketTrolley` ( `ticket` int(11) NOT NULL, `labelCount` int(11) NOT NULL DEFAULT 0, @@ -39370,7 +39392,7 @@ CREATE TABLE `ticketTrolley` ( DROP TABLE IF EXISTS `ticketUpdateAction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketUpdateAction` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(45) NOT NULL, @@ -39385,7 +39407,7 @@ CREATE TABLE `ticketUpdateAction` ( DROP TABLE IF EXISTS `ticketWeekly`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ticketWeekly` ( `ticketFk` int(11) NOT NULL AUTO_INCREMENT, `weekDay` tinyint(1) NOT NULL COMMENT 'funcion de mysql Lunes = 0, Domingo = 6\nShipped, dia de preparacion del pedido', @@ -39406,7 +39428,7 @@ CREATE TABLE `ticketWeekly` ( DROP TABLE IF EXISTS `till`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `till` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -39447,7 +39469,7 @@ CREATE TABLE `till` ( DROP TABLE IF EXISTS `tillConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tillConfig` ( `id` int(10) unsigned NOT NULL, `openingBalance` decimal(10,2) NOT NULL, @@ -39463,7 +39485,7 @@ CREATE TABLE `tillConfig` ( DROP TABLE IF EXISTS `tillSerial`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `tillSerial` ( `code` varchar(2) NOT NULL, `description` varchar(30) DEFAULT NULL, @@ -39478,7 +39500,7 @@ CREATE TABLE `tillSerial` ( DROP TABLE IF EXISTS `time`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `time` ( `dated` date NOT NULL, `period` int(6) NOT NULL, @@ -39504,7 +39526,7 @@ CREATE TABLE `time` ( DROP TABLE IF EXISTS `timeSlots`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `timeSlots` ( `id` int(11) NOT NULL AUTO_INCREMENT, `section` time NOT NULL, @@ -39519,7 +39541,7 @@ CREATE TABLE `timeSlots` ( DROP TABLE IF EXISTS `town`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `town` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -39541,7 +39563,7 @@ CREATE TABLE `town` ( DROP TABLE IF EXISTS `tr2`; /*!50001 DROP VIEW IF EXISTS `tr2`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tr2` AS SELECT 1 AS `id`, 1 AS `shipped`, @@ -39567,7 +39589,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `traceabilityBuy`; /*!50001 DROP VIEW IF EXISTS `traceabilityBuy`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `traceabilityBuy` AS SELECT 1 AS `buyFk`, 1 AS `quantity`, @@ -39585,7 +39607,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `traceabilitySale`; /*!50001 DROP VIEW IF EXISTS `traceabilitySale`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `traceabilitySale` AS SELECT 1 AS `ticketFk`, 1 AS `buyFk`, @@ -39601,7 +39623,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `train`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `train` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, @@ -39615,7 +39637,7 @@ CREATE TABLE `train` ( DROP TABLE IF EXISTS `trainingCenter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `trainingCenter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -39629,7 +39651,7 @@ CREATE TABLE `trainingCenter` ( DROP TABLE IF EXISTS `trainingCourse`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `trainingCourse` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -39658,7 +39680,7 @@ CREATE TABLE `trainingCourse` ( DROP TABLE IF EXISTS `trainingCourseType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `trainingCourseType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, @@ -39672,7 +39694,7 @@ CREATE TABLE `trainingCourseType` ( DROP TABLE IF EXISTS `transitoryDuaUnified`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `transitoryDuaUnified` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplierFk` int(10) unsigned DEFAULT NULL, @@ -39691,7 +39713,7 @@ CREATE TABLE `transitoryDuaUnified` ( DROP TABLE IF EXISTS `travel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travel` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `shipped` date DEFAULT NULL, @@ -39740,7 +39762,7 @@ CREATE TABLE `travel` ( DROP TABLE IF EXISTS `travelClonedWeekly`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travelClonedWeekly` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `weekStart` tinyint(3) unsigned NOT NULL, @@ -39774,7 +39796,7 @@ CREATE TABLE `travelClonedWeekly` ( DROP TABLE IF EXISTS `travelConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travelConfig` ( `id` int(10) unsigned NOT NULL, `warehouseInFk` smallint(6) unsigned NOT NULL DEFAULT 8 COMMENT 'Warehouse de origen', @@ -39807,7 +39829,7 @@ CREATE TABLE `travelConfig` ( DROP TABLE IF EXISTS `travelKgPercentage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travelKgPercentage` ( `value` int(3) NOT NULL, `className` varchar(50) DEFAULT NULL, @@ -39821,7 +39843,7 @@ CREATE TABLE `travelKgPercentage` ( DROP TABLE IF EXISTS `travelLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travelLog` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -39850,7 +39872,7 @@ CREATE TABLE `travelLog` ( DROP TABLE IF EXISTS `travelObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travelObservation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `originFk` int(11) NOT NULL, @@ -39867,7 +39889,7 @@ CREATE TABLE `travelObservation` ( DROP TABLE IF EXISTS `travelThermograph`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `travelThermograph` ( `id` int(11) NOT NULL AUTO_INCREMENT, `thermographFk` varchar(45) NOT NULL, @@ -39905,7 +39927,7 @@ CREATE TABLE `travelThermograph` ( DROP TABLE IF EXISTS `trolley`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `trolley` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned DEFAULT NULL, @@ -39922,7 +39944,7 @@ CREATE TABLE `trolley` ( DROP TABLE IF EXISTS `userLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned NOT NULL, @@ -39950,7 +39972,7 @@ CREATE TABLE `userLog` ( DROP TABLE IF EXISTS `userMultiConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userMultiConfig` ( `userFk` int(10) unsigned NOT NULL, `warehouseFk` smallint(6) DEFAULT NULL, @@ -39971,7 +39993,7 @@ CREATE TABLE `userMultiConfig` ( DROP TABLE IF EXISTS `userPhone`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userPhone` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned NOT NULL, @@ -39991,7 +40013,7 @@ CREATE TABLE `userPhone` ( DROP TABLE IF EXISTS `userPhoneType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `userPhoneType` ( `code` varchar(45) NOT NULL, `description` varchar(255) DEFAULT NULL, @@ -40005,7 +40027,7 @@ CREATE TABLE `userPhoneType` ( DROP TABLE IF EXISTS `vehicle`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicle` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `numberPlate` varchar(10) DEFAULT NULL, @@ -40030,6 +40052,8 @@ CREATE TABLE `vehicle` ( `vin` varchar(50) DEFAULT NULL, `bankPolicyFk` int(11) DEFAULT NULL, `typeFk` enum('car','van','truck','trailer','tug','dolly','trailerLink') NOT NULL DEFAULT 'van', + `importCooler` decimal(10,2) DEFAULT NULL, + `vehicleTypeFk` int(11) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `vehicle_UN` (`numberPlate`), KEY `empresa_id` (`companyFk`), @@ -40040,6 +40064,8 @@ CREATE TABLE `vehicle` ( KEY `vehicle_supplierFk` (`supplierFk`), KEY `vehicle_supplierCoolerFk` (`supplierCoolerFk`), KEY `vehicle_bankPolicyFk` (`bankPolicyFk`), + KEY `fk_vehicle_vehicleType` (`vehicleTypeFk`), + CONSTRAINT `fk_vehicle_vehicleType` FOREIGN KEY (`vehicleTypeFk`) REFERENCES `vehicleType` (`id`), CONSTRAINT `vehicleCompany_Fk` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON UPDATE CASCADE, CONSTRAINT `vehicle_FK` FOREIGN KEY (`fuelTypeFk`) REFERENCES `fuelType` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `vehicle_FK_1` FOREIGN KEY (`ppeFk`) REFERENCES `ppe` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, @@ -40057,7 +40083,7 @@ CREATE TABLE `vehicle` ( DROP TABLE IF EXISTS `vehicleConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleConfig` ( `eventEarlyDays` int(11) DEFAULT 15 COMMENT 'Previous days on which the expiration of an event must be notified' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; @@ -40069,7 +40095,7 @@ CREATE TABLE `vehicleConfig` ( DROP TABLE IF EXISTS `vehicleConsumption`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleConsumption` ( `id` int(11) NOT NULL AUTO_INCREMENT, `vehicleFk` int(10) unsigned NOT NULL, @@ -40103,7 +40129,7 @@ CREATE TABLE `vehicleConsumption` ( DROP TABLE IF EXISTS `vehicleDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleDms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `vehicleFk` int(10) unsigned NOT NULL, @@ -40122,7 +40148,7 @@ CREATE TABLE `vehicleDms` ( DROP TABLE IF EXISTS `vehicleEvent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleEvent` ( `id` int(11) NOT NULL AUTO_INCREMENT, `started` date DEFAULT NULL, @@ -40146,7 +40172,7 @@ CREATE TABLE `vehicleEvent` ( DROP TABLE IF EXISTS `vehicleInvoiceIn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleInvoiceIn` ( `id` int(11) NOT NULL AUTO_INCREMENT, `vehicleFk` int(10) unsigned NOT NULL, @@ -40166,7 +40192,7 @@ CREATE TABLE `vehicleInvoiceIn` ( DROP TABLE IF EXISTS `vehicleNotes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleNotes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `vehicleFk` int(10) unsigned NOT NULL, @@ -40187,7 +40213,7 @@ CREATE TABLE `vehicleNotes` ( DROP TABLE IF EXISTS `vehiclePlateRegex`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehiclePlateRegex` ( `countryCodeFk` varchar(2) NOT NULL, `regex` varchar(45) NOT NULL, @@ -40201,7 +40227,7 @@ CREATE TABLE `vehiclePlateRegex` ( DROP TABLE IF EXISTS `vehicleState`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vehicleState` ( `id` int(11) NOT NULL AUTO_INCREMENT, `state` varchar(100) NOT NULL, @@ -40210,13 +40236,27 @@ CREATE TABLE `vehicleState` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `vehicleType` +-- + +DROP TABLE IF EXISTS `vehicleType`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `vehicleType` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(45) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `viaexpressConfig` -- DROP TABLE IF EXISTS `viaexpressConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `viaexpressConfig` ( `id` int(10) unsigned NOT NULL, `url` varchar(100) NOT NULL, @@ -40239,10 +40279,10 @@ CREATE TABLE `viaexpressConfig` ( DROP TABLE IF EXISTS `volumeConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `volumeConfig` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `palletM3` decimal(10,2) DEFAULT NULL COMMENT 'metros cúbicos', + `palletM3` decimal(10,2) DEFAULT NULL COMMENT 'metros cúbicos para el warehouse VNH (Se refactorizará en el redmine refs #8637)', `trolleyM3` decimal(10,2) DEFAULT NULL COMMENT 'metros cúbicos', `dutchCompressionRate` double NOT NULL DEFAULT 1, `standardFlowerBox` int(11) NOT NULL COMMENT 'en litros', @@ -40254,6 +40294,7 @@ CREATE TABLE `volumeConfig` ( `shelveVolume` int(11) DEFAULT 200 COMMENT 'volumen en litros de una bandeja standard, a efectos de los sacadores', `minTicketValue` int(11) NOT NULL DEFAULT 50, `aerealVolumetricDensity` decimal(10,1) DEFAULT 167.0 COMMENT 'factor de conversión para calcular el peso tasable aereo', + `localPalletM3` decimal(10,2) DEFAULT NULL COMMENT 'metros cúbicos para el warehouse Algemesi (Se refactorizará en el redmine refs #8637)', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='almacena el valor standard para volumenes convencionales de Verdnatura, en metros cúbicos'; /*!40101 SET character_set_client = @saved_cs_client */; @@ -40264,7 +40305,7 @@ CREATE TABLE `volumeConfig` ( DROP TABLE IF EXISTS `wagon`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `wagon` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '26 letras de alfabeto inglés', `volume` int(11) NOT NULL DEFAULT 150 COMMENT 'Volumen en litros', @@ -40283,7 +40324,7 @@ CREATE TABLE `wagon` ( DROP TABLE IF EXISTS `wagonConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `wagonConfig` ( `id` int(10) unsigned NOT NULL, `width` int(11) unsigned DEFAULT 1350, @@ -40306,7 +40347,7 @@ CREATE TABLE `wagonConfig` ( DROP TABLE IF EXISTS `wagonType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `wagonType` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, @@ -40322,7 +40363,7 @@ CREATE TABLE `wagonType` ( DROP TABLE IF EXISTS `wagonTypeColor`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `wagonTypeColor` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, @@ -40339,7 +40380,7 @@ CREATE TABLE `wagonTypeColor` ( DROP TABLE IF EXISTS `wagonTypeTray`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `wagonTypeTray` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `wagonTypeFk` int(11) unsigned DEFAULT NULL, @@ -40359,7 +40400,7 @@ CREATE TABLE `wagonTypeTray` ( DROP TABLE IF EXISTS `wagonVolumetry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `wagonVolumetry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `level` int(10) unsigned NOT NULL DEFAULT 0, @@ -40379,7 +40420,7 @@ CREATE TABLE `wagonVolumetry` ( DROP TABLE IF EXISTS `warehouse`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `warehouse` ( `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, @@ -40429,7 +40470,7 @@ CREATE TABLE `warehouse` ( DROP TABLE IF EXISTS `warehousePickup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `warehousePickup` ( `warehouseFk` smallint(5) unsigned NOT NULL, `agencyModeFk` int(11) DEFAULT NULL, @@ -40446,7 +40487,7 @@ CREATE TABLE `warehousePickup` ( DROP TABLE IF EXISTS `workCenter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workCenter` ( `id` int(11) NOT NULL DEFAULT 0, `name` varchar(255) DEFAULT NULL, @@ -40468,7 +40509,7 @@ CREATE TABLE `workCenter` ( DROP TABLE IF EXISTS `workCenterCommission`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workCenterCommission` ( `workCenterFk` int(11) NOT NULL, `deliveryManAdjustment` decimal(4,2) DEFAULT NULL COMMENT 'Número de trabajadores para equilibrar los repartidores de diferentes centros.\n Utilizado en repartidores de grafana', @@ -40489,7 +40530,7 @@ CREATE TABLE `workCenterCommission` ( DROP TABLE IF EXISTS `workCenterHoliday`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workCenterHoliday` ( `workCenterFk` int(11) NOT NULL, `days` double NOT NULL, @@ -40504,7 +40545,7 @@ CREATE TABLE `workCenterHoliday` ( DROP TABLE IF EXISTS `worker`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `worker` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(3) NOT NULL, @@ -40555,7 +40596,7 @@ CREATE TABLE `worker` ( DROP TABLE IF EXISTS `workerActivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerActivity` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NULL DEFAULT current_timestamp(), @@ -40578,7 +40619,7 @@ CREATE TABLE `workerActivity` ( DROP TABLE IF EXISTS `workerActivityType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerActivityType` ( `code` varchar(20) NOT NULL, `description` varchar(45) NOT NULL, @@ -40592,7 +40633,7 @@ CREATE TABLE `workerActivityType` ( DROP TABLE IF EXISTS `workerAppTester`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerAppTester` ( `workerFk` int(10) unsigned NOT NULL, PRIMARY KEY (`workerFk`), @@ -40607,7 +40648,7 @@ CREATE TABLE `workerAppTester` ( DROP TABLE IF EXISTS `workerBosses`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerBosses` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -40627,7 +40668,7 @@ CREATE TABLE `workerBosses` ( DROP TABLE IF EXISTS `workerBusinessAgreement`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerBusinessAgreement` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, @@ -40646,7 +40687,7 @@ CREATE TABLE `workerBusinessAgreement` ( DROP TABLE IF EXISTS `workerBusinessDated`; /*!50001 DROP VIEW IF EXISTS `workerBusinessDated`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerBusinessDated` AS SELECT 1 AS `dated`, 1 AS `businessFk`, @@ -40659,7 +40700,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerBusinessType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerBusinessType` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, @@ -40676,7 +40717,7 @@ CREATE TABLE `workerBusinessType` ( DROP TABLE IF EXISTS `workerClockLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerClockLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(11) NOT NULL, @@ -40696,7 +40737,7 @@ CREATE TABLE `workerClockLog` ( DROP TABLE IF EXISTS `workerConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerConfig` ( `id` int(10) unsigned NOT NULL, `businessUpdated` date DEFAULT NULL, @@ -40719,7 +40760,7 @@ CREATE TABLE `workerConfig` ( DROP TABLE IF EXISTS `workerDepartment`; /*!50001 DROP VIEW IF EXISTS `workerDepartment`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerDepartment` AS SELECT 1 AS `workerFk`, 1 AS `departmentFk` */; @@ -40731,7 +40772,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerDisableExcluded`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerDisableExcluded` ( `workerFk` int(10) unsigned NOT NULL, `dated` date DEFAULT NULL, @@ -40746,7 +40787,7 @@ CREATE TABLE `workerDisableExcluded` ( DROP TABLE IF EXISTS `workerDistributionCategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerDistributionCategory` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -40768,7 +40809,7 @@ CREATE TABLE `workerDistributionCategory` ( DROP TABLE IF EXISTS `workerDms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerDms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned DEFAULT NULL, @@ -40791,7 +40832,7 @@ CREATE TABLE `workerDms` ( DROP TABLE IF EXISTS `workerEmergencyBoss`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerEmergencyBoss` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -40806,7 +40847,7 @@ CREATE TABLE `workerEmergencyBoss` ( DROP TABLE IF EXISTS `workerHourPrice`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerHourPrice` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dated` date NOT NULL, @@ -40823,7 +40864,7 @@ CREATE TABLE `workerHourPrice` ( DROP TABLE IF EXISTS `workerIncome`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerIncome` ( `id` int(11) NOT NULL AUTO_INCREMENT, `debit` decimal(10,2) NOT NULL DEFAULT 0.00, @@ -40846,7 +40887,7 @@ CREATE TABLE `workerIncome` ( DROP TABLE IF EXISTS `workerIrpf`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerIrpf` ( `workerFk` int(10) unsigned NOT NULL, `spouseNif` varchar(45) DEFAULT NULL, @@ -40873,7 +40914,7 @@ CREATE TABLE `workerIrpf` ( DROP TABLE IF EXISTS `workerJourney`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerJourney` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned NOT NULL, @@ -40910,7 +40951,7 @@ CREATE TABLE `workerJourney` ( DROP TABLE IF EXISTS `workerLabour`; /*!50001 DROP VIEW IF EXISTS `workerLabour`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerLabour` AS SELECT 1 AS `businessFk`, 1 AS `workerFk`, @@ -40927,7 +40968,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `originFk` int(10) unsigned DEFAULT NULL, @@ -40956,7 +40997,7 @@ CREATE TABLE `workerLog` ( DROP TABLE IF EXISTS `workerMana`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerMana` ( `workerFk` int(10) unsigned NOT NULL, `size` int(11) NOT NULL DEFAULT 300, @@ -40975,7 +41016,7 @@ CREATE TABLE `workerMana` ( DROP TABLE IF EXISTS `workerManaExcluded`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerManaExcluded` ( `workerFk` int(10) unsigned NOT NULL, PRIMARY KEY (`workerFk`), @@ -40990,7 +41031,7 @@ CREATE TABLE `workerManaExcluded` ( DROP TABLE IF EXISTS `workerMedia`; /*!50001 DROP VIEW IF EXISTS `workerMedia`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerMedia` AS SELECT 1 AS `workerFk`, 1 AS `mediaValue` */; @@ -41002,7 +41043,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerMistake`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerMistake` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned NOT NULL, @@ -41022,7 +41063,7 @@ CREATE TABLE `workerMistake` ( DROP TABLE IF EXISTS `workerMistakeType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerMistakeType` ( `code` varchar(10) NOT NULL, `description` varchar(45) NOT NULL, @@ -41036,7 +41077,7 @@ CREATE TABLE `workerMistakeType` ( DROP TABLE IF EXISTS `workerObservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerObservation` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned DEFAULT NULL, @@ -41057,7 +41098,7 @@ CREATE TABLE `workerObservation` ( DROP TABLE IF EXISTS `workerRelatives`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerRelatives` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -41080,7 +41121,7 @@ CREATE TABLE `workerRelatives` ( DROP TABLE IF EXISTS `workerShelving`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerShelving` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -41104,7 +41145,7 @@ CREATE TABLE `workerShelving` ( DROP TABLE IF EXISTS `workerSpeedExpedition`; /*!50001 DROP VIEW IF EXISTS `workerSpeedExpedition`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerSpeedExpedition` AS SELECT 1 AS `ticketFk`, 1 AS `litros`, @@ -41122,7 +41163,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerSpeedSaleTracking`; /*!50001 DROP VIEW IF EXISTS `workerSpeedSaleTracking`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerSpeedSaleTracking` AS SELECT 1 AS `warehouseFk`, 1 AS `state`, @@ -41141,7 +41182,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerTeam`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTeam` ( `id` int(11) NOT NULL AUTO_INCREMENT, `team` int(11) NOT NULL, @@ -41160,7 +41201,7 @@ CREATE TABLE `workerTeam` ( DROP TABLE IF EXISTS `workerTeamCollegues`; /*!50001 DROP VIEW IF EXISTS `workerTeamCollegues`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerTeamCollegues` AS SELECT 1 AS `workerFk`, 1 AS `collegueFk` */; @@ -41172,7 +41213,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerTimeControl`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControl` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) unsigned NOT NULL, @@ -41200,7 +41241,7 @@ CREATE TABLE `workerTimeControl` ( DROP TABLE IF EXISTS `workerTimeControlConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlConfig` ( `id` int(10) unsigned NOT NULL, `dayBreak` int(11) NOT NULL, @@ -41240,7 +41281,7 @@ CREATE TABLE `workerTimeControlConfig` ( DROP TABLE IF EXISTS `workerTimeControlError`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlError` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `code` char(35) NOT NULL, @@ -41256,7 +41297,7 @@ CREATE TABLE `workerTimeControlError` ( DROP TABLE IF EXISTS `workerTimeControlLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlLog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userFk` int(10) DEFAULT NULL, @@ -41272,7 +41313,7 @@ CREATE TABLE `workerTimeControlLog` ( DROP TABLE IF EXISTS `workerTimeControlMail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlMail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `workerFk` int(10) unsigned NOT NULL, @@ -41295,7 +41336,7 @@ CREATE TABLE `workerTimeControlMail` ( DROP TABLE IF EXISTS `workerTimeControlParams__`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlParams__` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dayBreak` int(11) NOT NULL, @@ -41321,7 +41362,7 @@ CREATE TABLE `workerTimeControlParams__` ( DROP TABLE IF EXISTS `workerTimeControlPin`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlPin` ( `workerFk` int(10) unsigned NOT NULL, `pin` varchar(255) NOT NULL, @@ -41336,7 +41377,7 @@ CREATE TABLE `workerTimeControlPin` ( DROP TABLE IF EXISTS `workerTimeControlSchedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workerTimeControlSchedule` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time` time DEFAULT NULL, @@ -41352,7 +41393,7 @@ CREATE TABLE `workerTimeControlSchedule` ( DROP TABLE IF EXISTS `workerTimeControlUserInfo`; /*!50001 DROP VIEW IF EXISTS `workerTimeControlUserInfo`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerTimeControlUserInfo` AS SELECT 1 AS `userFk`, 1 AS `name`, @@ -41370,7 +41411,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerTimeJourneyNG`; /*!50001 DROP VIEW IF EXISTS `workerTimeJourneyNG`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerTimeJourneyNG` AS SELECT 1 AS `userFk`, 1 AS `dated`, @@ -41387,7 +41428,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workerWithoutTractor`; /*!50001 DROP VIEW IF EXISTS `workerWithoutTractor`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `workerWithoutTractor` AS SELECT 1 AS `workerFk`, 1 AS `Trabajador`, @@ -41401,7 +41442,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `workingHours`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `workingHours` ( `id` int(11) NOT NULL AUTO_INCREMENT, `timeIn` datetime NOT NULL, @@ -41419,7 +41460,7 @@ CREATE TABLE `workingHours` ( DROP TABLE IF EXISTS `zipConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zipConfig` ( `id` int(10) unsigned NOT NULL, `maxSize` int(11) DEFAULT NULL COMMENT 'in MegaBytes', @@ -41434,7 +41475,7 @@ CREATE TABLE `zipConfig` ( DROP TABLE IF EXISTS `zone`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zone` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, @@ -41470,7 +41511,7 @@ CREATE TABLE `zone` ( DROP TABLE IF EXISTS `zoneAgencyMode`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneAgencyMode` ( `id` int(11) NOT NULL AUTO_INCREMENT, `agencyModeFk` int(11) NOT NULL, @@ -41489,7 +41530,7 @@ CREATE TABLE `zoneAgencyMode` ( DROP TABLE IF EXISTS `zoneClosure`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneClosure` ( `zoneFk` int(11) NOT NULL, `dated` date NOT NULL, @@ -41504,7 +41545,7 @@ CREATE TABLE `zoneClosure` ( DROP TABLE IF EXISTS `zoneConfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneConfig` ( `id` int(10) unsigned NOT NULL, `scope` int(10) unsigned NOT NULL, @@ -41524,7 +41565,7 @@ CREATE TABLE `zoneConfig` ( DROP TABLE IF EXISTS `zoneEstimatedDelivery`; /*!50001 DROP VIEW IF EXISTS `zoneEstimatedDelivery`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `zoneEstimatedDelivery` AS SELECT 1 AS `zoneFk`, 1 AS `zoneClosureHour`, @@ -41541,7 +41582,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `zoneEvent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneEvent` ( `id` int(11) NOT NULL AUTO_INCREMENT, `zoneFk` int(11) NOT NULL, @@ -41572,7 +41613,7 @@ CREATE TABLE `zoneEvent` ( DROP TABLE IF EXISTS `zoneExclusion`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneExclusion` ( `id` int(11) NOT NULL AUTO_INCREMENT, `zoneFk` int(11) NOT NULL, @@ -41595,7 +41636,7 @@ CREATE TABLE `zoneExclusion` ( DROP TABLE IF EXISTS `zoneExclusionGeo`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneExclusionGeo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `zoneExclusionFk` int(11) NOT NULL, @@ -41614,7 +41655,7 @@ CREATE TABLE `zoneExclusionGeo` ( DROP TABLE IF EXISTS `zoneFilter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneFilter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `zoneFk` int(11) NOT NULL, @@ -41634,7 +41675,7 @@ CREATE TABLE `zoneFilter` ( DROP TABLE IF EXISTS `zoneGeo`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneGeo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` set('country','province','town','postCode','autonomy') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, @@ -41659,7 +41700,7 @@ CREATE TABLE `zoneGeo` ( DROP TABLE IF EXISTS `zoneGeoRecalc`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneGeoRecalc` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `isChanged` tinyint(4) NOT NULL, @@ -41673,7 +41714,7 @@ CREATE TABLE `zoneGeoRecalc` ( DROP TABLE IF EXISTS `zoneIncluded`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneIncluded` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `zoneFk` int(11) NOT NULL, @@ -41696,7 +41737,7 @@ CREATE TABLE `zoneIncluded` ( DROP TABLE IF EXISTS `zoneItemType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneItemType` ( `id` int(11) NOT NULL AUTO_INCREMENT, `zoneFk` int(11) NOT NULL, @@ -41715,7 +41756,7 @@ CREATE TABLE `zoneItemType` ( DROP TABLE IF EXISTS `zoneLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneLog` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `originFk` int(11) DEFAULT NULL, @@ -41744,7 +41785,7 @@ CREATE TABLE `zoneLog` ( DROP TABLE IF EXISTS `zoneWarehouse`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zoneWarehouse` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `zoneFk` int(11) NOT NULL, @@ -49076,13 +49117,15 @@ BEGIN * @return tmp.ticketComponentPrice */ DECLARE vAvailableCalc INT; - DECLARE vAvailableNoRaidsCalc INT; + DECLARE vAvailabled DATETIME; + DECLARE vDone BOOL; + DECLARE vHour INT; DECLARE vShipped DATE; DECLARE vWarehouseFk SMALLINT; DECLARE vZoneFk INT; - DECLARE vDone BOOL; + DECLARE cTravelTree CURSOR FOR - SELECT zoneFk, warehouseFk, shipped FROM tmp.zoneGetShipped; + SELECT zoneFk, warehouseFk, shipped, `hour` FROM tmp.zoneGetShipped; DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE; @@ -49123,14 +49166,15 @@ BEGIN OPEN cTravelTree; l: LOOP SET vDone = FALSE; - FETCH cTravelTree INTO vZoneFk, vWarehouseFk, vShipped; + FETCH cTravelTree INTO vZoneFk, vWarehouseFk, vShipped, vHour; + + SET vAvailabled = vShipped + INTERVAL HOUR(vHour) HOUR; IF vDone THEN LEAVE l; END IF; - - CALL `cache`.available_refresh(vAvailableCalc, FALSE, vWarehouseFk, vShipped); - CALL `cache`.availableNoRaids_refresh(vAvailableNoRaidsCalc, FALSE, vWarehouseFk, vShipped); + + CALL `cache`.available_refresh(vAvailableCalc, FALSE, vWarehouseFk, vAvailabled); CALL buy_getUltimate(NULL, vWarehouseFk, vShipped); INSERT INTO tmp.ticketLot (warehouseFk, itemFk, available, buyFk, zoneFk) @@ -49140,31 +49184,10 @@ BEGIN bu.buyFk, vZoneFk FROM `cache`.available a - LEFT JOIN cache.availableNoRaids anr ON anr.item_id = a.item_id - AND anr.calc_id = vAvailableNoRaidsCalc JOIN tmp.item i ON i.itemFk = a.item_id JOIN item it ON it.id = i.itemFk JOIN `zone` z ON z.id = vZoneFk LEFT JOIN tmp.buyUltimate bu ON bu.itemFk = a.item_id - LEFT JOIN edi.supplyResponse sr ON sr.ID = it.supplyResponseFk - LEFT JOIN edi.VMPSettings v ON v.VMPID = sr.vmpID - LEFT JOIN edi.marketPlace mp ON mp.id = sr.MarketPlaceID - LEFT JOIN (SELECT isVNHSupplier, isEarlyBird, TRUE AS itemAllowed - FROM addressFilter af - JOIN (SELECT ad.provinceFk, p.countryFk, ad.isLogifloraAllowed - FROM address ad - JOIN province p ON p.id = ad.provinceFk - WHERE ad.id = vAddressFk - ) sub2 ON sub2.provinceFk <=> IFNULL(af.provinceFk, sub2.provinceFk) - AND sub2.countryFk <=> IFNULL(af.countryFk, sub2.countryFk) - AND sub2.isLogifloraAllowed <=> IFNULL(af.isLogifloraAllowed, sub2.isLogifloraAllowed) - WHERE vWarehouseFk = af.warehouseFk - AND (vShipped < af.beforeDated - OR ISNULL(af.beforeDated) - OR vShipped > af.afterDated - OR ISNULL(af.afterDated)) - ) sub ON sub.isVNHSupplier = v.isVNHSupplier - AND (sub.isEarlyBird = mp.isEarlyBird OR ISNULL(sub.isEarlyBird)) JOIN agencyMode am ON am.id = vAgencyModeFk JOIN agency ag ON ag.id = am.agencyFk JOIN itemType itt ON itt.id = it.typeFk @@ -49179,9 +49202,26 @@ BEGIN LEFT JOIN agencyModeItemType ait ON ait.agencyModeFk = vAgencyModeFk AND ait.itemTypeFk = itt.id + LEFT JOIN ( + SELECT i.id + FROM item i + JOIN priceDelta pd + ON pd.itemTypeFk = i.typeFk + AND (pd.minSize IS NULL OR pd.minSize <= i.`size`) + AND (pd.maxSize IS NULL OR pd.maxSize >= i.`size`) + AND (pd.inkFk IS NULL OR pd.inkFk = i.inkFk) + AND (pd.originFk IS NULL OR pd.originFk = i.originFk) + AND (pd.producerFk IS NULL OR pd.producerFk = i.producerFk) + AND (pd.warehouseFk IS NULL OR pd.warehouseFk = vWarehouseFk) + LEFT JOIN zoneGeo zg ON zg.id = pd.zoneGeoFk + LEFT JOIN zoneGeo zg2 ON zg2.id = address_getGeo(vAddressFk) + WHERE (pd.fromDated IS NULL OR pd.fromDated <= vShipped) + AND (pd.toDated IS NULL OR pd.toDated >= vShipped) + AND (pd.zoneGeoFk IS NULL OR zg2.lft BETWEEN zg.lft AND zg.rgt) + AND pd.isHidden + GROUP BY i.id) pd ON pd.id = i.itemFk WHERE a.calc_id = vAvailableCalc AND a.available > 0 - AND (sub.itemAllowed OR NOT it.isFloramondo OR anr.available > 0) AND (ag.isAnyVolumeAllowed OR NOT itt.isUnconventionalSize) AND (it.`size` IS NULL OR IF(itc.isReclining, @@ -49189,7 +49229,8 @@ BEGIN it.size <= z.itemMaxSize OR z.itemMaxSize IS NULL)) AND cit.id IS NULL AND zit.id IS NULL - AND ait.id IS NULL; + AND ait.id IS NULL + AND pd.id IS NULL; DROP TEMPORARY TABLE tmp.buyUltimate; @@ -52575,9 +52616,11 @@ BEGIN OR (NOT s.isPreparable AND NOT s.isPrintable) OR pb.collectionH IS NOT NULL OR pb.collectionV IS NOT NULL + OR pb.collectionA IS NOT NULL OR pb.collectionN IS NOT NULL - OR (NOT pb.H AND pb.V > 0 AND vItemPackingTypeFk = 'H') + OR (NOT pb.H AND pb.V + pb.A > 0 AND vItemPackingTypeFk = 'H') OR (NOT pb.V AND vItemPackingTypeFk = 'V') + OR (NOT pb.A AND vItemPackingTypeFk = 'A') OR (pc.isPreviousPreparationRequired AND pb.previousWithoutParking) OR LENGTH(pb.problem) OR pb.lines > vLinesLimit @@ -58784,15 +58827,18 @@ BEGIN DECLARE vSpainCountryFk INT; DECLARE vOldBookNumber INT; DECLARE vFiscalYear INT; + DECLARE vSerial VARCHAR(2); + DECLARE vRef VARCHAR(25); SELECT id INTO vSpainCountryFk FROM country WHERE `code` = 'ES'; - SELECT ASIEN - INTO vOldBookNumber - FROM XDiario x - JOIN invoiceOut io ON io.id = vInvoice - WHERE x.SERIE = io.serial - AND x.FACTURA = RIGHT(io.ref, LENGTH(io.ref) - 1) + SELECT serial, RIGHT(ref, LENGTH(ref) - LENGTH(serial)) INTO vSerial, vRef + FROM invoiceOut + WHERE id = vInvoice; + + SELECT ASIEN INTO vOldBookNumber + FROM XDiario + WHERE SERIE = vSerial AND FACTURA = vRef LIMIT 1; DELETE @@ -58805,7 +58851,7 @@ BEGIN io.amount totalAmount, CONCAT('n/fra ', io.ref) simpleConcept, CONCAT('n/fra ', io.ref, ' ', c.name) Concept, - io.serial SERIE, + vSerial SERIE, io.issued FECHA_EX, io.issued FECHA_OP, io.issued FECHA, @@ -58817,21 +58863,21 @@ BEGIN io.siiTypeInvoiceOutFk TIPOFACT, ic.cplusRectificationTypeFk TIPORECTIF, io.companyFk, - RIGHT(io.ref, LENGTH(io.ref) - 1) invoiceNum, + vRef invoiceNum, IF(c.countryFk = vSpainCountryFk, vSpainCountryFk, IF(ct.isUeeMember,2,4)) TERIDNIF, CONCAT(IF(ct.isUeeMember AND c.countryFk <> vSpainCountryFk,ct.code,''),c.fi) TERNIF, c.socialName TERNOM, ior.serial SERIE_RT, - RIGHT(ior.ref, LENGTH(ior.ref) - 1) FACTU_RT, + RIGHT(ior.ref, LENGTH(ior.ref) - LENGTH(ior.serial)) FACTU_RT, ior.issued FECHA_RT, IF(ior.id,TRUE,FALSE) RECTIFICA FROM invoiceOut io - JOIN invoiceOutSerial ios ON ios.code = io.serial + JOIN invoiceOutSerial ios ON ios.code = vSerial JOIN client c ON c.id = io.clientFk JOIN country ct ON ct.id = c.countryFk LEFT JOIN invoiceCorrection ic ON ic.correctingFk = io.id LEFT JOIN invoiceOut ior ON ior.id = ic.correctedFk - WHERE io.id = vInvoice; + WHERE io.id = vInvoice; SELECT YEAR(FECHA) INTO vFiscalYear FROM rs LIMIT 1; CALL ledger_nextTx(vFiscalYear, vBookNumber); @@ -58862,7 +58908,7 @@ BEGIN SUBCTA, CONTRA, EUROHABER, - CONCEPTO, + CONCEPTO, FECHA_EX, FECHA_OP, empresa_id) @@ -58879,8 +58925,8 @@ BEGIN JOIN invoiceOutExpense ioe WHERE ioe.invoiceOutFk = vInvoice; - SELECT GROUP_CONCAT(`name` SEPARATOR ',') - INTO vExpenseConcept + SELECT GROUP_CONCAT(`name` SEPARATOR ',') + INTO vExpenseConcept FROM expense e JOIN invoiceOutExpense ioe ON ioe.expenseFk = e.id WHERE ioe.invoiceOutFk = vInvoice; @@ -58948,13 +58994,13 @@ BEGIN rs.TIPORECTIF, rs.companyFk FROM rs - JOIN invoiceOutTax iot + JOIN invoiceOutTax iot JOIN pgc ON pgc.code = iot.pgcFk LEFT JOIN pgcEqu pe ON pe.vatFk = iot.pgcFk -- --------------- Comprueba si la linea es de iva con rec.equiv. asociado - LEFT JOIN pgc pgce ON pgce.code = pe.equFk + LEFT JOIN pgc pgce ON pgce.code = pe.equFk LEFT JOIN pgcEqu pe2 ON pe2.equFk = iot.pgcFk -- --------------- Comprueba si la linea es de rec.equiv. WHERE iot.invoiceOutFk = vInvoice; - + UPDATE invoiceOut SET booked = util.VN_CURDATE() WHERE id = vInvoice; @@ -63809,7 +63855,7 @@ BEGIN WITH entriesIn AS ( SELECT 'entry' originType, e.id originId, - tr.landed shipped, + IFNULL(tr.availabled, tr.landed) shipped, b.quantity `in`, NULL `out`, st.alertLevel , @@ -63833,7 +63879,7 @@ BEGIN OR (util.VN_CURDATE() AND tr.isReceived), 'DELIVERED', 'FREE') - WHERE tr.landed >= vDateInventory + WHERE IFNULL(tr.availabled, tr.landed) >= vDateInventory AND tr.warehouseInFk = vWarehouseFk AND (s.id <> vSupplierInventoryFk OR vDated IS NULL) AND b.itemFk = vItemFk @@ -63878,7 +63924,7 @@ BEGIN ), sales AS ( WITH itemSales AS ( - SELECT DATE(t.shipped) shipped, + SELECT DATE(t.shipped) + INTERVAL HOUR(z.`hour`) HOUR shipped, s.quantity, st2.alertLevel, st2.name, @@ -63893,6 +63939,7 @@ BEGIN cb.claimFk FROM vn.sale s JOIN vn.ticket t ON t.id = s.ticketFk + JOIN vn.`zone` z ON z.id = t.zoneFk LEFT JOIN vn.ticketState ts ON ts.ticketFk = t.id LEFT JOIN vn.state st ON st.code = ts.code JOIN vn.client c ON c.id = t.clientFk @@ -63968,14 +64015,15 @@ BEGIN SELECT * FROM sales UNION ALL SELECT * FROM orders - ORDER BY shipped, + ORDER BY DATE(shipped), (inventorySupplierFk = entityId) DESC, alertLevel DESC, isTicket, `order` DESC, isPicked DESC, `in` DESC, - `out` DESC; + `out` DESC, + shipped; IF vDated IS NULL THEN SET @a := 0; @@ -63984,7 +64032,7 @@ BEGIN SELECT t.originType, t.originId, - DATE(@shipped:= t.shipped) shipped, + @shipped:= t.shipped shipped, t.alertLevel, t.stateName, t.reference, @@ -64160,11 +64208,22 @@ DELIMITER ; /*!50003 SET character_set_results = utf8mb4 */ ; /*!50003 SET collation_connection = utf8mb4_unicode_ci */ ; DELIMITER ;; -CREATE DEFINER=`vn`@`localhost` PROCEDURE `item_getLack`(IN vForce BOOLEAN, IN vDays INT) +CREATE DEFINER=`vn`@`localhost` PROCEDURE `item_getLack`( + vSelf INT, + vForce BOOLEAN, + vDays INT, + vLongname VARCHAR(255), + vProducerName VARCHAR(255), + vColor VARCHAR(255), + vSize INT, + vOrigen INT, + vLack INT, + vWarehouseFk INT + ) BEGIN /** * Calcula una tabla con el máximo negativo visible para cada producto y almacen - * + * * @param vForce Fuerza el recalculo del stock * @param vDays Numero de dias a considerar **/ @@ -64174,33 +64233,33 @@ BEGIN CALL item_getMinETD(); CALL item_zoneClosure(); - SELECT i.id itemFk, + SELECT i.id itemFk, i.longName, w.id warehouseFk, - p.`name` producer, + p.`name` producer, i.`size`, i.category, - w.name warehouse, + w.name warehouse, SUM(IFNULL(sub.amount,0)) lack, i.inkFk, IFNULL(im.timed, util.midnight()) timed, IFNULL(izc.timed, util.midnight()) minTimed, o.name originFk - FROM (SELECT item_id, - warehouse_id, + FROM (SELECT item_id, + warehouse_id, amount FROM cache.stock WHERE amount > 0 UNION ALL - SELECT itemFk, - warehouseFk, + SELECT itemFk, + warehouseFk, amount FROM tmp.itemMinacum ) sub JOIN warehouse w ON w.id = sub.warehouse_id JOIN item i ON i.id = sub.item_id - LEFT JOIN producer p ON p.id = i.producerFk - JOIN itemType it ON it.id = i.typeFk + LEFT JOIN producer p ON p.id = i.producerFk + JOIN itemType it ON it.id = i.typeFk JOIN itemCategory ic ON ic.id = it.categoryFk LEFT JOIN tmp.itemMinETD im ON im.itemFk = i.id LEFT JOIN tmp.itemZoneClosure izc ON izc.itemFk = i.id @@ -64208,6 +64267,14 @@ BEGIN WHERE w.isForTicket AND ic.display AND it.code != 'GEN' + AND (vSelf IS NULL OR i.id = vSelf) + AND (vLongname IS NULL OR i.name = vLongname) + AND (vProducerName IS NULL OR p.`name` LIKE CONCAT('%', vProducerName, '%')) + AND (vColor IS NULL OR vColor = i.inkFk) + AND (vSize IS NULL OR vSize = i.`size`) + AND (vOrigen IS NULL OR vOrigen = w.id) + AND (vLack IS NULL OR vLack = sub.amount) + AND (vWarehouseFk IS NULL OR vWarehouseFk = w.id) GROUP BY i.id, w.id HAVING lack < 0; @@ -64465,21 +64532,26 @@ BEGIN AND it.priority = vPriority LEFT JOIN vn.tag t ON t.id = it.tagFk LEFT JOIN vn.buy b ON b.id = bu.buyFk + LEFT JOIN vn.itemShelvingStock iss ON iss.itemFk = i.id + AND iss.warehouseFk = vWarehouseFk + LEFT JOIN vn.ink ink ON ink.id = i.tag5 JOIN itemTags its WHERE a.available > 0 AND (i.typeFk = its.typeFk OR NOT vShowType) AND i.id <> vSelf - ORDER BY `counter` DESC, - (t.name = its.name) DESC, - (it.value = its.value) DESC, - (i.tag5 = its.tag5) DESC, - match5 DESC, - (i.tag6 = its.tag6) DESC, - match6 DESC, - (i.tag7 = its.tag7) DESC, - match7 DESC, - (i.tag8 = its.tag8) DESC, - match8 DESC + ORDER BY (a.available > 0) DESC, + `counter` DESC, + (t.name = its.name) DESC, + (it.value = its.value) DESC, + (i.tag5 = its.tag5) DESC, + (ink.`showOrder`) DESC, + match5 DESC, + (i.tag6 = its.tag6) DESC, + match6 DESC, + (i.tag7 = its.tag7) DESC, + match7 DESC, + (i.tag8 = its.tag8) DESC, + match8 DESC LIMIT 100; DROP TEMPORARY TABLE tmp.buyUltimate; @@ -64535,8 +64607,8 @@ BEGIN SELECT iei.itemFk, iei.quantity FROM itemEntryIn iei JOIN item i ON i.id = iei.itemFk - WHERE iei.landed >= util.VN_CURDATE() - AND iei.landed < vDated + WHERE IFNULL(iei.availabled, iei.landed) >= util.VN_CURDATE() + AND IFNULL(iei.availabled, iei.landed) < vDated AND iei.warehouseInFk = vWarehouseFk AND (vItemFk IS NULL OR iei.itemFk = vItemFk) UNION ALL @@ -66734,18 +66806,20 @@ DELIMITER ; /*!50003 SET character_set_results = utf8mb4 */ ; /*!50003 SET collation_connection = utf8mb4_unicode_ci */ ; DELIMITER ;; -CREATE DEFINER=`vn`@`localhost` PROCEDURE `prepareTicketList`(vStartingDate DATETIME, vEndingDate DATETIME) +CREATE DEFINER=`vn`@`localhost` PROCEDURE `prepareTicketList`( + vStartingDate DATETIME, + vEndingDate DATETIME +) BEGIN DROP TEMPORARY TABLE IF EXISTS tmp.productionTicket; CREATE TEMPORARY TABLE tmp.productionTicket (PRIMARY KEY (ticketFk)) ENGINE = MEMORY - SELECT t.id ticketFk, t.clientFk + SELECT t.id ticketFk FROM ticket t JOIN alertLevel al ON al.code = 'DELIVERED' LEFT JOIN ticketState ts ON ts.ticketFk = t.id JOIN client c ON c.id = t.clientFk - WHERE c.typeFk IN ('normal','handMaking','internalUse') AND ( t.shipped BETWEEN util.VN_CURDATE() AND vEndingDate @@ -66908,24 +66982,31 @@ proc: BEGIN CALL prepareTicketList(util.yesterday(), vEndingDate); CREATE OR REPLACE TEMPORARY TABLE tmp.ticket - SELECT * FROM tmp.productionTicket; - - CALL prepareClientList(); - - CREATE OR REPLACE TEMPORARY TABLE tmp.sale_getProblems (INDEX (ticketFk)) ENGINE = MEMORY - SELECT tt.ticketFk, tt.clientFk, t.warehouseFk, t.shipped - FROM tmp.productionTicket tt - JOIN ticket t ON t.id = tt.ticketFk; + SELECT ticketFk + FROM tmp.productionTicket; CALL ticket_getProblems(vIsTodayRelative); CREATE OR REPLACE TEMPORARY TABLE tmp.productionBuffer (PRIMARY KEY(ticketFk), previaParking VARCHAR(255)) ENGINE = MEMORY + WITH saleProblemsDescription AS( + SELECT s.ticketFk, + LEFT(CONCAT('F: ', GROUP_CONCAT(CONCAT(i.id, ' ', i.longName) SEPARATOR ', ')), 250) itemShortage, + LEFT(CONCAT('R: ', GROUP_CONCAT(CONCAT(i2.id, ' ', i2.longName) SEPARATOR ', ')), 250) itemDelay, + LEFT(CONCAT('I: ', GROUP_CONCAT(CONCAT(i3.id, ' ', i3.longName) SEPARATOR ', ')), 250) itemLost + FROM tmp.saleProblems sp + JOIN vn.sale s ON s.id = sp.saleFk + LEFT JOIN vn.item i ON i.id = s.itemFk AND sp.hasItemShortage + LEFT JOIN vn.item i2 ON i2.id = s.itemFk AND sp.hasItemDelay + LEFT JOIN vn.item i3 ON i3.id = s.itemFk AND sp.hasItemLost + WHERE hasItemShortage OR hasItemDelay OR hasItemLost + GROUP BY s.ticketFk + ) SELECT tt.ticketFk, - tt.clientFk, + t.clientFk, t.warehouseFk, t.nickname, t.packages, @@ -66943,7 +67024,17 @@ proc: BEGIN 0 `lines`, CAST( 0 AS DECIMAL(5,2)) m3, CAST( 0 AS DECIMAL(5,2)) preparationRate, - "" problem, + TRIM(CAST(CONCAT( IFNULL(sp.itemShortage, ''), + IFNULL(sp.itemDelay, ''), + IFNULL(sp.itemLost, ''), + IF(tpr.isFreezed, ' CONGELADO',''), + IF(tpr.hasHighRisk, ' RIESGO',''), + IF(tpr.hasTicketRequest, ' COD 100',''), + IF(tpr.isTaxDataChecked, ' FICHA INCOMPLETA', ''), + IF(tpr.hasComponentLack, ' COMPONENTES', ''), + IF(HOUR(util.VN_NOW()) < IF(HOUR(t.shipped), HOUR(t.shipped), COALESCE(HOUR(zc.hour),HOUR(z.hour))) + AND tpr.isTooLittle, ' PEQUEÑO', '') + ) AS char(255))) problem, IFNULL(tls.state,2) state, w.code workerCode, DATE(t.shipped) shipped, @@ -66958,34 +67049,37 @@ proc: BEGIN pk.code parking, 0 H, 0 V, + 0 A, 0 N, st.isOk, ag.isOwn, rm.bufferFk FROM tmp.productionTicket tt - JOIN ticket t ON tt.ticketFk = t.id - JOIN alertLevel al ON al.code = 'FREE' - LEFT JOIN ticketStateToday tst ON tst.ticketFk = t.id - LEFT JOIN `state` st ON st.id = tst.state - LEFT JOIN client c ON c.id = t.clientFk - LEFT JOIN worker wk ON wk.id = c.salesPersonFk - JOIN address a ON a.id = t.addressFk - LEFT JOIN province p ON p.id = a.provinceFk - JOIN agencyMode am ON am.id = t.agencyModeFk - JOIN deliveryMethod dm ON dm.id = am.deliveryMethodFk - JOIN agency ag ON ag.id = am.agencyFk - LEFT JOIN ticketState tls ON tls.ticketFk = tt.ticketFk - LEFT JOIN ticketLastUpdated tlu ON tlu.ticketFk = tt.ticketFk - LEFT JOIN worker w ON w.id = tls.userFk - LEFT JOIN routesMonitor rm ON rm.routeFk = t.routeFk - LEFT JOIN `zone` z ON z.id = t.zoneFk - LEFT JOIN zoneClosure zc ON zc.zoneFk = t.zoneFk + JOIN vn.ticket t ON tt.ticketFk = t.id + JOIN vn.alertLevel al ON al.code = 'FREE' + LEFT JOIN vn.ticketStateToday tst ON tst.ticketFk = t.id + LEFT JOIN vn.`state` st ON st.id = tst.state + LEFT JOIN vn.client c ON c.id = t.clientFk + LEFT JOIN vn.worker wk ON wk.id = c.salesPersonFk + JOIN vn.address a ON a.id = t.addressFk + LEFT JOIN vn.province p ON p.id = a.provinceFk + JOIN vn.agencyMode am ON am.id = t.agencyModeFk + JOIN vn.deliveryMethod dm ON dm.id = am.deliveryMethodFk + JOIN vn.agency ag ON ag.id = am.agencyFk + LEFT JOIN vn.ticketState tls ON tls.ticketFk = tt.ticketFk + LEFT JOIN vn.ticketLastUpdated tlu ON tlu.ticketFk = tt.ticketFk + LEFT JOIN vn.worker w ON w.id = tls.userFk + LEFT JOIN vn.routesMonitor rm ON rm.routeFk = t.routeFk + LEFT JOIN vn.`zone` z ON z.id = t.zoneFk + LEFT JOIN vn.zoneClosure zc ON zc.zoneFk = t.zoneFk AND DATE(t.shipped) = zc.dated - LEFT JOIN ticketParking tp ON tp.ticketFk = t.id - LEFT JOIN parking pk ON pk.id = tp.parkingFk + LEFT JOIN vn.ticketParking tp ON tp.ticketFk = t.id + LEFT JOIN vn.parking pk ON pk.id = tp.parkingFk + LEFT JOIN tmp.ticketProblems tpr ON tpr.ticketFk = tt.ticketFk + LEFT JOIN saleProblemsDescription sp ON sp.ticketFk = tt.ticketFk WHERE t.warehouseFk = vWarehouseFk AND dm.code IN ('AGENCY', 'DELIVERY', 'PICKUP'); - + UPDATE tmp.productionBuffer pb JOIN ( SELECT pb.ticketFk, GROUP_CONCAT(p.code) previaParking @@ -67003,21 +67097,9 @@ proc: BEGIN CHANGE COLUMN `problem` `problem` VARCHAR(255), ADD COLUMN `collectionH` INT, ADD COLUMN `collectionV` INT, + ADD COLUMN `collectionA` INT, ADD COLUMN `collectionN` INT; - UPDATE tmp.productionBuffer pb - JOIN tmp.ticket_problems tp ON tp.ticketFk = pb.ticketFk - SET pb.problem = TRIM(CAST(CONCAT( IFNULL(tp.itemShortage, ''), - IFNULL(tp.itemDelay, ''), - IFNULL(tp.itemLost, ''), - IF(tp.isFreezed, ' CONGELADO',''), - IF(tp.hasHighRisk, ' RIESGO',''), - IF(tp.hasTicketRequest, ' COD 100',''), - IF(tp.isTaxDataChecked, '',' FICHA INCOMPLETA'), - IF(tp.hasComponentLack, ' COMPONENTES', ''), - IF(HOUR(util.VN_NOW()) < pb.HH AND tp.isTooLittle, ' PEQUEÑO', '') - ) AS char(255))); - -- Clientes Nuevos o Recuperados UPDATE tmp.productionBuffer pb LEFT JOIN bs.clientNewBorn cnb ON cnb.clientFk = pb.clientFk @@ -67056,12 +67138,14 @@ proc: BEGIN ENGINE = MEMORY SELECT ticketFk, SUM(sub.H) H, - SUM(sub.V) V, + SUM(sub.V) V, + SUM(sub.A) A, SUM(sub.N) N FROM ( SELECT t.ticketFk, SUM(i.itemPackingTypeFk = 'H') H, SUM(i.itemPackingTypeFk = 'V') V, + SUM(i.itemPackingTypeFk = 'A') A, SUM(i.itemPackingTypeFk IS NULL) N FROM tmp.productionTicket t JOIN sale s ON s.ticketFk = t.ticketFk @@ -67074,6 +67158,7 @@ proc: BEGIN JOIN tItemPackingType ti ON ti.ticketFk = pb.ticketFk SET pb.H = ti.H, pb.V = ti.V, + pb.A = ti.A, pb.N = ti.N; -- Colecciones segun tipo de encajado @@ -67081,6 +67166,7 @@ proc: BEGIN JOIN ticketCollection tc ON pb.ticketFk = tc.ticketFk SET pb.collectionH = IF(pb.H, tc.collectionFk, NULL), pb.collectionV = IF(pb.V, tc.collectionFk, NULL), + pb.collectionA = IF(pb.A, tc.collectionFk, NULL), pb.collectionN = IF(pb.N, tc.collectionFk, NULL); -- Previa pendiente @@ -67162,7 +67248,8 @@ proc: BEGIN DROP TEMPORARY TABLE tmp.productionTicket, tmp.ticket, - tmp.ticket_problems, + tmp.ticketProblems, + tmp.saleProblems, tmp.ticketWithPrevia, tItemShelvingStock, tItemPackingType; @@ -69772,87 +69859,43 @@ DELIMITER ; /*!50003 SET collation_connection = utf8mb4_unicode_ci */ ; DELIMITER ;; CREATE DEFINER=`vn`@`localhost` PROCEDURE `sale_getProblems`( - vIsTodayRelative tinyint(1) + vIsTodayRelative TINYINT(1) ) BEGIN /** - * Calcula los problemas de cada venta para un conjunto de tickets. + * Calcula los problemas para un conjunto de sale * * @param vIsTodayRelative Indica si se calcula el disponible como si todo saliera hoy - * @table tmp.sale_getProblems(ticketFk, clientFk, warehouseFk, shipped) Tickets a calcular - * @return tmp.sale_problems + * @table tmp.sale(saleFk) Identificadores de los sale a calcular + * @return tmp.saleProblems */ - DECLARE vWarehouseFk INT; + DECLARE vWarehouseFk INT; DECLARE vDate DATE; - DECLARE vAvailableCache INT; + DECLARE vAvailableCache INT; DECLARE vVisibleCache INT; DECLARE vDone BOOL; - DECLARE vCursor CURSOR FOR - SELECT DISTINCT warehouseFk, IF(vIsTodayRelative, util.VN_CURDATE(), DATE(shipped)) - FROM tmp.sale_getProblems - WHERE shipped BETWEEN util.VN_CURDATE() - AND util.dayEnd(util.VN_CURDATE() + INTERVAL IF(vIsTodayRelative, 9.9, 1.9) DAY); + DECLARE vCursor CURSOR FOR + SELECT t.warehouseFk, IF(vIsTodayRelative, util.VN_CURDATE(), DATE(t.shipped)) dated + FROM tmp.sale ts + JOIN sale s ON s.id = ts.saleFk + JOIN ticket t ON t.id = s.ticketFk + WHERE t.shipped BETWEEN util.VN_CURDATE() + AND util.dayEnd(util.VN_CURDATE() + INTERVAL IF(vIsTodayRelative, 9.9, 1.9) DAY) + GROUP BY warehouseFk, dated; DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE; - CREATE OR REPLACE TEMPORARY TABLE tmp.sale_problems ( - ticketFk INT(11), + CREATE OR REPLACE TEMPORARY TABLE tmp.saleProblems( saleFk INT(11), - isFreezed INTEGER(1) DEFAULT 0, - risk DECIMAL(10,1) DEFAULT 0, - hasRisk TINYINT(1) DEFAULT 0, - hasHighRisk TINYINT(1) DEFAULT 0, - hasTicketRequest INTEGER(1) DEFAULT 0, - itemShortage VARCHAR(255), - isTaxDataChecked INTEGER(1) DEFAULT 1, - itemDelay VARCHAR(255), - itemLost VARCHAR(255), - hasComponentLack INTEGER(1), - hasRounding VARCHAR(255), - isTooLittle BOOL DEFAULT FALSE, - isVip BOOL DEFAULT FALSE, - PRIMARY KEY (ticketFk, saleFk) - ); -- No memory + hasItemShortage BOOL DEFAULT FALSE, + hasItemLost BOOL DEFAULT FALSE, + hasComponentLack BOOL DEFAULT FALSE, + hasItemDelay BOOL DEFAULT FALSE, + hasRounding BOOL DEFAULT FALSE, + PRIMARY KEY (saleFk) + ) ENGINE = MEMORY; - INSERT INTO tmp.sale_problems(ticketFk, - saleFk, - isFreezed, - risk, - hasRisk, - hasHighRisk, - hasTicketRequest, - isTaxDataChecked, - hasComponentLack, - isTooLittle) - SELECT sgp.ticketFk, - s.id, - IF(FIND_IN_SET('isFreezed', t.problem), TRUE, FALSE) isFreezed, - t.risk, - IF(FIND_IN_SET('hasRisk', t.problem), TRUE, FALSE) hasRisk, - IF(FIND_IN_SET('hasHighRisk', t.problem), TRUE, FALSE) hasHighRisk, - IF(FIND_IN_SET('hasTicketRequest', t.problem), TRUE, FALSE) hasTicketRequest, - IF(FIND_IN_SET('isTaxDataChecked', t.problem), FALSE, TRUE) isTaxDataChecked, - IF(FIND_IN_SET('hasComponentLack', s.problem), TRUE, FALSE) hasComponentLack, - IF(FIND_IN_SET('isTooLittle', t.problem) - AND util.VN_NOW() < (util.VN_CURDATE() + INTERVAL HOUR(zc.`hour`) HOUR) + INTERVAL MINUTE(zc.`hour`) MINUTE, - TRUE, FALSE) isTooLittle - FROM tmp.sale_getProblems sgp - JOIN ticket t ON t.id = sgp.ticketFk - LEFT JOIN sale s ON s.ticketFk = t.id - LEFT JOIN item i ON i.id = s.itemFk - LEFT JOIN zoneClosure zc ON zc.zoneFk = t.zoneFk - AND zc.dated = util.VN_CURDATE() - WHERE s.problem <> '' OR t.problem <> '' OR t.risk - GROUP BY t.id, s.id; - - INSERT INTO tmp.sale_problems(ticketFk, isVip) - SELECT sgp.ticketFk, TRUE - FROM tmp.sale_getProblems sgp - JOIN client c ON c.id = sgp.clientFk - WHERE c.businessTypeFk = 'VIP' - ON DUPLICATE KEY UPDATE isVIP = TRUE; - - CREATE OR REPLACE TEMPORARY TABLE tItemShelvingStock_byWarehouse + CREATE OR REPLACE TEMPORARY TABLE tItemShelving (INDEX (itemFk, warehouseFk)) ENGINE = MEMORY SELECT ish.itemFk itemFk, @@ -69864,6 +69907,14 @@ BEGIN JOIN sector s ON s.id = p.sectorFk GROUP BY ish.itemFk, s.warehouseFk; + -- Componentes: Algún componente obligatorio no se ha calcualdo + INSERT INTO tmp.saleProblems(saleFk, hasComponentLack) + SELECT s.id, TRUE + FROM tmp.sale ts + JOIN sale s ON s.id = ts.saleFk + WHERE FIND_IN_SET('hasComponentLack', s.problem) + GROUP BY s.id; + -- Disponible, faltas, inventario y retrasos OPEN vCursor; l: LOOP @@ -69876,131 +69927,113 @@ BEGIN -- Disponible: no va a haber suficiente producto para preparar todos los pedidos CALL cache.available_refresh(vAvailableCache, FALSE, vWarehouseFk, vDate); - - -- Faltas: visible, disponible y ubicado son menores que la cantidad vendida + + -- Faltas: visible, disponible y ubicado son menores que la cantidad vendida CALL cache.visible_refresh(vVisibleCache, FALSE, vWarehouseFk); - INSERT INTO tmp.sale_problems(ticketFk, itemShortage, saleFk) - SELECT ticketFk, problem, saleFk - FROM ( - SELECT sgp.ticketFk, - LEFT(CONCAT('F: ', GROUP_CONCAT(i.id, ' ', i.longName, ' ')), 250) problem, - s.id saleFk - FROM tmp.sale_getProblems sgp - JOIN ticket t ON t.id = sgp.ticketFk - JOIN sale s ON s.ticketFk = t.id - JOIN item i ON i.id = s.itemFk - JOIN itemType it ON it.id = i.typeFk - JOIN itemCategory ic ON ic.id = it.categoryFk - LEFT JOIN cache.visible v ON v.item_id = i.id - AND v.calc_id = vVisibleCache - LEFT JOIN cache.available av ON av.item_id = i.id - AND av.calc_id = vAvailableCache - LEFT JOIN tItemShelvingStock_byWarehouse issw ON issw.itemFk = i.id - AND issw.warehouseFk = t.warehouseFk - WHERE IFNULL(v.visible, 0) < s.quantity - AND IFNULL(av.available, 0) < 0 - AND IFNULL(issw.visible, 0) < s.quantity - AND NOT s.isPicked - AND NOT s.reserved - AND ic.merchandise - AND IF(vIsTodayRelative, TRUE, DATE(t.shipped) = vDate) - AND NOT i.generic - AND util.VN_CURDATE() = vDate - AND t.warehouseFk = vWarehouseFk - GROUP BY sgp.ticketFk) sub - ON DUPLICATE KEY UPDATE itemShortage = sub.problem, saleFk = sub.saleFk; - - -- Inventario: Visible suficiente, pero ubicado menor a la cantidad vendida - INSERT INTO tmp.sale_problems(ticketFk, itemLost, saleFk) - SELECT ticketFk, problem, saleFk - FROM ( - SELECT sgp.ticketFk, - LEFT(GROUP_CONCAT('I: ', i.id, ' ', i.longName, ' '), 250) problem, - s.id saleFk - FROM tmp.sale_getProblems sgp - JOIN ticket t ON t.id = sgp.ticketFk - JOIN sale s ON s.ticketFk = t.id - JOIN item i ON i.id = s.itemFk - JOIN itemType it ON it.id = i.typeFk - JOIN itemCategory ic ON ic.id = it.categoryFk - LEFT JOIN cache.visible v ON v.item_id = s.itemFk - AND v.calc_id = vVisibleCache - LEFT JOIN tItemShelvingStock_byWarehouse issw ON issw.itemFk = i.id - AND issw.warehouseFk = t.warehouseFk - WHERE IFNULL(v.visible, 0) >= s.quantity - AND IFNULL(issw.visible, 0) < s.quantity - AND s.quantity > 0 - AND NOT s.isPicked - AND NOT s.reserved - AND ic.merchandise - AND IF(vIsTodayRelative, TRUE, DATE(t.shipped) = vDate) - AND NOT i.generic - AND util.VN_CURDATE() = vDate - AND t.warehouseFk = vWarehouseFk - GROUP BY sgp.ticketFk - ) sub - ON DUPLICATE KEY UPDATE itemLost = sub.problem, saleFk = sub.saleFk; - - -- Retraso: Disponible suficiente, pero no visible ni ubicado - INSERT INTO tmp.sale_problems(ticketFk, itemDelay, saleFk) - SELECT ticketFk, problem, saleFk - FROM ( - SELECT sgp.ticketFk, - LEFT(GROUP_CONCAT('R: ', i.id, ' ', i.longName, ' '), 250) problem, - s.id saleFk - FROM tmp.sale_getProblems sgp - JOIN ticket t ON t.id = sgp.ticketFk - JOIN sale s ON s.ticketFk = t.id - JOIN item i ON i.id = s.itemFk - JOIN itemType it ON it.id = i.typeFk - JOIN itemCategory ic ON ic.id = it.categoryFk - LEFT JOIN cache.visible v ON v.item_id = s.itemFk - AND v.calc_id = vVisibleCache - LEFT JOIN cache.available av ON av.item_id = i.id - AND av.calc_id = vAvailableCache - LEFT JOIN tItemShelvingStock_byWarehouse issw ON issw.itemFk = i.id - AND issw.warehouseFk = t.warehouseFk - WHERE IFNULL(v.visible, 0) < s.quantity - AND IFNULL(av.available, 0) >= 0 - AND IFNULL(issw.visible, 0) < s.quantity - AND s.quantity > 0 - AND NOT s.isPicked - AND NOT s.reserved - AND ic.merchandise - AND IF(vIsTodayRelative, TRUE, DATE(t.shipped) = vDate) - AND NOT i.generic - AND util.VN_CURDATE() = vDate - AND t.warehouseFk = vWarehouseFk - GROUP BY sgp.ticketFk - ) sub - ON DUPLICATE KEY UPDATE itemDelay = sub.problem, saleFk = sub.saleFk; + INSERT INTO tmp.saleProblems(saleFk, hasItemShortage) + SELECT s.id, TRUE + FROM tmp.sale ts + JOIN sale s ON s.id = ts.saleFk + JOIN ticket t ON t.id = s.ticketFk + JOIN item i ON i.id = s.itemFk + JOIN itemType it ON it.id = i.typeFk + JOIN itemCategory ic ON ic.id = it.categoryFk + LEFT JOIN cache.visible v ON v.item_id = i.id + AND v.calc_id = vVisibleCache + LEFT JOIN cache.available av ON av.item_id = i.id + AND av.calc_id = vAvailableCache + LEFT JOIN tItemShelving tis ON tis.itemFk = i.id + AND tis.warehouseFk = t.warehouseFk + WHERE (s.quantity > v.visible OR (s.quantity > 0 AND v.visible IS NULL)) + AND (av.available < 0 OR av.available IS NULL) + AND (s.quantity > tis.visible OR tis.visible IS NULL) + AND NOT s.isPicked + AND NOT s.reserved + AND ic.merchandise + AND IF(vIsTodayRelative, TRUE, DATE(t.shipped) = vDate) + AND NOT i.generic + AND util.VN_CURDATE() = vDate + AND t.warehouseFk = vWarehouseFk + GROUP BY s.id + ON DUPLICATE KEY UPDATE hasItemShortage = TRUE; - -- Redondeo: cantidad incorrecta con respecto al grouping + -- Inventario: Visible suficiente, pero ubicado menor a la cantidad vendida + INSERT INTO tmp.saleProblems(saleFk, hasItemLost) + SELECT s.id, TRUE + FROM tmp.sale ts + JOIN sale s ON s.id = ts.saleFk + JOIN ticket t ON t.id = s.ticketFk + JOIN item i ON i.id = s.itemFk + JOIN itemType it ON it.id = i.typeFk + JOIN itemCategory ic ON ic.id = it.categoryFk + LEFT JOIN cache.visible v ON v.item_id = s.itemFk + AND v.calc_id = vVisibleCache + LEFT JOIN tItemShelving tis ON tis.itemFk = i.id + AND tis.warehouseFk = t.warehouseFk + WHERE (v.visible >= s.quantity OR v.visible IS NULL) + AND (s.quantity > tis.visible AND tis.visible IS NOT NULL) + AND s.quantity > 0 + AND NOT s.isPicked + AND NOT s.reserved + AND ic.merchandise + AND IF(vIsTodayRelative, TRUE, DATE(t.shipped) = vDate) + AND NOT i.generic + AND util.VN_CURDATE() = vDate + AND t.warehouseFk = vWarehouseFk + GROUP BY s.id + ON DUPLICATE KEY UPDATE hasItemLost = TRUE; + + -- Retraso: Disponible suficiente, pero no visible ni ubicado + INSERT INTO tmp.saleProblems(saleFk, hasItemDelay) + SELECT s.id, TRUE + FROM tmp.sale ts + JOIN sale s ON s.id = ts.saleFk + JOIN ticket t ON t.id = s.ticketFk + JOIN item i ON i.id = s.itemFk + JOIN itemType it ON it.id = i.typeFk + JOIN itemCategory ic ON ic.id = it.categoryFk + LEFT JOIN cache.visible v ON v.item_id = s.itemFk + AND v.calc_id = vVisibleCache + LEFT JOIN cache.available av ON av.item_id = i.id + AND av.calc_id = vAvailableCache + LEFT JOIN tItemShelving tis ON tis.itemFk = i.id + AND tis.warehouseFk = t.warehouseFk + WHERE (s.quantity > v.visible AND v.visible IS NULL) + AND (av.available >= 0 OR av.available IS NULL) + AND (s.quantity > tis.visible AND tis.visible IS NOT NULL) + AND s.quantity > 0 + AND NOT s.isPicked + AND NOT s.reserved + AND ic.merchandise + AND IF(vIsTodayRelative, TRUE, DATE(t.shipped) = vDate) + AND NOT i.generic + AND util.VN_CURDATE() = vDate + AND t.warehouseFk = vWarehouseFk + GROUP BY s.id + ON DUPLICATE KEY UPDATE hasItemDelay = TRUE; + + -- Redondeo: cantidad incorrecta con respecto al grouping CALL buy_getUltimate(NULL, vWarehouseFk, vDate); - INSERT INTO tmp.sale_problems(ticketFk, hasRounding, saleFk) - SELECT ticketFk, problem, saleFk - FROM ( - SELECT sgp.ticketFk, - s.id saleFk, - LEFT(GROUP_CONCAT('RE: ',i.id, ' ', IFNULL(i.longName,'') SEPARATOR ', '), 250) problem - FROM tmp.sale_getProblems sgp - JOIN ticket t ON t.id = sgp.ticketFk - AND t.warehouseFk = vWarehouseFk - JOIN sale s ON s.ticketFk = sgp.ticketFk - JOIN item i ON i.id = s.itemFk - JOIN tmp.buyUltimate bu ON bu.itemFk = s.itemFk - JOIN buy b ON b.id = bu.buyFk - WHERE MOD(s.quantity, b.`grouping`) - GROUP BY sgp.ticketFk - )sub - ON DUPLICATE KEY UPDATE hasRounding = sub.problem, saleFk = sub.saleFk; + + INSERT INTO tmp.saleProblems(saleFk, hasRounding) + SELECT s.id, TRUE + FROM tmp.sale ts + JOIN sale s ON s.id = ts.saleFk + JOIN ticket t ON t.id = s.ticketFk + AND t.warehouseFk = vWarehouseFk + JOIN item i ON i.id = s.itemFk + JOIN tmp.buyUltimate bu ON bu.itemFk = s.itemFk + JOIN buy b ON b.id = bu.buyFk + WHERE MOD(s.quantity, b.`grouping`) + GROUP BY s.id + ON DUPLICATE KEY UPDATE hasRounding = TRUE; DROP TEMPORARY TABLE tmp.buyUltimate; END LOOP; CLOSE vCursor; - DROP TEMPORARY TABLE tItemShelvingStock_byWarehouse; + DROP TEMPORARY TABLE tItemShelving; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -70017,28 +70050,28 @@ DELIMITER ; /*!50003 SET character_set_results = utf8mb4 */ ; /*!50003 SET collation_connection = utf8mb4_unicode_ci */ ; DELIMITER ;; -CREATE DEFINER=`vn`@`localhost` PROCEDURE `sale_getProblemsByTicket`(IN vTicketFk INT, IN vIsTodayRelative TINYINT(1)) +CREATE DEFINER=`vn`@`localhost` PROCEDURE `sale_getProblemsByTicket`( + IN vTicketFk INT, + IN vIsTodayRelative TINYINT(1) +) BEGIN /** - * Calcula los problemas de cada venta - * para un conjunto de tickets. + * Calcula los problemas de cada venta para un tickets. * * @return Problems result */ - CREATE OR REPLACE TEMPORARY TABLE tmp.sale_getProblems - (INDEX (ticketFk)) - ENGINE = MEMORY - SELECT t.id ticketFk, t.clientFk, t.warehouseFk, t.shipped - FROM ticket t - WHERE t.id = vTicketFk; + CREATE OR REPLACE TEMPORARY TABLE tmp.sale + (INDEX (saleFk)) + ENGINE = MEMORY + SELECT id saleFk FROM sale WHERE ticketFk = vTicketFk; - CALL sale_getProblems(vIsTodayRelative); + CALL sale_getProblems(vIsTodayRelative); - SELECT * FROM tmp.sale_problems; + SELECT * FROM tmp.saleProblems; - DROP TEMPORARY TABLE - tmp.sale_getProblems, - tmp.sale_problems; + DROP TEMPORARY TABLE + tmp.saleProblems, + tmp.sale; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -70244,9 +70277,11 @@ BEGIN DECLARE vNewSaleFk INT; DECLARE vFinalPrice DECIMAL(10,2); + + DECLARE vIsRequiredTx BOOL DEFAULT NOT @@in_transaction; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN - ROLLBACK; + CALL util.tx_rollback(vIsRequiredTx); RESIGNAL; END; @@ -70281,7 +70316,7 @@ BEGIN WHERE tmp.itemFk = vNewItemFk AND tmp.WarehouseFk = vWarehouseFk; DROP TEMPORARY TABLE tmp.buyUltimate; - + IF vGroupingMode = 'packing' AND vPacking > 0 THEN SET vRoundQuantity = vPacking; END IF; @@ -70348,7 +70383,7 @@ BEGIN VALUES(vItemFk, vNewItemFk, 1) ON DUPLICATE KEY UPDATE counter = counter + 1; - COMMIT; + CALL util.tx_commit(vIsRequiredTx); END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -73787,11 +73822,16 @@ BEGIN st.code stateCode, sub2.code futureStateCode, st.classColor, - sub2.classColor futureClassColor + sub2.classColor futureClassColor, + am.id agencyFk, + am.name agency, + sub2.agencyModeFk futureAgencyFk, + sub2.agencyMode futureAgency FROM vn.saleVolume sv JOIN vn.sale s ON s.id = sv.saleFk JOIN vn.item i ON i.id = s.itemFk JOIN vn.ticket t ON t.id = sv.ticketFk + JOIN vn.agencyMode am ON am.id = t.agencyModeFk JOIN vn.address a ON a.id = t.addressFk JOIN vn.province p ON p.id = a.provinceFk JOIN vn.country c ON c.id = p.countryFk @@ -73811,16 +73851,19 @@ BEGIN st.name state, st.code, st.classColor, + am.id agencyModeFk, + am.name agencyMode, GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) iptd - FROM vn.ticket t - JOIN vn.ticketState ts ON ts.ticketFk = t.id - JOIN vn.state st ON st.id = ts.stateFk - JOIN vn.sale s ON s.ticketFk = t.id - JOIN vn.item i ON i.id = s.itemFk - WHERE t.shipped BETWEEN vFutureDated - AND util.dayend(vFutureDated) - AND t.warehouseFk = vWarehouseFk - GROUP BY t.id + FROM vn.ticket t + JOIN vn.agencyMode am ON am.id = t.agencyModeFk + JOIN vn.ticketState ts ON ts.ticketFk = t.id + JOIN vn.state st ON st.id = ts.stateFk + JOIN vn.sale s ON s.ticketFk = t.id + JOIN vn.item i ON i.id = s.itemFk + WHERE t.shipped BETWEEN vFutureDated + AND util.dayend(vFutureDated) + AND t.warehouseFk = vWarehouseFk + GROUP BY t.id ) sub GROUP BY sub.addressFk ) sub2 ON sub2.addressFk = t.addressFk AND t.id != sub2.id @@ -75031,55 +75074,111 @@ DELIMITER ; /*!50003 SET collation_connection = utf8mb4_unicode_ci */ ; DELIMITER ;; CREATE DEFINER=`vn`@`localhost` PROCEDURE `ticket_getProblems`( - vIsTodayRelative tinyint(1) + vIsTodayRelative TINYINT(1) ) BEGIN /** * Calcula los problemas para un conjunto de tickets. - * Agrupados por ticket * - * @table tmp.sale_getProblems(ticketFk, clientFk, warehouseFk, shipped) Identificadores de los tickets a calcular - * @return tmp.ticket_problems + * @param vIsTodayRelative Indica si se calcula el disponible como si todo saliera hoy + * @table tmp.ticket(ticketFk) Identificadores de los tickets a calcular + * @return tmp.ticketProblems, tmp.saleProblems */ + CREATE OR REPLACE TEMPORARY TABLE tmp.sale ( + saleFk INT(11), + PRIMARY KEY (saleFk) + ) ENGINE = MEMORY + SELECT DISTINCT s.id saleFk + FROM tmp.ticket tt + JOIN ticket t ON t.id = tt.ticketFk + JOIN sale s ON s.ticketFk = t.id + GROUP BY s.id; + CALL sale_getProblems(vIsTodayRelative); - CREATE OR REPLACE TEMPORARY TABLE tmp.ticket_problems - (PRIMARY KEY (ticketFk)) - ENGINE = MEMORY - SELECT ticketFk, - MAX(isFreezed) isFreezed, - MAX(risk) risk, - MAX(hasRisk) hasRisk, - MAX(hasHighRisk) hasHighRisk, - MAX(hasTicketRequest) hasTicketRequest, - MAX(itemShortage) itemShortage, - MIN(isTaxDataChecked) isTaxDataChecked, - MAX(hasComponentLack) hasComponentLack, - MAX(isTooLittle) isTooLittle, - MAX(itemDelay) itemDelay, - MAX(hasRounding) hasRounding, - MAX(itemLost) itemLost, - MAX(isVip) isVip, + CREATE OR REPLACE TEMPORARY TABLE tmp.ticketProblems ( + ticketFk INT(11), + isFreezed BOOL DEFAULT FALSE, + risk DECIMAL(10,1) DEFAULT 0, + hasRisk BOOL DEFAULT FALSE, + hasHighRisk BOOL DEFAULT FALSE, + hasTicketRequest BOOL DEFAULT FALSE, + isTaxDataChecked BOOL DEFAULT FALSE, + isTooLittle BOOL DEFAULT FALSE, + isVip BOOL DEFAULT FALSE, + hasItemShortage BOOL DEFAULT FALSE, + hasItemDelay BOOL DEFAULT FALSE, + hasItemLost BOOL DEFAULT FALSE, + hasComponentLack BOOL DEFAULT FALSE, + hasRounding BOOL DEFAULT FALSE, + PRIMARY KEY (ticketFk) + ) ENGINE = MEMORY + WITH hasItemShortage AS( + SELECT s.ticketFk + FROM tmp.saleProblems sp + JOIN vn.sale s ON s.id = sp.saleFk + WHERE sp.hasItemShortage + GROUP BY s.ticketFk + ),hasItemLost AS( + SELECT s.ticketFk + FROM tmp.saleProblems sp + JOIN vn.sale s ON s.id = sp.saleFk + WHERE sp.hasItemLost + GROUP BY s.ticketFk + ),hasRounding AS( + SELECT s.ticketFk + FROM tmp.saleProblems sp + JOIN vn.sale s ON s.id = sp.saleFk + WHERE sp.hasRounding + GROUP BY s.ticketFk + ), hasItemDelay AS( + SELECT s.ticketFk + FROM tmp.saleProblems sp + JOIN vn.sale s ON s.id = sp.saleFk + WHERE sp.hasItemDelay + GROUP BY s.ticketFk + ), hasComponentLack AS( + SELECT s.ticketFk + FROM tmp.saleProblems sp + JOIN vn.sale s ON s.id = sp.saleFk + WHERE sp.hasComponentLack + GROUP BY s.ticketFk + )SELECT tt.ticketFk, + FIND_IN_SET('isFreezed', t.problem) > 0 isFreezed, + t.risk, + FIND_IN_SET('hasRisk', t.problem) > 0 hasRisk, + FIND_IN_SET('hasHighRisk', t.problem) > 0 hasHighRisk, + FIND_IN_SET('hasTicketRequest', t.problem) > 0 hasTicketRequest, + FIND_IN_SET('isTaxDataChecked', t.problem) > 0 isTaxDataChecked, + FIND_IN_SET('isTooLittle', t.problem) > 0 + AND util.VN_NOW() < (util.VN_CURDATE() + + INTERVAL HOUR(zc.`hour`) HOUR) + + INTERVAL MINUTE(zc.`hour`) MINUTE isTooLittle, + c.businessTypeFk = 'VIP' isVip, + NOT (his.ticketFk IS NULL) hasItemShortage, + NOT (hid.ticketFk IS NULL) hasItemDelay, + NOT (hil.ticketFk IS NULL) hasItemLost, + NOT (hcl.ticketFk IS NULL) hasComponentLack, + NOT (hr.ticketFk IS NULL) hasRounding, 0 totalProblems - FROM tmp.sale_problems - GROUP BY ticketFk; + FROM tmp.ticket tt + JOIN vn.ticket t ON t.id = tt.ticketFk + JOIN vn.client c ON c.id = t.clientFk + LEFT JOIN hasItemShortage his ON his.ticketFk = t.id + LEFT JOIN hasItemLost hil ON hil.ticketFk = t.id + LEFT JOIN hasRounding hr ON hr.ticketFk = t.id + LEFT JOIN hasItemDelay hid ON hid.ticketFk = t.id + LEFT JOIN hasComponentLack hcl ON hcl.ticketFk = t.id + LEFT JOIN vn.zoneClosure zc ON zc.zoneFk = t.zoneFk + AND zc.dated = util.VN_CURDATE() + GROUP BY t.id; - UPDATE tmp.ticket_problems - SET totalProblems = ( - (isFreezed) + - (hasHighRisk) + - (hasTicketRequest) + - (!isTaxDataChecked) + - (hasComponentLack) + - (itemDelay IS NOT NULL) + - (isTooLittle) + - (itemLost IS NOT NULL) + - (hasRounding IS NOT NULL) + - (itemShortage IS NOT NULL) + - (isVip) - ); + UPDATE tmp.ticketProblems + SET totalProblems = isFreezed + hasHighRisk + hasTicketRequest + + isTaxDataChecked + hasComponentLack + hasItemDelay + + isTooLittle + hasItemLost + hasRounding + hasItemShortage + isVip; - DROP TEMPORARY TABLE tmp.sale_problems; + DROP TEMPORARY TABLE tmp.sale; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -82995,7 +83094,7 @@ USE `vn2008`; DROP TABLE IF EXISTS `Agencias`; /*!50001 DROP VIEW IF EXISTS `Agencias`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Agencias` AS SELECT 1 AS `Id_Agencia`, 1 AS `Agencia`, @@ -83019,7 +83118,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Articles`; /*!50001 DROP VIEW IF EXISTS `Articles`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Articles` AS SELECT 1 AS `Id_Article`, 1 AS `Article`, @@ -83077,7 +83176,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Bancos`; /*!50001 DROP VIEW IF EXISTS `Bancos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Bancos` AS SELECT 1 AS `Id_Banco`, 1 AS `Banco`, @@ -83095,7 +83194,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Bancos_poliza`; /*!50001 DROP VIEW IF EXISTS `Bancos_poliza`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Bancos_poliza` AS SELECT 1 AS `poliza_id`, 1 AS `referencia`, @@ -83125,7 +83224,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Cajas`; /*!50001 DROP VIEW IF EXISTS `Cajas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Cajas` AS SELECT 1 AS `Id_Caja`, 1 AS `Cajafecha`, @@ -83156,7 +83255,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Clientes`; /*!50001 DROP VIEW IF EXISTS `Clientes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Clientes` AS SELECT 1 AS `id_cliente`, 1 AS `cliente`, @@ -83209,7 +83308,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Comparativa`; /*!50001 DROP VIEW IF EXISTS `Comparativa`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Comparativa` AS SELECT 1 AS `Periodo`, 1 AS `Id_Article`, @@ -83226,7 +83325,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Compres`; /*!50001 DROP VIEW IF EXISTS `Compres`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Compres` AS SELECT 1 AS `Id_Compra`, 1 AS `Id_Entrada`, @@ -83265,7 +83364,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Consignatarios`; /*!50001 DROP VIEW IF EXISTS `Consignatarios`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Consignatarios` AS SELECT 1 AS `id_consigna`, 1 AS `Id_cliente`, @@ -83291,7 +83390,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Cubos`; /*!50001 DROP VIEW IF EXISTS `Cubos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Cubos` AS SELECT 1 AS `Id_Cubo`, 1 AS `Volumen`, @@ -83321,7 +83420,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Cubos_Retorno`; /*!50001 DROP VIEW IF EXISTS `Cubos_Retorno`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Cubos_Retorno` AS SELECT 1 AS `idCubos_Retorno`, 1 AS `Soporte`, @@ -83336,7 +83435,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Entradas`; /*!50001 DROP VIEW IF EXISTS `Entradas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Entradas` AS SELECT 1 AS `Id_Entrada`, 1 AS `Id_Proveedor`, @@ -83371,7 +83470,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Entradas_orden`; /*!50001 DROP VIEW IF EXISTS `Entradas_orden`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Entradas_orden` AS SELECT 1 AS `Id_Entrada`, 1 AS `orden` */; @@ -83384,7 +83483,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Impresoras`; /*!50001 DROP VIEW IF EXISTS `Impresoras`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Impresoras` AS SELECT 1 AS `Id_impresora`, 1 AS `Ruta`, @@ -83400,7 +83499,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Monedas`; /*!50001 DROP VIEW IF EXISTS `Monedas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Monedas` AS SELECT 1 AS `Id_Moneda`, 1 AS `Moneda`, @@ -83415,7 +83514,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Movimientos`; /*!50001 DROP VIEW IF EXISTS `Movimientos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Movimientos` AS SELECT 1 AS `Id_Movimiento`, 1 AS `Id_Article`, @@ -83440,7 +83539,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Movimientos_componentes`; /*!50001 DROP VIEW IF EXISTS `Movimientos_componentes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Movimientos_componentes` AS SELECT 1 AS `Id_Movimiento`, 1 AS `Id_Componente`, @@ -83456,7 +83555,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Movimientos_mark`; /*!50001 DROP VIEW IF EXISTS `Movimientos_mark`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Movimientos_mark` AS SELECT 1 AS `Id_Movimiento`, 1 AS `valor`, @@ -83474,7 +83573,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Ordenes`; /*!50001 DROP VIEW IF EXISTS `Ordenes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Ordenes` AS SELECT 1 AS `Id_ORDEN`, 1 AS `ORDEN`, @@ -83503,7 +83602,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Origen`; /*!50001 DROP VIEW IF EXISTS `Origen`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Origen` AS SELECT 1 AS `id`, 1 AS `Abreviatura`, @@ -83519,7 +83618,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Pagares`; /*!50001 DROP VIEW IF EXISTS `Pagares`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Pagares` AS SELECT 1 AS `Id_Pagare`, 1 AS `Fechaemision`, @@ -83534,7 +83633,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Paises`; /*!50001 DROP VIEW IF EXISTS `Paises`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Paises` AS SELECT 1 AS `Id`, 1 AS `Pais`, @@ -83554,7 +83653,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `PreciosEspeciales`; /*!50001 DROP VIEW IF EXISTS `PreciosEspeciales`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `PreciosEspeciales` AS SELECT 1 AS `Id_PrecioEspecial`, 1 AS `Id_Cliente`, @@ -83569,7 +83668,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Proveedores`; /*!50001 DROP VIEW IF EXISTS `Proveedores`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Proveedores` AS SELECT 1 AS `Id_Proveedor`, 1 AS `Proveedor`, @@ -83610,7 +83709,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Proveedores_cargueras`; /*!50001 DROP VIEW IF EXISTS `Proveedores_cargueras`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Proveedores_cargueras` AS SELECT 1 AS `Id_Proveedor` */; SET character_set_client = @saved_cs_client; @@ -83622,7 +83721,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Proveedores_gestdoc`; /*!50001 DROP VIEW IF EXISTS `Proveedores_gestdoc`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Proveedores_gestdoc` AS SELECT 1 AS `Id_Proveedor`, 1 AS `gestdoc_id` */; @@ -83635,7 +83734,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Recibos`; /*!50001 DROP VIEW IF EXISTS `Recibos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Recibos` AS SELECT 1 AS `Id`, 1 AS `Id_Factura`, @@ -83656,7 +83755,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Remesas`; /*!50001 DROP VIEW IF EXISTS `Remesas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Remesas` AS SELECT 1 AS `Id_Remesa`, 1 AS `Fecha Remesa`, @@ -83671,7 +83770,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Rutas`; /*!50001 DROP VIEW IF EXISTS `Rutas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Rutas` AS SELECT 1 AS `Id_Ruta`, 1 AS `Id_Trabajador`, @@ -83697,7 +83796,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Splits`; /*!50001 DROP VIEW IF EXISTS `Splits`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Splits` AS SELECT 1 AS `Id_Split`, 1 AS `Id_Ticket`, @@ -83713,7 +83812,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Tickets`; /*!50001 DROP VIEW IF EXISTS `Tickets`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Tickets` AS SELECT 1 AS `Id_Ticket`, 1 AS `Id_Cliente`, @@ -83752,7 +83851,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Tickets_state`; /*!50001 DROP VIEW IF EXISTS `Tickets_state`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Tickets_state` AS SELECT 1 AS `Id_Ticket`, 1 AS `inter_id`, @@ -83766,7 +83865,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Tickets_turno`; /*!50001 DROP VIEW IF EXISTS `Tickets_turno`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Tickets_turno` AS SELECT 1 AS `Id_Ticket`, 1 AS `weekDay` */; @@ -83779,7 +83878,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Tintas`; /*!50001 DROP VIEW IF EXISTS `Tintas`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Tintas` AS SELECT 1 AS `Id_Tinta`, 1 AS `name`, @@ -83797,7 +83896,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Tipos`; /*!50001 DROP VIEW IF EXISTS `Tipos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Tipos` AS SELECT 1 AS `tipo_id`, 1 AS `Id_Tipo`, @@ -83821,7 +83920,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Trabajadores`; /*!50001 DROP VIEW IF EXISTS `Trabajadores`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Trabajadores` AS SELECT 1 AS `Id_Trabajador`, 1 AS `Nombre`, @@ -83844,7 +83943,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Tramos`; /*!50001 DROP VIEW IF EXISTS `Tramos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Tramos` AS SELECT 1 AS `id`, 1 AS `Tramo` */; @@ -83857,7 +83956,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `V_edi_item_track`; /*!50001 DROP VIEW IF EXISTS `V_edi_item_track`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `V_edi_item_track` AS SELECT 1 AS `item_id`, 1 AS `s1`, @@ -83883,7 +83982,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `Vehiculos_consumo`; /*!50001 DROP VIEW IF EXISTS `Vehiculos_consumo`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `Vehiculos_consumo` AS SELECT 1 AS `Vehiculos_consumo_id`, 1 AS `Id_Vehiculo`, @@ -83910,7 +84009,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `account_conciliacion`; /*!50001 DROP VIEW IF EXISTS `account_conciliacion`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `account_conciliacion` AS SELECT 1 AS `idaccount_conciliacion`, 1 AS `Id_Proveedores_account`, @@ -83930,7 +84029,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `account_detail`; /*!50001 DROP VIEW IF EXISTS `account_detail`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `account_detail` AS SELECT 1 AS `account_detail_id`, 1 AS `value`, @@ -83945,7 +84044,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `account_detail_type`; /*!50001 DROP VIEW IF EXISTS `account_detail_type`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `account_detail_type` AS SELECT 1 AS `account_detail_type_id`, 1 AS `description` */; @@ -83958,7 +84057,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `agency`; /*!50001 DROP VIEW IF EXISTS `agency`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `agency` AS SELECT 1 AS `agency_id`, 1 AS `name`, @@ -83974,7 +84073,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `airline`; /*!50001 DROP VIEW IF EXISTS `airline`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `airline` AS SELECT 1 AS `airline_id`, 1 AS `name` */; @@ -83987,7 +84086,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `airport`; /*!50001 DROP VIEW IF EXISTS `airport`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `airport` AS SELECT 1 AS `airport_id`, 1 AS `name` */; @@ -84000,7 +84099,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `albaran`; /*!50001 DROP VIEW IF EXISTS `albaran`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `albaran` AS SELECT 1 AS `albaran_id`, 1 AS `ref`, @@ -84025,7 +84124,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `albaran_gestdoc`; /*!50001 DROP VIEW IF EXISTS `albaran_gestdoc`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `albaran_gestdoc` AS SELECT 1 AS `gestdoc_id`, 1 AS `albaran_id` */; @@ -84038,7 +84137,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `albaran_state`; /*!50001 DROP VIEW IF EXISTS `albaran_state`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `albaran_state` AS SELECT 1 AS `albaran_state_id`, 1 AS `state` */; @@ -84051,7 +84150,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb`; /*!50001 DROP VIEW IF EXISTS `awb`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb` AS SELECT 1 AS `id`, 1 AS `codigo`, @@ -84092,7 +84191,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_component`; /*!50001 DROP VIEW IF EXISTS `awb_component`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_component` AS SELECT 1 AS `id`, 1 AS `awb_id`, @@ -84112,7 +84211,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_component_template`; /*!50001 DROP VIEW IF EXISTS `awb_component_template`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_component_template` AS SELECT 1 AS `awb_component_template_id`, 1 AS `carguera_id`, @@ -84137,7 +84236,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_component_type`; /*!50001 DROP VIEW IF EXISTS `awb_component_type`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_component_type` AS SELECT 1 AS `awb_component_type_id`, 1 AS `description`, @@ -84151,7 +84250,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_gestdoc`; /*!50001 DROP VIEW IF EXISTS `awb_gestdoc`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_gestdoc` AS SELECT 1 AS `awb_gestdoc_id`, 1 AS `awb_id`, @@ -84165,7 +84264,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_recibida`; /*!50001 DROP VIEW IF EXISTS `awb_recibida`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_recibida` AS SELECT 1 AS `awb_id`, 1 AS `recibida_id`, @@ -84179,7 +84278,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_role`; /*!50001 DROP VIEW IF EXISTS `awb_role`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_role` AS SELECT 1 AS `awb_role_id`, 1 AS `name` */; @@ -84192,7 +84291,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `awb_unit`; /*!50001 DROP VIEW IF EXISTS `awb_unit`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `awb_unit` AS SELECT 1 AS `awb_unit_id`, 1 AS `operation` */; @@ -84205,7 +84304,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `balance_nest_tree`; /*!50001 DROP VIEW IF EXISTS `balance_nest_tree`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `balance_nest_tree` AS SELECT 1 AS `lft`, 1 AS `rgt`, @@ -84222,7 +84321,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `barcodes`; /*!50001 DROP VIEW IF EXISTS `barcodes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `barcodes` AS SELECT 1 AS `id`, 1 AS `Id_Article`, @@ -84236,7 +84335,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `buySource`; /*!50001 DROP VIEW IF EXISTS `buySource`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buySource` AS SELECT 1 AS `Id_Entrada`, 1 AS `isPickedOff`, @@ -84301,7 +84400,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `buy_edi`; /*!50001 DROP VIEW IF EXISTS `buy_edi`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buy_edi` AS SELECT 1 AS `id`, 1 AS `entry_year`, @@ -84348,7 +84447,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `buy_edi_k012`; /*!50001 DROP VIEW IF EXISTS `buy_edi_k012`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buy_edi_k012` AS SELECT 1 AS `buy_edi_k012_id`, 1 AS `description` */; @@ -84361,7 +84460,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `buy_edi_k03`; /*!50001 DROP VIEW IF EXISTS `buy_edi_k03`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buy_edi_k03` AS SELECT 1 AS `buy_edi_k03_id`, 1 AS `description` */; @@ -84374,7 +84473,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `buy_edi_k04`; /*!50001 DROP VIEW IF EXISTS `buy_edi_k04`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `buy_edi_k04` AS SELECT 1 AS `buy_edi_k04_id`, 1 AS `description` */; @@ -84387,7 +84486,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cdr`; /*!50001 DROP VIEW IF EXISTS `cdr`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cdr` AS SELECT 1 AS `calldate`, 1 AS `clid`, @@ -84414,7 +84513,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `chanel`; /*!50001 DROP VIEW IF EXISTS `chanel`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `chanel` AS SELECT 1 AS `chanel_id`, 1 AS `name` */; @@ -84427,7 +84526,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_act`; /*!50001 DROP VIEW IF EXISTS `cl_act`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_act` AS SELECT 1 AS `id`, 1 AS `Id_Movimiento`, @@ -84444,7 +84543,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_cau`; /*!50001 DROP VIEW IF EXISTS `cl_cau`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_cau` AS SELECT 1 AS `id`, 1 AS `cl_main_id`, @@ -84463,7 +84562,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_con`; /*!50001 DROP VIEW IF EXISTS `cl_con`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_con` AS SELECT 1 AS `id`, 1 AS `consecuencia` */; @@ -84476,7 +84575,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_det`; /*!50001 DROP VIEW IF EXISTS `cl_det`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_det` AS SELECT 1 AS `id`, 1 AS `cl_main_id`, @@ -84491,7 +84590,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_main`; /*!50001 DROP VIEW IF EXISTS `cl_main`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_main` AS SELECT 1 AS `id`, 1 AS `Fecha`, @@ -84512,7 +84611,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_mot`; /*!50001 DROP VIEW IF EXISTS `cl_mot`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_mot` AS SELECT 1 AS `id`, 1 AS `motivo` */; @@ -84525,7 +84624,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_res`; /*!50001 DROP VIEW IF EXISTS `cl_res`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_res` AS SELECT 1 AS `id`, 1 AS `responsable`, @@ -84539,7 +84638,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `cl_sol`; /*!50001 DROP VIEW IF EXISTS `cl_sol`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `cl_sol` AS SELECT 1 AS `id`, 1 AS `solucion`, @@ -84553,7 +84652,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `config_host`; /*!50001 DROP VIEW IF EXISTS `config_host`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `config_host` AS SELECT 1 AS `config_host_id`, 1 AS `warehouse`, @@ -84571,7 +84670,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `consignatarios_observation`; /*!50001 DROP VIEW IF EXISTS `consignatarios_observation`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `consignatarios_observation` AS SELECT 1 AS `consignatarios_observation_id`, 1 AS `Id_Consigna`, @@ -84586,7 +84685,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `credit`; /*!50001 DROP VIEW IF EXISTS `credit`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `credit` AS SELECT 1 AS `id`, 1 AS `Id_Cliente`, @@ -84602,7 +84701,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `definitivo`; /*!50001 DROP VIEW IF EXISTS `definitivo`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `definitivo` AS SELECT 1 AS `definitivo_id`, 1 AS `empresa_id`, @@ -84618,7 +84717,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `edi_article`; /*!50001 DROP VIEW IF EXISTS `edi_article`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `edi_article` AS SELECT 1 AS `id`, 1 AS `product_name`, @@ -84637,7 +84736,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `edi_bucket`; /*!50001 DROP VIEW IF EXISTS `edi_bucket`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `edi_bucket` AS SELECT 1 AS `bucket_id`, 1 AS `bucket_type_id`, @@ -84657,7 +84756,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `edi_bucket_type`; /*!50001 DROP VIEW IF EXISTS `edi_bucket_type`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `edi_bucket_type` AS SELECT 1 AS `bucket_type_id`, 1 AS `description`, @@ -84673,7 +84772,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `edi_specie`; /*!50001 DROP VIEW IF EXISTS `edi_specie`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `edi_specie` AS SELECT 1 AS `specie_id`, 1 AS `genus_id`, @@ -84690,7 +84789,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `edi_supplier`; /*!50001 DROP VIEW IF EXISTS `edi_supplier`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `edi_supplier` AS SELECT 1 AS `supplier_id`, 1 AS `company_name` */; @@ -84703,7 +84802,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `empresa`; /*!50001 DROP VIEW IF EXISTS `empresa`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `empresa` AS SELECT 1 AS `id`, 1 AS `abbreviation`, @@ -84733,7 +84832,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `empresa_grupo`; /*!50001 DROP VIEW IF EXISTS `empresa_grupo`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `empresa_grupo` AS SELECT 1 AS `empresa_grupo_id`, 1 AS `grupo` */; @@ -84746,7 +84845,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `entrySource`; /*!50001 DROP VIEW IF EXISTS `entrySource`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `entrySource` AS SELECT 1 AS `gestdoc_id`, 1 AS `Id_Entrada`, @@ -84788,7 +84887,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `financialProductType`; /*!50001 DROP VIEW IF EXISTS `financialProductType`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `financialProductType` AS SELECT 1 AS `id`, 1 AS `description`, @@ -84802,7 +84901,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `flight`; /*!50001 DROP VIEW IF EXISTS `flight`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `flight` AS SELECT 1 AS `flight_id`, 1 AS `duration`, @@ -84820,7 +84919,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `gastos_resumen`; /*!50001 DROP VIEW IF EXISTS `gastos_resumen`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `gastos_resumen` AS SELECT 1 AS `id`, 1 AS `Id_Gasto`, @@ -84837,7 +84936,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `integra2`; /*!50001 DROP VIEW IF EXISTS `integra2`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `integra2` AS SELECT 1 AS `postal_code`, 1 AS `frequency`, @@ -84851,7 +84950,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `integra2_province`; /*!50001 DROP VIEW IF EXISTS `integra2_province`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `integra2_province` AS SELECT 1 AS `province_id`, 1 AS `franquicia` */; @@ -84864,7 +84963,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `mail`; /*!50001 DROP VIEW IF EXISTS `mail`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `mail` AS SELECT 1 AS `id`, 1 AS `senderFk`, @@ -84887,7 +84986,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `mandato`; /*!50001 DROP VIEW IF EXISTS `mandato`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `mandato` AS SELECT 1 AS `id`, 1 AS `Id_Cliente`, @@ -84905,7 +85004,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `mandato_tipo`; /*!50001 DROP VIEW IF EXISTS `mandato_tipo`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `mandato_tipo` AS SELECT 1 AS `idmandato_tipo`, 1 AS `Nombre` */; @@ -84918,7 +85017,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `pago`; /*!50001 DROP VIEW IF EXISTS `pago`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `pago` AS SELECT 1 AS `id`, 1 AS `fecha`, @@ -84943,7 +85042,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `pago_sdc`; /*!50001 DROP VIEW IF EXISTS `pago_sdc`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `pago_sdc` AS SELECT 1 AS `pago_sdc_id`, 1 AS `importe`, @@ -84966,7 +85065,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `pay_dem`; /*!50001 DROP VIEW IF EXISTS `pay_dem`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `pay_dem` AS SELECT 1 AS `id`, 1 AS `pay_dem` */; @@ -84979,7 +85078,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `pay_dem_det`; /*!50001 DROP VIEW IF EXISTS `pay_dem_det`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `pay_dem_det` AS SELECT 1 AS `id`, 1 AS `detalle` */; @@ -84992,7 +85091,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `pay_met`; /*!50001 DROP VIEW IF EXISTS `pay_met`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `pay_met` AS SELECT 1 AS `id`, 1 AS `name`, @@ -85009,7 +85108,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payroll_categorias`; /*!50001 DROP VIEW IF EXISTS `payroll_categorias`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `payroll_categorias` AS SELECT 1 AS `codcategoria`, 1 AS `Tarifa`, @@ -85023,7 +85122,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payroll_centros`; /*!50001 DROP VIEW IF EXISTS `payroll_centros`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `payroll_centros` AS SELECT 1 AS `cod_centro`, 1 AS `codempresa` */; @@ -85036,7 +85135,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payroll_conceptos`; /*!50001 DROP VIEW IF EXISTS `payroll_conceptos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `payroll_conceptos` AS SELECT 1 AS `conceptoid`, 1 AS `concepto`, @@ -85052,7 +85151,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `payroll_employee`; /*!50001 DROP VIEW IF EXISTS `payroll_employee`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `payroll_employee` AS SELECT 1 AS `CodTrabajador`, 1 AS `codempresa`, @@ -85066,7 +85165,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `plantpassport`; /*!50001 DROP VIEW IF EXISTS `plantpassport`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `plantpassport` AS SELECT 1 AS `producer_id`, 1 AS `plantpassport_authority_id`, @@ -85081,7 +85180,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `plantpassport_authority`; /*!50001 DROP VIEW IF EXISTS `plantpassport_authority`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `plantpassport_authority` AS SELECT 1 AS `plantpassport_authority_id`, 1 AS `denomination`, @@ -85095,7 +85194,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `price_fixed`; /*!50001 DROP VIEW IF EXISTS `price_fixed`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `price_fixed` AS SELECT 1 AS `item_id`, 1 AS `rate_0`, @@ -85120,7 +85219,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `producer`; /*!50001 DROP VIEW IF EXISTS `producer`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `producer` AS SELECT 1 AS `producer_id`, 1 AS `name`, @@ -85134,7 +85233,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `proveedores_clientes`; /*!50001 DROP VIEW IF EXISTS `proveedores_clientes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `proveedores_clientes` AS SELECT 1 AS `Id_Proveedor`, 1 AS `Proveedor`, @@ -85149,7 +85248,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `province`; /*!50001 DROP VIEW IF EXISTS `province`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `province` AS SELECT 1 AS `province_id`, 1 AS `name`, @@ -85166,7 +85265,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `recibida`; /*!50001 DROP VIEW IF EXISTS `recibida`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `recibida` AS SELECT 1 AS `id`, 1 AS `num_recibida`, @@ -85199,7 +85298,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `recibida_intrastat`; /*!50001 DROP VIEW IF EXISTS `recibida_intrastat`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `recibida_intrastat` AS SELECT 1 AS `recibida_id`, 1 AS `Codintrastat`, @@ -85213,7 +85312,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `recibida_iva`; /*!50001 DROP VIEW IF EXISTS `recibida_iva`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `recibida_iva` AS SELECT 1 AS `id`, 1 AS `recibida_id`, @@ -85233,7 +85332,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `recibida_vencimiento`; /*!50001 DROP VIEW IF EXISTS `recibida_vencimiento`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `recibida_vencimiento` AS SELECT 1 AS `id`, 1 AS `recibida_id`, @@ -85251,7 +85350,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `recovery`; /*!50001 DROP VIEW IF EXISTS `recovery`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `recovery` AS SELECT 1 AS `recovery_id`, 1 AS `Id_Cliente`, @@ -85268,7 +85367,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `reference_rate`; /*!50001 DROP VIEW IF EXISTS `reference_rate`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `reference_rate` AS SELECT 1 AS `moneda_id`, 1 AS `date`, @@ -85282,7 +85381,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `reinos`; /*!50001 DROP VIEW IF EXISTS `reinos`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `reinos` AS SELECT 1 AS `id`, 1 AS `reino`, @@ -85301,7 +85400,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `state`; /*!50001 DROP VIEW IF EXISTS `state`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `state` AS SELECT 1 AS `id`, 1 AS `name`, @@ -85320,7 +85419,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tag`; /*!50001 DROP VIEW IF EXISTS `tag`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tag` AS SELECT 1 AS `id`, 1 AS `name`, @@ -85337,7 +85436,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tarifa_componentes`; /*!50001 DROP VIEW IF EXISTS `tarifa_componentes`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tarifa_componentes` AS SELECT 1 AS `Id_Componente`, 1 AS `Componente`, @@ -85354,7 +85453,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tarifa_componentes_series`; /*!50001 DROP VIEW IF EXISTS `tarifa_componentes_series`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tarifa_componentes_series` AS SELECT 1 AS `tarifa_componentes_series_id`, 1 AS `Serie`, @@ -85368,7 +85467,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tblContadores`; /*!50001 DROP VIEW IF EXISTS `tblContadores`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tblContadores` AS SELECT 1 AS `id`, 1 AS `ochoa`, @@ -85414,7 +85513,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `thermograph`; /*!50001 DROP VIEW IF EXISTS `thermograph`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `thermograph` AS SELECT 1 AS `thermograph_id`, 1 AS `model` */; @@ -85427,7 +85526,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `ticket_observation`; /*!50001 DROP VIEW IF EXISTS `ticket_observation`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `ticket_observation` AS SELECT 1 AS `ticket_observation_id`, 1 AS `Id_Ticket`, @@ -85442,7 +85541,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `tickets_gestdoc`; /*!50001 DROP VIEW IF EXISTS `tickets_gestdoc`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `tickets_gestdoc` AS SELECT 1 AS `Id_Ticket`, 1 AS `gestdoc_id` */; @@ -85455,7 +85554,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `time`; /*!50001 DROP VIEW IF EXISTS `time`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `time` AS SELECT 1 AS `date`, 1 AS `period`, @@ -85473,7 +85572,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `travel`; /*!50001 DROP VIEW IF EXISTS `travel`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `travel` AS SELECT 1 AS `id`, 1 AS `shipment`, @@ -85502,7 +85601,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `v_Articles_botanical`; /*!50001 DROP VIEW IF EXISTS `v_Articles_botanical`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `v_Articles_botanical` AS SELECT 1 AS `itemFk`, 1 AS `ediBotanic` */; @@ -85515,7 +85614,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `v_compres`; /*!50001 DROP VIEW IF EXISTS `v_compres`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `v_compres` AS SELECT 1 AS `Familia`, 1 AS `reino_id`, @@ -85580,7 +85679,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `v_empresa`; /*!50001 DROP VIEW IF EXISTS `v_empresa`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `v_empresa` AS SELECT 1 AS `logo`, 1 AS `id`, @@ -85606,7 +85705,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `versiones`; /*!50001 DROP VIEW IF EXISTS `versiones`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `versiones` AS SELECT 1 AS `programa`, 1 AS `version`, @@ -85620,7 +85719,7 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `warehouse_pickup`; /*!50001 DROP VIEW IF EXISTS `warehouse_pickup`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; +SET character_set_client = utf8mb4; /*!50001 CREATE VIEW `warehouse_pickup` AS SELECT 1 AS `warehouse_id`, 1 AS `agency_id` */; @@ -91158,4 +91257,4 @@ USE `vn2008`; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2025-02-18 8:15:40 +-- Dump completed on 2025-03-04 7:26:34 diff --git a/db/dump/.dump/triggers.sql b/db/dump/.dump/triggers.sql index 502e89a56e..6651e0765a 100644 --- a/db/dump/.dump/triggers.sql +++ b/db/dump/.dump/triggers.sql @@ -1,5 +1,5 @@ /*M!999999\- enable the sandbox mode */ --- MariaDB dump 10.19 Distrib 10.5.26-MariaDB, for debian-linux-gnu (x86_64) +-- MariaDB dump 10.19 Distrib 10.5.28-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: db.verdnatura.es Database: account -- ------------------------------------------------------ @@ -11377,6 +11377,10 @@ DELIMITER ;; FOR EACH ROW BEGIN SET NEW.editorFk = account.myUser_getId(); + + IF NEW.priceOptimum = 0 THEN + SET NEW.priceOptimum = NEW.price; + END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -11397,6 +11401,10 @@ DELIMITER ;; FOR EACH ROW BEGIN SET NEW.editorFk = account.myUser_getId(); + + IF NEW.priceOptimum = 0 THEN + CALL util.throw('The priceOptimum cannot be 0'); + END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -11743,4 +11751,4 @@ USE `vn2008`; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2025-02-18 8:16:03 +-- Dump completed on 2025-03-04 7:26:57