diff --git a/model/basket.go b/model/basket.go index 71b3a1c..fb4db92 100644 --- a/model/basket.go +++ b/model/basket.go @@ -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"` diff --git a/model/order.go b/model/order.go new file mode 100644 index 0000000..868de98 --- /dev/null +++ b/model/order.go @@ -0,0 +1,2 @@ +package model +