Compare commits

..

1 Commits

Author SHA1 Message Date
597e72169a basket update 2022-12-22 13:53:17 +01:00
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