DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `vn`.`travel_setDelivered`
	ON SCHEDULE EVERY 1 DAY
		STARTS '2024-07-12 00:10:00.000'
	ON COMPLETION PRESERVE
	ENABLE
DO BEGIN
	UPDATE travel t
		SET t.isDelivered = TRUE
		WHERE t.shipped < util.VN_CURDATE();
END$$
DELIMITER ;
