You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
378 B

package model
import (
"gofaster/internal/shared/model"
)
type Role struct {
model.BaseModel
Name string `gorm:"uniqueIndex;size:50" json:"name"`
Code string `gorm:"uniqueIndex;size:50" json:"code"`
Description string `gorm:"size:200" json:"description"`
Permissions []Permission `gorm:"many2many:role_permissions;" json:"permissions"`
}