2023-04-11 12:57:56 +00:00
|
|
|
ALTER TABLE `vn`.`client` ADD rating INT UNSIGNED DEFAULT NULL NULL COMMENT 'información proporcionada por Informa';
|
|
|
|
ALTER TABLE `vn`.`client` ADD recommendedCredit INT UNSIGNED DEFAULT NULL NULL COMMENT 'información proporcionada por Informa';
|
|
|
|
|
|
|
|
CREATE TABLE `vn`.`clientInforma` (
|
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`clientFk` int(11) NOT NULL,
|
|
|
|
`rating` int(10) unsigned DEFAULT NULL,
|
|
|
|
`recommendedCredit` int(10) unsigned DEFAULT NULL,
|
|
|
|
`workerFk` int(10) unsigned NOT NULL,
|
|
|
|
`created` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `informaWorkers_fk_idx` (`workerFk`),
|
|
|
|
KEY `informaClientFk` (`clientFk`),
|
|
|
|
CONSTRAINT `informa_ClienteFk` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
CONSTRAINT `informa_workers_fk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
|
2023-04-14 11:05:57 +00:00
|
|
|
) ENGINE=InnoDB CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='información proporcionada por Informa, se actualiza desde el hook de client (salix)';
|