DROP TRIGGER IF EXISTS `add_user_trig`;
DELIMITER ;;
CREATE TRIGGER `add_user_trig`
AFTER INSERT ON `users`
FOR EACH ROW 
BEGIN
  INSERT INTO `audit_trail` (`action_type`,`user_id`,`user_type`,`action_timestamp`) VALUES (0,NEW.id,NEW.type,NOW());
END;;
DELIMITER ;
