itsalb3rt / savycart-app

Track personal purchases, No more paper and pencil to go to the supermarket 🏬
https://savycart.albert.do/
MIT License
51 stars 13 forks source link

Product shop history #33

Closed itsalb3rt closed 2 years ago

itsalb3rt commented 2 years ago

Description

When users are in a product details screen, loading the ship history related to the detailed product helps to check price history fast.

Posible solution

Create end point in the API for fetch product in history.

itsalb3rt commented 2 years ago

The purchase details no have the product id in the structure, the proposal is adding the product ID with null constrain;

ALTER TABLE sheiley_shop.purchases_details ADD id_product INT NULL;