From 4afa3440717662cf8efd5c2c2f2d48d56c4df100 Mon Sep 17 00:00:00 2001 From: Amit Amrutiya Date: Wed, 15 Jan 2025 19:44:43 +0530 Subject: [PATCH] add model name in the kubernetesResource struct Signed-off-by: Amit Amrutiya --- pkg/model/model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/model/model.go b/pkg/model/model.go index deb1e6f0..f3b30f77 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;"`