Add TotalCost MetricValue MetricType and Type relationship to ItemBought
This commit is contained in:
parent
48f7b8258e
commit
e2d3d636cb
|
@ -6,7 +6,12 @@ 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user