user

package
v0.0.0-...-c1ffc38 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldPrincipalName holds the string denoting the principal_name field in the database.
	FieldPrincipalName = "principal_name"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldMobile holds the string denoting the mobile field in the database.
	FieldMobile = "mobile"
	// FieldUserType holds the string denoting the user_type field in the database.
	FieldUserType = "user_type"
	// FieldCreationType holds the string denoting the creation_type field in the database.
	FieldCreationType = "creation_type"
	// FieldRegisterIP holds the string denoting the register_ip field in the database.
	FieldRegisterIP = "register_ip"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// FieldAvatarFileID holds the string denoting the avatar_file_id field in the database.
	FieldAvatarFileID = "avatar_file_id"
	// EdgeIdentities holds the string denoting the identities edge name in mutations.
	EdgeIdentities = "identities"
	// EdgeLoginProfile holds the string denoting the login_profile edge name in mutations.
	EdgeLoginProfile = "login_profile"
	// EdgePasswords holds the string denoting the passwords edge name in mutations.
	EdgePasswords = "passwords"
	// EdgeDevices holds the string denoting the devices edge name in mutations.
	EdgeDevices = "devices"
	// EdgeOrgs holds the string denoting the orgs edge name in mutations.
	EdgeOrgs = "orgs"
	// EdgePermissions holds the string denoting the permissions edge name in mutations.
	EdgePermissions = "permissions"
	// EdgeOauthClients holds the string denoting the oauth_clients edge name in mutations.
	EdgeOauthClients = "oauth_clients"
	// EdgeOrgUser holds the string denoting the org_user edge name in mutations.
	EdgeOrgUser = "org_user"
	// Table holds the table name of the user in the database.
	Table = "user"
	// IdentitiesTable is the table that holds the identities relation/edge.
	IdentitiesTable = "user_identity"
	// IdentitiesInverseTable is the table name for the UserIdentity entity.
	// It exists in this package in order to avoid circular dependency with the "useridentity" package.
	IdentitiesInverseTable = "user_identity"
	// IdentitiesColumn is the table column denoting the identities relation/edge.
	IdentitiesColumn = "user_id"
	// LoginProfileTable is the table that holds the login_profile relation/edge.
	LoginProfileTable = "user_login_profile"
	// LoginProfileInverseTable is the table name for the UserLoginProfile entity.
	// It exists in this package in order to avoid circular dependency with the "userloginprofile" package.
	LoginProfileInverseTable = "user_login_profile"
	// LoginProfileColumn is the table column denoting the login_profile relation/edge.
	LoginProfileColumn = "user_id"
	// PasswordsTable is the table that holds the passwords relation/edge.
	PasswordsTable = "user_password"
	// PasswordsInverseTable is the table name for the UserPassword entity.
	// It exists in this package in order to avoid circular dependency with the "userpassword" package.
	PasswordsInverseTable = "user_password"
	// PasswordsColumn is the table column denoting the passwords relation/edge.
	PasswordsColumn = "user_id"
	// DevicesTable is the table that holds the devices relation/edge.
	DevicesTable = "user_device"
	// DevicesInverseTable is the table name for the UserDevice entity.
	// It exists in this package in order to avoid circular dependency with the "userdevice" package.
	DevicesInverseTable = "user_device"
	// DevicesColumn is the table column denoting the devices relation/edge.
	DevicesColumn = "user_id"
	// OrgsTable is the table that holds the orgs relation/edge. The primary key declared below.
	OrgsTable = "org_user"
	// OrgsInverseTable is the table name for the Org entity.
	// It exists in this package in order to avoid circular dependency with the "org" package.
	OrgsInverseTable = "org"
	// PermissionsTable is the table that holds the permissions relation/edge.
	PermissionsTable = "permission"
	// PermissionsInverseTable is the table name for the Permission entity.
	// It exists in this package in order to avoid circular dependency with the "permission" package.
	PermissionsInverseTable = "permission"
	// PermissionsColumn is the table column denoting the permissions relation/edge.
	PermissionsColumn = "user_id"
	// OauthClientsTable is the table that holds the oauth_clients relation/edge.
	OauthClientsTable = "oauth_client"
	// OauthClientsInverseTable is the table name for the OauthClient entity.
	// It exists in this package in order to avoid circular dependency with the "oauthclient" package.
	OauthClientsInverseTable = "oauth_client"
	// OauthClientsColumn is the table column denoting the oauth_clients relation/edge.
	OauthClientsColumn = "user_id"
	// OrgUserTable is the table that holds the org_user relation/edge.
	OrgUserTable = "org_user"
	// OrgUserInverseTable is the table name for the OrgUser entity.
	// It exists in this package in order to avoid circular dependency with the "orguser" package.
	OrgUserInverseTable = "org_user"
	// OrgUserColumn is the table column denoting the org_user relation/edge.
	OrgUserColumn = "user_id"
)

