mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 01:00:37 +00:00
moved to single binary project structure
This commit is contained in:
16
model/user.go
Normal file
16
model/user.go
Normal 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:"-"`
|
||||
}
|
Reference in New Issue
Block a user