mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
13 lines
492 B
Go
13 lines
492 B
Go
package model
|
|
|
|
type Perm struct {
|
|
ID int64 `meddler:"perm_id,pk" json:"-"`
|
|
UserID int64 `meddler:"user_id" json:"-"`
|
|
RepoID int64 `meddler:"repo_id" json:"-"`
|
|
Read bool `meddler:"perm_read" json:"read"`
|
|
Write bool `meddler:"perm_write" json:"write"`
|
|
Admin bool `meddler:"perm_admin" json:"admin"`
|
|
Guest bool `meddler:"-" json:"guest"`
|
|
Created int64 `meddler:"perm_created" json:"-"`
|
|
Updated int64 `meddler:"perm_updated" json:"-"`
|
|
}
|