Variables

View Source
var (
	Hooks        [3]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// MobileValidator is a validator for the "mobile" field. It is called by the builders before save.
	MobileValidator func(string) error
	// RegisterIPValidator is a validator for the "register_ip" field. It is called by the builders before save.
	RegisterIPValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout/ent/runtime"

Columns holds all SQL columns for user fields.

View Source
var (
	// OrgsPrimaryKey and OrgsColumn2 are the table columns denoting the
	// primary key for the orgs relation (M2M).
	OrgsPrimaryKey = []string{"org_id", "user_id"}
)

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func AvatarFileID

func AvatarFileID(v int) predicate.User

AvatarFileID applies equality check predicate on the "avatar_file_id" field. It's identical to AvatarFileIDEQ.

func AvatarFileIDEQ

func AvatarFileIDEQ(v int) predicate.User

AvatarFileIDEQ applies the EQ predicate on the "avatar_file_id" field.

func AvatarFileIDGT

func AvatarFileIDGT(v int) predicate.User

AvatarFileIDGT applies the GT predicate on the "avatar_file_id" field.

func AvatarFileIDGTE

func AvatarFileIDGTE(v int) predicate.User

AvatarFileIDGTE applies the GTE predicate on the "avatar_file_id" field.

func AvatarFileIDIn

func AvatarFileIDIn(vs ...int) predicate.User

AvatarFileIDIn applies the In predicate on the "avatar_file_id" field.

func AvatarFileIDIsNil

func AvatarFileIDIsNil() predicate.User

AvatarFileIDIsNil applies the IsNil predicate on the "avatar_file_id" field.

func AvatarFileIDLT

func AvatarFileIDLT(v int) predicate.User

AvatarFileIDLT applies the LT predicate on the "avatar_file_id" field.

func AvatarFileIDLTE

func AvatarFileIDLTE(v int) predicate.User

AvatarFileIDLTE applies the LTE predicate on the "avatar_file_id" field.

func AvatarFileIDNEQ

func AvatarFileIDNEQ(v int) predicate.User

AvatarFileIDNEQ applies the NEQ predicate on the "avatar_file_id" field.

func AvatarFileIDNotIn

func AvatarFileIDNotIn(vs ...int) predicate.User

AvatarFileIDNotIn applies the NotIn predicate on the "avatar_file_id" field.

func AvatarFileIDNotNil

func AvatarFileIDNotNil() predicate.User

AvatarFileIDNotNil applies the NotNil predicate on the "avatar_file_id" field.

func Comments

func Comments(v string) predicate.User

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.User

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.User

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.User

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.User

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.User

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.User

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.User

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.User

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.User

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.User

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.User

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.User

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.User

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.User

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.User

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int) predicate.User

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.User

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.User

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.User

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.User

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.User

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.User

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.User

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.User

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreationTypeEQ

func CreationTypeEQ(v CreationType) predicate.User

CreationTypeEQ applies the EQ predicate on the "creation_type" field.

func CreationTypeIn

func CreationTypeIn(vs ...CreationType) predicate.User

CreationTypeIn applies the In predicate on the "creation_type" field.

func CreationTypeNEQ

func CreationTypeNEQ(v CreationType) predicate.User

CreationTypeNEQ applies the NEQ predicate on the "creation_type" field.

func CreationTypeNotIn

func CreationTypeNotIn(vs ...CreationType) predicate.User

CreationTypeNotIn applies the NotIn predicate on the "creation_type" field.

func CreationTypeValidator

func CreationTypeValidator(ct CreationType) error

CreationTypeValidator is a validator for the "creation_type" field enum values. It is called by the builders before save.

func DeletedAt

func DeletedAt(v time.Time) predicate.User

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.User

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.User

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.User

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.User

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.User

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.User

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.User

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.User

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.User

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.User

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DisplayName

func DisplayName(v string) predicate.User

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.User

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.User

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.User

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.User

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.User

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.User

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.User

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.User

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.User

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.User

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.User

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.User

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.User

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func HasDevices

func HasDevices() predicate.User

HasDevices applies the HasEdge predicate on the "devices" edge.

func HasDevicesWith

func HasDevicesWith(preds ...predicate.UserDevice) predicate.User

HasDevicesWith applies the HasEdge predicate on the "devices" edge with a given conditions (other predicates).

