I’ve read that households that have at least one cat won’t have a mouse/rat problem.
I live in an apartment complex where some units have complained of mice.
Been here 20 years, always with two cats, and never saw a rodent.