Wouldn't people just live above/next to their shops? In a medieval setting every man has his "own" business, there were no factories and office towers (I might be willing to make an exception for the tanner, the tannery should not be the same as his shop and flat ).