woodpecker/model/user.go

15 lines
599 B
Go
Raw Normal View History

2015-09-30 01:21:17 +00:00
package model
type User struct {
2015-09-30 01:21:17 +00:00
ID int64 `json:"id" meddler:"user_id,pk"`
Login string `json:"login" meddler:"user_login"`
Token string `json:"-" meddler:"user_token"`
Secret string `json:"-" meddler:"user_secret"`
2015-10-05 02:39:44 +00:00
Expiry int64 `json:"-" meddler:"user_expiry"`
2015-09-30 01:21:17 +00:00
Email string `json:"email" meddler:"user_email"`
Avatar string `json:"avatar_url" meddler:"user_avatar"`
Active bool `json:"active," meddler:"user_active"`
Admin bool `json:"admin," meddler:"user_admin"`
Hash string `json:"-" meddler:"user_hash"`
}