DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_afterInsert`
	AFTER INSERT ON `itemShelving`
	FOR EACH ROW
BEGIN 	
	
			INSERT INTO vn.itemShelvingLog(	
			itemShelvingFk,
			workerFk,
			accion,
			itemFk,
			shelvingFk,
			visible,
			`grouping`,
			packing,
			available)
		VALUES( NEW.id,
			NEW.userFk,
			'CREA REGISTRO',
			NEW.itemFk,
			NEW.shelvingFk,
			NEW.visible,
			NEW.`grouping`,
			NEW.packing,
			NEW.available);
END$$
DELIMITER ;