2014-07-13 22:23:33 +00:00
|
|
|
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"`
|
2014-07-13 22:45:01 +00:00
|
|
|
Guest bool `meddler:"-" json:"guest"`
|
2014-07-13 22:23:33 +00:00
|
|
|
Created int64 `meddler:"perm_created" json:"-"`
|
|
|
|
Updated int64 `meddler:"perm_updated" json:"-"`
|
|
|
|
}
|