func HasIdentities

func HasIdentities() predicate.User

HasIdentities applies the HasEdge predicate on the "identities" edge.

func HasIdentitiesWith

func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User

HasIdentitiesWith applies the HasEdge predicate on the "identities" edge with a given conditions (other predicates).

func HasLoginProfile

func HasLoginProfile() predicate.User

HasLoginProfile applies the HasEdge predicate on the "login_profile" edge.

func HasLoginProfileWith

func HasLoginProfileWith(preds ...predicate.UserLoginProfile) predicate.User

HasLoginProfileWith applies the HasEdge predicate on the "login_profile" edge with a given conditions (other predicates).

func HasOauthClients

func HasOauthClients() predicate.User

HasOauthClients applies the HasEdge predicate on the "oauth_clients" edge.

func HasOauthClientsWith

func HasOauthClientsWith(preds ...predicate.OauthClient) predicate.User

HasOauthClientsWith applies the HasEdge predicate on the "oauth_clients" edge with a given conditions (other predicates).

func HasOrgUser

func HasOrgUser() predicate.User

HasOrgUser applies the HasEdge predicate on the "org_user" edge.

func HasOrgUserWith

func HasOrgUserWith(preds ...predicate.OrgUser) predicate.User

HasOrgUserWith applies the HasEdge predicate on the "org_user" edge with a given conditions (other predicates).

func HasOrgs

func HasOrgs() predicate.User

HasOrgs applies the HasEdge predicate on the "orgs" edge.

func HasOrgsWith

func HasOrgsWith(preds ...predicate.Org) predicate.User

HasOrgsWith applies the HasEdge predicate on the "orgs" edge with a given conditions (other predicates).

func HasPasswords

func HasPasswords() predicate.User

HasPasswords applies the HasEdge predicate on the "passwords" edge.

func HasPasswordsWith

func HasPasswordsWith(preds ...predicate.UserPassword) predicate.User

HasPasswordsWith applies the HasEdge predicate on the "passwords" edge with a given conditions (other predicates).

func HasPermissions

func HasPermissions() predicate.User

HasPermissions applies the HasEdge predicate on the "permissions" edge.

func HasPermissionsWith

func HasPermissionsWith(preds ...predicate.Permission) predicate.User

HasPermissionsWith applies the HasEdge predicate on the "permissions" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Mobile

func Mobile(v string) predicate.User

Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.

func MobileContains

func MobileContains(v string) predicate.User

MobileContains applies the Contains predicate on the "mobile" field.

func MobileContainsFold

func MobileContainsFold(v string) predicate.User

MobileContainsFold applies the ContainsFold predicate on the "mobile" field.

func MobileEQ

func MobileEQ(v string) predicate.User

MobileEQ applies the EQ predicate on the "mobile" field.

func MobileEqualFold

func MobileEqualFold(v string) predicate.User

MobileEqualFold applies the EqualFold predicate on the "mobile" field.

func MobileGT

func MobileGT(v string) predicate.User

MobileGT applies the GT predicate on the "mobile" field.

func MobileGTE

func MobileGTE(v string) predicate.User

MobileGTE applies the GTE predicate on the "mobile" field.

func MobileHasPrefix

func MobileHasPrefix(v string) predicate.User

MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.

func MobileHasSuffix

func MobileHasSuffix(v string) predicate.User

MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.

func MobileIn

func MobileIn(vs ...string) predicate.User

MobileIn applies the In predicate on the "mobile" field.

func MobileIsNil

func MobileIsNil() predicate.User

MobileIsNil applies the IsNil predicate on the "mobile" field.

func MobileLT

func MobileLT(v string) predicate.User

MobileLT applies the LT predicate on the "mobile" field.

func MobileLTE

func MobileLTE(v string) predicate.User

MobileLTE applies the LTE predicate on the "mobile" field.

func MobileNEQ

func MobileNEQ(v string) predicate.User

MobileNEQ applies the NEQ predicate on the "mobile" field.

func MobileNotIn

func MobileNotIn(vs ...string) predicate.User

MobileNotIn applies the NotIn predicate on the "mobile" field.

func MobileNotNil

func MobileNotNil() predicate.User

MobileNotNil applies the NotNil predicate on the "mobile" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func PrincipalName

func PrincipalName(v string) predicate.User

PrincipalName applies equality check predicate on the "principal_name" field. It's identical to PrincipalNameEQ.

func PrincipalNameContains

func PrincipalNameContains(v string) predicate.User

PrincipalNameContains applies the Contains predicate on the "principal_name" field.

func PrincipalNameContainsFold

