gen

package
v0.0.0-...-a6acc86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyPrincipalID         key    = iota
	KeyLoaders             key    = iota
	KeyExecutableSchema    key    = iota
	KeyJWTClaims           key    = iota
	KeyMutationTransaction key    = iota
	KeyMutationEvents      key    = iota
	SchemaSDL              string = `` /* 52994-byte string literal not displayed */

)

consts ...

View Source
const (
	JWTPermissionConstCreate = "create"
	JWTPermissionConstRead   = "read"
	JWTPermissionConstUpdate = "update"
	JWTPermissionConstDelete = "delete"
	JWTPermissionConstList   = "list"
)

Permission Constants

View Source
const (
	// ORMChangeEvent ...
	ORMChangeEvent = "com.graphql.orm.change"
)

Variables

Functions

func AddMutationEvent

func AddMutationEvent(ctx context.Context, e events.Event)

AddMutationEvent method

func ApplyChanges

func ApplyChanges(changes map[string]interface{}, to interface{}) error

ApplyChanges used to convert map[string]interface{} to EntityChanges struct

func AutoMigrate

func AutoMigrate(db *gorm.DB) (err error)

func DeleteAllPermissionsHandler

func DeleteAllPermissionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllPermissionsHandler handler

func DeleteAllProfilesHandler

func DeleteAllProfilesHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllProfilesHandler handler

func DeleteAllRolesHandler

func DeleteAllRolesHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllRolesHandler handler

func DeleteAllUserAPIKeysHandler

func DeleteAllUserAPIKeysHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllUserAPIKeysHandler handler

func DeleteAllUsersHandler

func DeleteAllUsersHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllUsersHandler handler

func EnrichContextWithMutations

func EnrichContextWithMutations(ctx context.Context, r *GeneratedResolver) context.Context

EnrichContextWithMutations method

func FinishMutationContext

func FinishMutationContext(ctx context.Context, r *GeneratedResolver) (err error)

FinishMutationContext method

func GetHTTPHandler

func GetHTTPHandler(r ResolverRoot, db *DB, migrations []*gormigrate.Migration, res http.ResponseWriter, req *http.Request)

GetHTTPHandler HTTP func Handler

func GetHTTPServeMux

func GetHTTPServeMux(r ResolverRoot, db *DB, migrations []*gormigrate.Migration) *mux.Router

GetHTTPServeMux HTTP Mux

func GetItem

func GetItem(ctx context.Context, db *gorm.DB, out interface{}, id *string) error

GetItem ...

func GetItemForRelation

func GetItemForRelation(ctx context.Context, db *gorm.DB, obj interface{}, relation string, out interface{}) error

GetItemForRelation ...

func GetLoaders

func GetLoaders(db *DB) map[string]*dataloader.Loader

GetLoaders ...

func GetPrincipalIDFromContext

func GetPrincipalIDFromContext(ctx context.Context) *string

GetPrincipalIDFromContext ...

func HasPermission

func HasPermission(c *JWTClaims, e string, p string) bool

HasPermission method checks if claims have an [e]ntity's [p]ermission

func HasRole

func HasRole(c *JWTClaims, r string) bool

HasRole method checks if claims has a specific [r]ole

func Migrate

func Migrate(db *gorm.DB, options *gormigrate.Options, migrations []*gormigrate.Migration) error

Migrate runs migrations

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

func RollbackMutationContext

func RollbackMutationContext(ctx context.Context, r *GeneratedResolver) error

RollbackMutationContext method

func TableName

func TableName(name string) string

TableName gets table name

Types

type ComplexityRoot

