mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 15:30:25 +08:00
21 lines
328 B
Go
21 lines
328 B
Go
package models
|
|
|
|
import (
|
|
"mayfly-go/base/model"
|
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
)
|
|
|
|
type Role struct {
|
|
model.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))
|
|
}
|