DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`entryDms_afterDelete`
	AFTER DELETE ON `entryDms`
	FOR EACH ROW
BEGIN
	INSERT INTO entryLog
		SET `action` = 'delete',
			`changedModel` = 'EntryDms',
			`changedModelId` = OLD.entryFk,
			`userFk` = account.myUser_getId();
END$$
DELIMITER ;
