|
|
|
@ -34348,6 +34348,7 @@ CREATE TABLE `route` (
|
|
|
|
|
`priority` int(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`invoiceInFk` mediumint(8) unsigned DEFAULT NULL,
|
|
|
|
|
`beachFk` int(11) DEFAULT NULL,
|
|
|
|
|
`commissionWorkCenterFk` int(11) DEFAULT NULL COMMENT 'WorkerCenter que gestiona la ruta',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `Id_Agencia` (`agencyModeFk`),
|
|
|
|
|
KEY `Fecha` (`created`),
|
|
|
|
@ -34356,7 +34357,9 @@ CREATE TABLE `route` (
|
|
|
|
|
KEY `fk_route_1_idx` (`zoneFk`),
|
|
|
|
|
KEY `asdfasdf_idx` (`invoiceInFk`),
|
|
|
|
|
KEY `route_idxIsOk` (`isOk`),
|
|
|
|
|
KEY `route_WorkCenterFk_idx` (`commissionWorkCenterFk`),
|
|
|
|
|
CONSTRAINT `fk_route_1` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
|
|
|
CONSTRAINT `route_WorkCenterFk` FOREIGN KEY (`commissionWorkCenterFk`) REFERENCES `workCenter` (`id`) ON UPDATE CASCADE,
|
|
|
|
|
CONSTRAINT `route_fk5` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
|
|
|
CONSTRAINT `route_ibfk_1` FOREIGN KEY (`gestdocFk`) REFERENCES `dms` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
|
|
|
CONSTRAINT `route_ibfk_2` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
|
|
|
|
@ -34513,6 +34516,7 @@ CREATE TABLE `routeConfig` (
|
|
|
|
|
`plusCategory1Concept` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
|
|
|
`plusCategory2Concept` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
|
|
|
`defaultCompanyFk` smallint(5) unsigned DEFAULT '442',
|
|
|
|
|
`defaultWorkCenterFk` int(11) DEFAULT 9 COMMENT 'Para el cálculo de las comisiones, en caso de el creador de la ruta no tenga workCenter',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `routeConfig_FK` (`defaultCompanyFk`),
|
|
|
|
|
CONSTRAINT `routeConfig_FK` FOREIGN KEY (`defaultCompanyFk`) REFERENCES `company` (`id`)
|
|
|
|
|