2015-05-17 20:51:42 +00:00
|
|
|
package types
|
2015-04-07 08:20:55 +00:00
|
|
|
|
|
|
|
type User struct {
|
2015-06-18 23:37:40 +00:00
|
|
|
ID int64 `meddler:"user_id,pk" json:"id"`
|
|
|
|
Login string `meddler:"user_login" json:"login,omitempty" sql:"unique:ux_user_login"`
|
|
|
|
Token string `meddler:"user_token" json:"-"`
|
|
|
|
Secret string `meddler:"user_secret" json:"-"`
|
|
|
|
Email string `meddler:"user_email" json:"email,omitempty"`
|
|
|
|
Avatar string `meddler:"user_gravatar" json:"gravatar_id,omitempty"`
|
|
|
|
Active bool `meddler:"user_active" json:"active,omitempty"`
|
|
|
|
Admin bool `meddler:"user_admin" json:"admin,omitempty"`
|
2015-04-07 08:20:55 +00:00
|
|
|
}
|