Files
mayfly-go/models/role.go

20 lines
312 B
Go
Raw Normal View History

2020-09-01 10:34:11 +08:00
package models
import (
"github.com/astaxie/beego/orm"
"mayfly-go/base"
)
type Role struct {
base.Model
Name string `orm:"column(name)" json:"username"`
//AccountId int64 `orm:"column(account_id)`
Account *Account `orm:"rel(fk);index"`
}
func init() {
orm.RegisterModelWithPrefix("t_", new(Role))
}