Hello all i am trying to make Instagram clone app for my learning purpose with mern stack also there will be an android app ,the question is how to set up different schemas for post, user, images stories ,comments so they can be easily managed and retrieved
You may not overthinking too much about saving big binary data(like images) on database. The easy(probably most common) way is saving the image file using local filesystem(e.g. save it in a folder, not database), and simply store the image file name in database(if required). But sometimes simply devs tend to keep everything in a single place.
For more privacy, this is also good to save the file encrypted. But please note the process about loading the file could be heavy when needed!