diff --git a/query/config_relations.go b/query/config_relations.go index f7ed42a0..6c757d74 100644 --- a/query/config_relations.go +++ b/query/config_relations.go @@ -26,6 +26,7 @@ type RelatedConfig struct { CostTotal30d *float64 `json:"cost_total_30d,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` + DeletedAt *time.Time `json:"deleted_at"` AgentID uuid.UUID `json:"agent_id"` Status *string `json:"status" gorm:"default:null"` Ready bool `json:"ready"` diff --git a/views/006_config_views.sql b/views/006_config_views.sql index d5d674e5..bc76e491 100644 --- a/views/006_config_views.sql +++ b/views/006_config_views.sql @@ -585,6 +585,7 @@ CREATE FUNCTION related_configs_recursive ( cost_total_30d NUMERIC(16, 4), created_at TIMESTAMP WITH TIME ZONE, updated_at TIMESTAMP WITH TIME ZONE, + deleted_at TIMESTAMP WITH TIME ZONE, agent_id uuid, health TEXT, ready BOOLEAN, @@ -624,6 +625,7 @@ BEGIN configs.cost_total_30d, configs.created_at, configs.updated_at, + configs.deleted_at, configs.agent_id, configs.health, configs.ready,