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