diff --git a/pkg/model/model.go b/pkg/model/model.go index deb1e6f..f3b30f7 100644 --- a/pkg/model/model.go +++ b/pkg/model/model.go @@ -14,6 +14,7 @@ type KubernetesResource struct { ID string `json:"id" gorm:"primarykey"` APIVersion string `json:"apiVersion" gorm:"index"` Kind string `json:"kind" gorm:"index"` + Model string `json:"model" gorm:"index"` KubernetesResourceMeta *KubernetesResourceObjectMeta `json:"metadata" gorm:"foreignkey:ID;references:id;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"` Spec *KubernetesResourceSpec `json:"spec,omitempty" gorm:"foreignkey:ID;references:id;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"` Status *KubernetesResourceStatus `json:"status,omitempty" gorm:"foreignkey:ID;references:id;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`