update product response

This commit is contained in:
efrilm
2026-04-16 17:14:18 +07:00
parent 3db4afbce6
commit d695bedc97
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -19,5 +19,5 @@ type Ingredient struct {
Metadata Metadata `gorm:"type:jsonb;default:'{}'" json:"metadata"`
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
Unit *Unit `gorm:"foreignKey:UnitID" json:"unit,omitempty"`
Unit *Unit `gorm:"foreignKey:UnitID;references:ID" json:"unit,omitempty"`
}