All Medieval centers of population had taverns. The amount of these taverns was based on the demand for rooms, usually from travelers.
Permanent residents of cities lived in anything from a simple thatched house to a palace, and if there was any housing akin to an apartment complex, it was not a commercial business, mainly one family or friend accommodating another.