models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 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 {
	Id          int64
	Username    string    `xorm:"varchar(20) not null unique"`
	Password    string    `xorm:"varchar(20) not null"`
	Secret      string    `xorm:"char(32) not null"`
	Cellphone   string    `xorm:"varchar(20) not null unique"`
	Email       string    `xorm:"varchar(20)"`
	CreatedTime time.Time `xorm:"not null 'created_time'"`
	UpdatedTime time.Time `xorm:"not null 'updated_time'"`
}

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