repo permissions section is not functional

This commit is contained in:
2026-05-07 14:49:47 +02:00
parent 8cb918b064
commit 5e60b814ed
14 changed files with 584 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
package models
import "time"
// RepoMember stores the explicit permission a user has been granted on a repository.
// The repository owner always has implicit admin access and is never stored here.
type RepoMember struct {
ID int64 `xorm:"'id' pk autoincr"`
RepoID int64 `xorm:"'repo_id' notnull index"`
UserID int64 `xorm:"'user_id' notnull index"`
Permission string `xorm:"'permission' notnull"` // read | write | admin
CreatedAt time.Time `xorm:"'created_at' created"`
}