ALTER TABLE vn.docuware ADD modelFk VARCHAR(45) DEFAULT NULL NULL;
ALTER TABLE vn.docuware ADD CONSTRAINT docuware_module_FK FOREIGN KEY (modelFk) REFERENCES salix.module(code);

ALTER TABLE vn.docuwareTablet ADD fileCabinet varchar(100) NULL;

INSERT IGNORE INTO vn.docuware (code,fileCabinetName,`action`,dialogName,findById,dmsTypeFk,modelFk)
	VALUES ('hr','RRHH','store','Archivar','N__DOCUMENTO',3,'worker');

INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
	VALUES ('Worker','signPdaPdf','READ','ALLOW','ROLE','hr');

INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
	VALUES ('Docuware','upload','WRITE','ALLOW','ROLE','hr');
