Skip to content

Commit

Permalink
Merge pull request #144 from theBeginner86/theBeginner86/fix/duplicat…
Browse files Browse the repository at this point in the history
…e-labels

[database] Update KeyValues table with composite key | CU-2nqagta
  • Loading branch information
leecalcote authored Oct 6, 2022
2 parents 52203f2 + 824ad31 commit 1a2b24f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ type Object struct {
}

type KeyValue struct {
ID string `json:"id" gorm:"index"`
UniqueID string `json:"unique_id" gorm:"primarykey"`
Kind string `json:"kind" gorm:"index"`
Key string `json:"key,omitempty" gorm:"index"`
Value string `json:"value,omitempty" gorm:"index"`
ID string `json:"id" gorm:"primarykey"`
UniqueID string `json:"unique_id" gorm:"index"`
Kind string `json:"kind" gorm:"primarykey"`
Key string `json:"key,omitempty" gorm:"primarykey"`
Value string `json:"value,omitempty" gorm:"primarykey"`
}

type ResourceObjectMeta struct {
Expand Down

0 comments on commit 1a2b24f

Please sign in to comment.