type ComplexityRoot struct {
	Mutation struct {
		CreatePermission     func(childComplexity int, input map[string]interface{}) int
		CreateProfile        func(childComplexity int, input map[string]interface{}) int
		CreateRole           func(childComplexity int, input map[string]interface{}) int
		CreateUser           func(childComplexity int, input map[string]interface{}) int
		CreateUserAPIKey     func(childComplexity int, input map[string]interface{}) int
		DeleteAllPermissions func(childComplexity int) int
		DeleteAllProfiles    func(childComplexity int) int
		DeleteAllRoles       func(childComplexity int) int
		DeleteAllUserAPIKeys func(childComplexity int) int
		DeleteAllUsers       func(childComplexity int) int
		DeletePermission     func(childComplexity int, id string) int
		DeleteProfile        func(childComplexity int, id string) int
		DeleteRole           func(childComplexity int, id string) int
		DeleteUser           func(childComplexity int, id string) int
		DeleteUserAPIKey     func(childComplexity int, id string) int
		UpdatePermission     func(childComplexity int, id string, input map[string]interface{}) int
		UpdateProfile        func(childComplexity int, id string, input map[string]interface{}) int
		UpdateRole           func(childComplexity int, id string, input map[string]interface{}) int
		UpdateUser           func(childComplexity int, id string, input map[string]interface{}) int
		UpdateUserAPIKey     func(childComplexity int, id string, input map[string]interface{}) int
	}

	Permission struct {
		Apikeys           func(childComplexity int) int
		ApikeysConnection func(childComplexity int, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) int
		ApikeysIds        func(childComplexity int) int
		CreatedAt         func(childComplexity int) int
		CreatedBy         func(childComplexity int) int
		Description       func(childComplexity int) int
		Domain            func(childComplexity int) int
		ID                func(childComplexity int) int
		Roles             func(childComplexity int) int
		RolesConnection   func(childComplexity int, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) int
		RolesIds          func(childComplexity int) int
		Tag               func(childComplexity int) int
		UpdatedAt         func(childComplexity int) int
		UpdatedBy         func(childComplexity int) int
		Users             func(childComplexity int) int
		UsersConnection   func(childComplexity int, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) int
		UsersIds          func(childComplexity int) int
	}

	PermissionResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	Profile struct {
		AvatarURL       func(childComplexity int) int
		CreatedAt       func(childComplexity int) int
		CreatedBy       func(childComplexity int) int
		Description     func(childComplexity int) int
		Email           func(childComplexity int) int
		ExternalUserID  func(childComplexity int) int
		FirstName       func(childComplexity int) int
		ID              func(childComplexity int) int
		LastName        func(childComplexity int) int
		Location        func(childComplexity int) int
		Name            func(childComplexity int) int
		NickName        func(childComplexity int) int
		Provider        func(childComplexity int) int
		UpdatedAt       func(childComplexity int) int
		UpdatedBy       func(childComplexity int) int
		Users           func(childComplexity int) int
		UsersConnection func(childComplexity int, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) int
		UsersIds        func(childComplexity int) int
	}

	ProfileResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	Query struct {
		Permission  func(childComplexity int, id *string, q *string, filter *PermissionFilterType) int
		Permissions func(childComplexity int, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) int
		Profile     func(childComplexity int, id *string, q *string, filter *ProfileFilterType) int
		Profiles    func(childComplexity int, offset *int, limit *int, q *string, sort []*ProfileSortType, filter *ProfileFilterType) int
		Role        func(childComplexity int, id *string, q *string, filter *RoleFilterType) int
		Roles       func(childComplexity int, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) int
		User        func(childComplexity int, id *string, q *string, filter *UserFilterType) int
		UserAPIKey  func(childComplexity int, id *string, q *string, filter *UserAPIKeyFilterType) int
		UserAPIKeys func(childComplexity int, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) int
		Users       func(childComplexity int, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) int
		// contains filtered or unexported fields
	}

	Role struct {
		Children              func(childComplexity int) int
		ChildrenConnection    func(childComplexity int, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) int
		ChildrenIds           func(childComplexity int) int
		CreatedAt             func(childComplexity int) int
		CreatedBy             func(childComplexity int) int
		Description           func(childComplexity int) int
		Domain                func(childComplexity int) int
		ID                    func(childComplexity int) int
		Name                  func(childComplexity int) int
		Parents               func(childComplexity int) int
		ParentsConnection     func(childComplexity int, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) int
		ParentsIds            func(childComplexity int) int
		Permissions           func(childComplexity int) int
		PermissionsConnection func(childComplexity int, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) int
		PermissionsIds        func(childComplexity int) int
		UpdatedAt             func(childComplexity int) int
		UpdatedBy             func(childComplexity int) int
		Users                 func(childComplexity int) int
		UsersConnection       func(childComplexity int, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) int
		UsersIds              func(childComplexity int) int
	}

	RoleResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	User struct {
		Active                func(childComplexity int) int
		Apikeys               func(childComplexity int) int
		ApikeysConnection     func(childComplexity int, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) int
		ApikeysIds            func(childComplexity int) int
		AvatarURL             func(childComplexity int) int
		CreatedAt             func(childComplexity int) int
		CreatedBy             func(childComplexity int) int
		Description           func(childComplexity int) int
		DisplayName           func(childComplexity int) int
		Email                 func(childComplexity int) int
		FirstName             func(childComplexity int) int
		ID                    func(childComplexity int) int
		LastName              func(childComplexity int) int
		Location              func(childComplexity int) int
		NickName              func(childComplexity int) int
		Password              func(childComplexity int) int
		Permissions           func(childComplexity int) int
		PermissionsConnection func(childComplexity int, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) int
		PermissionsIds        func(childComplexity int) int
		Profiles              func(childComplexity int) int
		ProfilesConnection    func(childComplexity int, offset *int, limit *int, q *string, sort []*ProfileSortType, filter *ProfileFilterType) int
		ProfilesIds           func(childComplexity int) int
		Roles                 func(childComplexity int) int
		RolesConnection       func(childComplexity int, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) int
		RolesIds              func(childComplexity int) int
		UpdatedAt             func(childComplexity int) int
		UpdatedBy             func(childComplexity int) int
	}

	UserAPIKey struct {
		CreatedAt             func(childComplexity int) int
		CreatedBy             func(childComplexity int) int
		Description           func(childComplexity int) int
		ID                    func(childComplexity int) int
		Key                   func(childComplexity int) int
		Permissions           func(childComplexity int) int
		PermissionsConnection func(childComplexity int, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) int
		PermissionsIds        func(childComplexity int) int
		UpdatedAt             func(childComplexity int) int
		UpdatedBy             func(childComplexity int) int
		User                  func(childComplexity int) int
		UserID                func(childComplexity int) int
	}

	UserAPIKeyResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	UserResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	Service struct {
		SDL func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB ...

func NewDB

func NewDB(db *gorm.DB) *DB

NewDB ...

func NewDBFromEnvVars

func NewDBFromEnvVars() *DB

NewDBFromEnvVars Create database client using DATABASE_URL environment variable

func NewDBWithString

func NewDBWithString(urlString string) *DB

NewDBWithString creates database instance with database URL string

func (*DB) AutoMigrate

func (db *DB) AutoMigrate() error

AutoMigrate run basic gorm automigration

func (*DB) Close

func (db *DB) Close() error

Close ...

func (*DB) Migrate

func (db *DB) Migrate(migrations []*gormigrate.Migration) error

Migrate run migrations using automigrate

func (*DB) Ping

func (db *DB) Ping() error

Ping pong

func (*DB) Query

func (db *DB) Query() *gorm.DB

Query ...

type DirectiveRoot

type DirectiveRoot struct {
}

type EntityFilter

type EntityFilter interface {
	Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error
}

EntityFilter interface

type EntityFilterQuery

type EntityFilterQuery interface {
	Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error
}

EntityFilterQuery interface

type EntityResultType

type EntityResultType struct {
	Offset       *int
	Limit        *int
	Query        EntityFilterQuery
	Sort         []EntitySort
	Filter       EntityFilter
	Fields       []*ast.Field
	SelectionSet *ast.SelectionSet
}

EntityResultType struct

func (*EntityResultType) GetCount

func (r *EntityResultType) GetCount(ctx context.Context, db *gorm.DB, opts GetItemsOptions, out interface{}) (count int, err error)

GetCount ...

func (*EntityResultType) GetItems

func (r *EntityResultType) GetItems(ctx context.Context, db *gorm.DB, opts GetItemsOptions, out interface{}) error

GetItems ...

func (*EntityResultType) GetSortStrings

func (r *EntityResultType) GetSortStrings() []string

GetSortStrings ...

type EntitySort

type EntitySort interface {
	Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error
}

EntitySort interface

type EventController

type EventController struct {
	// contains filtered or unexported fields
}

EventController ...

func NewEventController

func NewEventController() (ec EventController, err error)

NewEventController ...

func (*EventController) SendEvent

func (c *EventController) SendEvent(ctx context.Context, e *events.Event) (err error)

SendEvent ...

type GeneratedMutationResolver

type GeneratedMutationResolver struct{ *GeneratedResolver }

GeneratedMutationResolver struct

func (*GeneratedMutationResolver) CreatePermission

func (r *GeneratedMutationResolver) CreatePermission(ctx context.Context, input map[string]interface{}) (item *Permission, err error)

CreatePermission method

func (*GeneratedMutationResolver) CreateProfile

func (r *GeneratedMutationResolver) CreateProfile(ctx context.Context, input map[string]interface{}) (item *Profile, err error)

CreateProfile method

func (*GeneratedMutationResolver) CreateRole

func (r *GeneratedMutationResolver) CreateRole(ctx context.Context, input map[string]interface{}) (item *Role, err error)

CreateRole method

func (*GeneratedMutationResolver) CreateUser

func (r *GeneratedMutationResolver) CreateUser(ctx context.Context, input map[string]interface{}) (item *User, err error)

CreateUser method

func (*GeneratedMutationResolver) CreateUserAPIKey

func (r *GeneratedMutationResolver) CreateUserAPIKey(ctx context.Context, input map[string]interface{}) (item *UserAPIKey, err error)

CreateUserAPIKey method

func (*GeneratedMutationResolver) DeleteAllPermissions

func (r *GeneratedMutationResolver) DeleteAllPermissions(ctx context.Context) (bool, error)

DeleteAllPermissions method

func (*GeneratedMutationResolver) DeleteAllProfiles

func (r *GeneratedMutationResolver) DeleteAllProfiles(ctx context.Context) (bool, error)

DeleteAllProfiles method

func (*GeneratedMutationResolver) DeleteAllRoles

func (r *GeneratedMutationResolver) DeleteAllRoles(ctx context.Context) (bool, error)

DeleteAllRoles method

func (*GeneratedMutationResolver) DeleteAllUserAPIKeys

func (r *GeneratedMutationResolver) DeleteAllUserAPIKeys(ctx context.Context) (bool, error)

DeleteAllUserAPIKeys method

func (*GeneratedMutationResolver) DeleteAllUsers

func (r *GeneratedMutationResolver) DeleteAllUsers(ctx context.Context) (bool, error)

DeleteAllUsers method

func (*GeneratedMutationResolver) DeletePermission

func (r *GeneratedMutationResolver) DeletePermission(ctx context.Context, id string) (item *Permission, err error)

DeletePermission method

func (*GeneratedMutationResolver) DeleteProfile

func (r *GeneratedMutationResolver) DeleteProfile(ctx context.Context, id string) (item *Profile, err error)

DeleteProfile method

func (*GeneratedMutationResolver) DeleteRole

func (r *GeneratedMutationResolver) DeleteRole(ctx context.Context, id string) (item *Role, err error)

DeleteRole method

func (*GeneratedMutationResolver) DeleteUser

func (r *GeneratedMutationResolver) DeleteUser(ctx context.Context, id string) (item *User, err error)

DeleteUser method

func (*GeneratedMutationResolver) DeleteUserAPIKey

func (r *GeneratedMutationResolver) DeleteUserAPIKey(ctx context.Context, id string) (item *UserAPIKey, err error)

DeleteUserAPIKey method

func (*GeneratedMutationResolver) UpdatePermission

func (r *GeneratedMutationResolver) UpdatePermission(ctx context.Context, id string, input map[string]interface{}) (item *Permission, err error)

UpdatePermission method

func (*GeneratedMutationResolver) UpdateProfile

func (r *GeneratedMutationResolver) UpdateProfile(ctx context.Context, id string, input map[string]interface{}) (item *Profile, err error)

UpdateProfile method

func (*GeneratedMutationResolver) UpdateRole

func (r *GeneratedMutationResolver) UpdateRole(ctx context.Context, id string, input map[string]interface{}) (item *Role, err error)

UpdateRole method

func (*GeneratedMutationResolver) UpdateUser

func (r *GeneratedMutationResolver) UpdateUser(ctx context.Context, id string, input map[string]interface{}) (item *User, err error)

UpdateUser method

func (*GeneratedMutationResolver) UpdateUserAPIKey

func (r *GeneratedMutationResolver) UpdateUserAPIKey(ctx context.Context, id string, input map[string]interface{}) (item *UserAPIKey, err error)

UpdateUserAPIKey method

type GeneratedPermissionResolver

type GeneratedPermissionResolver struct{ *GeneratedResolver }

GeneratedPermissionResolver struct

func (*GeneratedPermissionResolver) Apikeys

func (r *GeneratedPermissionResolver) Apikeys(ctx context.Context, obj *Permission) (res []*UserAPIKey, err error)

Apikeys ...

func (*GeneratedPermissionResolver) ApikeysConnection

func (r *GeneratedPermissionResolver) ApikeysConnection(ctx context.Context, obj *Permission, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) (res *UserAPIKeyResultType, err error)

ApikeysConnection method

func (*GeneratedPermissionResolver) ApikeysIds

func (r *GeneratedPermissionResolver) ApikeysIds(ctx context.Context, obj *Permission) (ids []string, err error)

ApikeysIds ...

func (*GeneratedPermissionResolver) Roles

func (r *GeneratedPermissionResolver) Roles(ctx context.Context, obj *Permission) (res []*Role, err error)

Roles ...

func (*GeneratedPermissionResolver) RolesConnection

func (r *GeneratedPermissionResolver) RolesConnection(ctx context.Context, obj *Permission, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (res *RoleResultType, err error)

RolesConnection method

func (*GeneratedPermissionResolver) RolesIds

func (r *GeneratedPermissionResolver) RolesIds(ctx context.Context, obj *Permission) (ids []string, err error)

RolesIds ...

func (*GeneratedPermissionResolver) Users

func (r *GeneratedPermissionResolver) Users(ctx context.Context, obj *Permission) (res []*User, err error)

Users ...

func (*GeneratedPermissionResolver) UsersConnection

func (r *GeneratedPermissionResolver) UsersConnection(ctx context.Context, obj *Permission, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (res *UserResultType, err error)

UsersConnection method

func (*GeneratedPermissionResolver) UsersIds

func (r *GeneratedPermissionResolver) UsersIds(ctx context.Context, obj *Permission) (ids []string, err error)

UsersIds ...

type GeneratedPermissionResultTypeResolver

type GeneratedPermissionResultTypeResolver struct{ *GeneratedResolver }

GeneratedPermissionResultTypeResolver struct

func (*GeneratedPermissionResultTypeResolver) Count

Count ...

func (*GeneratedPermissionResultTypeResolver) Items

Items ...

type GeneratedProfileResolver

type GeneratedProfileResolver struct{ *GeneratedResolver }

GeneratedProfileResolver struct

func (*GeneratedProfileResolver) Users

func (r *GeneratedProfileResolver) Users(ctx context.Context, obj *Profile) (res []*User, err error)

Users ...

func (*GeneratedProfileResolver) UsersConnection

func (r *GeneratedProfileResolver) UsersConnection(ctx context.Context, obj *Profile, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (res *UserResultType, err error)

UsersConnection method

func (*GeneratedProfileResolver) UsersIds

func (r *GeneratedProfileResolver) UsersIds(ctx context.Context, obj *Profile) (ids []string, err error)

UsersIds ...

type GeneratedProfileResultTypeResolver

type GeneratedProfileResultTypeResolver struct{ *GeneratedResolver }

GeneratedProfileResultTypeResolver struct

func (*GeneratedProfileResultTypeResolver) Count

Count ...

func (*GeneratedProfileResultTypeResolver) Items

Items ...

type GeneratedQueryResolver

type GeneratedQueryResolver struct{ *GeneratedResolver }

GeneratedQueryResolver struct

func (*GeneratedQueryResolver) Permission

func (r *GeneratedQueryResolver) Permission(ctx context.Context, id *string, q *string, filter *PermissionFilterType) (*Permission, error)

Permission ...

func (*GeneratedQueryResolver) Permissions

func (r *GeneratedQueryResolver) Permissions(ctx context.Context, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (*PermissionResultType, error)

Permissions handler options

func (*GeneratedQueryResolver) Profile

func (r *GeneratedQueryResolver) Profile(ctx context.Context, id *string, q *string, filter *ProfileFilterType) (*Profile, error)

Profile ...

func (*GeneratedQueryResolver) Profiles

func (r *GeneratedQueryResolver) Profiles(ctx context.Context, offset *int, limit *int, q *string, sort []*ProfileSortType, filter *ProfileFilterType) (*ProfileResultType, error)

Profiles handler options

func (*GeneratedQueryResolver) Role

func (r *GeneratedQueryResolver) Role(ctx context.Context, id *string, q *string, filter *RoleFilterType) (*Role, error)

Role ...

func (*GeneratedQueryResolver) Roles

func (r *GeneratedQueryResolver) Roles(ctx context.Context, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (*RoleResultType, error)

Roles handler options

func (*GeneratedQueryResolver) User

func (r *GeneratedQueryResolver) User(ctx context.Context, id *string, q *string, filter *UserFilterType) (*User, error)

User ...

func (*GeneratedQueryResolver) UserAPIKey

func (r *GeneratedQueryResolver) UserAPIKey(ctx context.Context, id *string, q *string, filter *UserAPIKeyFilterType) (*UserAPIKey, error)

UserAPIKey ...

func (*GeneratedQueryResolver) UserAPIKeys

func (r *GeneratedQueryResolver) UserAPIKeys(ctx context.Context, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) (*UserAPIKeyResultType, error)

UserAPIKeys handler options

func (*GeneratedQueryResolver) Users

func (r *GeneratedQueryResolver) Users(ctx context.Context, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (*UserResultType, error)

Users handler options

type GeneratedResolver

type GeneratedResolver struct {
	Handlers ResolutionHandlers

	EventController *EventController
	// contains filtered or unexported fields
}

GeneratedResolver struct

func NewGeneratedResolver

func NewGeneratedResolver(handlers ResolutionHandlers, db *DB, ec *EventController) *GeneratedResolver

func (*GeneratedResolver) GetDB

func (r *GeneratedResolver) GetDB(ctx context.Context) *gorm.DB

GetDB returns database connection or transaction for given context (if exists)

func (*GeneratedResolver) PermissionsCount

func (r *GeneratedResolver) PermissionsCount(ctx context.Context, opts QueryPermissionsHandlerOptions) (count int, err error)

PermissionsCount handler

func (*GeneratedResolver) PermissionsItems

func (r *GeneratedResolver) PermissionsItems(ctx context.Context, opts QueryPermissionsHandlerOptions) (res []*Permission, err error)

PermissionsItems handler

func (*GeneratedResolver) ProfilesCount

func (r *GeneratedResolver) ProfilesCount(ctx context.Context, opts QueryProfilesHandlerOptions) (count int, err error)

ProfilesCount handler

func (*GeneratedResolver) ProfilesItems

func (r *GeneratedResolver) ProfilesItems(ctx context.Context, opts QueryProfilesHandlerOptions) (res []*Profile, err error)

ProfilesItems handler

func (*GeneratedResolver) RolesCount

func (r *GeneratedResolver) RolesCount(ctx context.Context, opts QueryRolesHandlerOptions) (count int, err error)

RolesCount handler

func (*GeneratedResolver) RolesItems

func (r *GeneratedResolver) RolesItems(ctx context.Context, opts QueryRolesHandlerOptions) (res []*Role, err error)

RolesItems handler

func (*GeneratedResolver) UserAPIKeysCount

func (r *GeneratedResolver) UserAPIKeysCount(ctx context.Context, opts QueryUserAPIKeysHandlerOptions) (count int, err error)

UserAPIKeysCount handler

func (*GeneratedResolver) UserAPIKeysItems

func (r *GeneratedResolver) UserAPIKeysItems(ctx context.Context, opts QueryUserAPIKeysHandlerOptions) (res []*UserAPIKey, err error)

UserAPIKeysItems handler

func (*GeneratedResolver) UsersCount

func (r *GeneratedResolver) UsersCount(ctx context.Context, opts QueryUsersHandlerOptions) (count int, err error)

UsersCount handler

func (*GeneratedResolver) UsersItems

func (r *GeneratedResolver) UsersItems(ctx context.Context, opts QueryUsersHandlerOptions) (res []*User, err error)

UsersItems handler

type GeneratedRoleResolver

type GeneratedRoleResolver struct{ *GeneratedResolver }

GeneratedRoleResolver struct

func (*GeneratedRoleResolver) Children

func (r *GeneratedRoleResolver) Children(ctx context.Context, obj *Role) (res []*Role, err error)

Children ...

func (*GeneratedRoleResolver) ChildrenConnection

func (r *GeneratedRoleResolver) ChildrenConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (res *RoleResultType, err error)

ChildrenConnection method

func (*GeneratedRoleResolver) ChildrenIds

func (r *GeneratedRoleResolver) ChildrenIds(ctx context.Context, obj *Role) (ids []string, err error)

ChildrenIds ...

func (*GeneratedRoleResolver) Parents

func (r *GeneratedRoleResolver) Parents(ctx context.Context, obj *Role) (res []*Role, err error)

Parents ...

func (*GeneratedRoleResolver) ParentsConnection

func (r *GeneratedRoleResolver) ParentsConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (res *RoleResultType, err error)

ParentsConnection method

func (*GeneratedRoleResolver) ParentsIds

func (r *GeneratedRoleResolver) ParentsIds(ctx context.Context, obj *Role) (ids []string, err error)

ParentsIds ...

func (*GeneratedRoleResolver) Permissions

func (r *GeneratedRoleResolver) Permissions(ctx context.Context, obj *Role) (res []*Permission, err error)

Permissions ...

func (*GeneratedRoleResolver) PermissionsConnection

func (r *GeneratedRoleResolver) PermissionsConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (res *PermissionResultType, err error)

PermissionsConnection method

func (*GeneratedRoleResolver) PermissionsIds

func (r *GeneratedRoleResolver) PermissionsIds(ctx context.Context, obj *Role) (ids []string, err error)

PermissionsIds ...

func (*GeneratedRoleResolver) Users

func (r *GeneratedRoleResolver) Users(ctx context.Context, obj *Role) (res []*User, err error)

Users ...

func (*GeneratedRoleResolver) UsersConnection

func (r *GeneratedRoleResolver) UsersConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (res *UserResultType, err error)

UsersConnection method

func (*GeneratedRoleResolver) UsersIds

func (r *GeneratedRoleResolver) UsersIds(ctx context.Context, obj *Role) (ids []string, err error)

UsersIds ...

type GeneratedRoleResultTypeResolver

type GeneratedRoleResultTypeResolver struct{ *GeneratedResolver }

GeneratedRoleResultTypeResolver struct

func (*GeneratedRoleResultTypeResolver) Count

func (r *GeneratedRoleResultTypeResolver) Count(ctx context.Context, obj *RoleResultType) (count int, err error)

Count ...

func (*GeneratedRoleResultTypeResolver) Items

func (r *GeneratedRoleResultTypeResolver) Items(ctx context.Context, obj *RoleResultType) (items []*Role, err error)

Items ...

type GeneratedUserAPIKeyResolver

type GeneratedUserAPIKeyResolver struct{ *GeneratedResolver }

GeneratedUserAPIKeyResolver struct

func (*GeneratedUserAPIKeyResolver) Permissions

func (r *GeneratedUserAPIKeyResolver) Permissions(ctx context.Context, obj *UserAPIKey) (res []*Permission, err error)

Permissions ...

func (*GeneratedUserAPIKeyResolver) PermissionsConnection

func (r *GeneratedUserAPIKeyResolver) PermissionsConnection(ctx context.Context, obj *UserAPIKey, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (res *PermissionResultType, err error)

PermissionsConnection method

func (*GeneratedUserAPIKeyResolver) PermissionsIds

func (r *GeneratedUserAPIKeyResolver) PermissionsIds(ctx context.Context, obj *UserAPIKey) (ids []string, err error)

PermissionsIds ...

func (*GeneratedUserAPIKeyResolver) User

func (r *GeneratedUserAPIKeyResolver) User(ctx context.Context, obj *UserAPIKey) (res *User, err error)

User ...

type GeneratedUserAPIKeyResultTypeResolver

type GeneratedUserAPIKeyResultTypeResolver struct{ *GeneratedResolver }

GeneratedUserAPIKeyResultTypeResolver struct

func (*GeneratedUserAPIKeyResultTypeResolver) Count

Count ...

func (*GeneratedUserAPIKeyResultTypeResolver) Items

Items ...

type GeneratedUserResolver

type GeneratedUserResolver struct{ *GeneratedResolver }

GeneratedUserResolver struct

func (*GeneratedUserResolver) Apikeys

func (r *GeneratedUserResolver) Apikeys(ctx context.Context, obj *User) (res []*UserAPIKey, err error)

Apikeys ...

func (*GeneratedUserResolver) ApikeysConnection

func (r *GeneratedUserResolver) ApikeysConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) (res *UserAPIKeyResultType, err error)

ApikeysConnection method

func (*GeneratedUserResolver) ApikeysIds

func (r *GeneratedUserResolver) ApikeysIds(ctx context.Context, obj *User) (ids []string, err error)

ApikeysIds ...

func (*GeneratedUserResolver) Permissions

func (r *GeneratedUserResolver) Permissions(ctx context.Context, obj *User) (res []*Permission, err error)

Permissions ...

func (*GeneratedUserResolver) PermissionsConnection

func (r *GeneratedUserResolver) PermissionsConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (res *PermissionResultType, err error)

PermissionsConnection method

func (*GeneratedUserResolver) PermissionsIds

func (r *GeneratedUserResolver) PermissionsIds(ctx context.Context, obj *User) (ids []string, err error)

PermissionsIds ...

func (*GeneratedUserResolver) Profiles

func (r *GeneratedUserResolver) Profiles(ctx context.Context, obj *User) (res []*Profile, err error)

Profiles ...

func (*GeneratedUserResolver) ProfilesConnection

func (r *GeneratedUserResolver) ProfilesConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*ProfileSortType, filter *ProfileFilterType) (res *ProfileResultType, err error)

ProfilesConnection method

func (*GeneratedUserResolver) ProfilesIds

func (r *GeneratedUserResolver) ProfilesIds(ctx context.Context, obj *User) (ids []string, err error)

ProfilesIds ...

func (*GeneratedUserResolver) Roles

func (r *GeneratedUserResolver) Roles(ctx context.Context, obj *User) (res []*Role, err error)

Roles ...

func (*GeneratedUserResolver) RolesConnection

func (r *GeneratedUserResolver) RolesConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (res *RoleResultType, err error)

RolesConnection method

func (*GeneratedUserResolver) RolesIds

func (r *GeneratedUserResolver) RolesIds(ctx context.Context, obj *User) (ids []string, err error)

RolesIds ...

type GeneratedUserResultTypeResolver

type GeneratedUserResultTypeResolver struct{ *GeneratedResolver }

GeneratedUserResultTypeResolver struct

func (*GeneratedUserResultTypeResolver) Count

func (r *GeneratedUserResultTypeResolver) Count(ctx context.Context, obj *UserResultType) (count int, err error)

Count ...

func (*GeneratedUserResultTypeResolver) Items

func (r *GeneratedUserResultTypeResolver) Items(ctx context.Context, obj *UserResultType) (items []*User, err error)

Items ...

type GetItemsOptions

type GetItemsOptions struct {
	Alias      string
	Preloaders []string
}

GetItemsOptions struct

type JWTClaims

type JWTClaims struct {
	jwtgo.StandardClaims
	Email       string            `json:"email"`
	Name        string            `json:"name"`
	Nickname    string            `json:"nickname"`
	Picture     string            `json:"avatar,omitempty"`
	Roles       []string          `json:"roles,omitempty"`
	Permissions map[string]string `json:"permissions,omitempty"`
	Scope       *string           `json:"scope,omitempty"`
}

JWTClaims JWT Claims

func GetJWTClaimsFromContext

func GetJWTClaimsFromContext(ctx context.Context) *JWTClaims

GetJWTClaimsFromContext method

func (*JWTClaims) HasScope

func (c *JWTClaims) HasScope(scope string) bool

HasScope ...

func (*JWTClaims) Scopes

func (c *JWTClaims) Scopes() []string

Scopes ...

type MutationEvents

type MutationEvents struct {
	Events []events.Event
}

MutationEvents struct

func GetMutationEventStore

func GetMutationEventStore(ctx context.Context) *MutationEvents

GetMutationEventStore method

type MutationResolver

type MutationResolver interface {
	CreateUser(ctx context.Context, input map[string]interface{}) (*User, error)
	UpdateUser(ctx context.Context, id string, input map[string]interface{}) (*User, error)
	DeleteUser(ctx context.Context, id string) (*User, error)
	DeleteAllUsers(ctx context.Context) (bool, error)
	CreateUserAPIKey(ctx context.Context, input map[string]interface{}) (*UserAPIKey, error)
	UpdateUserAPIKey(ctx context.Context, id string, input map[string]interface{}) (*UserAPIKey, error)
	DeleteUserAPIKey(ctx context.Context, id string) (*UserAPIKey, error)
	DeleteAllUserAPIKeys(ctx context.Context) (bool, error)
	CreateProfile(ctx context.Context, input map[string]interface{}) (*Profile, error)
	UpdateProfile(ctx context.Context, id string, input map[string]interface{}) (*Profile, error)
	DeleteProfile(ctx context.Context, id string) (*Profile, error)
	DeleteAllProfiles(ctx context.Context) (bool, error)
	CreateRole(ctx context.Context, input map[string]interface{}) (*Role, error)
	UpdateRole(ctx context.Context, id string, input map[string]interface{}) (*Role, error)
	DeleteRole(ctx context.Context, id string) (*Role, error)
	DeleteAllRoles(ctx context.Context) (bool, error)
	CreatePermission(ctx context.Context, input map[string]interface{}) (*Permission, error)
	UpdatePermission(ctx context.Context, id string, input map[string]interface{}) (*Permission, error)
	DeletePermission(ctx context.Context, id string) (*Permission, error)
	DeleteAllPermissions(ctx context.Context) (bool, error)
}

type ObjectSortType

type ObjectSortType string
const (
	ObjectSortTypeAsc  ObjectSortType = "ASC"
	ObjectSortTypeDesc ObjectSortType = "DESC"
)

func (ObjectSortType) IsValid

func (e ObjectSortType) IsValid() bool

func (ObjectSortType) MarshalGQL

func (e ObjectSortType) MarshalGQL(w io.Writer)

func (ObjectSortType) String

func (e ObjectSortType) String() string

func (*ObjectSortType) UnmarshalGQL

func (e *ObjectSortType) UnmarshalGQL(v interface{}) error

type Permission

type Permission struct {
	ID          string     `json:"id" gorm:"column:id;primary_key"`
	Domain      string     `json:"domain" gorm:"column:domain"`
	Tag         string     `json:"tag" gorm:"column:tag;unique"`
	Description string     `json:"description" gorm:"column:description"`
	UpdatedAt   *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt   time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy   *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy   *string    `json:"createdBy" gorm:"column:createdBy"`

	Users []*User `json:"users" gorm:"many2many:permission_users;jointable_foreignkey:permissionId;association_jointable_foreignkey:userId"`

	Roles []*Role `json:"roles" gorm:"many2many:permission_roles;jointable_foreignkey:permissionId;association_jointable_foreignkey:roleId"`

	Apikeys []*UserAPIKey `` /* 130-byte string literal not displayed */
}

Permission struct

func CreatePermissionHandler

func CreatePermissionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Permission, err error)

CreatePermissionHandler handler

func DeletePermissionHandler

func DeletePermissionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *Permission, err error)

DeletePermissionHandler handler

func QueryPermissionHandler

func QueryPermissionHandler(ctx context.Context, r *GeneratedResolver, opts QueryPermissionHandlerOptions) (*Permission, error)

QueryPermissionHandler handler

func RolePermissionsHandler

func RolePermissionsHandler(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*Permission, err error)

RolePermissionsHandler handler

func UpdatePermissionHandler

func UpdatePermissionHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Permission, err error)

UpdatePermissionHandler handler

func UserAPIKeyPermissionsHandler

func UserAPIKeyPermissionsHandler(ctx context.Context, r *GeneratedResolver, obj *UserAPIKey) (res []*Permission, err error)

UserAPIKeyPermissionsHandler handler

func UserPermissionsHandler

func UserPermissionsHandler(ctx context.Context, r *GeneratedResolver, obj *User) (res []*Permission, err error)

UserPermissionsHandler handler

func (*Permission) IsEntity

func (m *Permission) IsEntity()

IsEntity ...

type PermissionChanges

type PermissionChanges struct {
	ID          string
	Domain      string
	Tag         string
	Description string
	UpdatedAt   *time.Time
	CreatedAt   time.Time
	UpdatedBy   *string
	CreatedBy   *string

	UsersIDs   []*string
	RolesIDs   []*string
	ApikeysIDs []*string
}

PermissionChanges struct

type PermissionFilterType

type PermissionFilterType struct {
	And                  []*PermissionFilterType `json:"AND"`
	Or                   []*PermissionFilterType `json:"OR"`
	ID                   *string                 `json:"id"`
	IDMin                *string                 `json:"idMin"`
	IDMax                *string                 `json:"idMax"`
	IDNe                 *string                 `json:"id_ne"`
	IDMinNe              *string                 `json:"idMin_ne"`
	IDMaxNe              *string                 `json:"idMax_ne"`
	IDGt                 *string                 `json:"id_gt"`
	IDMinGt              *string                 `json:"idMin_gt"`
	IDMaxGt              *string                 `json:"idMax_gt"`
	IDLt                 *string                 `json:"id_lt"`
	IDMinLt              *string                 `json:"idMin_lt"`
	IDMaxLt              *string                 `json:"idMax_lt"`
	IDGte                *string                 `json:"id_gte"`
	IDMinGte             *string                 `json:"idMin_gte"`
	IDMaxGte             *string                 `json:"idMax_gte"`
	IDLte                *string                 `json:"id_lte"`
	IDMinLte             *string                 `json:"idMin_lte"`
	IDMaxLte             *string                 `json:"idMax_lte"`
	IDIn                 []string                `json:"id_in"`
	IDMinIn              []string                `json:"idMin_in"`
	IDMaxIn              []string                `json:"idMax_in"`
	IDNotIn              []string                `json:"id_not_in"`
	IDMinNotIn           []string                `json:"idMin_not_in"`
	IDMaxNotIn           []string                `json:"idMax_not_in"`
	IDNull               *bool                   `json:"id_null"`
	Domain               *string                 `json:"domain"`
	DomainMin            *string                 `json:"domainMin"`
	DomainMax            *string                 `json:"domainMax"`
	DomainNe             *string                 `json:"domain_ne"`
	DomainMinNe          *string                 `json:"domainMin_ne"`
	DomainMaxNe          *string                 `json:"domainMax_ne"`
	DomainGt             *string                 `json:"domain_gt"`
	DomainMinGt          *string                 `json:"domainMin_gt"`
	DomainMaxGt          *string                 `json:"domainMax_gt"`
	DomainLt             *string                 `json:"domain_lt"`
	DomainMinLt          *string                 `json:"domainMin_lt"`
	DomainMaxLt          *string                 `json:"domainMax_lt"`
	DomainGte            *string                 `json:"domain_gte"`
	DomainMinGte         *string                 `json:"domainMin_gte"`
	DomainMaxGte         *string                 `json:"domainMax_gte"`
	DomainLte            *string                 `json:"domain_lte"`
	DomainMinLte         *string                 `json:"domainMin_lte"`
	DomainMaxLte         *string                 `json:"domainMax_lte"`
	DomainIn             []string                `json:"domain_in"`
	DomainMinIn          []string                `json:"domainMin_in"`
	DomainMaxIn          []string                `json:"domainMax_in"`
	DomainNotIn          []string                `json:"domain_not_in"`
	DomainMinNotIn       []string                `json:"domainMin_not_in"`
	DomainMaxNotIn       []string                `json:"domainMax_not_in"`
	DomainLike           *string                 `json:"domain_like"`
	DomainMinLike        *string                 `json:"domainMin_like"`
	DomainMaxLike        *string                 `json:"domainMax_like"`
	DomainPrefix         *string                 `json:"domain_prefix"`
	DomainMinPrefix      *string                 `json:"domainMin_prefix"`
	DomainMaxPrefix      *string                 `json:"domainMax_prefix"`
	DomainSuffix         *string                 `json:"domain_suffix"`
	DomainMinSuffix      *string                 `json:"domainMin_suffix"`
	DomainMaxSuffix      *string                 `json:"domainMax_suffix"`
	DomainNull           *bool                   `json:"domain_null"`
	Tag                  *string                 `json:"tag"`
	TagMin               *string                 `json:"tagMin"`
	TagMax               *string                 `json:"tagMax"`
	TagNe                *string                 `json:"tag_ne"`
	TagMinNe             *string                 `json:"tagMin_ne"`
	TagMaxNe             *string                 `json:"tagMax_ne"`
	TagGt                *string                 `json:"tag_gt"`
	TagMinGt             *string                 `json:"tagMin_gt"`
	TagMaxGt             *string                 `json:"tagMax_gt"`
	TagLt                *string                 `json:"tag_lt"`
	TagMinLt             *string                 `json:"tagMin_lt"`
	TagMaxLt             *string                 `json:"tagMax_lt"`
	TagGte               *string                 `json:"tag_gte"`
	TagMinGte            *string                 `json:"tagMin_gte"`
	TagMaxGte            *string                 `json:"tagMax_gte"`
	TagLte               *string                 `json:"tag_lte"`
	TagMinLte            *string                 `json:"tagMin_lte"`
	TagMaxLte            *string                 `json:"tagMax_lte"`
	TagIn                []string                `json:"tag_in"`
	TagMinIn             []string                `json:"tagMin_in"`
	TagMaxIn             []string                `json:"tagMax_in"`
	TagNotIn             []string                `json:"tag_not_in"`
	TagMinNotIn          []string                `json:"tagMin_not_in"`
	TagMaxNotIn          []string                `json:"tagMax_not_in"`
	TagLike              *string                 `json:"tag_like"`
	TagMinLike           *string                 `json:"tagMin_like"`
	TagMaxLike           *string                 `json:"tagMax_like"`
	TagPrefix            *string                 `json:"tag_prefix"`
	TagMinPrefix         *string                 `json:"tagMin_prefix"`
	TagMaxPrefix         *string                 `json:"tagMax_prefix"`
	TagSuffix            *string                 `json:"tag_suffix"`
	TagMinSuffix         *string                 `json:"tagMin_suffix"`
	TagMaxSuffix         *string                 `json:"tagMax_suffix"`
	TagNull              *bool                   `json:"tag_null"`
	Description          *string                 `json:"description"`
	DescriptionMin       *string                 `json:"descriptionMin"`
	DescriptionMax       *string                 `json:"descriptionMax"`
	DescriptionNe        *string                 `json:"description_ne"`
	DescriptionMinNe     *string                 `json:"descriptionMin_ne"`
	DescriptionMaxNe     *string                 `json:"descriptionMax_ne"`
	DescriptionGt        *string                 `json:"description_gt"`
	DescriptionMinGt     *string                 `json:"descriptionMin_gt"`
	DescriptionMaxGt     *string                 `json:"descriptionMax_gt"`
	DescriptionLt        *string                 `json:"description_lt"`
	DescriptionMinLt     *string                 `json:"descriptionMin_lt"`
	DescriptionMaxLt     *string                 `json:"descriptionMax_lt"`
	DescriptionGte       *string                 `json:"description_gte"`
	DescriptionMinGte    *string                 `json:"descriptionMin_gte"`
	DescriptionMaxGte    *string                 `json:"descriptionMax_gte"`
	DescriptionLte       *string                 `json:"description_lte"`
	DescriptionMinLte    *string                 `json:"descriptionMin_lte"`
	DescriptionMaxLte    *string                 `json:"descriptionMax_lte"`
	DescriptionIn        []string                `json:"description_in"`
	DescriptionMinIn     []string                `json:"descriptionMin_in"`
	DescriptionMaxIn     []string                `json:"descriptionMax_in"`
	DescriptionNotIn     []string                `json:"description_not_in"`
	DescriptionMinNotIn  []string                `json:"descriptionMin_not_in"`
	DescriptionMaxNotIn  []string                `json:"descriptionMax_not_in"`
	DescriptionLike      *string                 `json:"description_like"`
	DescriptionMinLike   *string                 `json:"descriptionMin_like"`
	DescriptionMaxLike   *string                 `json:"descriptionMax_like"`
	DescriptionPrefix    *string                 `json:"description_prefix"`
	DescriptionMinPrefix *string                 `json:"descriptionMin_prefix"`
	DescriptionMaxPrefix *string                 `json:"descriptionMax_prefix"`
	DescriptionSuffix    *string                 `json:"description_suffix"`
	DescriptionMinSuffix *string                 `json:"descriptionMin_suffix"`
	DescriptionMaxSuffix *string                 `json:"descriptionMax_suffix"`
	DescriptionNull      *bool                   `json:"description_null"`
	UpdatedAt            *time.Time              `json:"updatedAt"`
	UpdatedAtMin         *time.Time              `json:"updatedAtMin"`
	UpdatedAtMax         *time.Time              `json:"updatedAtMax"`
	UpdatedAtNe          *time.Time              `json:"updatedAt_ne"`
	UpdatedAtMinNe       *time.Time              `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe       *time.Time              `json:"updatedAtMax_ne"`
	UpdatedAtGt          *time.Time              `json:"updatedAt_gt"`
	UpdatedAtMinGt       *time.Time              `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt       *time.Time              `json:"updatedAtMax_gt"`
	UpdatedAtLt          *time.Time              `json:"updatedAt_lt"`
	UpdatedAtMinLt       *time.Time              `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt       *time.Time              `json:"updatedAtMax_lt"`
	UpdatedAtGte         *time.Time              `json:"updatedAt_gte"`
	UpdatedAtMinGte      *time.Time              `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte      *time.Time              `json:"updatedAtMax_gte"`
	UpdatedAtLte         *time.Time              `json:"updatedAt_lte"`
	UpdatedAtMinLte      *time.Time              `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte      *time.Time              `json:"updatedAtMax_lte"`
	UpdatedAtIn          []*time.Time            `json:"updatedAt_in"`
	UpdatedAtMinIn       []*time.Time            `json:"updatedAtMin_in"`
	UpdatedAtMaxIn       []*time.Time            `json:"updatedAtMax_in"`
	UpdatedAtNotIn       []*time.Time            `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn    []*time.Time            `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn    []*time.Time            `json:"updatedAtMax_not_in"`
	UpdatedAtNull        *bool                   `json:"updatedAt_null"`
	CreatedAt            *time.Time              `json:"createdAt"`
	CreatedAtMin         *time.Time              `json:"createdAtMin"`
	CreatedAtMax         *time.Time              `json:"createdAtMax"`
	CreatedAtNe          *time.Time              `json:"createdAt_ne"`
	CreatedAtMinNe       *time.Time              `json:"createdAtMin_ne"`
	CreatedAtMaxNe       *time.Time              `json:"createdAtMax_ne"`
	CreatedAtGt          *time.Time              `json:"createdAt_gt"`
	CreatedAtMinGt       *time.Time              `json:"createdAtMin_gt"`
	CreatedAtMaxGt       *time.Time              `json:"createdAtMax_gt"`
	CreatedAtLt          *time.Time              `json:"createdAt_lt"`
	CreatedAtMinLt       *time.Time              `json:"createdAtMin_lt"`
	CreatedAtMaxLt       *time.Time              `json:"createdAtMax_lt"`
	CreatedAtGte         *time.Time              `json:"createdAt_gte"`
	CreatedAtMinGte      *time.Time              `json:"createdAtMin_gte"`
	CreatedAtMaxGte      *time.Time              `json:"createdAtMax_gte"`
	CreatedAtLte         *time.Time              `json:"createdAt_lte"`
	CreatedAtMinLte      *time.Time              `json:"createdAtMin_lte"`
	CreatedAtMaxLte      *time.Time              `json:"createdAtMax_lte"`
	CreatedAtIn          []*time.Time            `json:"createdAt_in"`
	CreatedAtMinIn       []*time.Time            `json:"createdAtMin_in"`
	CreatedAtMaxIn       []*time.Time            `json:"createdAtMax_in"`
	CreatedAtNotIn       []*time.Time            `json:"createdAt_not_in"`
	CreatedAtMinNotIn    []*time.Time            `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn    []*time.Time            `json:"createdAtMax_not_in"`
	CreatedAtNull        *bool                   `json:"createdAt_null"`
	UpdatedBy            *string                 `json:"updatedBy"`
	UpdatedByMin         *string                 `json:"updatedByMin"`
	UpdatedByMax         *string                 `json:"updatedByMax"`
	UpdatedByNe          *string                 `json:"updatedBy_ne"`
	UpdatedByMinNe       *string                 `json:"updatedByMin_ne"`
	UpdatedByMaxNe       *string                 `json:"updatedByMax_ne"`
	UpdatedByGt          *string                 `json:"updatedBy_gt"`
	UpdatedByMinGt       *string                 `json:"updatedByMin_gt"`
	UpdatedByMaxGt       *string                 `json:"updatedByMax_gt"`
	UpdatedByLt          *string                 `json:"updatedBy_lt"`
	UpdatedByMinLt       *string                 `json:"updatedByMin_lt"`
	UpdatedByMaxLt       *string                 `json:"updatedByMax_lt"`
	UpdatedByGte         *string                 `json:"updatedBy_gte"`
	UpdatedByMinGte      *string                 `json:"updatedByMin_gte"`
	UpdatedByMaxGte      *string                 `json:"updatedByMax_gte"`
	UpdatedByLte         *string                 `json:"updatedBy_lte"`
	UpdatedByMinLte      *string                 `json:"updatedByMin_lte"`
	UpdatedByMaxLte      *string                 `json:"updatedByMax_lte"`
	UpdatedByIn          []string                `json:"updatedBy_in"`
	UpdatedByMinIn       []string                `json:"updatedByMin_in"`
	UpdatedByMaxIn       []string                `json:"updatedByMax_in"`
	UpdatedByNotIn       []string                `json:"updatedBy_not_in"`
	UpdatedByMinNotIn    []string                `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn    []string                `json:"updatedByMax_not_in"`
	UpdatedByNull        *bool                   `json:"updatedBy_null"`
	CreatedBy            *string                 `json:"createdBy"`
	CreatedByMin         *string                 `json:"createdByMin"`
	CreatedByMax         *string                 `json:"createdByMax"`
	CreatedByNe          *string                 `json:"createdBy_ne"`
	CreatedByMinNe       *string                 `json:"createdByMin_ne"`
	CreatedByMaxNe       *string                 `json:"createdByMax_ne"`
	CreatedByGt          *string                 `json:"createdBy_gt"`
	CreatedByMinGt       *string                 `json:"createdByMin_gt"`
	CreatedByMaxGt       *string                 `json:"createdByMax_gt"`
	CreatedByLt          *string                 `json:"createdBy_lt"`
	CreatedByMinLt       *string                 `json:"createdByMin_lt"`
	CreatedByMaxLt       *string                 `json:"createdByMax_lt"`
	CreatedByGte         *string                 `json:"createdBy_gte"`
	CreatedByMinGte      *string                 `json:"createdByMin_gte"`
	CreatedByMaxGte      *string                 `json:"createdByMax_gte"`
	CreatedByLte         *string                 `json:"createdBy_lte"`
	CreatedByMinLte      *string                 `json:"createdByMin_lte"`
	CreatedByMaxLte      *string                 `json:"createdByMax_lte"`
	CreatedByIn          []string                `json:"createdBy_in"`
	CreatedByMinIn       []string                `json:"createdByMin_in"`
	CreatedByMaxIn       []string                `json:"createdByMax_in"`
	CreatedByNotIn       []string                `json:"createdBy_not_in"`
	CreatedByMinNotIn    []string                `json:"createdByMin_not_in"`
	CreatedByMaxNotIn    []string                `json:"createdByMax_not_in"`
	CreatedByNull        *bool                   `json:"createdBy_null"`
	Users                *UserFilterType         `json:"users"`
	Roles                *RoleFilterType         `json:"roles"`
	Apikeys              *UserAPIKeyFilterType   `json:"apikeys"`
}

func (*PermissionFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*PermissionFilterType) Apply

func (f *PermissionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply method

func (*PermissionFilterType) ApplyWithAlias

func (f *PermissionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias method

func (*PermissionFilterType) HavingContent

func (f *PermissionFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent method

func (*PermissionFilterType) IsEmpty

func (f *PermissionFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*PermissionFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*PermissionFilterType) WhereContent

func (f *PermissionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type PermissionQueryFilter

type PermissionQueryFilter struct {
	Query *string
}

PermissionQueryFilter struct

func (*PermissionQueryFilter) Apply

func (qf *PermissionQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type PermissionResolver

type PermissionResolver interface {
	Users(ctx context.Context, obj *Permission) ([]*User, error)
	Roles(ctx context.Context, obj *Permission) ([]*Role, error)
	Apikeys(ctx context.Context, obj *Permission) ([]*UserAPIKey, error)

	UsersIds(ctx context.Context, obj *Permission) ([]string, error)
	UsersConnection(ctx context.Context, obj *Permission, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (*UserResultType, error)
	RolesIds(ctx context.Context, obj *Permission) ([]string, error)
	RolesConnection(ctx context.Context, obj *Permission, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (*RoleResultType, error)
	ApikeysIds(ctx context.Context, obj *Permission) ([]string, error)
	ApikeysConnection(ctx context.Context, obj *Permission, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) (*UserAPIKeyResultType, error)
}

type PermissionResultType

type PermissionResultType struct {
	EntityResultType
}

PermissionResultType struct

func QueryPermissionsHandler

QueryPermissionsHandler handler

type PermissionResultTypeResolver

type PermissionResultTypeResolver interface {
	Items(ctx context.Context, obj *PermissionResultType) ([]*Permission, error)
	Count(ctx context.Context, obj *PermissionResultType) (int, error)
}

type PermissionRoles

type PermissionRoles struct {
	PermissionID string
	RoleID       string
}

PermissionRoles struct

func (PermissionRoles) TableName

func (PermissionRoles) TableName() string

TableName ...

type PermissionSortType

type PermissionSortType struct {
	ID             *ObjectSortType     `json:"id"`
	IDMin          *ObjectSortType     `json:"idMin"`
	IDMax          *ObjectSortType     `json:"idMax"`
	Domain         *ObjectSortType     `json:"domain"`
	DomainMin      *ObjectSortType     `json:"domainMin"`
	DomainMax      *ObjectSortType     `json:"domainMax"`
	Tag            *ObjectSortType     `json:"tag"`
	TagMin         *ObjectSortType     `json:"tagMin"`
	TagMax         *ObjectSortType     `json:"tagMax"`
	Description    *ObjectSortType     `json:"description"`
	DescriptionMin *ObjectSortType     `json:"descriptionMin"`
	DescriptionMax *ObjectSortType     `json:"descriptionMax"`
	UpdatedAt      *ObjectSortType     `json:"updatedAt"`
	UpdatedAtMin   *ObjectSortType     `json:"updatedAtMin"`
	UpdatedAtMax   *ObjectSortType     `json:"updatedAtMax"`
	CreatedAt      *ObjectSortType     `json:"createdAt"`
	CreatedAtMin   *ObjectSortType     `json:"createdAtMin"`
	CreatedAtMax   *ObjectSortType     `json:"createdAtMax"`
	UpdatedBy      *ObjectSortType     `json:"updatedBy"`
	UpdatedByMin   *ObjectSortType     `json:"updatedByMin"`
	UpdatedByMax   *ObjectSortType     `json:"updatedByMax"`
	CreatedBy      *ObjectSortType     `json:"createdBy"`
	CreatedByMin   *ObjectSortType     `json:"createdByMin"`
	CreatedByMax   *ObjectSortType     `json:"createdByMax"`
	UsersIds       *ObjectSortType     `json:"usersIds"`
	UsersIdsMin    *ObjectSortType     `json:"usersIdsMin"`
	UsersIdsMax    *ObjectSortType     `json:"usersIdsMax"`
	RolesIds       *ObjectSortType     `json:"rolesIds"`
	RolesIdsMin    *ObjectSortType     `json:"rolesIdsMin"`
	RolesIdsMax    *ObjectSortType     `json:"rolesIdsMax"`
	ApikeysIds     *ObjectSortType     `json:"apikeysIds"`
	ApikeysIdsMin  *ObjectSortType     `json:"apikeysIdsMin"`
	ApikeysIdsMax  *ObjectSortType     `json:"apikeysIdsMax"`
	Users          *UserSortType       `json:"users"`
	Roles          *RoleSortType       `json:"roles"`
	Apikeys        *UserAPIKeySortType `json:"apikeys"`
}

func (PermissionSortType) Apply

func (s PermissionSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply method

func (PermissionSortType) ApplyWithAlias

func (s PermissionSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias method

type PermissionUsers

type PermissionUsers struct {
	PermissionID string
	UserID       string
}

PermissionUsers struct

func (PermissionUsers) TableName

func (PermissionUsers) TableName() string

TableName ...

type Profile

type Profile struct {
	ID             string     `json:"id" gorm:"column:id;primary_key"`
	Email          string     `json:"email" gorm:"column:email"`
	ExternalUserID *string    `json:"externalUserId" gorm:"column:externalUserId"`
	Provider       *string    `json:"provider" gorm:"column:provider"`
	AvatarURL      *string    `json:"avatarURL" gorm:"column:avatarURL"`
	Name           *string    `json:"name" gorm:"column:name"`
	FirstName      *string    `json:"firstName" gorm:"column:firstName"`
	LastName       *string    `json:"lastName" gorm:"column:lastName"`
	NickName       *string    `json:"nickName" gorm:"column:nickName"`
	Description    *string    `json:"description" gorm:"column:description"`
	Location       *string    `json:"location" gorm:"column:location"`
	UpdatedAt      *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt      time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy      *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy      *string    `json:"createdBy" gorm:"column:createdBy"`

	Users []*User `json:"users" gorm:"many2many:profile_users;jointable_foreignkey:profileId;association_jointable_foreignkey:userId"`
}

Profile struct

func CreateProfileHandler

func CreateProfileHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Profile, err error)

CreateProfileHandler handler

func DeleteProfileHandler

func DeleteProfileHandler(ctx context.Context, r *GeneratedResolver, id string) (item *Profile, err error)

DeleteProfileHandler handler

func QueryProfileHandler

func QueryProfileHandler(ctx context.Context, r *GeneratedResolver, opts QueryProfileHandlerOptions) (*Profile, error)

QueryProfileHandler handler

func UpdateProfileHandler

func UpdateProfileHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Profile, err error)

UpdateProfileHandler handler

func UserProfilesHandler

func UserProfilesHandler(ctx context.Context, r *GeneratedResolver, obj *User) (res []*Profile, err error)

UserProfilesHandler handler

func (*Profile) IsEntity

func (m *Profile) IsEntity()

IsEntity ...

type ProfileChanges

type ProfileChanges struct {
	ID             string
	Email          string
	ExternalUserID *string
	Provider       *string
	AvatarURL      *string
	Name           *string
	FirstName      *string
	LastName       *string
	NickName       *string
	Description    *string
	Location       *string
	UpdatedAt      *time.Time
	CreatedAt      time.Time
	UpdatedBy      *string
	CreatedBy      *string

	UsersIDs []*string
}

ProfileChanges struct

type ProfileFilterType

type ProfileFilterType struct {
	And                     []*ProfileFilterType `json:"AND"`
	Or                      []*ProfileFilterType `json:"OR"`
	ID                      *string              `json:"id"`
	IDMin                   *string              `json:"idMin"`
	IDMax                   *string              `json:"idMax"`
	IDNe                    *string              `json:"id_ne"`
	IDMinNe                 *string              `json:"idMin_ne"`
	IDMaxNe                 *string              `json:"idMax_ne"`
	IDGt                    *string              `json:"id_gt"`
	IDMinGt                 *string              `json:"idMin_gt"`
	IDMaxGt                 *string              `json:"idMax_gt"`
	IDLt                    *string              `json:"id_lt"`
	IDMinLt                 *string              `json:"idMin_lt"`
	IDMaxLt                 *string              `json:"idMax_lt"`
	IDGte                   *string              `json:"id_gte"`
	IDMinGte                *string              `json:"idMin_gte"`
	IDMaxGte                *string              `json:"idMax_gte"`
	IDLte                   *string              `json:"id_lte"`
	IDMinLte                *string              `json:"idMin_lte"`
	IDMaxLte                *string              `json:"idMax_lte"`
	IDIn                    []string             `json:"id_in"`
	IDMinIn                 []string             `json:"idMin_in"`
	IDMaxIn                 []string             `json:"idMax_in"`
	IDNotIn                 []string             `json:"id_not_in"`
	IDMinNotIn              []string             `json:"idMin_not_in"`
	IDMaxNotIn              []string             `json:"idMax_not_in"`
	IDNull                  *bool                `json:"id_null"`
	Email                   *string              `json:"email"`
	EmailMin                *string              `json:"emailMin"`
	EmailMax                *string              `json:"emailMax"`
	EmailNe                 *string              `json:"email_ne"`
	EmailMinNe              *string              `json:"emailMin_ne"`
	EmailMaxNe              *string              `json:"emailMax_ne"`
	EmailGt                 *string              `json:"email_gt"`
	EmailMinGt              *string              `json:"emailMin_gt"`
	EmailMaxGt              *string              `json:"emailMax_gt"`
	EmailLt                 *string              `json:"email_lt"`
	EmailMinLt              *string              `json:"emailMin_lt"`
	EmailMaxLt              *string              `json:"emailMax_lt"`
	EmailGte                *string              `json:"email_gte"`
	EmailMinGte             *string              `json:"emailMin_gte"`
	EmailMaxGte             *string              `json:"emailMax_gte"`
	EmailLte                *string              `json:"email_lte"`
	EmailMinLte             *string              `json:"emailMin_lte"`
	EmailMaxLte             *string              `json:"emailMax_lte"`
	EmailIn                 []string             `json:"email_in"`
	EmailMinIn              []string             `json:"emailMin_in"`
	EmailMaxIn              []string             `json:"emailMax_in"`
	EmailNotIn              []string             `json:"email_not_in"`
	EmailMinNotIn           []string             `json:"emailMin_not_in"`
	EmailMaxNotIn           []string             `json:"emailMax_not_in"`
	EmailLike               *string              `json:"email_like"`
	EmailMinLike            *string              `json:"emailMin_like"`
	EmailMaxLike            *string              `json:"emailMax_like"`
	EmailPrefix             *string              `json:"email_prefix"`
	EmailMinPrefix          *string              `json:"emailMin_prefix"`
	EmailMaxPrefix          *string              `json:"emailMax_prefix"`
	EmailSuffix             *string              `json:"email_suffix"`
	EmailMinSuffix          *string              `json:"emailMin_suffix"`
	EmailMaxSuffix          *string              `json:"emailMax_suffix"`
	EmailNull               *bool                `json:"email_null"`
	ExternalUserID          *string              `json:"externalUserId"`
	ExternalUserIDMin       *string              `json:"externalUserIdMin"`
	ExternalUserIDMax       *string              `json:"externalUserIdMax"`
	ExternalUserIDNe        *string              `json:"externalUserId_ne"`
	ExternalUserIDMinNe     *string              `json:"externalUserIdMin_ne"`
	ExternalUserIDMaxNe     *string              `json:"externalUserIdMax_ne"`
	ExternalUserIDGt        *string              `json:"externalUserId_gt"`
	ExternalUserIDMinGt     *string              `json:"externalUserIdMin_gt"`
	ExternalUserIDMaxGt     *string              `json:"externalUserIdMax_gt"`
	ExternalUserIDLt        *string              `json:"externalUserId_lt"`
	ExternalUserIDMinLt     *string              `json:"externalUserIdMin_lt"`
	ExternalUserIDMaxLt     *string              `json:"externalUserIdMax_lt"`
	ExternalUserIDGte       *string              `json:"externalUserId_gte"`
	ExternalUserIDMinGte    *string              `json:"externalUserIdMin_gte"`
	ExternalUserIDMaxGte    *string              `json:"externalUserIdMax_gte"`
	ExternalUserIDLte       *string              `json:"externalUserId_lte"`
	ExternalUserIDMinLte    *string              `json:"externalUserIdMin_lte"`
	ExternalUserIDMaxLte    *string              `json:"externalUserIdMax_lte"`
	ExternalUserIDIn        []string             `json:"externalUserId_in"`
	ExternalUserIDMinIn     []string             `json:"externalUserIdMin_in"`
	ExternalUserIDMaxIn     []string             `json:"externalUserIdMax_in"`
	ExternalUserIDNotIn     []string             `json:"externalUserId_not_in"`
	ExternalUserIDMinNotIn  []string             `json:"externalUserIdMin_not_in"`
	ExternalUserIDMaxNotIn  []string             `json:"externalUserIdMax_not_in"`
	ExternalUserIDLike      *string              `json:"externalUserId_like"`
	ExternalUserIDMinLike   *string              `json:"externalUserIdMin_like"`
	ExternalUserIDMaxLike   *string              `json:"externalUserIdMax_like"`
	ExternalUserIDPrefix    *string              `json:"externalUserId_prefix"`
	ExternalUserIDMinPrefix *string              `json:"externalUserIdMin_prefix"`
	ExternalUserIDMaxPrefix *string              `json:"externalUserIdMax_prefix"`
	ExternalUserIDSuffix    *string              `json:"externalUserId_suffix"`
	ExternalUserIDMinSuffix *string              `json:"externalUserIdMin_suffix"`
	ExternalUserIDMaxSuffix *string              `json:"externalUserIdMax_suffix"`
	ExternalUserIDNull      *bool                `json:"externalUserId_null"`
	Provider                *string              `json:"provider"`
	ProviderMin             *string              `json:"providerMin"`
	ProviderMax             *string              `json:"providerMax"`
	ProviderNe              *string              `json:"provider_ne"`
	ProviderMinNe           *string              `json:"providerMin_ne"`
	ProviderMaxNe           *string              `json:"providerMax_ne"`
	ProviderGt              *string              `json:"provider_gt"`
	ProviderMinGt           *string              `json:"providerMin_gt"`
	ProviderMaxGt           *string              `json:"providerMax_gt"`
	ProviderLt              *string              `json:"provider_lt"`
	ProviderMinLt           *string              `json:"providerMin_lt"`
	ProviderMaxLt           *string              `json:"providerMax_lt"`
	ProviderGte             *string              `json:"provider_gte"`
	ProviderMinGte          *string              `json:"providerMin_gte"`
	ProviderMaxGte          *string              `json:"providerMax_gte"`
	ProviderLte             *string              `json:"provider_lte"`
	ProviderMinLte          *string              `json:"providerMin_lte"`
	ProviderMaxLte          *string              `json:"providerMax_lte"`
	ProviderIn              []string             `json:"provider_in"`
	ProviderMinIn           []string             `json:"providerMin_in"`
	ProviderMaxIn           []string             `json:"providerMax_in"`
	ProviderNotIn           []string             `json:"provider_not_in"`
	ProviderMinNotIn        []string             `json:"providerMin_not_in"`
	ProviderMaxNotIn        []string             `json:"providerMax_not_in"`
	ProviderLike            *string              `json:"provider_like"`
	ProviderMinLike         *string              `json:"providerMin_like"`
	ProviderMaxLike         *string              `json:"providerMax_like"`
	ProviderPrefix          *string              `json:"provider_prefix"`
	ProviderMinPrefix       *string              `json:"providerMin_prefix"`
	ProviderMaxPrefix       *string              `json:"providerMax_prefix"`
	ProviderSuffix          *string              `json:"provider_suffix"`
	ProviderMinSuffix       *string              `json:"providerMin_suffix"`
	ProviderMaxSuffix       *string              `json:"providerMax_suffix"`
	ProviderNull            *bool                `json:"provider_null"`
	AvatarURL               *string              `json:"avatarURL"`
	AvatarURLMin            *string              `json:"avatarURLMin"`
	AvatarURLMax            *string              `json:"avatarURLMax"`
	AvatarURLNe             *string              `json:"avatarURL_ne"`
	AvatarURLMinNe          *string              `json:"avatarURLMin_ne"`
	AvatarURLMaxNe          *string              `json:"avatarURLMax_ne"`
	AvatarURLGt             *string              `json:"avatarURL_gt"`
	AvatarURLMinGt          *string              `json:"avatarURLMin_gt"`
	AvatarURLMaxGt          *string              `json:"avatarURLMax_gt"`
	AvatarURLLt             *string              `json:"avatarURL_lt"`
	AvatarURLMinLt          *string              `json:"avatarURLMin_lt"`
	AvatarURLMaxLt          *string              `json:"avatarURLMax_lt"`
	AvatarURLGte            *string              `json:"avatarURL_gte"`
	AvatarURLMinGte         *string              `json:"avatarURLMin_gte"`
	AvatarURLMaxGte         *string              `json:"avatarURLMax_gte"`
	AvatarURLLte            *string              `json:"avatarURL_lte"`
	AvatarURLMinLte         *string              `json:"avatarURLMin_lte"`
	AvatarURLMaxLte         *string              `json:"avatarURLMax_lte"`
	AvatarURLIn             []string             `json:"avatarURL_in"`
	AvatarURLMinIn          []string             `json:"avatarURLMin_in"`
	AvatarURLMaxIn          []string             `json:"avatarURLMax_in"`
	AvatarURLNotIn          []string             `json:"avatarURL_not_in"`
	AvatarURLMinNotIn       []string             `json:"avatarURLMin_not_in"`
	AvatarURLMaxNotIn       []string             `json:"avatarURLMax_not_in"`
	AvatarURLLike           *string              `json:"avatarURL_like"`
	AvatarURLMinLike        *string              `json:"avatarURLMin_like"`
	AvatarURLMaxLike        *string              `json:"avatarURLMax_like"`
	AvatarURLPrefix         *string              `json:"avatarURL_prefix"`
	AvatarURLMinPrefix      *string              `json:"avatarURLMin_prefix"`
	AvatarURLMaxPrefix      *string              `json:"avatarURLMax_prefix"`
	AvatarURLSuffix         *string              `json:"avatarURL_suffix"`
	AvatarURLMinSuffix      *string              `json:"avatarURLMin_suffix"`
	AvatarURLMaxSuffix      *string              `json:"avatarURLMax_suffix"`
	AvatarURLNull           *bool                `json:"avatarURL_null"`
	Name                    *string              `json:"name"`
	NameMin                 *string              `json:"nameMin"`
	NameMax                 *string              `json:"nameMax"`
	NameNe                  *string              `json:"name_ne"`
	NameMinNe               *string              `json:"nameMin_ne"`
	NameMaxNe               *string              `json:"nameMax_ne"`
	NameGt                  *string              `json:"name_gt"`
	NameMinGt               *string              `json:"nameMin_gt"`
	NameMaxGt               *string              `json:"nameMax_gt"`
	NameLt                  *string              `json:"name_lt"`
	NameMinLt               *string              `json:"nameMin_lt"`
	NameMaxLt               *string              `json:"nameMax_lt"`
	NameGte                 *string              `json:"name_gte"`
	NameMinGte              *string              `json:"nameMin_gte"`
	NameMaxGte              *string              `json:"nameMax_gte"`
	NameLte                 *string              `json:"name_lte"`
	NameMinLte              *string              `json:"nameMin_lte"`
	NameMaxLte              *string              `json:"nameMax_lte"`
	NameIn                  []string             `json:"name_in"`
	NameMinIn               []string             `json:"nameMin_in"`
	NameMaxIn               []string             `json:"nameMax_in"`
	NameNotIn               []string             `json:"name_not_in"`
	NameMinNotIn            []string             `json:"nameMin_not_in"`
	NameMaxNotIn            []string             `json:"nameMax_not_in"`
	NameLike                *string              `json:"name_like"`
	NameMinLike             *string              `json:"nameMin_like"`
	NameMaxLike             *string              `json:"nameMax_like"`
	NamePrefix              *string              `json:"name_prefix"`
	NameMinPrefix           *string              `json:"nameMin_prefix"`
	NameMaxPrefix           *string              `json:"nameMax_prefix"`
	NameSuffix              *string              `json:"name_suffix"`
	NameMinSuffix           *string              `json:"nameMin_suffix"`
	NameMaxSuffix           *string              `json:"nameMax_suffix"`
	NameNull                *bool                `json:"name_null"`
	FirstName               *string              `json:"firstName"`
	FirstNameMin            *string              `json:"firstNameMin"`
	FirstNameMax            *string              `json:"firstNameMax"`
	FirstNameNe             *string              `json:"firstName_ne"`
	FirstNameMinNe          *string              `json:"firstNameMin_ne"`
	FirstNameMaxNe          *string              `json:"firstNameMax_ne"`
	FirstNameGt             *string              `json:"firstName_gt"`
	FirstNameMinGt          *string              `json:"firstNameMin_gt"`
	FirstNameMaxGt          *string              `json:"firstNameMax_gt"`
	FirstNameLt             *string              `json:"firstName_lt"`
	FirstNameMinLt          *string              `json:"firstNameMin_lt"`
	FirstNameMaxLt          *string              `json:"firstNameMax_lt"`
	FirstNameGte            *string              `json:"firstName_gte"`
	FirstNameMinGte         *string              `json:"firstNameMin_gte"`
	FirstNameMaxGte         *string              `json:"firstNameMax_gte"`
	FirstNameLte            *string              `json:"firstName_lte"`
	FirstNameMinLte         *string              `json:"firstNameMin_lte"`
	FirstNameMaxLte         *string              `json:"firstNameMax_lte"`
	FirstNameIn             []string             `json:"firstName_in"`
	FirstNameMinIn          []string             `json:"firstNameMin_in"`
	FirstNameMaxIn          []string             `json:"firstNameMax_in"`
	FirstNameNotIn          []string             `json:"firstName_not_in"`
	FirstNameMinNotIn       []string             `json:"firstNameMin_not_in"`
	FirstNameMaxNotIn       []string             `json:"firstNameMax_not_in"`
	FirstNameLike           *string              `json:"firstName_like"`
	FirstNameMinLike        *string              `json:"firstNameMin_like"`
	FirstNameMaxLike        *string              `json:"firstNameMax_like"`
	FirstNamePrefix         *string              `json:"firstName_prefix"`
	FirstNameMinPrefix      *string              `json:"firstNameMin_prefix"`
	FirstNameMaxPrefix      *string              `json:"firstNameMax_prefix"`
	FirstNameSuffix         *string              `json:"firstName_suffix"`
	FirstNameMinSuffix      *string              `json:"firstNameMin_suffix"`
	FirstNameMaxSuffix      *string              `json:"firstNameMax_suffix"`
	FirstNameNull           *bool                `json:"firstName_null"`
	LastName                *string              `json:"lastName"`
	LastNameMin             *string              `json:"lastNameMin"`
	LastNameMax             *string              `json:"lastNameMax"`
	LastNameNe              *string              `json:"lastName_ne"`
	LastNameMinNe           *string              `json:"lastNameMin_ne"`
	LastNameMaxNe           *string              `json:"lastNameMax_ne"`
	LastNameGt              *string              `json:"lastName_gt"`
	LastNameMinGt           *string              `json:"lastNameMin_gt"`
	LastNameMaxGt           *string              `json:"lastNameMax_gt"`
	LastNameLt              *string              `json:"lastName_lt"`
	LastNameMinLt           *string              `json:"lastNameMin_lt"`
	LastNameMaxLt           *string              `json:"lastNameMax_lt"`
	LastNameGte             *string              `json:"lastName_gte"`
	LastNameMinGte          *string              `json:"lastNameMin_gte"`
	LastNameMaxGte          *string              `json:"lastNameMax_gte"`
	LastNameLte             *string              `json:"lastName_lte"`
	LastNameMinLte          *string              `json:"lastNameMin_lte"`
	LastNameMaxLte          *string              `json:"lastNameMax_lte"`
	LastNameIn              []string             `json:"lastName_in"`
	LastNameMinIn           []string             `json:"lastNameMin_in"`
	LastNameMaxIn           []string             `json:"lastNameMax_in"`
	LastNameNotIn           []string             `json:"lastName_not_in"`
	LastNameMinNotIn        []string             `json:"lastNameMin_not_in"`
	LastNameMaxNotIn        []string             `json:"lastNameMax_not_in"`
	LastNameLike            *string              `json:"lastName_like"`
	LastNameMinLike         *string              `json:"lastNameMin_like"`
	LastNameMaxLike         *string              `json:"lastNameMax_like"`
	LastNamePrefix          *string              `json:"lastName_prefix"`
	LastNameMinPrefix       *string              `json:"lastNameMin_prefix"`
	LastNameMaxPrefix       *string              `json:"lastNameMax_prefix"`
	LastNameSuffix          *string              `json:"lastName_suffix"`
	LastNameMinSuffix       *string              `json:"lastNameMin_suffix"`
	LastNameMaxSuffix       *string              `json:"lastNameMax_suffix"`
	LastNameNull            *bool                `json:"lastName_null"`
	NickName                *string              `json:"nickName"`
	NickNameMin             *string              `json:"nickNameMin"`
	NickNameMax             *string              `json:"nickNameMax"`
	NickNameNe              *string              `json:"nickName_ne"`
	NickNameMinNe           *string              `json:"nickNameMin_ne"`
	NickNameMaxNe           *string              `json:"nickNameMax_ne"`
	NickNameGt              *string              `json:"nickName_gt"`
	NickNameMinGt           *string              `json:"nickNameMin_gt"`
	NickNameMaxGt           *string              `json:"nickNameMax_gt"`
	NickNameLt              *string              `json:"nickName_lt"`
	NickNameMinLt           *string              `json:"nickNameMin_lt"`
	NickNameMaxLt           *string              `json:"nickNameMax_lt"`
	NickNameGte             *string              `json:"nickName_gte"`
	NickNameMinGte          *string              `json:"nickNameMin_gte"`
	NickNameMaxGte          *string              `json:"nickNameMax_gte"`
	NickNameLte             *string              `json:"nickName_lte"`
	NickNameMinLte          *string              `json:"nickNameMin_lte"`
	NickNameMaxLte          *string              `json:"nickNameMax_lte"`
	NickNameIn              []string             `json:"nickName_in"`
	NickNameMinIn           []string             `json:"nickNameMin_in"`
	NickNameMaxIn           []string             `json:"nickNameMax_in"`
	NickNameNotIn           []string             `json:"nickName_not_in"`
	NickNameMinNotIn        []string             `json:"nickNameMin_not_in"`
	NickNameMaxNotIn        []string             `json:"nickNameMax_not_in"`
	NickNameLike            *string              `json:"nickName_like"`
	NickNameMinLike         *string              `json:"nickNameMin_like"`
	NickNameMaxLike         *string              `json:"nickNameMax_like"`
	NickNamePrefix          *string              `json:"nickName_prefix"`
	NickNameMinPrefix       *string              `json:"nickNameMin_prefix"`
	NickNameMaxPrefix       *string              `json:"nickNameMax_prefix"`
	NickNameSuffix          *string              `json:"nickName_suffix"`
	NickNameMinSuffix       *string              `json:"nickNameMin_suffix"`
	NickNameMaxSuffix       *string              `json:"nickNameMax_suffix"`
	NickNameNull            *bool                `json:"nickName_null"`
	Description             *string              `json:"description"`
	DescriptionMin          *string              `json:"descriptionMin"`
	DescriptionMax          *string              `json:"descriptionMax"`
	DescriptionNe           *string              `json:"description_ne"`
	DescriptionMinNe        *string              `json:"descriptionMin_ne"`
	DescriptionMaxNe        *string              `json:"descriptionMax_ne"`
	DescriptionGt           *string              `json:"description_gt"`
	DescriptionMinGt        *string              `json:"descriptionMin_gt"`
	DescriptionMaxGt        *string              `json:"descriptionMax_gt"`
	DescriptionLt           *string              `json:"description_lt"`
	DescriptionMinLt        *string              `json:"descriptionMin_lt"`
	DescriptionMaxLt        *string              `json:"descriptionMax_lt"`
	DescriptionGte          *string              `json:"description_gte"`
	DescriptionMinGte       *string              `json:"descriptionMin_gte"`
	DescriptionMaxGte       *string              `json:"descriptionMax_gte"`
	DescriptionLte          *string              `json:"description_lte"`
	DescriptionMinLte       *string              `json:"descriptionMin_lte"`
	DescriptionMaxLte       *string              `json:"descriptionMax_lte"`
	DescriptionIn           []string             `json:"description_in"`
	DescriptionMinIn        []string             `json:"descriptionMin_in"`
	DescriptionMaxIn        []string             `json:"descriptionMax_in"`
	DescriptionNotIn        []string             `json:"description_not_in"`
	DescriptionMinNotIn     []string             `json:"descriptionMin_not_in"`
	DescriptionMaxNotIn     []string             `json:"descriptionMax_not_in"`
	DescriptionLike         *string              `json:"description_like"`
	DescriptionMinLike      *string              `json:"descriptionMin_like"`
	DescriptionMaxLike      *string              `json:"descriptionMax_like"`
	DescriptionPrefix       *string              `json:"description_prefix"`
	DescriptionMinPrefix    *string              `json:"descriptionMin_prefix"`
	DescriptionMaxPrefix    *string              `json:"descriptionMax_prefix"`
	DescriptionSuffix       *string              `json:"description_suffix"`
	DescriptionMinSuffix    *string              `json:"descriptionMin_suffix"`
	DescriptionMaxSuffix    *string              `json:"descriptionMax_suffix"`
	DescriptionNull         *bool                `json:"description_null"`
	Location                *string              `json:"location"`
	LocationMin             *string              `json:"locationMin"`
	LocationMax             *string              `json:"locationMax"`
	LocationNe              *string              `json:"location_ne"`
	LocationMinNe           *string              `json:"locationMin_ne"`
	LocationMaxNe           *string              `json:"locationMax_ne"`
	LocationGt              *string              `json:"location_gt"`
	LocationMinGt           *string              `json:"locationMin_gt"`
	LocationMaxGt           *string              `json:"locationMax_gt"`
	LocationLt              *string              `json:"location_lt"`
	LocationMinLt           *string              `json:"locationMin_lt"`
	LocationMaxLt           *string              `json:"locationMax_lt"`
	LocationGte             *string              `json:"location_gte"`
	LocationMinGte          *string              `json:"locationMin_gte"`
	LocationMaxGte          *string              `json:"locationMax_gte"`
	LocationLte             *string              `json:"location_lte"`
	LocationMinLte          *string              `json:"locationMin_lte"`
	LocationMaxLte          *string              `json:"locationMax_lte"`
	LocationIn              []string             `json:"location_in"`
	LocationMinIn           []string             `json:"locationMin_in"`
	LocationMaxIn           []string             `json:"locationMax_in"`
	LocationNotIn           []string             `json:"location_not_in"`
	LocationMinNotIn        []string             `json:"locationMin_not_in"`
	LocationMaxNotIn        []string             `json:"locationMax_not_in"`
	LocationLike            *string              `json:"location_like"`
	LocationMinLike         *string              `json:"locationMin_like"`
	LocationMaxLike         *string              `json:"locationMax_like"`
	LocationPrefix          *string              `json:"location_prefix"`
	LocationMinPrefix       *string              `json:"locationMin_prefix"`
	LocationMaxPrefix       *string              `json:"locationMax_prefix"`
	LocationSuffix          *string              `json:"location_suffix"`
	LocationMinSuffix       *string              `json:"locationMin_suffix"`
	LocationMaxSuffix       *string              `json:"locationMax_suffix"`
	LocationNull            *bool                `json:"location_null"`
	UpdatedAt               *time.Time           `json:"updatedAt"`
	UpdatedAtMin            *time.Time           `json:"updatedAtMin"`
	UpdatedAtMax            *time.Time           `json:"updatedAtMax"`
	UpdatedAtNe             *time.Time           `json:"updatedAt_ne"`
	UpdatedAtMinNe          *time.Time           `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe          *time.Time           `json:"updatedAtMax_ne"`
	UpdatedAtGt             *time.Time           `json:"updatedAt_gt"`
	UpdatedAtMinGt          *time.Time           `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt          *time.Time           `json:"updatedAtMax_gt"`
	UpdatedAtLt             *time.Time           `json:"updatedAt_lt"`
	UpdatedAtMinLt          *time.Time           `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt          *time.Time           `json:"updatedAtMax_lt"`
	UpdatedAtGte            *time.Time           `json:"updatedAt_gte"`
	UpdatedAtMinGte         *time.Time           `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte         *time.Time           `json:"updatedAtMax_gte"`
	UpdatedAtLte            *time.Time           `json:"updatedAt_lte"`
	UpdatedAtMinLte         *time.Time           `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte         *time.Time           `json:"updatedAtMax_lte"`
	UpdatedAtIn             []*time.Time         `json:"updatedAt_in"`
	UpdatedAtMinIn          []*time.Time         `json:"updatedAtMin_in"`
	UpdatedAtMaxIn          []*time.Time         `json:"updatedAtMax_in"`
	UpdatedAtNotIn          []*time.Time         `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn       []*time.Time         `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn       []*time.Time         `json:"updatedAtMax_not_in"`
	UpdatedAtNull           *bool                `json:"updatedAt_null"`
	CreatedAt               *time.Time           `json:"createdAt"`
	CreatedAtMin            *time.Time           `json:"createdAtMin"`
	CreatedAtMax            *time.Time           `json:"createdAtMax"`
	CreatedAtNe             *time.Time           `json:"createdAt_ne"`
	CreatedAtMinNe          *time.Time           `json:"createdAtMin_ne"`
	CreatedAtMaxNe          *time.Time           `json:"createdAtMax_ne"`
	CreatedAtGt             *time.Time           `json:"createdAt_gt"`
	CreatedAtMinGt          *time.Time           `json:"createdAtMin_gt"`
	CreatedAtMaxGt          *time.Time           `json:"createdAtMax_gt"`
	CreatedAtLt             *time.Time           `json:"createdAt_lt"`
	CreatedAtMinLt          *time.Time           `json:"createdAtMin_lt"`
	CreatedAtMaxLt          *time.Time           `json:"createdAtMax_lt"`
	CreatedAtGte            *time.Time           `json:"createdAt_gte"`
	CreatedAtMinGte         *time.Time           `json:"createdAtMin_gte"`
	CreatedAtMaxGte         *time.Time           `json:"createdAtMax_gte"`
	CreatedAtLte            *time.Time           `json:"createdAt_lte"`
	CreatedAtMinLte         *time.Time           `json:"createdAtMin_lte"`
	CreatedAtMaxLte         *time.Time           `json:"createdAtMax_lte"`
	CreatedAtIn             []*time.Time         `json:"createdAt_in"`
	CreatedAtMinIn          []*time.Time         `json:"createdAtMin_in"`
	CreatedAtMaxIn          []*time.Time         `json:"createdAtMax_in"`
	CreatedAtNotIn          []*time.Time         `json:"createdAt_not_in"`
	CreatedAtMinNotIn       []*time.Time         `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn       []*time.Time         `json:"createdAtMax_not_in"`
	CreatedAtNull           *bool                `json:"createdAt_null"`
	UpdatedBy               *string              `json:"updatedBy"`
	UpdatedByMin            *string              `json:"updatedByMin"`
	UpdatedByMax            *string              `json:"updatedByMax"`
	UpdatedByNe             *string              `json:"updatedBy_ne"`
	UpdatedByMinNe          *string              `json:"updatedByMin_ne"`
	UpdatedByMaxNe          *string              `json:"updatedByMax_ne"`
	UpdatedByGt             *string              `json:"updatedBy_gt"`
	UpdatedByMinGt          *string              `json:"updatedByMin_gt"`
	UpdatedByMaxGt          *string              `json:"updatedByMax_gt"`
	UpdatedByLt             *string              `json:"updatedBy_lt"`
	UpdatedByMinLt          *string              `json:"updatedByMin_lt"`
	UpdatedByMaxLt          *string              `json:"updatedByMax_lt"`
	UpdatedByGte            *string              `json:"updatedBy_gte"`
	UpdatedByMinGte         *string              `json:"updatedByMin_gte"`
	UpdatedByMaxGte         *string              `json:"updatedByMax_gte"`
	UpdatedByLte            *string              `json:"updatedBy_lte"`
	UpdatedByMinLte         *string              `json:"updatedByMin_lte"`
	UpdatedByMaxLte         *string              `json:"updatedByMax_lte"`
	UpdatedByIn             []string             `json:"updatedBy_in"`
	UpdatedByMinIn          []string             `json:"updatedByMin_in"`
	UpdatedByMaxIn          []string             `json:"updatedByMax_in"`
	UpdatedByNotIn          []string             `json:"updatedBy_not_in"`
	UpdatedByMinNotIn       []string             `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn       []string             `json:"updatedByMax_not_in"`
	UpdatedByNull           *bool                `json:"updatedBy_null"`
	CreatedBy               *string              `json:"createdBy"`
	CreatedByMin            *string              `json:"createdByMin"`
	CreatedByMax            *string              `json:"createdByMax"`
	CreatedByNe             *string              `json:"createdBy_ne"`
	CreatedByMinNe          *string              `json:"createdByMin_ne"`
	CreatedByMaxNe          *string              `json:"createdByMax_ne"`
	CreatedByGt             *string              `json:"createdBy_gt"`
	CreatedByMinGt          *string              `json:"createdByMin_gt"`
	CreatedByMaxGt          *string              `json:"createdByMax_gt"`
	CreatedByLt             *string              `json:"createdBy_lt"`
	CreatedByMinLt          *string              `json:"createdByMin_lt"`
	CreatedByMaxLt          *string              `json:"createdByMax_lt"`
	CreatedByGte            *string              `json:"createdBy_gte"`
	CreatedByMinGte         *string              `json:"createdByMin_gte"`
	CreatedByMaxGte         *string              `json:"createdByMax_gte"`
	CreatedByLte            *string              `json:"createdBy_lte"`
	CreatedByMinLte         *string              `json:"createdByMin_lte"`
	CreatedByMaxLte         *string              `json:"createdByMax_lte"`
	CreatedByIn             []string             `json:"createdBy_in"`
	CreatedByMinIn          []string             `json:"createdByMin_in"`
	CreatedByMaxIn          []string             `json:"createdByMax_in"`
	CreatedByNotIn          []string             `json:"createdBy_not_in"`
	CreatedByMinNotIn       []string             `json:"createdByMin_not_in"`
	CreatedByMaxNotIn       []string             `json:"createdByMax_not_in"`
	CreatedByNull           *bool                `json:"createdBy_null"`
	Users                   *UserFilterType      `json:"users"`
}

func (*ProfileFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ProfileFilterType) Apply

func (f *ProfileFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply method

func (*ProfileFilterType) ApplyWithAlias

func (f *ProfileFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias method

func (*ProfileFilterType) HavingContent

func (f *ProfileFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent method

func (*ProfileFilterType) IsEmpty

func (f *ProfileFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*ProfileFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ProfileFilterType) WhereContent

func (f *ProfileFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type ProfileQueryFilter

type ProfileQueryFilter struct {
	Query *string
}

ProfileQueryFilter struct

func (*ProfileQueryFilter) Apply

func (qf *ProfileQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type ProfileResolver

type ProfileResolver interface {
	Users(ctx context.Context, obj *Profile) ([]*User, error)

	UsersIds(ctx context.Context, obj *Profile) ([]string, error)
	UsersConnection(ctx context.Context, obj *Profile, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (*UserResultType, error)
}

type ProfileResultType

type ProfileResultType struct {
	EntityResultType
}

ProfileResultType struct

func QueryProfilesHandler

QueryProfilesHandler handler

type ProfileResultTypeResolver

type ProfileResultTypeResolver interface {
	Items(ctx context.Context, obj *ProfileResultType) ([]*Profile, error)
	Count(ctx context.Context, obj *ProfileResultType) (int, error)
}

type ProfileSortType

type ProfileSortType struct {
	ID                *ObjectSortType `json:"id"`
	IDMin             *ObjectSortType `json:"idMin"`
	IDMax             *ObjectSortType `json:"idMax"`
	Email             *ObjectSortType `json:"email"`
	EmailMin          *ObjectSortType `json:"emailMin"`
	EmailMax          *ObjectSortType `json:"emailMax"`
	ExternalUserID    *ObjectSortType `json:"externalUserId"`
	ExternalUserIDMin *ObjectSortType `json:"externalUserIdMin"`
	ExternalUserIDMax *ObjectSortType `json:"externalUserIdMax"`
	Provider          *ObjectSortType `json:"provider"`
	ProviderMin       *ObjectSortType `json:"providerMin"`
	ProviderMax       *ObjectSortType `json:"providerMax"`
	AvatarURL         *ObjectSortType `json:"avatarURL"`
	AvatarURLMin      *ObjectSortType `json:"avatarURLMin"`
	AvatarURLMax      *ObjectSortType `json:"avatarURLMax"`
	Name              *ObjectSortType `json:"name"`
	NameMin           *ObjectSortType `json:"nameMin"`
	NameMax           *ObjectSortType `json:"nameMax"`
	FirstName         *ObjectSortType `json:"firstName"`
	FirstNameMin      *ObjectSortType `json:"firstNameMin"`
	FirstNameMax      *ObjectSortType `json:"firstNameMax"`
	LastName          *ObjectSortType `json:"lastName"`
	LastNameMin       *ObjectSortType `json:"lastNameMin"`
	LastNameMax       *ObjectSortType `json:"lastNameMax"`
	NickName          *ObjectSortType `json:"nickName"`
	NickNameMin       *ObjectSortType `json:"nickNameMin"`
	NickNameMax       *ObjectSortType `json:"nickNameMax"`
	Description       *ObjectSortType `json:"description"`
	DescriptionMin    *ObjectSortType `json:"descriptionMin"`
	DescriptionMax    *ObjectSortType `json:"descriptionMax"`
	Location          *ObjectSortType `json:"location"`
	LocationMin       *ObjectSortType `json:"locationMin"`
	LocationMax       *ObjectSortType `json:"locationMax"`
	UpdatedAt         *ObjectSortType `json:"updatedAt"`
	UpdatedAtMin      *ObjectSortType `json:"updatedAtMin"`
	UpdatedAtMax      *ObjectSortType `json:"updatedAtMax"`
	CreatedAt         *ObjectSortType `json:"createdAt"`
	CreatedAtMin      *ObjectSortType `json:"createdAtMin"`
	CreatedAtMax      *ObjectSortType `json:"createdAtMax"`
	UpdatedBy         *ObjectSortType `json:"updatedBy"`
	UpdatedByMin      *ObjectSortType `json:"updatedByMin"`
	UpdatedByMax      *ObjectSortType `json:"updatedByMax"`
	CreatedBy         *ObjectSortType `json:"createdBy"`
	CreatedByMin      *ObjectSortType `json:"createdByMin"`
	CreatedByMax      *ObjectSortType `json:"createdByMax"`
	UsersIds          *ObjectSortType `json:"usersIds"`
	UsersIdsMin       *ObjectSortType `json:"usersIdsMin"`
	UsersIdsMax       *ObjectSortType `json:"usersIdsMax"`
	Users             *UserSortType   `json:"users"`
}

func (ProfileSortType) Apply

func (s ProfileSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply method

func (ProfileSortType) ApplyWithAlias

func (s ProfileSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias method

type ProfileUsers

type ProfileUsers struct {
	ProfileID string
	UserID    string
}

ProfileUsers struct

func (ProfileUsers) TableName

func (ProfileUsers) TableName() string

TableName ...

type QueryPermissionHandlerOptions

type QueryPermissionHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *PermissionFilterType
}

QueryPermissionHandlerOptions struct

type QueryPermissionsHandlerOptions

type QueryPermissionsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*PermissionSortType
	Filter *PermissionFilterType
}

QueryPermissionsHandlerOptions struct

type QueryProfileHandlerOptions

type QueryProfileHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ProfileFilterType
}

QueryProfileHandlerOptions struct

type QueryProfilesHandlerOptions

type QueryProfilesHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ProfileSortType
	Filter *ProfileFilterType
}

QueryProfilesHandlerOptions struct

type QueryResolver

type QueryResolver interface {
	User(ctx context.Context, id *string, q *string, filter *UserFilterType) (*User, error)
	Users(ctx context.Context, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (*UserResultType, error)
	UserAPIKey(ctx context.Context, id *string, q *string, filter *UserAPIKeyFilterType) (*UserAPIKey, error)
	UserAPIKeys(ctx context.Context, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) (*UserAPIKeyResultType, error)
	Profile(ctx context.Context, id *string, q *string, filter *ProfileFilterType) (*Profile, error)
	Profiles(ctx context.Context, offset *int, limit *int, q *string, sort []*ProfileSortType, filter *ProfileFilterType) (*ProfileResultType, error)
	Role(ctx context.Context, id *string, q *string, filter *RoleFilterType) (*Role, error)
	Roles(ctx context.Context, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (*RoleResultType, error)
	Permission(ctx context.Context, id *string, q *string, filter *PermissionFilterType) (*Permission, error)
	Permissions(ctx context.Context, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (*PermissionResultType, error)
}

type QueryRoleHandlerOptions

type QueryRoleHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *RoleFilterType
}

QueryRoleHandlerOptions struct

type QueryRolesHandlerOptions

type QueryRolesHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*RoleSortType
	Filter *RoleFilterType
}

QueryRolesHandlerOptions struct

type QueryUserAPIKeyHandlerOptions

type QueryUserAPIKeyHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *UserAPIKeyFilterType
}

QueryUserAPIKeyHandlerOptions struct

type QueryUserAPIKeysHandlerOptions

type QueryUserAPIKeysHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*UserAPIKeySortType
	Filter *UserAPIKeyFilterType
}

QueryUserAPIKeysHandlerOptions struct

type QueryUserHandlerOptions

type QueryUserHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *UserFilterType
}

QueryUserHandlerOptions struct

type QueryUsersHandlerOptions

type QueryUsersHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*UserSortType
	Filter *UserFilterType
}

QueryUsersHandlerOptions struct

type ResolutionHandlers

type ResolutionHandlers struct {
	OnEvent func(ctx context.Context, r *GeneratedResolver, e *events.Event) error

	CreateUser     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *User, err error)
	UpdateUser     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *User, err error)
	DeleteUser     func(ctx context.Context, r *GeneratedResolver, id string) (item *User, err error)
	DeleteAllUsers func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryUser      func(ctx context.Context, r *GeneratedResolver, opts QueryUserHandlerOptions) (*User, error)
	QueryUsers     func(ctx context.Context, r *GeneratedResolver, opts QueryUsersHandlerOptions) (*UserResultType, error)

	UserApikeys func(ctx context.Context, r *GeneratedResolver, obj *User) (res []*UserAPIKey, err error)

	UserRoles func(ctx context.Context, r *GeneratedResolver, obj *User) (res []*Role, err error)

	UserProfiles func(ctx context.Context, r *GeneratedResolver, obj *User) (res []*Profile, err error)

	UserPermissions func(ctx context.Context, r *GeneratedResolver, obj *User) (res []*Permission, err error)

	CreateUserAPIKey     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *UserAPIKey, err error)
	UpdateUserAPIKey     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *UserAPIKey, err error)
	DeleteUserAPIKey     func(ctx context.Context, r *GeneratedResolver, id string) (item *UserAPIKey, err error)
	DeleteAllUserAPIKeys func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryUserAPIKey      func(ctx context.Context, r *GeneratedResolver, opts QueryUserAPIKeyHandlerOptions) (*UserAPIKey, error)
	QueryUserAPIKeys     func(ctx context.Context, r *GeneratedResolver, opts QueryUserAPIKeysHandlerOptions) (*UserAPIKeyResultType, error)

	UserAPIKeyUser func(ctx context.Context, r *GeneratedResolver, obj *UserAPIKey) (res *User, err error)

	UserAPIKeyPermissions func(ctx context.Context, r *GeneratedResolver, obj *UserAPIKey) (res []*Permission, err error)

	CreateProfile     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Profile, err error)
	UpdateProfile     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Profile, err error)
	DeleteProfile     func(ctx context.Context, r *GeneratedResolver, id string) (item *Profile, err error)
	DeleteAllProfiles func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryProfile      func(ctx context.Context, r *GeneratedResolver, opts QueryProfileHandlerOptions) (*Profile, error)
	QueryProfiles     func(ctx context.Context, r *GeneratedResolver, opts QueryProfilesHandlerOptions) (*ProfileResultType, error)

	ProfileUsers func(ctx context.Context, r *GeneratedResolver, obj *Profile) (res []*User, err error)

	CreateRole     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Role, err error)
	UpdateRole     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Role, err error)
	DeleteRole     func(ctx context.Context, r *GeneratedResolver, id string) (item *Role, err error)
	DeleteAllRoles func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryRole      func(ctx context.Context, r *GeneratedResolver, opts QueryRoleHandlerOptions) (*Role, error)
	QueryRoles     func(ctx context.Context, r *GeneratedResolver, opts QueryRolesHandlerOptions) (*RoleResultType, error)

	RoleUsers func(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*User, err error)

	RoleParents func(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*Role, err error)

	RoleChildren func(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*Role, err error)

	RolePermissions func(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*Permission, err error)

	CreatePermission     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Permission, err error)
	UpdatePermission     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Permission, err error)
	DeletePermission     func(ctx context.Context, r *GeneratedResolver, id string) (item *Permission, err error)
	DeleteAllPermissions func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryPermission      func(ctx context.Context, r *GeneratedResolver, opts QueryPermissionHandlerOptions) (*Permission, error)
	QueryPermissions     func(ctx context.Context, r *GeneratedResolver, opts QueryPermissionsHandlerOptions) (*PermissionResultType, error)

	PermissionUsers func(ctx context.Context, r *GeneratedResolver, obj *Permission) (res []*User, err error)

	PermissionRoles func(ctx context.Context, r *GeneratedResolver, obj *Permission) (res []*Role, err error)

	PermissionApikeys func(ctx context.Context, r *GeneratedResolver, obj *Permission) (res []*UserAPIKey, err error)
}

