user

package
v0.0.0-...-57241a5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 Role

type Role string
const (
	Admin   Role = "admin"
	Tutor   Role = "tutor"
	Student Role = "student"
)

type User

type User struct {
	Email      string    `json:"email" bson:"email"`
	Password   string    `json:"-" bson:"password"`
	Firstname  string    `json:"firstname" bson:"firstname"`
	Lastname   string    `json:"lastname" bson:"lastname"`
	IsVerified bool      `json:"is_verified" bson:"is_verified"`
	Role       Role      `json:"role" bson:"role"`
	CreatedAt  time.Time `json:"created_at" bson:"created_at"`
	UpdatedAt  time.Time `json:"updated_at" bson:"updated_at"`
}

Jump to

Keyboard shortcuts

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