I developed a logging application. I started a process with my employer to integrate the application on-premise at their client's servers.
The application was developed by me, during my free time.
One part of the requirements is to deploy the source code to their source control repositories.
Is there any type of contract that we can agree to, so, somehow, I still get the ownership of the application code? Regardless of what happens with my employment contract.