Welcome to HCM,
As there is 31 weeks pregnancy, there is no problem taking some medicine on recommendation of your doctor.
is better choice.
( Nitrofurantin ), now is not more used.
You continue with Augmentin as it is not advisable to have any infection during pregnancy
Take plenty of water.
Keep local hygiene clean and healthy.
Ok and bye.