moved to single binary project structure

This commit is contained in:
Brad Rydzewski
2015-09-29 17:53:21 -07:00
parent 76ea19aca0
commit 155576fb03
139 changed files with 0 additions and 9815 deletions

16
model/user.go Normal file
View File

@@ -0,0 +1,16 @@
package types
type User struct {
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_url,omitempty"`
Active bool `json:"active,omitempty"`
Admin bool `json:"admin,omitempty"`
// randomly generated hash used to sign user
// session and application tokens.
Hash string `json:"-"`
}