How to allocate R&D patents in school-enterprise cooperation?

This is a commissioned invention. If the ownership of the patent application right is agreed in advance, then from its agreement, if there is no agreement, the patent application right belongs to the party that made the invention and creation content, that is, the school, but the entrusted enterprise can give priority to the use of the patent. As for whether to grant the license fee, it is agreed between the school and the enterprise, and there is no provision.