func PrincipalNameContainsFold(v string) predicate.User

PrincipalNameContainsFold applies the ContainsFold predicate on the "principal_name" field.

func PrincipalNameEQ

func PrincipalNameEQ(v string) predicate.User

PrincipalNameEQ applies the EQ predicate on the "principal_name" field.

func PrincipalNameEqualFold

func PrincipalNameEqualFold(v string) predicate.User

PrincipalNameEqualFold applies the EqualFold predicate on the "principal_name" field.

func PrincipalNameGT

func PrincipalNameGT(v string) predicate.User

PrincipalNameGT applies the GT predicate on the "principal_name" field.

func PrincipalNameGTE

func PrincipalNameGTE(v string) predicate.User

PrincipalNameGTE applies the GTE predicate on the "principal_name" field.

func PrincipalNameHasPrefix

func PrincipalNameHasPrefix(v string) predicate.User

PrincipalNameHasPrefix applies the HasPrefix predicate on the "principal_name" field.

func PrincipalNameHasSuffix

func PrincipalNameHasSuffix(v string) predicate.User

PrincipalNameHasSuffix applies the HasSuffix predicate on the "principal_name" field.

func PrincipalNameIn

func PrincipalNameIn(vs ...string) predicate.User

PrincipalNameIn applies the In predicate on the "principal_name" field.

func PrincipalNameLT

func PrincipalNameLT(v string) predicate.User

PrincipalNameLT applies the LT predicate on the "principal_name" field.

func PrincipalNameLTE

func PrincipalNameLTE(v string) predicate.User

PrincipalNameLTE applies the LTE predicate on the "principal_name" field.

func PrincipalNameNEQ

func PrincipalNameNEQ(v string) predicate.User

PrincipalNameNEQ applies the NEQ predicate on the "principal_name" field.

func PrincipalNameNotIn

func PrincipalNameNotIn(vs ...string) predicate.User

PrincipalNameNotIn applies the NotIn predicate on the "principal_name" field.

func RegisterIP

func RegisterIP(v string) predicate.User

RegisterIP applies equality check predicate on the "register_ip" field. It's identical to RegisterIPEQ.

func RegisterIPContains

func RegisterIPContains(v string) predicate.User

RegisterIPContains applies the Contains predicate on the "register_ip" field.

func RegisterIPContainsFold

func RegisterIPContainsFold(v string) predicate.User

RegisterIPContainsFold applies the ContainsFold predicate on the "register_ip" field.

func RegisterIPEQ

func RegisterIPEQ(v string) predicate.User

RegisterIPEQ applies the EQ predicate on the "register_ip" field.

func RegisterIPEqualFold

func RegisterIPEqualFold(v string) predicate.User

RegisterIPEqualFold applies the EqualFold predicate on the "register_ip" field.

func RegisterIPGT

func RegisterIPGT(v string) predicate.User

RegisterIPGT applies the GT predicate on the "register_ip" field.

func RegisterIPGTE

func RegisterIPGTE(v string) predicate.User

RegisterIPGTE applies the GTE predicate on the "register_ip" field.

func RegisterIPHasPrefix

func RegisterIPHasPrefix(v string) predicate.User

RegisterIPHasPrefix applies the HasPrefix predicate on the "register_ip" field.

func RegisterIPHasSuffix

func RegisterIPHasSuffix(v string) predicate.User

RegisterIPHasSuffix applies the HasSuffix predicate on the "register_ip" field.

func RegisterIPIn

func RegisterIPIn(vs ...string) predicate.User

RegisterIPIn applies the In predicate on the "register_ip" field.

func RegisterIPLT

func RegisterIPLT(v string) predicate.User

RegisterIPLT applies the LT predicate on the "register_ip" field.

func RegisterIPLTE

func RegisterIPLTE(v string) predicate.User

RegisterIPLTE applies the LTE predicate on the "register_ip" field.

func RegisterIPNEQ

func RegisterIPNEQ(v string) predicate.User

RegisterIPNEQ applies the NEQ predicate on the "register_ip" field.

func RegisterIPNotIn

func RegisterIPNotIn(vs ...string) predicate.User

RegisterIPNotIn applies the NotIn predicate on the "register_ip" field.

func StatusEQ

func StatusEQ(v typex.SimpleStatus) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...typex.SimpleStatus) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.User

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v typex.SimpleStatus) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...typex.SimpleStatus) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.User

StatusNotNil applies the NotNil predicate on the "status" field.

func StatusValidator

func StatusValidator(s typex.SimpleStatus) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.User

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.User

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.User

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.User

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.User

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.User

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.User

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.User

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.User

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.User

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.User

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.User

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.User

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func UserTypeEQ

