Ps4 games etc. Stored on the account or on the ps4?

Si
- in PlayStation
2

When I turn on my ps4, I only get into the safety mode and have to reinstall the system update there and all data will be deleted as far as I know and I wanted to ask whether the game data and games are stored on the ps4 or on the account, so if I register again whether I still have the items from games, e.g. Rocket League, if so, what do I lose?

Ze

Games bought in the online shop are saved on your profile and you can download them again. You have to reinstall games on disc, but most games are likely to save the saved status in the cloud.

Si

So in online games the game progress would still be there right? But in e.g. A Fifa career they would be gone, I would think now