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
311 B
13 lines
311 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"`
|
||
|
Description string `gorm:"size:200" json:"description"`
|
||
|
Permissions []Permission `gorm:"many2many:role_permissions;" json:"permissions"`
|
||
|
}
|