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