package model import ( "github.com/tech/sendico/pkg/mservice" "go.mongodb.org/mongo-driver/v2/bson" ) type TypeBound struct { Type mservice.Type `bson:"type" json:"type"` } type ObjectRefs struct { TypeBound `bson:"inline" json:"inline"` Refs []bson.ObjectID `bson:"refs,omitempty" json:"refs,omitempty"` } type ObjectRef struct { TypeBound `bson:"inline" json:"inline"` Ref bson.ObjectID `bson:"ref,omitempty" json:"ref,omitempty"` }