up
This commit is contained in:
@@ -17,6 +17,7 @@ type SaasProducto struct {
|
||||
Servicio *Servicio `json:"servicio" gorm:"foreignKey:ServicioID"`
|
||||
Activo bool `json:"activo" gorm:"column:activo;default:true"`
|
||||
Orden int `json:"orden" gorm:"column:orden;default:0"`
|
||||
HealthURL string `json:"health_url" gorm:"column:health_url"` // URL para health check (opcional)
|
||||
}
|
||||
|
||||
func (SaasProducto) TableName() string { return "saas_productos" }
|
||||
@@ -74,6 +75,7 @@ func UpdateSaasProducto(s *SaasProducto) error {
|
||||
"servicio_id": s.ServicioID,
|
||||
"activo": s.Activo,
|
||||
"orden": s.Orden,
|
||||
"health_url": s.HealthURL,
|
||||
}).Error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user