models

package
v0.0.0-...-b077276 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2015 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 {
	Id         int64
	Username   string    `orm:"unique;size(10)"`
	Password   string    `orm:"size(32)"`
	Nickname   string    `orm:"size(16)"`
	Email      string    `orm:"size(50)"`
	Lastlogin  time.Time `orm:"auto_now_add;type(datetime)"`
	Lastip     string    `orm:"size(32)"`
	Logincount int64
}

func (*User) Delete

func (this *User) Delete() error

func (*User) Insert

func (this *User) Insert() error

func (*User) Query

func (this *User) Query() orm.QuerySeter

func (*User) Read

func (this *User) Read(fields ...string) error

func (*User) Update

func (this *User) Update(fields ...string) error

Jump to

Keyboard shortcuts

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