Basket update

This commit is contained in:
PB
2025-11-07 16:24:54 +01:00
parent 7d9c66ae26
commit 606c6ec6f8
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ type BasketEntity struct {
type BasketItemEntity struct {
ID string `db:"id" json:"id"`
BasketID string `db:"basket_id" json:"basket_id"`
ProductID int `db:"product_id" json:"product_id"`
ProductID string `db:"product_id" json:"product_id"`
Quantity int `db:"quantity" json:"quantity"`
Price float64 `db:"price" json:"price"`
CreatedAt pgtype.Timestamp `db:"created_at" json:"created_at"`