> if Foxconn being the only employer in the city
As far as i know Foxconn factories are cities. You don't look for a Foxconn ad in your city, you get on the train and relocate there.
Wikipedia says: Number of employees 1,290,000 (2020).
The largest Foxconn factory is located in Longhua Town, Shenzhen, where hundreds of thousands of workers (varying counts include 230,000, 300,000, and 450,000).
[I live in a 400k city.]
Another Foxconn factory "city" is located at Zhengzhou Technology Park in Zhengzhou, Henan province, where a reported 120,000 workers are employed as of 2012.