If you are not an employee of the company, but cooperate with the company in your personal capacity, it is suggested that when you cooperate with the company, you add an "intellectual property ownership" clause in the contract to clarify who owns all the intellectual property rights developed, either directly or jointly with the company.