basket update

This commit is contained in:
Piotr Biernat 2022-12-22 13:53:17 +01:00
parent 4f1fdd447a
commit 597e72169a
2 changed files with 3 additions and 1 deletions

View File

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

2
model/order.go Normal file
View File

@ -0,0 +1,2 @@
package model