func UserTypeEQ(v UserType) predicate.User

UserTypeEQ applies the EQ predicate on the "user_type" field.

func UserTypeIn

func UserTypeIn(vs ...UserType) predicate.User

UserTypeIn applies the In predicate on the "user_type" field.

func UserTypeNEQ

func UserTypeNEQ(v UserType) predicate.User

UserTypeNEQ applies the NEQ predicate on the "user_type" field.

func UserTypeNotIn

func UserTypeNotIn(vs ...UserType) predicate.User

UserTypeNotIn applies the NotIn predicate on the "user_type" field.

func UserTypeValidator

func UserTypeValidator(ut UserType) error

UserTypeValidator is a validator for the "user_type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type CreationType

type CreationType string

CreationType defines the type for the "creation_type" enum field.

const (
	CreationTypeInvitation CreationType = "invitation"
	CreationTypeRegister   CreationType = "register"
	CreationTypeManual     CreationType = "manual"
)

CreationType values.

func (CreationType) MarshalGQL

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

MarshalGQL implements graphql.Marshaler interface.

func (CreationType) String

func (ct CreationType) String() string

func (*CreationType) UnmarshalGQL

func (e *CreationType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAvatarFileID

func ByAvatarFileID(opts ...sql.OrderTermOption) OrderOption

ByAvatarFileID orders the results by the avatar_file_id field.

func ByComments

func ByComments(opts ...sql.OrderTermOption) OrderOption

ByComments orders the results by the comments field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByCreationType

func ByCreationType(opts ...sql.OrderTermOption) OrderOption

ByCreationType orders the results by the creation_type field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDevices

func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDevices orders the results by devices terms.

func ByDevicesCount

func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption

ByDevicesCount orders the results by devices count.

func ByDisplayName

func ByDisplayName(opts ...sql.OrderTermOption) OrderOption

ByDisplayName orders the results by the display_name field.

func ByEmail

func ByEmail(opts ...sql.OrderTermOption) OrderOption

ByEmail orders the results by the email field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIdentities

func ByIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByIdentities orders the results by identities terms.

func ByIdentitiesCount

func ByIdentitiesCount(opts ...sql.OrderTermOption) OrderOption

ByIdentitiesCount orders the results by identities count.

func ByLoginProfileField

func ByLoginProfileField(field string, opts ...sql.OrderTermOption) OrderOption

ByLoginProfileField orders the results by login_profile field.

func ByMobile

func ByMobile(opts ...sql.OrderTermOption) OrderOption

ByMobile orders the results by the mobile field.

func ByOauthClients

func ByOauthClients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOauthClients orders the results by oauth_clients terms.

func ByOauthClientsCount

func ByOauthClientsCount(opts ...sql.OrderTermOption) OrderOption

ByOauthClientsCount orders the results by oauth_clients count.

func ByOrgUser

func ByOrgUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgUser orders the results by org_user terms.

func ByOrgUserCount

func ByOrgUserCount(opts ...sql.OrderTermOption) OrderOption

ByOrgUserCount orders the results by org_user count.

func ByOrgs

func ByOrgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgs orders the results by orgs terms.

func ByOrgsCount

func ByOrgsCount(opts ...sql.OrderTermOption) OrderOption

ByOrgsCount orders the results by orgs count.

func ByPasswords

func ByPasswords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPasswords orders the results by passwords terms.

func ByPasswordsCount

func ByPasswordsCount(opts ...sql.OrderTermOption) OrderOption

ByPasswordsCount orders the results by passwords count.

func ByPermissions

func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPermissions orders the results by permissions terms.

func ByPermissionsCount

func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption

ByPermissionsCount orders the results by permissions count.

func ByPrincipalName

func ByPrincipalName(opts ...sql.OrderTermOption) OrderOption

ByPrincipalName orders the results by the principal_name field.

func ByRegisterIP

func ByRegisterIP(opts ...sql.OrderTermOption) OrderOption

ByRegisterIP orders the results by the register_ip field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

func ByUserType

func ByUserType(opts ...sql.OrderTermOption) OrderOption

ByUserType orders the results by the user_type field.

type UserType

type UserType string

UserType defines the type for the "user_type" enum field.

const (
	UserTypeAccount UserType = "account"
	UserTypeMember  UserType = "member"
)

UserType values.

func (UserType) MarshalGQL

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

MarshalGQL implements graphql.Marshaler interface.

func (UserType) String

func (ut UserType) String() string

func (*UserType) UnmarshalGQL

func (e *UserType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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