 end
 $$;
 
-drop trigger if exists update_users_t on users;
-create trigger update_users_t
+drop trigger if exists update_users on users;
+create trigger update_users
   instead of insert or update or delete on
     users for each row execute procedure update_users();
 

end
$$;

drop trigger if exists protect_passwords on basic_auth.users;
create trigger protect_passwords
  before insert or update on basic_auth.users
  for each row
  execute procedure basic_auth.encrypt_pass();

end
$$;

drop trigger if exists send_validation on basic_auth.users;
create trigger send_validation
  after insert on basic_auth.users
  for each row
  execute procedure basic_auth.send_validation();
