summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authortechknowlogick <matti@mdranta.net>2019-03-18 22:28:10 -0400
committerGitHub <noreply@github.com>2019-03-18 22:28:10 -0400
commitd1c982cb731a0744e2a8e0863b46ff9e99c99b63 (patch)
treefd6dc3e432f90e3cc4a5e132ef97f94633ce3149 /models
parentba2f6a45c8ef44f74772456fc98c27faca058241 (diff)
downloadgitea-d1c982cb731a0744e2a8e0863b46ff9e99c99b63.tar.gz
gitea-d1c982cb731a0744e2a8e0863b46ff9e99c99b63.zip
Add bio field for user (#6113)
Fix #4339
Diffstat (limited to 'models')
-rw-r--r--models/user.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/models/user.go b/models/user.go
index 1ed949355f..8fc15848c8 100644
--- a/models/user.go
+++ b/models/user.go
@@ -104,6 +104,7 @@ type User struct {
Rands string `xorm:"VARCHAR(10)"`
Salt string `xorm:"VARCHAR(10)"`
Language string `xorm:"VARCHAR(5)"`
+ Description string
CreatedUnix util.TimeStamp `xorm:"INDEX created"`
UpdatedUnix util.TimeStamp `xorm:"INDEX updated"`
@@ -134,12 +135,11 @@ type User struct {
NumRepos int
// For organization
- Description string
- NumTeams int
- NumMembers int
- Teams []*Team `xorm:"-"`
- Members []*User `xorm:"-"`
- Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
+ NumTeams int
+ NumMembers int
+ Teams []*Team `xorm:"-"`
+ Members []*User `xorm:"-"`
+ Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
// Preferences
DiffViewStyle string `xorm:"NOT NULL DEFAULT ''"`