Skip to content

Commit

Permalink
use Component for factor list
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Oct 24, 2023
1 parent 2159bd0 commit 3244ed2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions portfolio.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ type Document struct {
}

type Metadata struct {
Name string `json:"name,omitempty" yaml:"name,omitempty" bson:"name,omitempty"`
Benchmark Component `json:"benchmark,omitempty" yaml:"benchmark,omitempty" bson:"benchmark,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty" bson:"description,omitempty"`
Privacy string `json:"privacy,omitempty" yaml:"privacy,omitempty" bson:"privacy,omitempty"`
Factors []primitive.ObjectID `json:"factors,omitempty" yaml:"factors,omitempty" bson:"factors,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty" bson:"name,omitempty"`
Benchmark Component `json:"benchmark,omitempty" yaml:"benchmark,omitempty" bson:"benchmark,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty" bson:"description,omitempty"`
Privacy string `json:"privacy,omitempty" yaml:"privacy,omitempty" bson:"privacy,omitempty"`
Factors []Component `json:"factors,omitempty" yaml:"factors,omitempty" bson:"factors,omitempty"`
}

// Specification models a portfolio.
Expand Down

0 comments on commit 3244ed2

Please sign in to comment.