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.

14 lines
378 B

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