diff --git a/models/set.go b/models/set.go index a4f84c6..780bec6 100644 --- a/models/set.go +++ b/models/set.go @@ -11,6 +11,7 @@ type Set struct { Type Type `json:"type,omitempty"` // dbm datatype Value any `json:"value,omitempty"` // dbm value Rights Rights `json:"rights,omitempty"` // dbm read /write rights + Create bool `json:"create,omitempty"` // dbm create new datapoint Updated bool `json:"-"` } diff --git a/models/subscription.go b/models/subscription.go index dce8a67..2e226ab 100644 --- a/models/subscription.go +++ b/models/subscription.go @@ -8,6 +8,7 @@ type Subscription struct { Path string `json:"path,omitempty"` // dbm path Depth uint `json:"depth,omitempty"` // depth of subscriptions from found path or uuid Value any `json:"value,omitempty"` // current value + HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers Driver string `json:"driver,omitempty"` // driver type to assign this subscription OnCreate bool `json:"onCreate,omitempty"` // notify at datapoint creation