ResolutionHandlers struct

func DefaultResolutionHandlers

func DefaultResolutionHandlers() ResolutionHandlers

DefaultResolutionHandlers ...

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Permission() PermissionResolver
	PermissionResultType() PermissionResultTypeResolver
	Profile() ProfileResolver
	ProfileResultType() ProfileResultTypeResolver
	Query() QueryResolver
	Role() RoleResolver
	RoleResultType() RoleResultTypeResolver
	User() UserResolver
	UserAPIKey() UserAPIKeyResolver
	UserAPIKeyResultType() UserAPIKeyResultTypeResolver
	UserResultType() UserResultTypeResolver
}

type Role

type Role struct {
	ID          string     `json:"id" gorm:"column:id;primary_key"`
	Domain      string     `json:"domain" gorm:"column:domain"`
	Name        string     `json:"name" gorm:"column:name"`
	Description *string    `json:"description" gorm:"column:description"`
	UpdatedAt   *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt   time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy   *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy   *string    `json:"createdBy" gorm:"column:createdBy"`

	Users []*User `json:"users" gorm:"many2many:role_users;jointable_foreignkey:roleId;association_jointable_foreignkey:userId"`

	Parents []*Role `json:"parents" gorm:"many2many:role_parents;jointable_foreignkey:childId;association_jointable_foreignkey:parentId"`

	Children []*Role `json:"children" gorm:"many2many:role_parents;jointable_foreignkey:parentId;association_jointable_foreignkey:childId"`

	Permissions []*Permission `` /* 126-byte string literal not displayed */
}

