Add TotalCost MetricValue MetricType and Type relationship to ItemBought

This commit is contained in:
qowevisa 2024-11-01 09:30:34 +02:00
parent 48f7b8258e
commit e2d3d636cb

View File

@ -4,9 +4,14 @@ import "gorm.io/gorm"
type ItemBought struct { type ItemBought struct {
gorm.Model gorm.Model
ItemID uint ItemID uint
Item *Item Item *Item
Quantity uint PaymentID uint
PaymentID uint Payment *Payment
Payment *Payment TypeID uint
Type *Type
Quantity uint
TotalCost uint64
MetricType uint8
MetricValue uint64
} }