Is there any doc for urinary tract infections?

is there any doc for urinary tract infections? Some books say doc for uti is nitrofurantoin… is it so sir?

DOC for uncomplicated UTI(cystitis) -Nitrofurantoin

DOC for complicated UTI(Pyelonephritis)- Fluoroquinolones (like Ciprofloxacin)

DOC for UTI in pregnancy - Beta lactams (Amoxicillin) > Fosfomycin