models

package
v0.0.0-...-558f0ad Latest Latest
Warning

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

Go to latest
Published: May 16, 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 User

type User struct {
	First_name    *string   `json:"first_name" validate:"required,min=2,max=100"`
	Last_name     *string   `json:"last_name" validate:"required,min=2,max=100"`
	Password      *string   `json:"Password" validate:"required,min=6""`
	Email         *string   `json:"email" validate:"email,required"`
	Token         *string   `json:"token"`
	User_type     *string   `json:"user_type" validate:"required,eq=ADMIN|eq=USER""`
	Refresh_token *string   `json:"refresh_token"`
	V_key         *string   `json:"verification_key"`
	Created_at    time.Time `json:"created_at"`
	Updated_at    time.Time `json:"updated_at"`
}

User is the model that governs all notes objects retrived or inserted into the DB

type Verifiation

type Verifiation struct {
	Email *string `json:"email" validate:"email,required"`
	V_key *string `json:"verification_key" validate:"required"`
}

Jump to

Keyboard shortcuts

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