add usable variable in refs

This commit is contained in:
mr
2024-10-09 09:29:16 +02:00
parent b90ffbc4f0
commit ae49c40ea5
2 changed files with 6 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ type Model struct {
type ResourceModel struct {
UUID string `json:"id,omitempty" bson:"id,omitempty" validate:"required"`
ResourceType string `json:"resource_type,omitempty" bson:"resource_type,omitempty" validate:"required"`
VarRefs map[string]string `json:"var_refs,omitempty" bson:"var_refs,omitempty"` // VarRefs is the variable references of the model
Model map[string]map[string]Model `json:"model,omitempty" bson:"model,omitempty"`
}