From 7cd5ee674b1c78d8f28a16908b3c77d2f123b632 Mon Sep 17 00:00:00 2001 From: namhq1989 Date: Sun, 18 Dec 2022 10:56:37 +0700 Subject: [PATCH] add model user --- model.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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"`