Role struct

func CreateRoleHandler

func CreateRoleHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Role, err error)

CreateRoleHandler handler

func DeleteRoleHandler

func DeleteRoleHandler(ctx context.Context, r *GeneratedResolver, id string) (item *Role, err error)

DeleteRoleHandler handler

func PermissionRolesHandler

func PermissionRolesHandler(ctx context.Context, r *GeneratedResolver, obj *Permission) (res []*Role, err error)

PermissionRolesHandler handler

func QueryRoleHandler

func QueryRoleHandler(ctx context.Context, r *GeneratedResolver, opts QueryRoleHandlerOptions) (*Role, error)

QueryRoleHandler handler

func RoleChildrenHandler

func RoleChildrenHandler(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*Role, err error)

RoleChildrenHandler handler

func RoleParentsHandler

func RoleParentsHandler(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*Role, err error)

RoleParentsHandler handler

func UpdateRoleHandler

func UpdateRoleHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Role, err error)

UpdateRoleHandler handler

func UserRolesHandler

func UserRolesHandler(ctx context.Context, r *GeneratedResolver, obj *User) (res []*Role, err error)

UserRolesHandler handler

func (*Role) IsEntity

func (m *Role) IsEntity()

IsEntity ...

type RoleChanges

type RoleChanges struct {
	ID          string
	Domain      string
	Name        string
	Description *string
	UpdatedAt   *time.Time
	CreatedAt   time.Time
	UpdatedBy   *string
	CreatedBy   *string

	UsersIDs       []*string
	ParentsIDs     []*string
	ChildrenIDs    []*string
	PermissionsIDs []*string
}

