mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
add publickey & access
This commit is contained in:
parent
b1c5adc2f2
commit
ee9bcf4d9f
4 changed files with 87 additions and 15 deletions
|
@ -4,25 +4,13 @@
|
|||
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/lunny/xorm"
|
||||
)
|
||||
import "github.com/lunny/xorm"
|
||||
|
||||
var (
|
||||
orm *xorm.Engine
|
||||
repoRootPath string
|
||||
)
|
||||
|
||||
type PublicKey struct {
|
||||
Id int64
|
||||
Name string `xorm:"unique not null"`
|
||||
Content string `xorm:"text not null"`
|
||||
Created time.Time `xorm:"created"`
|
||||
Updated time.Time `xorm:"updated"`
|
||||
}
|
||||
|
||||
type Members struct {
|
||||
Id int64
|
||||
OrgId int64 `xorm:"unique(s) index"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue