models

package
v0.0.0-...-d8c4784 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: GPL-3.0 Imports: 2 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"`
	FirstName    *string            `json:"firstName" validate:"required, min=2, max=100"`
	LastName     *string            `json:"lastName" validate:"required, min=2, max=100"`
	Password     *string            `json:"password" validate:"required, min=6"`
	Email        *string            `json:"email" validate:"email, required"`
	Phone        *string            `json:"phone" validate:"required, min=10, max=12"`
	Token        *string            `json:"token"`
	UserType     *string            `json:"userType" validate:"required, eq=ADMIN|eq=USER"`
	RefreshToken *string            `json:"refreshToken"`
	CreatedAt    time.Time          `json:"createdAt"`
	UpdatedAt    time.Time          `json:"updatedAt"`
	UserId       string             `json:"userId"`
}

Jump to

Keyboard shortcuts

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