RoleChanges struct

type RoleFilterType

type RoleFilterType struct {
	And                  []*RoleFilterType     `json:"AND"`
	Or                   []*RoleFilterType     `json:"OR"`
	ID                   *string               `json:"id"`
	IDMin                *string               `json:"idMin"`
	IDMax                *string               `json:"idMax"`
	IDNe                 *string               `json:"id_ne"`
	IDMinNe              *string               `json:"idMin_ne"`
	IDMaxNe              *string               `json:"idMax_ne"`
	IDGt                 *string               `json:"id_gt"`
	IDMinGt              *string               `json:"idMin_gt"`
	IDMaxGt              *string               `json:"idMax_gt"`
	IDLt                 *string               `json:"id_lt"`
	IDMinLt              *string               `json:"idMin_lt"`
	IDMaxLt              *string               `json:"idMax_lt"`
	IDGte                *string               `json:"id_gte"`
	IDMinGte             *string               `json:"idMin_gte"`
	IDMaxGte             *string               `json:"idMax_gte"`
	IDLte                *string               `json:"id_lte"`
	IDMinLte             *string               `json:"idMin_lte"`
	IDMaxLte             *string               `json:"idMax_lte"`
	IDIn                 []string              `json:"id_in"`
	IDMinIn              []string              `json:"idMin_in"`
	IDMaxIn              []string              `json:"idMax_in"`
	IDNotIn              []string              `json:"id_not_in"`
	IDMinNotIn           []string              `json:"idMin_not_in"`
	IDMaxNotIn           []string              `json:"idMax_not_in"`
	IDNull               *bool                 `json:"id_null"`
	Domain               *string               `json:"domain"`
	DomainMin            *string               `json:"domainMin"`
	DomainMax            *string               `json:"domainMax"`
	DomainNe             *string               `json:"domain_ne"`
	DomainMinNe          *string               `json:"domainMin_ne"`
	DomainMaxNe          *string               `json:"domainMax_ne"`
	DomainGt             *string               `json:"domain_gt"`
	DomainMinGt          *string               `json:"domainMin_gt"`
	DomainMaxGt          *string               `json:"domainMax_gt"`
	DomainLt             *string               `json:"domain_lt"`
	DomainMinLt          *string               `json:"domainMin_lt"`
	DomainMaxLt          *string               `json:"domainMax_lt"`
	DomainGte            *string               `json:"domain_gte"`
	DomainMinGte         *string               `json:"domainMin_gte"`
	DomainMaxGte         *string               `json:"domainMax_gte"`
	DomainLte            *string               `json:"domain_lte"`
	DomainMinLte         *string               `json:"domainMin_lte"`
	DomainMaxLte         *string               `json:"domainMax_lte"`
	DomainIn             []string              `json:"domain_in"`
	DomainMinIn          []string              `json:"domainMin_in"`
	DomainMaxIn          []string              `json:"domainMax_in"`
	DomainNotIn          []string              `json:"domain_not_in"`
	DomainMinNotIn       []string              `json:"domainMin_not_in"`
	DomainMaxNotIn       []string              `json:"domainMax_not_in"`
	DomainLike           *string               `json:"domain_like"`
	DomainMinLike        *string               `json:"domainMin_like"`
	DomainMaxLike        *string               `json:"domainMax_like"`
	DomainPrefix         *string               `json:"domain_prefix"`
	DomainMinPrefix      *string               `json:"domainMin_prefix"`
	DomainMaxPrefix      *string               `json:"domainMax_prefix"`
	DomainSuffix         *string               `json:"domain_suffix"`
	DomainMinSuffix      *string               `json:"domainMin_suffix"`
	DomainMaxSuffix      *string               `json:"domainMax_suffix"`
	DomainNull           *bool                 `json:"domain_null"`
	Name                 *string               `json:"name"`
	NameMin              *string               `json:"nameMin"`
	NameMax              *string               `json:"nameMax"`
	NameNe               *string               `json:"name_ne"`
	NameMinNe            *string               `json:"nameMin_ne"`
	NameMaxNe            *string               `json:"nameMax_ne"`
	NameGt               *string               `json:"name_gt"`
	NameMinGt            *string               `json:"nameMin_gt"`
	NameMaxGt            *string               `json:"nameMax_gt"`
	NameLt               *string               `json:"name_lt"`
	NameMinLt            *string               `json:"nameMin_lt"`
	NameMaxLt            *string               `json:"nameMax_lt"`
	NameGte              *string               `json:"name_gte"`
	NameMinGte           *string               `json:"nameMin_gte"`
	NameMaxGte           *string               `json:"nameMax_gte"`
	NameLte              *string               `json:"name_lte"`
	NameMinLte           *string               `json:"nameMin_lte"`
	NameMaxLte           *string               `json:"nameMax_lte"`
	NameIn               []string              `json:"name_in"`
	NameMinIn            []string              `json:"nameMin_in"`
	NameMaxIn            []string              `json:"nameMax_in"`
	NameNotIn            []string              `json:"name_not_in"`
	NameMinNotIn         []string              `json:"nameMin_not_in"`
	NameMaxNotIn         []string              `json:"nameMax_not_in"`
	NameLike             *string               `json:"name_like"`
	NameMinLike          *string               `json:"nameMin_like"`
	NameMaxLike          *string               `json:"nameMax_like"`
	NamePrefix           *string               `json:"name_prefix"`
	NameMinPrefix        *string               `json:"nameMin_prefix"`
	NameMaxPrefix        *string               `json:"nameMax_prefix"`
	NameSuffix           *string               `json:"name_suffix"`
	NameMinSuffix        *string               `json:"nameMin_suffix"`
	NameMaxSuffix        *string               `json:"nameMax_suffix"`
	NameNull             *bool                 `json:"name_null"`
	Description          *string               `json:"description"`
	DescriptionMin       *string               `json:"descriptionMin"`
	DescriptionMax       *string               `json:"descriptionMax"`
	DescriptionNe        *string               `json:"description_ne"`
	DescriptionMinNe     *string               `json:"descriptionMin_ne"`
	DescriptionMaxNe     *string               `json:"descriptionMax_ne"`
	DescriptionGt        *string               `json:"description_gt"`
	DescriptionMinGt     *string               `json:"descriptionMin_gt"`
	DescriptionMaxGt     *string               `json:"descriptionMax_gt"`
	DescriptionLt        *string               `json:"description_lt"`
	DescriptionMinLt     *string               `json:"descriptionMin_lt"`
	DescriptionMaxLt     *string               `json:"descriptionMax_lt"`
	DescriptionGte       *string               `json:"description_gte"`
	DescriptionMinGte    *string               `json:"descriptionMin_gte"`
	DescriptionMaxGte    *string               `json:"descriptionMax_gte"`
	DescriptionLte       *string               `json:"description_lte"`
	DescriptionMinLte    *string               `json:"descriptionMin_lte"`
	DescriptionMaxLte    *string               `json:"descriptionMax_lte"`
	DescriptionIn        []string              `json:"description_in"`
	DescriptionMinIn     []string              `json:"descriptionMin_in"`
	DescriptionMaxIn     []string              `json:"descriptionMax_in"`
	DescriptionNotIn     []string              `json:"description_not_in"`
	DescriptionMinNotIn  []string              `json:"descriptionMin_not_in"`
	DescriptionMaxNotIn  []string              `json:"descriptionMax_not_in"`
	DescriptionLike      *string               `json:"description_like"`
	DescriptionMinLike   *string               `json:"descriptionMin_like"`
	DescriptionMaxLike   *string               `json:"descriptionMax_like"`
	DescriptionPrefix    *string               `json:"description_prefix"`
	DescriptionMinPrefix *string               `json:"descriptionMin_prefix"`
	DescriptionMaxPrefix *string               `json:"descriptionMax_prefix"`
	DescriptionSuffix    *string               `json:"description_suffix"`
	DescriptionMinSuffix *string               `json:"descriptionMin_suffix"`
	DescriptionMaxSuffix *string               `json:"descriptionMax_suffix"`
	DescriptionNull      *bool                 `json:"description_null"`
	UpdatedAt            *time.Time            `json:"updatedAt"`
	UpdatedAtMin         *time.Time            `json:"updatedAtMin"`
	UpdatedAtMax         *time.Time            `json:"updatedAtMax"`
	UpdatedAtNe          *time.Time            `json:"updatedAt_ne"`
	UpdatedAtMinNe       *time.Time            `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe       *time.Time            `json:"updatedAtMax_ne"`
	UpdatedAtGt          *time.Time            `json:"updatedAt_gt"`
	UpdatedAtMinGt       *time.Time            `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt       *time.Time            `json:"updatedAtMax_gt"`
	UpdatedAtLt          *time.Time            `json:"updatedAt_lt"`
	UpdatedAtMinLt       *time.Time            `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt       *time.Time            `json:"updatedAtMax_lt"`
	UpdatedAtGte         *time.Time            `json:"updatedAt_gte"`
	UpdatedAtMinGte      *time.Time            `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte      *time.Time            `json:"updatedAtMax_gte"`
	UpdatedAtLte         *time.Time            `json:"updatedAt_lte"`
	UpdatedAtMinLte      *time.Time            `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte      *time.Time            `json:"updatedAtMax_lte"`
	UpdatedAtIn          []*time.Time          `json:"updatedAt_in"`
	UpdatedAtMinIn       []*time.Time          `json:"updatedAtMin_in"`
	UpdatedAtMaxIn       []*time.Time          `json:"updatedAtMax_in"`
	UpdatedAtNotIn       []*time.Time          `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn    []*time.Time          `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn    []*time.Time          `json:"updatedAtMax_not_in"`
	UpdatedAtNull        *bool                 `json:"updatedAt_null"`
	CreatedAt            *time.Time            `json:"createdAt"`
	CreatedAtMin         *time.Time            `json:"createdAtMin"`
	CreatedAtMax         *time.Time            `json:"createdAtMax"`
	CreatedAtNe          *time.Time            `json:"createdAt_ne"`
	CreatedAtMinNe       *time.Time            `json:"createdAtMin_ne"`
	CreatedAtMaxNe       *time.Time            `json:"createdAtMax_ne"`
	CreatedAtGt          *time.Time            `json:"createdAt_gt"`
	CreatedAtMinGt       *time.Time            `json:"createdAtMin_gt"`
	CreatedAtMaxGt       *time.Time            `json:"createdAtMax_gt"`
	CreatedAtLt          *time.Time            `json:"createdAt_lt"`
	CreatedAtMinLt       *time.Time            `json:"createdAtMin_lt"`
	CreatedAtMaxLt       *time.Time            `json:"createdAtMax_lt"`
	CreatedAtGte         *time.Time            `json:"createdAt_gte"`
	CreatedAtMinGte      *time.Time            `json:"createdAtMin_gte"`
	CreatedAtMaxGte      *time.Time            `json:"createdAtMax_gte"`
	CreatedAtLte         *time.Time            `json:"createdAt_lte"`
	CreatedAtMinLte      *time.Time            `json:"createdAtMin_lte"`
	CreatedAtMaxLte      *time.Time            `json:"createdAtMax_lte"`
	CreatedAtIn          []*time.Time          `json:"createdAt_in"`
	CreatedAtMinIn       []*time.Time          `json:"createdAtMin_in"`
	CreatedAtMaxIn       []*time.Time          `json:"createdAtMax_in"`
	CreatedAtNotIn       []*time.Time          `json:"createdAt_not_in"`
	CreatedAtMinNotIn    []*time.Time          `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn    []*time.Time          `json:"createdAtMax_not_in"`
	CreatedAtNull        *bool                 `json:"createdAt_null"`
	UpdatedBy            *string               `json:"updatedBy"`
	UpdatedByMin         *string               `json:"updatedByMin"`
	UpdatedByMax         *string               `json:"updatedByMax"`
	UpdatedByNe          *string               `json:"updatedBy_ne"`
	UpdatedByMinNe       *string               `json:"updatedByMin_ne"`
	UpdatedByMaxNe       *string               `json:"updatedByMax_ne"`
	UpdatedByGt          *string               `json:"updatedBy_gt"`
	UpdatedByMinGt       *string               `json:"updatedByMin_gt"`
	UpdatedByMaxGt       *string               `json:"updatedByMax_gt"`
	UpdatedByLt          *string               `json:"updatedBy_lt"`
	UpdatedByMinLt       *string               `json:"updatedByMin_lt"`
	UpdatedByMaxLt       *string               `json:"updatedByMax_lt"`
	UpdatedByGte         *string               `json:"updatedBy_gte"`
	UpdatedByMinGte      *string               `json:"updatedByMin_gte"`
	UpdatedByMaxGte      *string               `json:"updatedByMax_gte"`
	UpdatedByLte         *string               `json:"updatedBy_lte"`
	UpdatedByMinLte      *string               `json:"updatedByMin_lte"`
	UpdatedByMaxLte      *string               `json:"updatedByMax_lte"`
	UpdatedByIn          []string              `json:"updatedBy_in"`
	UpdatedByMinIn       []string              `json:"updatedByMin_in"`
	UpdatedByMaxIn       []string              `json:"updatedByMax_in"`
	UpdatedByNotIn       []string              `json:"updatedBy_not_in"`
	UpdatedByMinNotIn    []string              `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn    []string              `json:"updatedByMax_not_in"`
	UpdatedByNull        *bool                 `json:"updatedBy_null"`
	CreatedBy            *string               `json:"createdBy"`
	CreatedByMin         *string               `json:"createdByMin"`
	CreatedByMax         *string               `json:"createdByMax"`
	CreatedByNe          *string               `json:"createdBy_ne"`
	CreatedByMinNe       *string               `json:"createdByMin_ne"`
	CreatedByMaxNe       *string               `json:"createdByMax_ne"`
	CreatedByGt          *string               `json:"createdBy_gt"`
	CreatedByMinGt       *string               `json:"createdByMin_gt"`
	CreatedByMaxGt       *string               `json:"createdByMax_gt"`
	CreatedByLt          *string               `json:"createdBy_lt"`
	CreatedByMinLt       *string               `json:"createdByMin_lt"`
	CreatedByMaxLt       *string               `json:"createdByMax_lt"`
	CreatedByGte         *string               `json:"createdBy_gte"`
	CreatedByMinGte      *string               `json:"createdByMin_gte"`
	CreatedByMaxGte      *string               `json:"createdByMax_gte"`
	CreatedByLte         *string               `json:"createdBy_lte"`
	CreatedByMinLte      *string               `json:"createdByMin_lte"`
	CreatedByMaxLte      *string               `json:"createdByMax_lte"`
	CreatedByIn          []string              `json:"createdBy_in"`
	CreatedByMinIn       []string              `json:"createdByMin_in"`
	CreatedByMaxIn       []string              `json:"createdByMax_in"`
	CreatedByNotIn       []string              `json:"createdBy_not_in"`
	CreatedByMinNotIn    []string              `json:"createdByMin_not_in"`
	CreatedByMaxNotIn    []string              `json:"createdByMax_not_in"`
	CreatedByNull        *bool                 `json:"createdBy_null"`
	Users                *UserFilterType       `json:"users"`
	Parents              *RoleFilterType       `json:"parents"`
	Children             *RoleFilterType       `json:"children"`
	Permissions          *PermissionFilterType `json:"permissions"`
}

func (*RoleFilterType) AndWith

func (f *RoleFilterType) AndWith(f2 ...*RoleFilterType) *RoleFilterType

AndWith convenience method for combining two or more filters with AND statement

func (*RoleFilterType) Apply

func (f *RoleFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply method

func (*RoleFilterType) ApplyWithAlias

func (f *RoleFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias method

func (*RoleFilterType) HavingContent

func (f *RoleFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent method

func (*RoleFilterType) IsEmpty

func (f *RoleFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*RoleFilterType) OrWith

func (f *RoleFilterType) OrWith(f2 ...*RoleFilterType) *RoleFilterType

OrWith convenience method for combining two or more filters with OR statement

func (*RoleFilterType) WhereContent

func (f *RoleFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type RoleParents

type RoleParents struct {
	ChildID  string
	ParentID string
}

RoleParents struct

func (RoleParents) TableName

func (RoleParents) TableName() string

TableName ...

type RoleQueryFilter

type RoleQueryFilter struct {
	Query *string
}

RoleQueryFilter struct

func (*RoleQueryFilter) Apply

func (qf *RoleQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type RoleResolver

type RoleResolver interface {
	Users(ctx context.Context, obj *Role) ([]*User, error)
	Parents(ctx context.Context, obj *Role) ([]*Role, error)
	Children(ctx context.Context, obj *Role) ([]*Role, error)
	Permissions(ctx context.Context, obj *Role) ([]*Permission, error)

	UsersIds(ctx context.Context, obj *Role) ([]string, error)
	UsersConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*UserSortType, filter *UserFilterType) (*UserResultType, error)
	ParentsIds(ctx context.Context, obj *Role) ([]string, error)
	ParentsConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (*RoleResultType, error)
	ChildrenIds(ctx context.Context, obj *Role) ([]string, error)
	ChildrenConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (*RoleResultType, error)
	PermissionsIds(ctx context.Context, obj *Role) ([]string, error)
	PermissionsConnection(ctx context.Context, obj *Role, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (*PermissionResultType, error)
}

type RoleResultType

type RoleResultType struct {
	EntityResultType
}

RoleResultType struct

func QueryRolesHandler

QueryRolesHandler handler

type RoleResultTypeResolver

type RoleResultTypeResolver interface {
	Items(ctx context.Context, obj *RoleResultType) ([]*Role, error)
	Count(ctx context.Context, obj *RoleResultType) (int, error)
}

type RoleSortType

type RoleSortType struct {
	ID                *ObjectSortType     `json:"id"`
	IDMin             *ObjectSortType     `json:"idMin"`
	IDMax             *ObjectSortType     `json:"idMax"`
	Domain            *ObjectSortType     `json:"domain"`
	DomainMin         *ObjectSortType     `json:"domainMin"`
	DomainMax         *ObjectSortType     `json:"domainMax"`
	Name              *ObjectSortType     `json:"name"`
	NameMin           *ObjectSortType     `json:"nameMin"`
	NameMax           *ObjectSortType     `json:"nameMax"`
	Description       *ObjectSortType     `json:"description"`
	DescriptionMin    *ObjectSortType     `json:"descriptionMin"`
	DescriptionMax    *ObjectSortType     `json:"descriptionMax"`
	UpdatedAt         *ObjectSortType     `json:"updatedAt"`
	UpdatedAtMin      *ObjectSortType     `json:"updatedAtMin"`
	UpdatedAtMax      *ObjectSortType     `json:"updatedAtMax"`
	CreatedAt         *ObjectSortType     `json:"createdAt"`
	CreatedAtMin      *ObjectSortType     `json:"createdAtMin"`
	CreatedAtMax      *ObjectSortType     `json:"createdAtMax"`
	UpdatedBy         *ObjectSortType     `json:"updatedBy"`
	UpdatedByMin      *ObjectSortType     `json:"updatedByMin"`
	UpdatedByMax      *ObjectSortType     `json:"updatedByMax"`
	CreatedBy         *ObjectSortType     `json:"createdBy"`
	CreatedByMin      *ObjectSortType     `json:"createdByMin"`
	CreatedByMax      *ObjectSortType     `json:"createdByMax"`
	UsersIds          *ObjectSortType     `json:"usersIds"`
	UsersIdsMin       *ObjectSortType     `json:"usersIdsMin"`
	UsersIdsMax       *ObjectSortType     `json:"usersIdsMax"`
	ParentsIds        *ObjectSortType     `json:"parentsIds"`
	ParentsIdsMin     *ObjectSortType     `json:"parentsIdsMin"`
	ParentsIdsMax     *ObjectSortType     `json:"parentsIdsMax"`
	ChildrenIds       *ObjectSortType     `json:"childrenIds"`
	ChildrenIdsMin    *ObjectSortType     `json:"childrenIdsMin"`
	ChildrenIdsMax    *ObjectSortType     `json:"childrenIdsMax"`
	PermissionsIds    *ObjectSortType     `json:"permissionsIds"`
	PermissionsIdsMin *ObjectSortType     `json:"permissionsIdsMin"`
	PermissionsIdsMax *ObjectSortType     `json:"permissionsIdsMax"`
	Users             *UserSortType       `json:"users"`
	Parents           *RoleSortType       `json:"parents"`
	Children          *RoleSortType       `json:"children"`
	Permissions       *PermissionSortType `json:"permissions"`
}

func (RoleSortType) Apply

func (s RoleSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply method

func (RoleSortType) ApplyWithAlias

func (s RoleSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias method

type RoleUsers

type RoleUsers struct {
	RoleID string
	UserID string
}

RoleUsers struct

func (RoleUsers) TableName

func (RoleUsers) TableName() string

TableName ...

type SortInfo

type SortInfo struct {
	Field         string
	Direction     string
	IsAggregation bool
}

SortInfo struct

func (*SortInfo) String

func (si *SortInfo) String() string

String method

type User

type User struct {
	ID          string     `json:"id" gorm:"column:id;primary_key"`
	Active      bool       `json:"active" gorm:"column:active;default:false"`
	Email       string     `json:"email" gorm:"column:email;unique"`
	Password    *string    `json:"password" gorm:"column:password"`
	AvatarURL   *string    `json:"avatarURL" gorm:"column:avatarURL"`
	DisplayName *string    `json:"displayName" gorm:"column:displayName"`
	Description *string    `json:"description" gorm:"column:description"`
	FirstName   *string    `json:"firstName" gorm:"column:firstName"`
	LastName    *string    `json:"lastName" gorm:"column:lastName"`
	NickName    *string    `json:"nickName" gorm:"column:nickName"`
	Location    *string    `json:"location" gorm:"column:location"`
	UpdatedAt   *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt   time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy   *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy   *string    `json:"createdBy" gorm:"column:createdBy"`

	Apikeys          []*UserAPIKey `json:"apikeys" gorm:"foreignkey:UserID"`
	ApikeysPreloaded bool          `gorm:"-"`

	Roles          []*Role `json:"roles" gorm:"many2many:role_users;jointable_foreignkey:userId;association_jointable_foreignkey:roleId"`
	RolesPreloaded bool    `gorm:"-"`

	Profiles          []*Profile `json:"profiles" gorm:"many2many:profile_users;jointable_foreignkey:userId;association_jointable_foreignkey:profileId"`
	ProfilesPreloaded bool       `gorm:"-"`

	Permissions          []*Permission `` /* 126-byte string literal not displayed */
	PermissionsPreloaded bool          `gorm:"-"`
}

User struct

func CreateUserHandler

func CreateUserHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *User, err error)

CreateUserHandler handler

func DeleteUserHandler

func DeleteUserHandler(ctx context.Context, r *GeneratedResolver, id string) (item *User, err error)

DeleteUserHandler handler

func PermissionUsersHandler

func PermissionUsersHandler(ctx context.Context, r *GeneratedResolver, obj *Permission) (res []*User, err error)

PermissionUsersHandler handler

func ProfileUsersHandler

func ProfileUsersHandler(ctx context.Context, r *GeneratedResolver, obj *Profile) (res []*User, err error)

ProfileUsersHandler handler

func QueryUserHandler

func QueryUserHandler(ctx context.Context, r *GeneratedResolver, opts QueryUserHandlerOptions) (*User, error)

QueryUserHandler handler

func RoleUsersHandler

func RoleUsersHandler(ctx context.Context, r *GeneratedResolver, obj *Role) (res []*User, err error)

RoleUsersHandler handler

func UpdateUserHandler

func UpdateUserHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *User, err error)

UpdateUserHandler handler

func UserAPIKeyUserHandler

func UserAPIKeyUserHandler(ctx context.Context, r *GeneratedResolver, obj *UserAPIKey) (res *User, err error)

UserAPIKeyUserHandler handler

func (*User) IsEntity

func (m *User) IsEntity()

IsEntity ...

type UserAPIKey

type UserAPIKey struct {
	ID          string     `json:"id" gorm:"column:id;primary_key"`
	Key         string     `json:"key" gorm:"column:key;unique"`
	Description *string    `json:"description" gorm:"column:description"`
	UserID      *string    `json:"userId" gorm:"column:userId"`
	UpdatedAt   *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt   time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy   *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy   *string    `json:"createdBy" gorm:"column:createdBy"`

	User          *User `json:"user"`
	UserPreloaded bool  `gorm:"-"`

	Permissions          []*Permission `` /* 134-byte string literal not displayed */
	PermissionsPreloaded bool          `gorm:"-"`
}

UserAPIKey struct

func CreateUserAPIKeyHandler

func CreateUserAPIKeyHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *UserAPIKey, err error)

CreateUserAPIKeyHandler handler

func DeleteUserAPIKeyHandler

func DeleteUserAPIKeyHandler(ctx context.Context, r *GeneratedResolver, id string) (item *UserAPIKey, err error)

DeleteUserAPIKeyHandler handler

func PermissionApikeysHandler

func PermissionApikeysHandler(ctx context.Context, r *GeneratedResolver, obj *Permission) (res []*UserAPIKey, err error)

PermissionApikeysHandler handler

func QueryUserAPIKeyHandler

func QueryUserAPIKeyHandler(ctx context.Context, r *GeneratedResolver, opts QueryUserAPIKeyHandlerOptions) (*UserAPIKey, error)

QueryUserAPIKeyHandler handler

func UpdateUserAPIKeyHandler

func UpdateUserAPIKeyHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *UserAPIKey, err error)

UpdateUserAPIKeyHandler handler

func UserApikeysHandler

func UserApikeysHandler(ctx context.Context, r *GeneratedResolver, obj *User) (res []*UserAPIKey, err error)

UserApikeysHandler handler

func (*UserAPIKey) IsEntity

func (m *UserAPIKey) IsEntity()

IsEntity ...

type UserAPIKeyChanges

type UserAPIKeyChanges struct {
	ID          string
	Key         string
	Description *string
	UserID      *string
	UpdatedAt   *time.Time
	CreatedAt   time.Time
	UpdatedBy   *string
	CreatedBy   *string

	PermissionsIDs []*string
}

UserAPIKeyChanges struct

type UserAPIKeyFilterType

type UserAPIKeyFilterType struct {
	And                  []*UserAPIKeyFilterType `json:"AND"`
	Or                   []*UserAPIKeyFilterType `json:"OR"`
	ID                   *string                 `json:"id"`
	IDMin                *string                 `json:"idMin"`
	IDMax                *string                 `json:"idMax"`
	IDNe                 *string                 `json:"id_ne"`
	IDMinNe              *string                 `json:"idMin_ne"`
	IDMaxNe              *string                 `json:"idMax_ne"`
	IDGt                 *string                 `json:"id_gt"`
	IDMinGt              *string                 `json:"idMin_gt"`
	IDMaxGt              *string                 `json:"idMax_gt"`
	IDLt                 *string                 `json:"id_lt"`
	IDMinLt              *string                 `json:"idMin_lt"`
	IDMaxLt              *string                 `json:"idMax_lt"`
	IDGte                *string                 `json:"id_gte"`
	IDMinGte             *string                 `json:"idMin_gte"`
	IDMaxGte             *string                 `json:"idMax_gte"`
	IDLte                *string                 `json:"id_lte"`
	IDMinLte             *string                 `json:"idMin_lte"`
	IDMaxLte             *string                 `json:"idMax_lte"`
	IDIn                 []string                `json:"id_in"`
	IDMinIn              []string                `json:"idMin_in"`
	IDMaxIn              []string                `json:"idMax_in"`
	IDNotIn              []string                `json:"id_not_in"`
	IDMinNotIn           []string                `json:"idMin_not_in"`
	IDMaxNotIn           []string                `json:"idMax_not_in"`
	IDNull               *bool                   `json:"id_null"`
	Key                  *string                 `json:"key"`
	KeyMin               *string                 `json:"keyMin"`
	KeyMax               *string                 `json:"keyMax"`
	KeyNe                *string                 `json:"key_ne"`
	KeyMinNe             *string                 `json:"keyMin_ne"`
	KeyMaxNe             *string                 `json:"keyMax_ne"`
	KeyGt                *string                 `json:"key_gt"`
	KeyMinGt             *string                 `json:"keyMin_gt"`
	KeyMaxGt             *string                 `json:"keyMax_gt"`
	KeyLt                *string                 `json:"key_lt"`
	KeyMinLt             *string                 `json:"keyMin_lt"`
	KeyMaxLt             *string                 `json:"keyMax_lt"`
	KeyGte               *string                 `json:"key_gte"`
	KeyMinGte            *string                 `json:"keyMin_gte"`
	KeyMaxGte            *string                 `json:"keyMax_gte"`
	KeyLte               *string                 `json:"key_lte"`
	KeyMinLte            *string                 `json:"keyMin_lte"`
	KeyMaxLte            *string                 `json:"keyMax_lte"`
	KeyIn                []string                `json:"key_in"`
	KeyMinIn             []string                `json:"keyMin_in"`
	KeyMaxIn             []string                `json:"keyMax_in"`
	KeyNotIn             []string                `json:"key_not_in"`
	KeyMinNotIn          []string                `json:"keyMin_not_in"`
	KeyMaxNotIn          []string                `json:"keyMax_not_in"`
	KeyLike              *string                 `json:"key_like"`
	KeyMinLike           *string                 `json:"keyMin_like"`
	KeyMaxLike           *string                 `json:"keyMax_like"`
	KeyPrefix            *string                 `json:"key_prefix"`
	KeyMinPrefix         *string                 `json:"keyMin_prefix"`
	KeyMaxPrefix         *string                 `json:"keyMax_prefix"`
	KeySuffix            *string                 `json:"key_suffix"`
	KeyMinSuffix         *string                 `json:"keyMin_suffix"`
	KeyMaxSuffix         *string                 `json:"keyMax_suffix"`
	KeyNull              *bool                   `json:"key_null"`
	Description          *string                 `json:"description"`
	DescriptionMin       *string                 `json:"descriptionMin"`
	DescriptionMax       *string                 `json:"descriptionMax"`
	DescriptionNe        *string                 `json:"description_ne"`
	DescriptionMinNe     *string                 `json:"descriptionMin_ne"`
	DescriptionMaxNe     *string                 `json:"descriptionMax_ne"`
	DescriptionGt        *string                 `json:"description_gt"`
	DescriptionMinGt     *string                 `json:"descriptionMin_gt"`
	DescriptionMaxGt     *string                 `json:"descriptionMax_gt"`
	DescriptionLt        *string                 `json:"description_lt"`
	DescriptionMinLt     *string                 `json:"descriptionMin_lt"`
	DescriptionMaxLt     *string                 `json:"descriptionMax_lt"`
	DescriptionGte       *string                 `json:"description_gte"`
	DescriptionMinGte    *string                 `json:"descriptionMin_gte"`
	DescriptionMaxGte    *string                 `json:"descriptionMax_gte"`
	DescriptionLte       *string                 `json:"description_lte"`
	DescriptionMinLte    *string                 `json:"descriptionMin_lte"`
	DescriptionMaxLte    *string                 `json:"descriptionMax_lte"`
	DescriptionIn        []string                `json:"description_in"`
	DescriptionMinIn     []string                `json:"descriptionMin_in"`
	DescriptionMaxIn     []string                `json:"descriptionMax_in"`
	DescriptionNotIn     []string                `json:"description_not_in"`
	DescriptionMinNotIn  []string                `json:"descriptionMin_not_in"`
	DescriptionMaxNotIn  []string                `json:"descriptionMax_not_in"`
	DescriptionLike      *string                 `json:"description_like"`
	DescriptionMinLike   *string                 `json:"descriptionMin_like"`
	DescriptionMaxLike   *string                 `json:"descriptionMax_like"`
	DescriptionPrefix    *string                 `json:"description_prefix"`
	DescriptionMinPrefix *string                 `json:"descriptionMin_prefix"`
	DescriptionMaxPrefix *string                 `json:"descriptionMax_prefix"`
	DescriptionSuffix    *string                 `json:"description_suffix"`
	DescriptionMinSuffix *string                 `json:"descriptionMin_suffix"`
	DescriptionMaxSuffix *string                 `json:"descriptionMax_suffix"`
	DescriptionNull      *bool                   `json:"description_null"`
	UserID               *string                 `json:"userId"`
	UserIDMin            *string                 `json:"userIdMin"`
	UserIDMax            *string                 `json:"userIdMax"`
	UserIDNe             *string                 `json:"userId_ne"`
	UserIDMinNe          *string                 `json:"userIdMin_ne"`
	UserIDMaxNe          *string                 `json:"userIdMax_ne"`
	UserIDGt             *string                 `json:"userId_gt"`
	UserIDMinGt          *string                 `json:"userIdMin_gt"`
	UserIDMaxGt          *string                 `json:"userIdMax_gt"`
	UserIDLt             *string                 `json:"userId_lt"`
	UserIDMinLt          *string                 `json:"userIdMin_lt"`
	UserIDMaxLt          *string                 `json:"userIdMax_lt"`
	UserIDGte            *string                 `json:"userId_gte"`
	UserIDMinGte         *string                 `json:"userIdMin_gte"`
	UserIDMaxGte         *string                 `json:"userIdMax_gte"`
	UserIDLte            *string                 `json:"userId_lte"`
	UserIDMinLte         *string                 `json:"userIdMin_lte"`
	UserIDMaxLte         *string                 `json:"userIdMax_lte"`
	UserIDIn             []string                `json:"userId_in"`
	UserIDMinIn          []string                `json:"userIdMin_in"`
	UserIDMaxIn          []string                `json:"userIdMax_in"`
	UserIDNotIn          []string                `json:"userId_not_in"`
	UserIDMinNotIn       []string                `json:"userIdMin_not_in"`
	UserIDMaxNotIn       []string                `json:"userIdMax_not_in"`
	UserIDNull           *bool                   `json:"userId_null"`
	UpdatedAt            *time.Time              `json:"updatedAt"`
	UpdatedAtMin         *time.Time              `json:"updatedAtMin"`
	UpdatedAtMax         *time.Time              `json:"updatedAtMax"`
	UpdatedAtNe          *time.Time              `json:"updatedAt_ne"`
	UpdatedAtMinNe       *time.Time              `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe       *time.Time              `json:"updatedAtMax_ne"`
	UpdatedAtGt          *time.Time              `json:"updatedAt_gt"`
	UpdatedAtMinGt       *time.Time              `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt       *time.Time              `json:"updatedAtMax_gt"`
	UpdatedAtLt          *time.Time              `json:"updatedAt_lt"`
	UpdatedAtMinLt       *time.Time              `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt       *time.Time              `json:"updatedAtMax_lt"`
	UpdatedAtGte         *time.Time              `json:"updatedAt_gte"`
	UpdatedAtMinGte      *time.Time              `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte      *time.Time              `json:"updatedAtMax_gte"`
	UpdatedAtLte         *time.Time              `json:"updatedAt_lte"`
	UpdatedAtMinLte      *time.Time              `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte      *time.Time              `json:"updatedAtMax_lte"`
	UpdatedAtIn          []*time.Time            `json:"updatedAt_in"`
	UpdatedAtMinIn       []*time.Time            `json:"updatedAtMin_in"`
	UpdatedAtMaxIn       []*time.Time            `json:"updatedAtMax_in"`
	UpdatedAtNotIn       []*time.Time            `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn    []*time.Time            `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn    []*time.Time            `json:"updatedAtMax_not_in"`
	UpdatedAtNull        *bool                   `json:"updatedAt_null"`
	CreatedAt            *time.Time              `json:"createdAt"`
	CreatedAtMin         *time.Time              `json:"createdAtMin"`
	CreatedAtMax         *time.Time              `json:"createdAtMax"`
	CreatedAtNe          *time.Time              `json:"createdAt_ne"`
	CreatedAtMinNe       *time.Time              `json:"createdAtMin_ne"`
	CreatedAtMaxNe       *time.Time              `json:"createdAtMax_ne"`
	CreatedAtGt          *time.Time              `json:"createdAt_gt"`
	CreatedAtMinGt       *time.Time              `json:"createdAtMin_gt"`
	CreatedAtMaxGt       *time.Time              `json:"createdAtMax_gt"`
	CreatedAtLt          *time.Time              `json:"createdAt_lt"`
	CreatedAtMinLt       *time.Time              `json:"createdAtMin_lt"`
	CreatedAtMaxLt       *time.Time              `json:"createdAtMax_lt"`
	CreatedAtGte         *time.Time              `json:"createdAt_gte"`
	CreatedAtMinGte      *time.Time              `json:"createdAtMin_gte"`
	CreatedAtMaxGte      *time.Time              `json:"createdAtMax_gte"`
	CreatedAtLte         *time.Time              `json:"createdAt_lte"`
	CreatedAtMinLte      *time.Time              `json:"createdAtMin_lte"`
	CreatedAtMaxLte      *time.Time              `json:"createdAtMax_lte"`
	CreatedAtIn          []*time.Time            `json:"createdAt_in"`
	CreatedAtMinIn       []*time.Time            `json:"createdAtMin_in"`
	CreatedAtMaxIn       []*time.Time            `json:"createdAtMax_in"`
	CreatedAtNotIn       []*time.Time            `json:"createdAt_not_in"`
	CreatedAtMinNotIn    []*time.Time            `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn    []*time.Time            `json:"createdAtMax_not_in"`
	CreatedAtNull        *bool                   `json:"createdAt_null"`
	UpdatedBy            *string                 `json:"updatedBy"`
	UpdatedByMin         *string                 `json:"updatedByMin"`
	UpdatedByMax         *string                 `json:"updatedByMax"`
	UpdatedByNe          *string                 `json:"updatedBy_ne"`
	UpdatedByMinNe       *string                 `json:"updatedByMin_ne"`
	UpdatedByMaxNe       *string                 `json:"updatedByMax_ne"`
	UpdatedByGt          *string                 `json:"updatedBy_gt"`
	UpdatedByMinGt       *string                 `json:"updatedByMin_gt"`
	UpdatedByMaxGt       *string                 `json:"updatedByMax_gt"`
	UpdatedByLt          *string                 `json:"updatedBy_lt"`
	UpdatedByMinLt       *string                 `json:"updatedByMin_lt"`
	UpdatedByMaxLt       *string                 `json:"updatedByMax_lt"`
	UpdatedByGte         *string                 `json:"updatedBy_gte"`
	UpdatedByMinGte      *string                 `json:"updatedByMin_gte"`
	UpdatedByMaxGte      *string                 `json:"updatedByMax_gte"`
	UpdatedByLte         *string                 `json:"updatedBy_lte"`
	UpdatedByMinLte      *string                 `json:"updatedByMin_lte"`
	UpdatedByMaxLte      *string                 `json:"updatedByMax_lte"`
	UpdatedByIn          []string                `json:"updatedBy_in"`
	UpdatedByMinIn       []string                `json:"updatedByMin_in"`
	UpdatedByMaxIn       []string                `json:"updatedByMax_in"`
	UpdatedByNotIn       []string                `json:"updatedBy_not_in"`
	UpdatedByMinNotIn    []string                `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn    []string                `json:"updatedByMax_not_in"`
	UpdatedByNull        *bool                   `json:"updatedBy_null"`
	CreatedBy            *string                 `json:"createdBy"`
	CreatedByMin         *string                 `json:"createdByMin"`
	CreatedByMax         *string                 `json:"createdByMax"`
	CreatedByNe          *string                 `json:"createdBy_ne"`
	CreatedByMinNe       *string                 `json:"createdByMin_ne"`
	CreatedByMaxNe       *string                 `json:"createdByMax_ne"`
	CreatedByGt          *string                 `json:"createdBy_gt"`
	CreatedByMinGt       *string                 `json:"createdByMin_gt"`
	CreatedByMaxGt       *string                 `json:"createdByMax_gt"`
	CreatedByLt          *string                 `json:"createdBy_lt"`
	CreatedByMinLt       *string                 `json:"createdByMin_lt"`
	CreatedByMaxLt       *string                 `json:"createdByMax_lt"`
	CreatedByGte         *string                 `json:"createdBy_gte"`
	CreatedByMinGte      *string                 `json:"createdByMin_gte"`
	CreatedByMaxGte      *string                 `json:"createdByMax_gte"`
	CreatedByLte         *string                 `json:"createdBy_lte"`
	CreatedByMinLte      *string                 `json:"createdByMin_lte"`
	CreatedByMaxLte      *string                 `json:"createdByMax_lte"`
	CreatedByIn          []string                `json:"createdBy_in"`
	CreatedByMinIn       []string                `json:"createdByMin_in"`
	CreatedByMaxIn       []string                `json:"createdByMax_in"`
	CreatedByNotIn       []string                `json:"createdBy_not_in"`
	CreatedByMinNotIn    []string                `json:"createdByMin_not_in"`
	CreatedByMaxNotIn    []string                `json:"createdByMax_not_in"`
	CreatedByNull        *bool                   `json:"createdBy_null"`
	User                 *UserFilterType         `json:"user"`
	Permissions          *PermissionFilterType   `json:"permissions"`
}

