diff --git a/model.go b/model.go index 7ae43fb..506de4f 100644 --- a/model.go +++ b/model.go @@ -2,6 +2,20 @@ package natsio import "go.mongodb.org/mongo-driver/bson/primitive" +// +// USER +// + +type User struct { + ID primitive.ObjectID `json:"_id"` + Name string `json:"name"` + Avatar *FilePhoto `json:"avatar"` +} + +// +// FILE PHOTO +// + type FilePhoto struct { ID primitive.ObjectID `json:"_id"` Name string `json:"name"`