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