Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product Catalogue "Database" Structure #1

Open
WeiXie03 opened this issue Jan 8, 2024 · 0 comments
Open

Product Catalogue "Database" Structure #1

WeiXie03 opened this issue Jan 8, 2024 · 0 comments

Comments

@WeiXie03
Copy link
Owner

WeiXie03 commented Jan 8, 2024

Currently,

  • 📁 2023-07-18
    • 📄
      {
        "BULK_VEG": [
          "Cabbage": {
            ... (product details),
            "stock": 3.8
          },
          ... (product objects)
        ],
        ... ("category maps")
      }

Issues:

  • To update stock, prices, 2 and 3 levels of lookup, respectively
    • ^ pretty fast though, hash map
    • also, for prices, this way prob just make a new subcollection for each week entirely, not update prices within a week
  • Only value of redundant stock data across week subcollections is preventing forgetting and wasting unsold inventory??? nah, prob not => separate stock data into another root collection

Note: 📁 := collection, subcollection; 📄 := document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant