diff options
Diffstat (limited to 'internal/db/perms.go')
-rw-r--r-- | internal/db/perms.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/perms.go b/internal/db/perms.go index e3de37e0..a72a013a 100644 --- a/internal/db/perms.go +++ b/internal/db/perms.go @@ -32,7 +32,7 @@ var Perms PermsStore // In case of an organization repository, the members of the owners team are in // this table. type Access struct { - ID int64 + ID int64 `gorm:"primaryKey"` UserID int64 `xorm:"UNIQUE(s)" gorm:"uniqueIndex:access_user_repo_unique;not null"` RepoID int64 `xorm:"UNIQUE(s)" gorm:"uniqueIndex:access_user_repo_unique;not null"` Mode AccessMode `gorm:"not null"` |