From 597e72169ae9dfada62b4a2739f4358adf5ffa5c Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 22 Dec 2022 13:53:17 +0100 Subject: [PATCH] basket update --- model/basket.go | 2 +- model/order.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 model/order.go 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 +