models

package
v0.0.0-...-70cf5ae Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: MIT Imports: 6 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         string    `json:"id" gorm:"column:id;primary_key" xml:"id"`
	Email      string    `json:"email" gorm:"column:email" xml:"email"`
	Password   string    `json:"password" gorm:"column:password" xml:"password"`
	Name       string    `json:"name" gorm:"column:name" xml:"name"`
	IsVerified bool      `json:"is_verified" gorm:"column:is_verified" xml:"is_verified"`
	CreatedAt  time.Time `json:"created_at" gorm:"column:created_at" xml:"created_at"`
	Subscribed bool      `json:"subscribed" gorm:"column:subscribed" xml:"subscribed"`
	UpdatedAt  time.Time `json:"updated_at" gorm:"column:updated_at" xml:"updated_at"`
	AuthToken  string    `json:"auth_token" gorm:"column:auth_token" xml:"auth_token"`
}

func CreateUser

func CreateUser(name, email, password string, orm gorm.DB) *User

func FindUser

func FindUser(uuid string, orm gorm.DB) *User

func FindUsers

func FindUsers(orm gorm.DB) []User

func (User) TableName

func (u User) TableName() string

Jump to

Keyboard shortcuts

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