Hello, I am trying to implement an out of stock feature in an e-commerce app. On the products details page, I would like to display the products Colors and Sizes. So say when a user chooses a color, I would like to only display the sizes for that color that is In Stock. How should I model my data in firebase? For Colors, Sizes, and InStock/Out of stock.
This is what I’d like to implement. Any ideas would be greatly appreciated. Thank you!