fix: add unit type for piece items
This commit is contained in:
@@ -7,6 +7,7 @@ type Item struct {
|
||||
Name string `json:"name"`
|
||||
City string `json:"city"`
|
||||
Unit string `json:"unit"`
|
||||
UnitType string `json:"unit_type" gorm:"default:'weight'"`
|
||||
Price int `json:"price"`
|
||||
Category string `json:"category"`
|
||||
Stock float64 `gorm:"default:0" json:"stock"`
|
||||
|
||||
Reference in New Issue
Block a user