DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`workerObservation_afterDelete`
	AFTER DELETE ON `workerObservation`
	FOR EACH ROW
BEGIN
	INSERT INTO workerLog
		SET `action` = 'delete',
			`changedModel` = 'WorkerObservation',
			`changedModelId` = OLD.id,
			`userFk` = account.myUser_getId();
END$$
DELIMITER ;
