models

package
v0.0.0-...-e56de86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2023 License: MPL-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID         primitive.ObjectID   `bson:"_id,omitempty"`
	Username   string               `bson:"username"`
	Email      string               `bson:"email"`
	Password   string               `bson:"password"`
	Name       string               `bson:"name"`
	Surname    string               `bson:"surname"`
	About      string               `bson:"about"`
	Posts      []primitive.ObjectID `bson:"posts"`
	Comments   []primitive.ObjectID `bson:"comments"`
	Subscribes []primitive.ObjectID `bson:"subscribe"`
}

User represents a user in the database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL