Your system is a simplified e-commerce backend that supports:
- Products
- Inventory tracking
- Orders
- User reviews
- As a customer, I can browse products with name, price, and stock quantity.
- As a customer, I can place an order, and the system will:
- Check inventory
- Deduct stock
- Create an order record
- As a customer, I can add reviews to products. Reviews are documents with:
- User ID
- Product ID
- Rating
- Comment
- Timestamp
- As a manager, I can add or edit products.