summaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-17 17:05:37 +0800
committerUnknwon <u@gogs.io>2015-08-17 17:05:37 +0800
commit407385db7eae3ccdef235ac68273364bd704d0bd (patch)
treec32c26581325a5a3abbe78c110634624fa54e330 /models/token.go
parent875f9177713232350b34767fdc87bb15fd417813 (diff)
downloadgitea-407385db7eae3ccdef235ac68273364bd704d0bd.tar.gz
gitea-407385db7eae3ccdef235ac68273364bd704d0bd.zip
work on #1493
Diffstat (limited to 'models/token.go')
-rw-r--r--models/token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/token.go b/models/token.go
index 909d05e072..d171827768 100644
--- a/models/token.go
+++ b/models/token.go
@@ -18,8 +18,8 @@ var (
// AccessToken represents a personal access token.
type AccessToken struct {
- Id int64
- Uid int64
+ ID int64 `xorm:"pk autoincr"`
+ UID int64 `xorm:"uid INDEX"`
Name string
Sha1 string `xorm:"UNIQUE VARCHAR(40)"`
Created time.Time `xorm:"CREATED"`