The contract should define the ownership and usage rights of the IP during and after the project. In a BOT engagement, the client usually gains full IP ownership once the transfer phase is completed.