diff options
author | Unknwon <u@gogs.io> | 2017-05-21 04:36:41 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-05-21 04:36:41 -0400 |
commit | ce6e8ed8fe8bf82fef16996a7e0b90ce64755e08 (patch) | |
tree | 59150762f9d8fde5fc1be56d4b704b5201aae641 /models/org_team.go | |
parent | 1755025e7f5e3b9b4fd46e37a5d74f8e192f7bd2 (diff) |
models: remove redundant tags for primary keys
Diffstat (limited to 'models/org_team.go')
-rw-r--r-- | models/org_team.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org_team.go b/models/org_team.go index a7fe3a33..1b23f3a3 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -16,7 +16,7 @@ const OWNER_TEAM = "Owners" // Team represents a organization team. type Team struct { - ID int64 `xorm:"pk autoincr"` + ID int64 OrgID int64 `xorm:"INDEX"` LowerName string Name string @@ -406,7 +406,7 @@ func DeleteTeam(t *Team) error { // TeamUser represents an team-user relation. type TeamUser struct { - ID int64 `xorm:"pk autoincr"` + ID int64 OrgID int64 `xorm:"INDEX"` TeamID int64 `xorm:"UNIQUE(s)"` UID int64 `xorm:"UNIQUE(s)"` |