func (*UserAPIKeyFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*UserAPIKeyFilterType) Apply

func (f *UserAPIKeyFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply method

func (*UserAPIKeyFilterType) ApplyWithAlias

func (f *UserAPIKeyFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias method

func (*UserAPIKeyFilterType) HavingContent

func (f *UserAPIKeyFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent method

func (*UserAPIKeyFilterType) IsEmpty

func (f *UserAPIKeyFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*UserAPIKeyFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*UserAPIKeyFilterType) WhereContent

func (f *UserAPIKeyFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type UserAPIKeyPermissions

type UserAPIKeyPermissions struct {
	ApikeyID     string
	PermissionID string
}

UserAPIKeyPermissions struct

func (UserAPIKeyPermissions) TableName

func (UserAPIKeyPermissions) TableName() string

TableName ...

type UserAPIKeyQueryFilter

type UserAPIKeyQueryFilter struct {
	Query *string
}

UserAPIKeyQueryFilter struct

func (*UserAPIKeyQueryFilter) Apply

func (qf *UserAPIKeyQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type UserAPIKeyResolver

type UserAPIKeyResolver interface {
	User(ctx context.Context, obj *UserAPIKey) (*User, error)
	Permissions(ctx context.Context, obj *UserAPIKey) ([]*Permission, error)

	PermissionsIds(ctx context.Context, obj *UserAPIKey) ([]string, error)
	PermissionsConnection(ctx context.Context, obj *UserAPIKey, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (*PermissionResultType, error)
}

type UserAPIKeyResultType

type UserAPIKeyResultType struct {
	EntityResultType
}

UserAPIKeyResultType struct

func QueryUserAPIKeysHandler

QueryUserAPIKeysHandler handler

type UserAPIKeyResultTypeResolver

type UserAPIKeyResultTypeResolver interface {
	Items(ctx context.Context, obj *UserAPIKeyResultType) ([]*UserAPIKey, error)
	Count(ctx context.Context, obj *UserAPIKeyResultType) (int, error)
}

type UserAPIKeySortType

type UserAPIKeySortType struct {
	ID                *ObjectSortType     `json:"id"`
	IDMin             *ObjectSortType     `json:"idMin"`
	IDMax             *ObjectSortType     `json:"idMax"`
	Key               *ObjectSortType     `json:"key"`
	KeyMin            *ObjectSortType     `json:"keyMin"`
	KeyMax            *ObjectSortType     `json:"keyMax"`
	Description       *ObjectSortType     `json:"description"`
	DescriptionMin    *ObjectSortType     `json:"descriptionMin"`
	DescriptionMax    *ObjectSortType     `json:"descriptionMax"`
	UserID            *ObjectSortType     `json:"userId"`
	UserIDMin         *ObjectSortType     `json:"userIdMin"`
	UserIDMax         *ObjectSortType     `json:"userIdMax"`
	UpdatedAt         *ObjectSortType     `json:"updatedAt"`
	UpdatedAtMin      *ObjectSortType     `json:"updatedAtMin"`
	UpdatedAtMax      *ObjectSortType     `json:"updatedAtMax"`
	CreatedAt         *ObjectSortType     `json:"createdAt"`
	CreatedAtMin      *ObjectSortType     `json:"createdAtMin"`
	CreatedAtMax      *ObjectSortType     `json:"createdAtMax"`
	UpdatedBy         *ObjectSortType     `json:"updatedBy"`
	UpdatedByMin      *ObjectSortType     `json:"updatedByMin"`
	UpdatedByMax      *ObjectSortType     `json:"updatedByMax"`
	CreatedBy         *ObjectSortType     `json:"createdBy"`
	CreatedByMin      *ObjectSortType     `json:"createdByMin"`
	CreatedByMax      *ObjectSortType     `json:"createdByMax"`
	PermissionsIds    *ObjectSortType     `json:"permissionsIds"`
	PermissionsIdsMin *ObjectSortType     `json:"permissionsIdsMin"`
	PermissionsIdsMax *ObjectSortType     `json:"permissionsIdsMax"`
	User              *UserSortType       `json:"user"`
	Permissions       *PermissionSortType `json:"permissions"`
}

func (UserAPIKeySortType) Apply

func (s UserAPIKeySortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply method

func (UserAPIKeySortType) ApplyWithAlias

func (s UserAPIKeySortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias method

type UserChanges

type UserChanges struct {
	ID          string
	Active      bool
	Email       string
	Password    *string
	AvatarURL   *string
	DisplayName *string
	Description *string
	FirstName   *string
	LastName    *string
	NickName    *string
	Location    *string
	UpdatedAt   *time.Time
	CreatedAt   time.Time
	UpdatedBy   *string
	CreatedBy   *string

	ApikeysIDs     []*string
	RolesIDs       []*string
	ProfilesIDs    []*string
	PermissionsIDs []*string
}

UserChanges struct

type UserFilterType

type UserFilterType struct {
	And                  []*UserFilterType     `json:"AND"`
	Or                   []*UserFilterType     `json:"OR"`
	ID                   *string               `json:"id"`
	IDMin                *string               `json:"idMin"`
	IDMax                *string               `json:"idMax"`
	IDNe                 *string               `json:"id_ne"`
	IDMinNe              *string               `json:"idMin_ne"`
	IDMaxNe              *string               `json:"idMax_ne"`
	IDGt                 *string               `json:"id_gt"`
	IDMinGt              *string               `json:"idMin_gt"`
	IDMaxGt              *string               `json:"idMax_gt"`
	IDLt                 *string               `json:"id_lt"`
	IDMinLt              *string               `json:"idMin_lt"`
	IDMaxLt              *string               `json:"idMax_lt"`
	IDGte                *string               `json:"id_gte"`
	IDMinGte             *string               `json:"idMin_gte"`
	IDMaxGte             *string               `json:"idMax_gte"`
	IDLte                *string               `json:"id_lte"`
	IDMinLte             *string               `json:"idMin_lte"`
	IDMaxLte             *string               `json:"idMax_lte"`
	IDIn                 []string              `json:"id_in"`
	IDMinIn              []string              `json:"idMin_in"`
	IDMaxIn              []string              `json:"idMax_in"`
	IDNotIn              []string              `json:"id_not_in"`
	IDMinNotIn           []string              `json:"idMin_not_in"`
	IDMaxNotIn           []string              `json:"idMax_not_in"`
	IDNull               *bool                 `json:"id_null"`
	Active               *bool                 `json:"active"`
	ActiveMin            *bool                 `json:"activeMin"`
	ActiveMax            *bool                 `json:"activeMax"`
	ActiveNe             *bool                 `json:"active_ne"`
	ActiveMinNe          *bool                 `json:"activeMin_ne"`
	ActiveMaxNe          *bool                 `json:"activeMax_ne"`
	ActiveGt             *bool                 `json:"active_gt"`
	ActiveMinGt          *bool                 `json:"activeMin_gt"`
	ActiveMaxGt          *bool                 `json:"activeMax_gt"`
	ActiveLt             *bool                 `json:"active_lt"`
	ActiveMinLt          *bool                 `json:"activeMin_lt"`
	ActiveMaxLt          *bool                 `json:"activeMax_lt"`
	ActiveGte            *bool                 `json:"active_gte"`
	ActiveMinGte         *bool                 `json:"activeMin_gte"`
	ActiveMaxGte         *bool                 `json:"activeMax_gte"`
	ActiveLte            *bool                 `json:"active_lte"`
	ActiveMinLte         *bool                 `json:"activeMin_lte"`
	ActiveMaxLte         *bool                 `json:"activeMax_lte"`
	ActiveIn             []bool                `json:"active_in"`
	ActiveMinIn          []bool                `json:"activeMin_in"`
	ActiveMaxIn          []bool                `json:"activeMax_in"`
	ActiveNotIn          []bool                `json:"active_not_in"`
	ActiveMinNotIn       []bool                `json:"activeMin_not_in"`
	ActiveMaxNotIn       []bool                `json:"activeMax_not_in"`
	ActiveNull           *bool                 `json:"active_null"`
	Email                *string               `json:"email"`
	EmailMin             *string               `json:"emailMin"`
	EmailMax             *string               `json:"emailMax"`
	EmailNe              *string               `json:"email_ne"`
	EmailMinNe           *string               `json:"emailMin_ne"`
	EmailMaxNe           *string               `json:"emailMax_ne"`
	EmailGt              *string               `json:"email_gt"`
	EmailMinGt           *string               `json:"emailMin_gt"`
	EmailMaxGt           *string               `json:"emailMax_gt"`
	EmailLt              *string               `json:"email_lt"`
	EmailMinLt           *string               `json:"emailMin_lt"`
	EmailMaxLt           *string               `json:"emailMax_lt"`
	EmailGte             *string               `json:"email_gte"`
	EmailMinGte          *string               `json:"emailMin_gte"`
	EmailMaxGte          *string               `json:"emailMax_gte"`
	EmailLte             *string               `json:"email_lte"`
	EmailMinLte          *string               `json:"emailMin_lte"`
	EmailMaxLte          *string               `json:"emailMax_lte"`
	EmailIn              []string              `json:"email_in"`
	EmailMinIn           []string              `json:"emailMin_in"`
	EmailMaxIn           []string              `json:"emailMax_in"`
	EmailNotIn           []string              `json:"email_not_in"`
	EmailMinNotIn        []string              `json:"emailMin_not_in"`
	EmailMaxNotIn        []string              `json:"emailMax_not_in"`
	EmailLike            *string               `json:"email_like"`
	EmailMinLike         *string               `json:"emailMin_like"`
	EmailMaxLike         *string               `json:"emailMax_like"`
	EmailPrefix          *string               `json:"email_prefix"`
	EmailMinPrefix       *string               `json:"emailMin_prefix"`
	EmailMaxPrefix       *string               `json:"emailMax_prefix"`
	EmailSuffix          *string               `json:"email_suffix"`
	EmailMinSuffix       *string               `json:"emailMin_suffix"`
	EmailMaxSuffix       *string               `json:"emailMax_suffix"`
	EmailNull            *bool                 `json:"email_null"`
	Password             *string               `json:"password"`
	PasswordMin          *string               `json:"passwordMin"`
	PasswordMax          *string               `json:"passwordMax"`
	PasswordNe           *string               `json:"password_ne"`
	PasswordMinNe        *string               `json:"passwordMin_ne"`
	PasswordMaxNe        *string               `json:"passwordMax_ne"`
	PasswordGt           *string               `json:"password_gt"`
	PasswordMinGt        *string               `json:"passwordMin_gt"`
	PasswordMaxGt        *string               `json:"passwordMax_gt"`
	PasswordLt           *string               `json:"password_lt"`
	PasswordMinLt        *string               `json:"passwordMin_lt"`
	PasswordMaxLt        *string               `json:"passwordMax_lt"`
	PasswordGte          *string               `json:"password_gte"`
	PasswordMinGte       *string               `json:"passwordMin_gte"`
	PasswordMaxGte       *string               `json:"passwordMax_gte"`
	PasswordLte          *string               `json:"password_lte"`
	PasswordMinLte       *string               `json:"passwordMin_lte"`
	PasswordMaxLte       *string               `json:"passwordMax_lte"`
	PasswordIn           []string              `json:"password_in"`
	PasswordMinIn        []string              `json:"passwordMin_in"`
	PasswordMaxIn        []string              `json:"passwordMax_in"`
	PasswordNotIn        []string              `json:"password_not_in"`
	PasswordMinNotIn     []string              `json:"passwordMin_not_in"`
	PasswordMaxNotIn     []string              `json:"passwordMax_not_in"`
	PasswordLike         *string               `json:"password_like"`
	PasswordMinLike      *string               `json:"passwordMin_like"`
	PasswordMaxLike      *string               `json:"passwordMax_like"`
	PasswordPrefix       *string               `json:"password_prefix"`
	PasswordMinPrefix    *string               `json:"passwordMin_prefix"`
	PasswordMaxPrefix    *string               `json:"passwordMax_prefix"`
	PasswordSuffix       *string               `json:"password_suffix"`
	PasswordMinSuffix    *string               `json:"passwordMin_suffix"`
	PasswordMaxSuffix    *string               `json:"passwordMax_suffix"`
	PasswordNull         *bool                 `json:"password_null"`
	AvatarURL            *string               `json:"avatarURL"`
	AvatarURLMin         *string               `json:"avatarURLMin"`
	AvatarURLMax         *string               `json:"avatarURLMax"`
	AvatarURLNe          *string               `json:"avatarURL_ne"`
	AvatarURLMinNe       *string               `json:"avatarURLMin_ne"`
	AvatarURLMaxNe       *string               `json:"avatarURLMax_ne"`
	AvatarURLGt          *string               `json:"avatarURL_gt"`
	AvatarURLMinGt       *string               `json:"avatarURLMin_gt"`
	AvatarURLMaxGt       *string               `json:"avatarURLMax_gt"`
	AvatarURLLt          *string               `json:"avatarURL_lt"`
	AvatarURLMinLt       *string               `json:"avatarURLMin_lt"`
	AvatarURLMaxLt       *string               `json:"avatarURLMax_lt"`
	AvatarURLGte         *string               `json:"avatarURL_gte"`
	AvatarURLMinGte      *string               `json:"avatarURLMin_gte"`
	AvatarURLMaxGte      *string               `json:"avatarURLMax_gte"`
	AvatarURLLte         *string               `json:"avatarURL_lte"`
	AvatarURLMinLte      *string               `json:"avatarURLMin_lte"`
	AvatarURLMaxLte      *string               `json:"avatarURLMax_lte"`
	AvatarURLIn          []string              `json:"avatarURL_in"`
	AvatarURLMinIn       []string              `json:"avatarURLMin_in"`
	AvatarURLMaxIn       []string              `json:"avatarURLMax_in"`
	AvatarURLNotIn       []string              `json:"avatarURL_not_in"`
	AvatarURLMinNotIn    []string              `json:"avatarURLMin_not_in"`
	AvatarURLMaxNotIn    []string              `json:"avatarURLMax_not_in"`
	AvatarURLLike        *string               `json:"avatarURL_like"`
	AvatarURLMinLike     *string               `json:"avatarURLMin_like"`
	AvatarURLMaxLike     *string               `json:"avatarURLMax_like"`
	AvatarURLPrefix      *string               `json:"avatarURL_prefix"`
	AvatarURLMinPrefix   *string               `json:"avatarURLMin_prefix"`
	AvatarURLMaxPrefix   *string               `json:"avatarURLMax_prefix"`
	AvatarURLSuffix      *string               `json:"avatarURL_suffix"`
	AvatarURLMinSuffix   *string               `json:"avatarURLMin_suffix"`
	AvatarURLMaxSuffix   *string               `json:"avatarURLMax_suffix"`
	AvatarURLNull        *bool                 `json:"avatarURL_null"`
	DisplayName          *string               `json:"displayName"`
	DisplayNameMin       *string               `json:"displayNameMin"`
	DisplayNameMax       *string               `json:"displayNameMax"`
	DisplayNameNe        *string               `json:"displayName_ne"`
	DisplayNameMinNe     *string               `json:"displayNameMin_ne"`
	DisplayNameMaxNe     *string               `json:"displayNameMax_ne"`
	DisplayNameGt        *string               `json:"displayName_gt"`
	DisplayNameMinGt     *string               `json:"displayNameMin_gt"`
	DisplayNameMaxGt     *string               `json:"displayNameMax_gt"`
	DisplayNameLt        *string               `json:"displayName_lt"`
	DisplayNameMinLt     *string               `json:"displayNameMin_lt"`
	DisplayNameMaxLt     *string               `json:"displayNameMax_lt"`
	DisplayNameGte       *string               `json:"displayName_gte"`
	DisplayNameMinGte    *string               `json:"displayNameMin_gte"`
	DisplayNameMaxGte    *string               `json:"displayNameMax_gte"`
	DisplayNameLte       *string               `json:"displayName_lte"`
	DisplayNameMinLte    *string               `json:"displayNameMin_lte"`
	DisplayNameMaxLte    *string               `json:"displayNameMax_lte"`
	DisplayNameIn        []string              `json:"displayName_in"`
	DisplayNameMinIn     []string              `json:"displayNameMin_in"`
	DisplayNameMaxIn     []string              `json:"displayNameMax_in"`
	DisplayNameNotIn     []string              `json:"displayName_not_in"`
	DisplayNameMinNotIn  []string              `json:"displayNameMin_not_in"`
	DisplayNameMaxNotIn  []string              `json:"displayNameMax_not_in"`
	DisplayNameLike      *string               `json:"displayName_like"`
	DisplayNameMinLike   *string               `json:"displayNameMin_like"`
	DisplayNameMaxLike   *string               `json:"displayNameMax_like"`
	DisplayNamePrefix    *string               `json:"displayName_prefix"`
	DisplayNameMinPrefix *string               `json:"displayNameMin_prefix"`
	DisplayNameMaxPrefix *string               `json:"displayNameMax_prefix"`
	DisplayNameSuffix    *string               `json:"displayName_suffix"`
	DisplayNameMinSuffix *string               `json:"displayNameMin_suffix"`
	DisplayNameMaxSuffix *string               `json:"displayNameMax_suffix"`
	DisplayNameNull      *bool                 `json:"displayName_null"`
	Description          *string               `json:"description"`
	DescriptionMin       *string               `json:"descriptionMin"`
	DescriptionMax       *string               `json:"descriptionMax"`
	DescriptionNe        *string               `json:"description_ne"`
	DescriptionMinNe     *string               `json:"descriptionMin_ne"`
	DescriptionMaxNe     *string               `json:"descriptionMax_ne"`
	DescriptionGt        *string               `json:"description_gt"`
	DescriptionMinGt     *string               `json:"descriptionMin_gt"`
	DescriptionMaxGt     *string               `json:"descriptionMax_gt"`
	DescriptionLt        *string               `json:"description_lt"`
	DescriptionMinLt     *string               `json:"descriptionMin_lt"`
	DescriptionMaxLt     *string               `json:"descriptionMax_lt"`
	DescriptionGte       *string               `json:"description_gte"`
	DescriptionMinGte    *string               `json:"descriptionMin_gte"`
	DescriptionMaxGte    *string               `json:"descriptionMax_gte"`
	DescriptionLte       *string               `json:"description_lte"`
	DescriptionMinLte    *string               `json:"descriptionMin_lte"`
	DescriptionMaxLte    *string               `json:"descriptionMax_lte"`
	DescriptionIn        []string              `json:"description_in"`
	DescriptionMinIn     []string              `json:"descriptionMin_in"`
	DescriptionMaxIn     []string              `json:"descriptionMax_in"`
	DescriptionNotIn     []string              `json:"description_not_in"`
	DescriptionMinNotIn  []string              `json:"descriptionMin_not_in"`
	DescriptionMaxNotIn  []string              `json:"descriptionMax_not_in"`
	DescriptionLike      *string               `json:"description_like"`
	DescriptionMinLike   *string               `json:"descriptionMin_like"`
	DescriptionMaxLike   *string               `json:"descriptionMax_like"`
	DescriptionPrefix    *string               `json:"description_prefix"`
	DescriptionMinPrefix *string               `json:"descriptionMin_prefix"`
	DescriptionMaxPrefix *string               `json:"descriptionMax_prefix"`
	DescriptionSuffix    *string               `json:"description_suffix"`
	DescriptionMinSuffix *string               `json:"descriptionMin_suffix"`
	DescriptionMaxSuffix *string               `json:"descriptionMax_suffix"`
	DescriptionNull      *bool                 `json:"description_null"`
	FirstName            *string               `json:"firstName"`
	FirstNameMin         *string               `json:"firstNameMin"`
	FirstNameMax         *string               `json:"firstNameMax"`
	FirstNameNe          *string               `json:"firstName_ne"`
	FirstNameMinNe       *string               `json:"firstNameMin_ne"`
	FirstNameMaxNe       *string               `json:"firstNameMax_ne"`
	FirstNameGt          *string               `json:"firstName_gt"`
	FirstNameMinGt       *string               `json:"firstNameMin_gt"`
	FirstNameMaxGt       *string               `json:"firstNameMax_gt"`
	FirstNameLt          *string               `json:"firstName_lt"`
	FirstNameMinLt       *string               `json:"firstNameMin_lt"`
	FirstNameMaxLt       *string               `json:"firstNameMax_lt"`
	FirstNameGte         *string               `json:"firstName_gte"`
	FirstNameMinGte      *string               `json:"firstNameMin_gte"`
	FirstNameMaxGte      *string               `json:"firstNameMax_gte"`
	FirstNameLte         *string               `json:"firstName_lte"`
	FirstNameMinLte      *string               `json:"firstNameMin_lte"`
	FirstNameMaxLte      *string               `json:"firstNameMax_lte"`
	FirstNameIn          []string              `json:"firstName_in"`
	FirstNameMinIn       []string              `json:"firstNameMin_in"`
	FirstNameMaxIn       []string              `json:"firstNameMax_in"`
	FirstNameNotIn       []string              `json:"firstName_not_in"`
	FirstNameMinNotIn    []string              `json:"firstNameMin_not_in"`
	FirstNameMaxNotIn    []string              `json:"firstNameMax_not_in"`
	FirstNameLike        *string               `json:"firstName_like"`
	FirstNameMinLike     *string               `json:"firstNameMin_like"`
	FirstNameMaxLike     *string               `json:"firstNameMax_like"`
	FirstNamePrefix      *string               `json:"firstName_prefix"`
	FirstNameMinPrefix   *string               `json:"firstNameMin_prefix"`
	FirstNameMaxPrefix   *string               `json:"firstNameMax_prefix"`
	FirstNameSuffix      *string               `json:"firstName_suffix"`
	FirstNameMinSuffix   *string               `json:"firstNameMin_suffix"`
	FirstNameMaxSuffix   *string               `json:"firstNameMax_suffix"`
	FirstNameNull        *bool                 `json:"firstName_null"`
	LastName             *string               `json:"lastName"`
	LastNameMin          *string               `json:"lastNameMin"`
	LastNameMax          *string               `json:"lastNameMax"`
	LastNameNe           *string               `json:"lastName_ne"`
	LastNameMinNe        *string               `json:"lastNameMin_ne"`
	LastNameMaxNe        *string               `json:"lastNameMax_ne"`
	LastNameGt           *string               `json:"lastName_gt"`
	LastNameMinGt        *string               `json:"lastNameMin_gt"`
	LastNameMaxGt        *string               `json:"lastNameMax_gt"`
	LastNameLt           *string               `json:"lastName_lt"`
	LastNameMinLt        *string               `json:"lastNameMin_lt"`
	LastNameMaxLt        *string               `json:"lastNameMax_lt"`
	LastNameGte          *string               `json:"lastName_gte"`
	LastNameMinGte       *string               `json:"lastNameMin_gte"`
	LastNameMaxGte       *string               `json:"lastNameMax_gte"`
	LastNameLte          *string               `json:"lastName_lte"`
	LastNameMinLte       *string               `json:"lastNameMin_lte"`
	LastNameMaxLte       *string               `json:"lastNameMax_lte"`
	LastNameIn           []string              `json:"lastName_in"`
	LastNameMinIn        []string              `json:"lastNameMin_in"`
	LastNameMaxIn        []string              `json:"lastNameMax_in"`
	LastNameNotIn        []string              `json:"lastName_not_in"`
	LastNameMinNotIn     []string              `json:"lastNameMin_not_in"`
	LastNameMaxNotIn     []string              `json:"lastNameMax_not_in"`
	LastNameLike         *string               `json:"lastName_like"`
	LastNameMinLike      *string               `json:"lastNameMin_like"`
	LastNameMaxLike      *string               `json:"lastNameMax_like"`
	LastNamePrefix       *string               `json:"lastName_prefix"`
	LastNameMinPrefix    *string               `json:"lastNameMin_prefix"`
	LastNameMaxPrefix    *string               `json:"lastNameMax_prefix"`
	LastNameSuffix       *string               `json:"lastName_suffix"`
	LastNameMinSuffix    *string               `json:"lastNameMin_suffix"`
	LastNameMaxSuffix    *string               `json:"lastNameMax_suffix"`
	LastNameNull         *bool                 `json:"lastName_null"`
	NickName             *string               `json:"nickName"`
	NickNameMin          *string               `json:"nickNameMin"`
	NickNameMax          *string               `json:"nickNameMax"`
	NickNameNe           *string               `json:"nickName_ne"`
	NickNameMinNe        *string               `json:"nickNameMin_ne"`
	NickNameMaxNe        *string               `json:"nickNameMax_ne"`
	NickNameGt           *string               `json:"nickName_gt"`
	NickNameMinGt        *string               `json:"nickNameMin_gt"`
	NickNameMaxGt        *string               `json:"nickNameMax_gt"`
	NickNameLt           *string               `json:"nickName_lt"`
	NickNameMinLt        *string               `json:"nickNameMin_lt"`
	NickNameMaxLt        *string               `json:"nickNameMax_lt"`
	NickNameGte          *string               `json:"nickName_gte"`
	NickNameMinGte       *string               `json:"nickNameMin_gte"`
	NickNameMaxGte       *string               `json:"nickNameMax_gte"`
	NickNameLte          *string               `json:"nickName_lte"`
	NickNameMinLte       *string               `json:"nickNameMin_lte"`
	NickNameMaxLte       *string               `json:"nickNameMax_lte"`
	NickNameIn           []string              `json:"nickName_in"`
	NickNameMinIn        []string              `json:"nickNameMin_in"`
	NickNameMaxIn        []string              `json:"nickNameMax_in"`
	NickNameNotIn        []string              `json:"nickName_not_in"`
	NickNameMinNotIn     []string              `json:"nickNameMin_not_in"`
	NickNameMaxNotIn     []string              `json:"nickNameMax_not_in"`
	NickNameLike         *string               `json:"nickName_like"`
	NickNameMinLike      *string               `json:"nickNameMin_like"`
	NickNameMaxLike      *string               `json:"nickNameMax_like"`
	NickNamePrefix       *string               `json:"nickName_prefix"`
	NickNameMinPrefix    *string               `json:"nickNameMin_prefix"`
	NickNameMaxPrefix    *string               `json:"nickNameMax_prefix"`
	NickNameSuffix       *string               `json:"nickName_suffix"`
	NickNameMinSuffix    *string               `json:"nickNameMin_suffix"`
	NickNameMaxSuffix    *string               `json:"nickNameMax_suffix"`
	NickNameNull         *bool                 `json:"nickName_null"`
	Location             *string               `json:"location"`
	LocationMin          *string               `json:"locationMin"`
	LocationMax          *string               `json:"locationMax"`
	LocationNe           *string               `json:"location_ne"`
	LocationMinNe        *string               `json:"locationMin_ne"`
	LocationMaxNe        *string               `json:"locationMax_ne"`
	LocationGt           *string               `json:"location_gt"`
	LocationMinGt        *string               `json:"locationMin_gt"`
	LocationMaxGt        *string               `json:"locationMax_gt"`
	LocationLt           *string               `json:"location_lt"`
	LocationMinLt        *string               `json:"locationMin_lt"`
	LocationMaxLt        *string               `json:"locationMax_lt"`
	LocationGte          *string               `json:"location_gte"`
	LocationMinGte       *string               `json:"locationMin_gte"`
	LocationMaxGte       *string               `json:"locationMax_gte"`
	LocationLte          *string               `json:"location_lte"`
	LocationMinLte       *string               `json:"locationMin_lte"`
	LocationMaxLte       *string               `json:"locationMax_lte"`
	LocationIn           []string              `json:"location_in"`
	LocationMinIn        []string              `json:"locationMin_in"`
	LocationMaxIn        []string              `json:"locationMax_in"`
	LocationNotIn        []string              `json:"location_not_in"`
	LocationMinNotIn     []string              `json:"locationMin_not_in"`
	LocationMaxNotIn     []string              `json:"locationMax_not_in"`
	LocationLike         *string               `json:"location_like"`
	LocationMinLike      *string               `json:"locationMin_like"`
	LocationMaxLike      *string               `json:"locationMax_like"`
	LocationPrefix       *string               `json:"location_prefix"`
	LocationMinPrefix    *string               `json:"locationMin_prefix"`
	LocationMaxPrefix    *string               `json:"locationMax_prefix"`
	LocationSuffix       *string               `json:"location_suffix"`
	LocationMinSuffix    *string               `json:"locationMin_suffix"`
	LocationMaxSuffix    *string               `json:"locationMax_suffix"`
	LocationNull         *bool                 `json:"location_null"`
	UpdatedAt            *time.Time            `json:"updatedAt"`
	UpdatedAtMin         *time.Time            `json:"updatedAtMin"`
	UpdatedAtMax         *time.Time            `json:"updatedAtMax"`
	UpdatedAtNe          *time.Time            `json:"updatedAt_ne"`
	UpdatedAtMinNe       *time.Time            `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe       *time.Time            `json:"updatedAtMax_ne"`
	UpdatedAtGt          *time.Time            `json:"updatedAt_gt"`
	UpdatedAtMinGt       *time.Time            `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt       *time.Time            `json:"updatedAtMax_gt"`
	UpdatedAtLt          *time.Time            `json:"updatedAt_lt"`
	UpdatedAtMinLt       *time.Time            `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt       *time.Time            `json:"updatedAtMax_lt"`
	UpdatedAtGte         *time.Time            `json:"updatedAt_gte"`
	UpdatedAtMinGte      *time.Time            `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte      *time.Time            `json:"updatedAtMax_gte"`
	UpdatedAtLte         *time.Time            `json:"updatedAt_lte"`
	UpdatedAtMinLte      *time.Time            `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte      *time.Time            `json:"updatedAtMax_lte"`
	UpdatedAtIn          []*time.Time          `json:"updatedAt_in"`
	UpdatedAtMinIn       []*time.Time          `json:"updatedAtMin_in"`
	UpdatedAtMaxIn       []*time.Time          `json:"updatedAtMax_in"`
	UpdatedAtNotIn       []*time.Time          `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn    []*time.Time          `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn    []*time.Time          `json:"updatedAtMax_not_in"`
	UpdatedAtNull        *bool                 `json:"updatedAt_null"`
	CreatedAt            *time.Time            `json:"createdAt"`
	CreatedAtMin         *time.Time            `json:"createdAtMin"`
	CreatedAtMax         *time.Time            `json:"createdAtMax"`
	CreatedAtNe          *time.Time            `json:"createdAt_ne"`
	CreatedAtMinNe       *time.Time            `json:"createdAtMin_ne"`
	CreatedAtMaxNe       *time.Time            `json:"createdAtMax_ne"`
	CreatedAtGt          *time.Time            `json:"createdAt_gt"`
	CreatedAtMinGt       *time.Time            `json:"createdAtMin_gt"`
	CreatedAtMaxGt       *time.Time            `json:"createdAtMax_gt"`
	CreatedAtLt          *time.Time            `json:"createdAt_lt"`
	CreatedAtMinLt       *time.Time            `json:"createdAtMin_lt"`
	CreatedAtMaxLt       *time.Time            `json:"createdAtMax_lt"`
	CreatedAtGte         *time.Time            `json:"createdAt_gte"`
	CreatedAtMinGte      *time.Time            `json:"createdAtMin_gte"`
	CreatedAtMaxGte      *time.Time            `json:"createdAtMax_gte"`
	CreatedAtLte         *time.Time            `json:"createdAt_lte"`
	CreatedAtMinLte      *time.Time            `json:"createdAtMin_lte"`
	CreatedAtMaxLte      *time.Time            `json:"createdAtMax_lte"`
	CreatedAtIn          []*time.Time          `json:"createdAt_in"`
	CreatedAtMinIn       []*time.Time          `json:"createdAtMin_in"`
	CreatedAtMaxIn       []*time.Time          `json:"createdAtMax_in"`
	CreatedAtNotIn       []*time.Time          `json:"createdAt_not_in"`
	CreatedAtMinNotIn    []*time.Time          `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn    []*time.Time          `json:"createdAtMax_not_in"`
	CreatedAtNull        *bool                 `json:"createdAt_null"`
	UpdatedBy            *string               `json:"updatedBy"`
	UpdatedByMin         *string               `json:"updatedByMin"`
	UpdatedByMax         *string               `json:"updatedByMax"`
	UpdatedByNe          *string               `json:"updatedBy_ne"`
	UpdatedByMinNe       *string               `json:"updatedByMin_ne"`
	UpdatedByMaxNe       *string               `json:"updatedByMax_ne"`
	UpdatedByGt          *string               `json:"updatedBy_gt"`
	UpdatedByMinGt       *string               `json:"updatedByMin_gt"`
	UpdatedByMaxGt       *string               `json:"updatedByMax_gt"`
	UpdatedByLt          *string               `json:"updatedBy_lt"`
	UpdatedByMinLt       *string               `json:"updatedByMin_lt"`
	UpdatedByMaxLt       *string               `json:"updatedByMax_lt"`
	UpdatedByGte         *string               `json:"updatedBy_gte"`
	UpdatedByMinGte      *string               `json:"updatedByMin_gte"`
	UpdatedByMaxGte      *string               `json:"updatedByMax_gte"`
	UpdatedByLte         *string               `json:"updatedBy_lte"`
	UpdatedByMinLte      *string               `json:"updatedByMin_lte"`
	UpdatedByMaxLte      *string               `json:"updatedByMax_lte"`
	UpdatedByIn          []string              `json:"updatedBy_in"`
	UpdatedByMinIn       []string              `json:"updatedByMin_in"`
	UpdatedByMaxIn       []string              `json:"updatedByMax_in"`
	UpdatedByNotIn       []string              `json:"updatedBy_not_in"`
	UpdatedByMinNotIn    []string              `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn    []string              `json:"updatedByMax_not_in"`
	UpdatedByNull        *bool                 `json:"updatedBy_null"`
	CreatedBy            *string               `json:"createdBy"`
	CreatedByMin         *string               `json:"createdByMin"`
	CreatedByMax         *string               `json:"createdByMax"`
	CreatedByNe          *string               `json:"createdBy_ne"`
	CreatedByMinNe       *string               `json:"createdByMin_ne"`
	CreatedByMaxNe       *string               `json:"createdByMax_ne"`
	CreatedByGt          *string               `json:"createdBy_gt"`
	CreatedByMinGt       *string               `json:"createdByMin_gt"`
	CreatedByMaxGt       *string               `json:"createdByMax_gt"`
	CreatedByLt          *string               `json:"createdBy_lt"`
	CreatedByMinLt       *string               `json:"createdByMin_lt"`
	CreatedByMaxLt       *string               `json:"createdByMax_lt"`
	CreatedByGte         *string               `json:"createdBy_gte"`
	CreatedByMinGte      *string               `json:"createdByMin_gte"`
	CreatedByMaxGte      *string               `json:"createdByMax_gte"`
	CreatedByLte         *string               `json:"createdBy_lte"`
	CreatedByMinLte      *string               `json:"createdByMin_lte"`
	CreatedByMaxLte      *string               `json:"createdByMax_lte"`
	CreatedByIn          []string              `json:"createdBy_in"`
	CreatedByMinIn       []string              `json:"createdByMin_in"`
	CreatedByMaxIn       []string              `json:"createdByMax_in"`
	CreatedByNotIn       []string              `json:"createdBy_not_in"`
	CreatedByMinNotIn    []string              `json:"createdByMin_not_in"`
	CreatedByMaxNotIn    []string              `json:"createdByMax_not_in"`
	CreatedByNull        *bool                 `json:"createdBy_null"`
	Apikeys              *UserAPIKeyFilterType `json:"apikeys"`
	Roles                *RoleFilterType       `json:"roles"`
	Profiles             *ProfileFilterType    `json:"profiles"`
	Permissions          *PermissionFilterType `json:"permissions"`
}

func (*UserFilterType) AndWith

func (f *UserFilterType) AndWith(f2 ...*UserFilterType) *UserFilterType

AndWith convenience method for combining two or more filters with AND statement

func (*UserFilterType) Apply

func (f *UserFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply method

func (*UserFilterType) ApplyWithAlias

func (f *UserFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias method

func (*UserFilterType) HavingContent

func (f *UserFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent method

func (*UserFilterType) IsEmpty

func (f *UserFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*UserFilterType) OrWith

func (f *UserFilterType) OrWith(f2 ...*UserFilterType) *UserFilterType

OrWith convenience method for combining two or more filters with OR statement

func (*UserFilterType) WhereContent

func (f *UserFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type UserQueryFilter

type UserQueryFilter struct {
	Query *string
}

UserQueryFilter struct

func (*UserQueryFilter) Apply

func (qf *UserQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type UserResolver

type UserResolver interface {
	Apikeys(ctx context.Context, obj *User) ([]*UserAPIKey, error)
	Roles(ctx context.Context, obj *User) ([]*Role, error)
	Profiles(ctx context.Context, obj *User) ([]*Profile, error)
	Permissions(ctx context.Context, obj *User) ([]*Permission, error)

	ApikeysIds(ctx context.Context, obj *User) ([]string, error)
	ApikeysConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*UserAPIKeySortType, filter *UserAPIKeyFilterType) (*UserAPIKeyResultType, error)
	RolesIds(ctx context.Context, obj *User) ([]string, error)
	RolesConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*RoleSortType, filter *RoleFilterType) (*RoleResultType, error)
	ProfilesIds(ctx context.Context, obj *User) ([]string, error)
	ProfilesConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*ProfileSortType, filter *ProfileFilterType) (*ProfileResultType, error)
	PermissionsIds(ctx context.Context, obj *User) ([]string, error)
	PermissionsConnection(ctx context.Context, obj *User, offset *int, limit *int, q *string, sort []*PermissionSortType, filter *PermissionFilterType) (*PermissionResultType, error)
}

type UserResultType

type UserResultType struct {
	EntityResultType
}

UserResultType struct

func QueryUsersHandler

QueryUsersHandler handler

type UserResultTypeResolver

type UserResultTypeResolver interface {
	Items(ctx context.Context, obj *UserResultType) ([]*User, error)
	Count(ctx context.Context, obj *UserResultType) (int, error)
}

type UserSortType

type UserSortType struct {
	ID                *ObjectSortType     `json:"id"`
	IDMin             *ObjectSortType     `json:"idMin"`
	IDMax             *ObjectSortType     `json:"idMax"`
	Active            *ObjectSortType     `json:"active"`
	ActiveMin         *ObjectSortType     `json:"activeMin"`
	ActiveMax         *ObjectSortType     `json:"activeMax"`
	Email             *ObjectSortType     `json:"email"`
	EmailMin          *ObjectSortType     `json:"emailMin"`
	EmailMax          *ObjectSortType     `json:"emailMax"`
	Password          *ObjectSortType     `json:"password"`
	PasswordMin       *ObjectSortType     `json:"passwordMin"`
	PasswordMax       *ObjectSortType     `json:"passwordMax"`
	AvatarURL         *ObjectSortType     `json:"avatarURL"`
	AvatarURLMin      *ObjectSortType     `json:"avatarURLMin"`
	AvatarURLMax      *ObjectSortType     `json:"avatarURLMax"`
	DisplayName       *ObjectSortType     `json:"displayName"`
	DisplayNameMin    *ObjectSortType     `json:"displayNameMin"`
	DisplayNameMax    *ObjectSortType     `json:"displayNameMax"`
	Description       *ObjectSortType     `json:"description"`
	DescriptionMin    *ObjectSortType     `json:"descriptionMin"`
	DescriptionMax    *ObjectSortType     `json:"descriptionMax"`
	FirstName         *ObjectSortType     `json:"firstName"`
	FirstNameMin      *ObjectSortType     `json:"firstNameMin"`
	FirstNameMax      *ObjectSortType     `json:"firstNameMax"`
	LastName          *ObjectSortType     `json:"lastName"`
	LastNameMin       *ObjectSortType     `json:"lastNameMin"`
	LastNameMax       *ObjectSortType     `json:"lastNameMax"`
	NickName          *ObjectSortType     `json:"nickName"`
	NickNameMin       *ObjectSortType     `json:"nickNameMin"`
	NickNameMax       *ObjectSortType     `json:"nickNameMax"`
	Location          *ObjectSortType     `json:"location"`
	LocationMin       *ObjectSortType     `json:"locationMin"`
	LocationMax       *ObjectSortType     `json:"locationMax"`
	UpdatedAt         *ObjectSortType     `json:"updatedAt"`
	UpdatedAtMin      *ObjectSortType     `json:"updatedAtMin"`
	UpdatedAtMax      *ObjectSortType     `json:"updatedAtMax"`
	CreatedAt         *ObjectSortType     `json:"createdAt"`
	CreatedAtMin      *ObjectSortType     `json:"createdAtMin"`
	CreatedAtMax      *ObjectSortType     `json:"createdAtMax"`
	UpdatedBy         *ObjectSortType     `json:"updatedBy"`
	UpdatedByMin      *ObjectSortType     `json:"updatedByMin"`
	UpdatedByMax      *ObjectSortType     `json:"updatedByMax"`
	CreatedBy         *ObjectSortType     `json:"createdBy"`
	CreatedByMin      *ObjectSortType     `json:"createdByMin"`
	CreatedByMax      *ObjectSortType     `json:"createdByMax"`
	ApikeysIds        *ObjectSortType     `json:"apikeysIds"`
	ApikeysIdsMin     *ObjectSortType     `json:"apikeysIdsMin"`
	ApikeysIdsMax     *ObjectSortType     `json:"apikeysIdsMax"`
	RolesIds          *ObjectSortType     `json:"rolesIds"`
	RolesIdsMin       *ObjectSortType     `json:"rolesIdsMin"`
	RolesIdsMax       *ObjectSortType     `json:"rolesIdsMax"`
	ProfilesIds       *ObjectSortType     `json:"profilesIds"`
	ProfilesIdsMin    *ObjectSortType     `json:"profilesIdsMin"`
	ProfilesIdsMax    *ObjectSortType     `json:"profilesIdsMax"`
	PermissionsIds    *ObjectSortType     `json:"permissionsIds"`
	PermissionsIdsMin *ObjectSortType     `json:"permissionsIdsMin"`
	PermissionsIdsMax *ObjectSortType     `json:"permissionsIdsMax"`
	Apikeys           *UserAPIKeySortType `json:"apikeys"`
	Roles             *RoleSortType       `json:"roles"`
	Profiles          *ProfileSortType    `json:"profiles"`
	Permissions       *PermissionSortType `json:"permissions"`
}

func (UserSortType) Apply

func (s UserSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply method

func (UserSortType) ApplyWithAlias

func (s UserSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL