CREATE TABLE `salix`.`userTableConfiguration` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `workerFk` INT(11) NOT NULL,
  `tableCode` VARCHAR(255) NOT NULL,
  `configuration` TEXT NULL,
  PRIMARY KEY (`id`));




ALTER TABLE `salix`.`userTableConfiguration` 
ADD INDEX `fgn_worker_idx` (`workerFk` ASC);
ALTER TABLE `salix`.`userTableConfiguration` 
ADD CONSTRAINT `fgn_worker`
  FOREIGN KEY (`workerFk`)
  REFERENCES `vn2008`.`Trabajadores` (`Id_Trabajador`)
  ON DELETE CASCADE
  ON UPDATE CASCADE;
