CREATE OR REPLACE TABLE `vn`.`docuware` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `fileCabinetName` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `action` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `dialogName` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `findById` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

INSERT INTO `vn`.`docuware` (`code`, `fileCabinetName`, `action`, `dialogName`, `findById`)
    VALUES
        ('deliveryNote', 'Albaranes cliente', 'find', 'find', 'N__ALBAR_N'),
        ('deliveryNote', 'Albaranes cliente', 'store', 'Archivar', 'N__ALBAR_N');

INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalId`)
    VALUES
        ('Docuware','checkFile','READ','ALLOW','employee'),
        ('Docuware','download','READ','ALLOW','salesPerson'),
        ('Docuware','upload','WRITE','ALLOW','productionAssi'),
        ('Docuware','deliveryNoteEmail','WRITE','ALLOW','salesPerson');

ALTER TABLE `vn`.`docuwareConfig` CHANGE token cookie varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
