func FormatPermissionDesc(action string, entity string) string {
	return "Allows the user to " +
		strings.ReplaceAll(FormatPermissionTag(action, entity), ":", " ")
}
FormatPermissionDesc returns a string with the description of the
action:entity permission
package consts
import (
	"fmt"
	"strings"
	"github.com/cmelgarejo/go-gql-server/pkg/utils"
)
type permissionTypes struct {
	Create string
	Read   string
	Update string
	Delete string
	List   string
	Assign string
	Upload string
}
type entitynames struct {
	Users           string
	Roles           string
	Permissions     string
	RoleParents     string
	RolePermissions string
	UserPermissions string
	UserProfiles    string
	UserRoles       string
}
type role struct {
	Name        string
	Description string
}
type dialects struct {
	PostgresSQL string
	MySQL       string
}
var (
	Permissions = permissionTypes{
		Create: "create:%s",
		Read:   "read:%s",
		Update: "update:%s",
		Delete: "delete:%s",
		List:   "list:%s",
		Assign: "assign:%s",
		Upload: "upload:%s",
	}
	EntityNames = entitynames{
		Users:           "Users",
		Roles:           "Roles",
		Permissions:     "Permissions",
		RoleParents:     "RoleParents",
		RolePermissions: "RolePermissions",
		UserPermissions: "UserPermissions",
		UserProfiles:    "UserProfiles",
		UserRoles:       "UserRoles",
	}
	Dialects = dialects{
		PostgresSQL: "postgres",
		MySQL:       "mysql",
	}
	Roles = []role{
		{
			Name:        "admin",
			Description: "Administrator of the app",
		},
		{
			Name:        "user",
			Description: "Normal user of the app",
		},
	}
)
func GetTableName(tablename string) string {
	return utils.ToSnakeCase(tablename)
}
func FormatPermissionTag(action string, entity string) string {
	return fmt.Sprintf(action, entity)
}