Skip to content

Commit

Permalink
Revert duplicate json tag changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Huang <xin1.huang@intel.com>
  • Loading branch information
gyohuangxin committed Mar 1, 2024
1 parent 6f578ca commit c51c4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/model/core/v1alpha1/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type ComponentDefinition struct {
UpdatedAt time.Time `json:"-"`
}
type ComponentDefinitionDB struct {
ID uuid.UUID `json:"componentDefinitionId"`
ID uuid.UUID `json:"id"`
ModelID uuid.UUID `json:"-" gorm:"index:idx_component_definition_dbs_model_id,column:modelID"`
TypeMeta
DisplayName string `json:"displayName" gorm:"displayName"`
Expand Down
2 changes: 1 addition & 1 deletion models/model/core/v1alpha1/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Model struct {
}

type ModelDB struct {
ID uuid.UUID `json:"modelDBId"`
ID uuid.UUID `json:"id"`
CategoryID uuid.UUID `json:"-" gorm:"categoryID"`
Name string `json:"modelName" gorm:"modelName"`
Version string `json:"version"`
Expand Down

0 comments on commit c51c4f6

Please sign in to comment.