diff --git a/db/item_bought.go b/db/item_bought.go index 90777b7..d63d152 100644 --- a/db/item_bought.go +++ b/db/item_bought.go @@ -4,9 +4,14 @@ import "gorm.io/gorm" type ItemBought struct { gorm.Model - ItemID uint - Item *Item - Quantity uint - PaymentID uint - Payment *Payment + ItemID uint + Item *Item + PaymentID uint + Payment *Payment + TypeID uint + Type *Type + Quantity uint + TotalCost uint64 + MetricType uint8 + MetricValue uint64 }