aboutsummaryrefslogtreecommitdiffstats
path: root/models/access.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/access.go')
-rw-r--r--models/access.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/access.go b/models/access.go
index 5238daba32..81aa43dc78 100644
--- a/models/access.go
+++ b/models/access.go
@@ -21,10 +21,10 @@ const (
// Access represents the accessibility of user to repository.
type Access struct {
Id int64
- UserName string `xorm:"unique(s)"`
- RepoName string `xorm:"unique(s)"` // <user name>/<repo name>
- Mode AccessType `xorm:"unique(s)"`
- Created time.Time `xorm:"created"`
+ UserName string `xorm:"UNIQUE(s)"`
+ RepoName string `xorm:"UNIQUE(s)"` // <user name>/<repo name>
+ Mode AccessType `xorm:"UNIQUE(s)"`
+ Created time.Time `xorm:"CREATED"`
}
// AddAccess adds new access record.