gofiber-study/model/casbin_model/models/casbin_model.go

12 lines
279 B
Go
Raw Normal View History

package models
type CasbinModel struct {
Type string `xorm:"not null pk VARCHAR(32)"`
Name string `xorm:"not null pk default '' unique VARCHAR(255)"`
Rule string `xorm:"not null default '' VARCHAR(255)"`
}
func (m *CasbinModel) TableName() string {
return "casbin_model"
}