add publickey & access

This commit is contained in:
Lunny Xiao 2014-02-17 23:57:23 +08:00
parent b1c5adc2f2
commit ee9bcf4d9f
4 changed files with 87 additions and 15 deletions

View file

@ -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"`