model

package
v0.0.0-...-05e6c51 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBranch

func ValidateBranch(p *Player) error

func ValidatePlayer

func ValidatePlayer(p Player) error

func ValidateRole

func ValidateRole(p *Player) error

func ValidateYear

func ValidateYear(p *Player) error

Types

type Player

type Player struct {
	ID                 primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	FirstName          string             `json:"firstName" bson:"firstName"`
	LastName           string             `json:"lastName" bson:"lastName"`
	Email              string             `json:"email" bson:"email"`
	Password           string             `json:"password" bson:"password"`
	Role               string             `json:"role" bson:"role"`
	Branch             string             `json:"branch" bson:"branch"`
	Year               string             `json:"year" bson:"year"`
	ContactNo          string             `json:"contactNo" bson:"contactNo"`
	Social             []string           `json:"socials,omitempty" bson:"socials,omitempty"`
	IsDeleted          bool               `json:"isDeleted,omitempty" bson:"isDeleted,omitempty"`
	DeletedBy          primitive.ObjectID `json:"deletedBy,omitempty" bson:"deleteBy,omitempty"`
	DeletedAt          primitive.ObjectID `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	CreatedAt          time.Time          `json:"createdAt" bson:"createdAt"`
	OTP                int                `json:"otp,omitempty"`
	jwt.StandardClaims `json:"claims,omitempty" bson:"claims,omitempty"`
}

Jump to

Keyboard shortcuts

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