account

package
v0.0.0-...-84b0f7e Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the account type in the database.
	Label = "account"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmailAddress holds the string denoting the email_address field in the database.
	FieldEmailAddress = "email_address"

	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"

	// Table holds the table name of the account in the database.
	Table = "accounts"
	// OrganizationTable is the table the holds the organization relation/edge. The primary key declared below.
	OrganizationTable = "organization_accounts"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
)

Variables

Columns holds all SQL columns for account fields.

View Source
var (
	// DefaultID holds the default value on creation for the id field.
	DefaultID func() pulid.ID
)
View Source
var (
	// OrganizationPrimaryKey and OrganizationColumn2 are the table columns denoting the
	// primary key for the organization relation (M2M).
	OrganizationPrimaryKey = []string{"organization_id", "account_id"}
)

Functions

func And

func And(predicates ...predicate.Account) predicate.Account

And groups list of predicates with the AND operator between them.

func EmailAddress

func EmailAddress(v string) predicate.Account

EmailAddress applies equality check predicate on the "email_address" field. It's identical to EmailAddressEQ.

func EmailAddressContains

func EmailAddressContains(v string) predicate.Account

EmailAddressContains applies the Contains predicate on the "email_address" field.

func EmailAddressContainsFold

func EmailAddressContainsFold(v string) predicate.Account

EmailAddressContainsFold applies the ContainsFold predicate on the "email_address" field.

func EmailAddressEQ

func EmailAddressEQ(v string) predicate.Account

EmailAddressEQ applies the EQ predicate on the "email_address" field.

func EmailAddressEqualFold

func EmailAddressEqualFold(v string) predicate.Account

EmailAddressEqualFold applies the EqualFold predicate on the "email_address" field.

func EmailAddressGT

func EmailAddressGT(v string) predicate.Account

EmailAddressGT applies the GT predicate on the "email_address" field.

func EmailAddressGTE

func EmailAddressGTE(v string) predicate.Account

EmailAddressGTE applies the GTE predicate on the "email_address" field.

func EmailAddressHasPrefix

func EmailAddressHasPrefix(v string) predicate.Account

EmailAddressHasPrefix applies the HasPrefix predicate on the "email_address" field.

func EmailAddressHasSuffix

func EmailAddressHasSuffix(v string) predicate.Account

EmailAddressHasSuffix applies the HasSuffix predicate on the "email_address" field.

func EmailAddressIn

func EmailAddressIn(vs ...string) predicate.Account

EmailAddressIn applies the In predicate on the "email_address" field.

func EmailAddressLT

func EmailAddressLT(v string) predicate.Account

EmailAddressLT applies the LT predicate on the "email_address" field.

func EmailAddressLTE

func EmailAddressLTE(v string) predicate.Account

EmailAddressLTE applies the LTE predicate on the "email_address" field.

func EmailAddressNEQ

func EmailAddressNEQ(v string) predicate.Account

EmailAddressNEQ applies the NEQ predicate on the "email_address" field.

func EmailAddressNotIn

func EmailAddressNotIn(vs ...string) predicate.Account

EmailAddressNotIn applies the NotIn predicate on the "email_address" field.

func HasOrganization

func HasOrganization() predicate.Account

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Account

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

func ID

func ID(id pulid.ID) predicate.Account

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id pulid.ID) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id pulid.ID) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id pulid.ID) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...pulid.ID) predicate.Account

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id pulid.ID) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pulid.ID) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.ID) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...pulid.ID) predicate.Account

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Account) predicate.Account

Or groups list of predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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