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 {
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
}