diff --git a/backend/gestion/models/product.go b/backend/gestion/models/product.go index cb66b162..83b8edcc 100644 --- a/backend/gestion/models/product.go +++ b/backend/gestion/models/product.go @@ -24,7 +24,7 @@ type ProductPrice struct { Quantity float64 `json:"quantity" gorm:"column:quantity" binding:"required"` Price float64 `json:"price" gorm:"column:price" binding:"required"` CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"` - ActivePrice bool `json:"active_price" gorm:"column:active_price;default:true" binding:"required"` + ActivePrice bool `json:"active_price" gorm:"column:active_price;default:true"` } func (ProductPrice) TableName() string { return "product_prices" }