This commit is contained in:
Lizandro Guarnizo
2026-05-14 22:30:31 -05:00
parent 277ad6bb63
commit 61b3eca31d
16 changed files with 1341 additions and 25 deletions
+2
View File
@@ -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
}