type RoleEntity struct {
	models.Model
	UniqueId string `json:"uniqueId" gorm:"primarykey;uniqueId;unique;not null;size:100;"`
	Name     string `json:"name" polyglot:"name"`

	ParentRoleId *string     `json:"parentRoleId"`
	ParentRole   *RoleEntity `json:"parentRole"`

	Capability []capabilities.CapabilityEntity `gorm:"many2many:role_capability;foreignKey:UniqueId;joinForeignKey:UniqueId;References:UniqueId;joinReferences:UniqueId" json:"capabilities"`

	Workspace   WorkspaceEntity `gorm:"foreignKey:WorkspaceID;references:UniqueId" json:"-"`
	WorkspaceID string          `json:"workspaceId" gorm:"size:100;"`
}