码农笔录博客源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
610 B

пре 6 година
package models
import "time"
type User struct {
Id int64
UserName string `orm:"unique"`
пре 6 година
NickName string
пре 6 година
UserPwd string
Salt string
Headimg string
пре 6 година
Birthday time.Time `orm:"auto_now_add;type(datetime)"`
пре 6 година
Email string
Mobile string
QQ string
HomeUrl string
пре 6 година
Sex int `orm:"default(1)"`
пре 6 година
DescInfo string
Ctime time.Time `orm:"auto_now_add;type(datetime)"`
пре 6 година
BlogCount int `orm:"default(0)"`
BlogBrowes int `orm:"default(0)"`
BlogComment int `orm:"default(0)"`
BlogLike int `orm:"default(0)"`
пре 6 година
}
пре 6 година
func (u *User) TableName() string {
return "auth_user"
}