2015-05-17 20:51:42 +00:00
|
|
|
package types
|
2015-04-07 08:20:55 +00:00
|
|
|
|
|
|
|
type User struct {
|
2015-08-03 06:50:08 +00:00
|
|
|
ID int64 `json:"id"`
|
|
|
|
Login string `json:"login,omitempty" sql:"unique:ux_user_login"`
|
|
|
|
Token string `json:"-"`
|
|
|
|
Secret string `json:"-"`
|
|
|
|
Email string `json:"email,omitempty"`
|
|
|
|
Avatar string `json:"avatar,omitempty"`
|
|
|
|
Active bool `json:"active,omitempty"`
|
|
|
|
Admin bool `json:"admin,omitempty"`
|
2015-08-11 08:36:07 +00:00
|
|
|
|
|
|
|
// randomly generated hash used to sign user
|
|
|
|
// session and application tokens.
|
|
|
|
Hash string `json:"-"`
|
2015-04-07 08:20:55 +00:00
|
|
|
}
|