Shulchan Arukh, Yoreh De'ah 286
שולחן ערוך, יורה דעה רפ״ו
Shulchan Arukh, Yoreh De'ah 286
The governing laws of mezuzah define which dwelling spaces require mezuzah and discuss temporary residence and the nature of a dwelling. This is the primary practical code underlying the question addressed by later responsa.
מקומות החייבים במזוזה. ובו כ"ג סעיפים: אלו המקומות שחייבים במזוזה אחד שערי בתים ושערי חצרות מדינות ועיירות רפת בקר ולולין ואוצרות יין ושמן ובית האשה ובית השותפים כולם חייבים: