model

package
v0.0.0-...-11675d2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Score

type Score struct {
	Email  string `json:"email"`
	Kind   int    `json:"kind"`
	Detail string `json:"detail"`
	Score  int    `json:"score"`
}

Score struct for User

type User

type User struct {
	ID         string `json:"id" bson:"id"`
	Username   string `json:"username" bson:"username"`
	Email      string `json:"email" bson:"email"`
	Password   string `json:"password" bson:"password"`
	IsTeacher  bool   `json:"is_teacher" bson:"is_teacher"`
	TotalScore int    `json:"total_score" bson:"total_score"`
	Token      string `json:"token"`
}

User struct

Jump to

Keyboard shortcuts

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