user

package
v0.0.0-...-4c9fc80 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 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 HelpMessages

type HelpMessages struct {
	// contains filtered or unexported fields
}

HelpMessages holds the question-answer messages record

type QuestionsAnswered

type QuestionsAnswered struct {
	QuestionID string `bson:"question_Id"`
	AnswerTime string `bson:"answerTime"`
	QuestionNo int    `bson:"questionNo"`
}

QuestionsAnswered holds the question-answer record

type User

type User struct {
	ID                string              `bson:"_id,omitempty"`
	Username          string              `bson:"username"`
	Name              string              `bson:"name"`
	Phone             string              `bson:"phone"`
	College           string              `bson:"college"`
	Country           string              `bson:"country"`
	Year              int                 `bson:"year"`
	TotalAttempts     int                 `bson:"attempts"`
	Rank              int                 `bson:"rank"`
	CreatedAt         primitive.DateTime  `bson:"createdAt"`
	UpdatedAt         primitive.DateTime  `bson:"updatedAt"`
	AnsweredQuestions []QuestionsAnswered `bson:"answeredQuestions"`
	Chats             []HelpMessages      `bson:"chats"`
}

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