add model user

This commit is contained in:
namhq1989 2022-12-18 10:56:37 +07:00
parent 45fa48e1e5
commit 7cd5ee674b
1 changed files with 14 additions and 0 deletions

View File

@ -2,6 +2,20 @@ package natsio
import "go.mongodb.org/mongo-driver/bson/primitive" 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 { type FilePhoto struct {
ID primitive.ObjectID `json:"_id"` ID primitive.ObjectID `json:"_id"`
Name string `json:"name"` Name string `json:"name"`