One codebase, several companies, and where you draw the wall
Each business in a group carries its own buyers, factories and books. The cheap option is a tenant column on every table, which holds until one query misses the filter and a company reads a rival's cost sheet. Isolating by database makes it an infrastructure problem instead, and buys per company restore, retention and job windows.



