We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4577fd6 commit a85f6aeCopy full SHA for a85f6ae
models/meshmodel/core/v1alpha1/models.go
@@ -7,6 +7,7 @@ import (
7
8
"github.com/google/uuid"
9
"github.com/layer5io/meshkit/database"
10
+ "github.com/layer5io/meshkit/models/meshmodel/core/types"
11
"gorm.io/gorm"
12
)
13
@@ -53,6 +54,14 @@ type ModelDB struct {
53
54
Metadata []byte `json:"modelMetadata" gorm:"modelMetadata"`
55
}
56
57
+func (m Model) Type() types.CapabilityType {
58
+ return types.Model
59
+}
60
+func (m Model) GetID() uuid.UUID {
61
+ return m.ID
62
63
+
64
65
func CreateModel(db *database.Handler, cmodel Model) (uuid.UUID, error) {
66
byt, err := json.Marshal(cmodel)
67
if err != nil {
0 commit comments