Suppose subcontractor A makes software for company B. Both are in the US.
Company B would like to retain the rights to any code created for the project and all data will reside on databases managed by B.
Is this requirement allowed by contract law?
Is it possible to transfer authorship rights of the code written under the terms of the subcontracting agreement?