models

package
v0.0.0-...-af8d6c7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT 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 {
	gorm.Model
	Name     string `gorm:"type:varchar(50);not null" json:"name"`
	Email    string `gorm:"type:varchar(100);unique_index;not null" json:"email"`
	Password string `gorm:"type:text;not null" json:"-"`
}

func (*User) BeforeSave

func (u *User) BeforeSave() (err error)

func (*User) Compare

func (u *User) Compare(attempt string) (err error)

Jump to

Keyboard shortcuts

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