We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d2da6 commit 4afa344Copy full SHA for 4afa344
pkg/model/model.go
@@ -14,6 +14,7 @@ type KubernetesResource struct {
14
ID string `json:"id" gorm:"primarykey"`
15
APIVersion string `json:"apiVersion" gorm:"index"`
16
Kind string `json:"kind" gorm:"index"`
17
+ Model string `json:"model" gorm:"index"`
18
KubernetesResourceMeta *KubernetesResourceObjectMeta `json:"metadata" gorm:"foreignkey:ID;references:id;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
19
Spec *KubernetesResourceSpec `json:"spec,omitempty" gorm:"foreignkey:ID;references:id;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
20
Status *KubernetesResourceStatus `json:"status,omitempty" gorm:"foreignkey:ID;references:id;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
0 commit comments