fix: add unit type for piece items

This commit is contained in:
2026-06-23 14:25:09 +03:00
parent 1d226d9aaf
commit 349b092d02
3 changed files with 28 additions and 8 deletions
+1
View File
@@ -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"`