'Structuring the Firestore: Should I make another collection to store the changes that were made?

I am using Reactjs and Firestore.

I have this collection of products:

The colorMap is a map then below it are the different colors and their quanty.

enter image description here

Now, I want to create a list or a history whenever a product is added and whenever the quantity in those colors was added more of it.

Should I add another collection that will store when a product is added or whenever quantities are added in the color? I'm also thinking of adding a createdDate Or there any other way I could do this? As much as possible, I won't be using any cloud functions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source