CREATE TABLE `vn`.`invoiceInConfig` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `retentionRate` int(3) NOT NULL,
  `retentionName` varchar(25) NOT NULL,
  `sageWithholdingFk` smallint(6) NOT NULL,
  PRIMARY KEY (`id`),
  CONSTRAINT `invoiceInConfig_sageWithholdingFk` FOREIGN KEY (`sageWithholdingFk`) REFERENCES `sage`.`TiposRetencion`(`CodigoRetencion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

INSERT INTO `vn`.`invoiceInConfig` (`id`, `retentionRate`, `retentionName`, `sageWithholdingFk`)
    VALUES
        (1, -2, 'Retención 2%', 2);
