Following the last time the programmer brother simply developed a photo storage applet, I feel that there are still some minor flaws, that is, there is no way to upload photos to the text description. Since it's mostly text, it's obviously not a good idea to save the text descriptions as files to storage space. Well then, let's work together today on the database that comes with cloud development; it should solve this little flaw of ours.
The database that comes with Cloud Development is a bit different from the usual relational databases that you come across. The database provided by Cloud Development is a JSON database, where each record is a JSON formatted object. A database can have multiple collections (equivalent to data tables in relational data), and a collection can be thought of as a JSON array, where each object in the array is a record, and the records are formatted as JSON objects. To put it simply, each record is a JSON, so you don't have to think about building tables and fields.
Isn't it amazing~ as well advertised as it is, you need to look at the features. We're going to build on the photo storage applet we built last time into the extension step by step below.
Click on Cloud Development, click on "Database" on top of the Cloud Development console and then click on "Add Collection"