models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

type Password []byte

func (Password) Value

func (p Password) Value() (driver.Value, error)

Value returns a driver Value. Value must not panic.

type User

type User struct {
	content.Request `gorm:"-" json:"-"`
	ID              int64    `gorm:"column:id;primaryKey;not null;type:int;autoIncrement" json:"id"`
	Name            string   `gorm:"column:name;type:varchar(255)" json:"name" input:"name" validate:"required"`
	Username        string   `` /* 138-byte string literal not displayed */
	Password        Password `gorm:"column:password;type:varchar(255)" json:"-" input:"password" validate:"required"`
	Email           string   `gorm:"column:email;type:varchar(255) null" json:"email" input:"email"`
	database.WithTimestamps
}

func (User) UserIdentifier

func (u User) UserIdentifier() authenticate.UserIdentifier

Jump to

Keyboard shortcuts

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