user

package
v0.0.0-...-b0bd504 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 1 Imported by: 0

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"`
	Name        string              `bson:"name"`
	Password    *string             `bson:"password,omitempty"`
	Email       string              `bson:"email"`
	Phone       string              `bson:"phone"`
	College     string              `bson:"college"`
	Country     string              `bson:"country"`
	Year        int                 `bson:"year"`
	Rank        int                 `bson:"rank"`
	MemberSince primitive.DateTime  `bson:"memberSince"`
	Answers     []questionsAnswered `bson:"answers"`
	Admin       *adminData          `bson:"admin"`
}

User : The struct to map to user collection

Jump to

Keyboard shortcuts

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