A Schengen visa allows you to enter and travel within the Schengen area and entitles you to stay on the territory of all Schengen countries. The length of stay or stays may not exceed 90 days in any 180-day period of time.
If you wish to stay even longer, you should apply for a residence permit , but not later than on the last day of your legal stay.