If the patent you apply for is related to the scientific research project of the school, or you use the experimental equipment and scientific research funds of the school, whether you apply by yourself or through the school, the applicant should be the school and the patent certificate belongs to the school.
After leaving school for one year, if you apply for it yourself, the patent right will be yours.