package system

import "sundynix-go/global"

type Role struct {
	global.BaseModel
	Name  string  `gorm:"size:20" json:"name" form:"name"`
	Code  string  `gorm:"size:20" json:"code" form:"code"`
	Sort  int     `json:"sort" form:"sort"`
	Menus []*Menu `gorm:"many2many:role_menu;"`
}
