person

package
v0.0.0-...-ef1d3fc Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the person type in the database.
	Label = "person"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStripeID holds the string denoting the stripe_id field in the database.
	FieldStripeID = "stripe_id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldEmailVerifiedAt holds the string denoting the email_verified_at field in the database.
	FieldEmailVerifiedAt = "email_verified_at"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldTaxID holds the string denoting the tax_id field in the database.
	FieldTaxID = "tax_id"
	// FieldFirstName holds the string denoting the first_name field in the database.
	FieldFirstName = "first_name"
	// FieldLastName holds the string denoting the last_name field in the database.
	FieldLastName = "last_name"
	// FieldLanguage holds the string denoting the language field in the database.
	FieldLanguage = "language"
	// FieldBirthdate holds the string denoting the birthdate field in the database.
	FieldBirthdate = "birthdate"
	// FieldGender holds the string denoting the gender field in the database.
	FieldGender = "gender"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldPostalCode holds the string denoting the postal_code field in the database.
	FieldPostalCode = "postal_code"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldCountry holds the string denoting the country field in the database.
	FieldCountry = "country"
	// FieldSubscribed holds the string denoting the subscribed field in the database.
	FieldSubscribed = "subscribed"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeAuthentications holds the string denoting the authentications edge name in mutations.
	EdgeAuthentications = "authentications"
	// EdgeAuthorizations holds the string denoting the authorizations edge name in mutations.
	EdgeAuthorizations = "authorizations"
	// Table holds the table name of the person in the database.
	Table = "persons"
	// AuthenticationsTable is the table that holds the authentications relation/edge.
	AuthenticationsTable = "authentications"
	// AuthenticationsInverseTable is the table name for the Authentication entity.
	// It exists in this package in order to avoid circular dependency with the "authentication" package.
	AuthenticationsInverseTable = "authentications"
	// AuthenticationsColumn is the table column denoting the authentications relation/edge.
	AuthenticationsColumn = "person_id"
	// AuthorizationsTable is the table that holds the authorizations relation/edge.
	AuthorizationsTable = "authorizations"
	// AuthorizationsInverseTable is the table name for the Authorization entity.
	// It exists in this package in order to avoid circular dependency with the "authorization" package.
	AuthorizationsInverseTable = "authorizations"
	// AuthorizationsColumn is the table column denoting the authorizations relation/edge.
	AuthorizationsColumn = "person_id"
)

Variables

View Source
var (
	Hooks  [5]ent.Hook
	Policy ent.Policy
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// PhoneValidator is a validator for the "phone" field. It is called by the builders before save.
	PhoneValidator func(string) error
	// TaxIDValidator is a validator for the "tax_id" field. It is called by the builders before save.
	TaxIDValidator func(string) error
	// FirstNameValidator is a validator for the "first_name" field. It is called by the builders before save.
	FirstNameValidator func(string) error
	// LastNameValidator is a validator for the "last_name" field. It is called by the builders before save.
	LastNameValidator func(string) error
	// AddressValidator is a validator for the "address" field. It is called by the builders before save.
	AddressValidator func(string) error
	// PostalCodeValidator is a validator for the "postal_code" field. It is called by the builders before save.
	PostalCodeValidator func(string) error
	// CityValidator is a validator for the "city" field. It is called by the builders before save.
	CityValidator func(string) error
	// CountryValidator is a validator for the "country" field. It is called by the builders before save.
	CountryValidator func(string) error
	// DefaultSubscribed holds the default value on creation for the "subscribed" field.
	DefaultSubscribed bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

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/avptp/brain/internal/generated/data/runtime"

Columns holds all SQL columns for person fields.

Functions

func Address

func Address(v string) predicate.Person

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.Person

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.Person

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.Person

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.Person

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.Person

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.Person

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.Person

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.Person

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.Person

AddressIn applies the In predicate on the "address" field.

func AddressIsNil

func AddressIsNil() predicate.Person

AddressIsNil applies the IsNil predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.Person

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.Person

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.Person

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.Person

AddressNotIn applies the NotIn predicate on the "address" field.

func AddressNotNil

func AddressNotNil() predicate.Person

AddressNotNil applies the NotNil predicate on the "address" field.

func And

func And(predicates ...predicate.Person) predicate.Person

And groups predicates with the AND operator between them.

func Birthdate

func Birthdate(v time.Time) predicate.Person

Birthdate applies equality check predicate on the "birthdate" field. It's identical to BirthdateEQ.

func BirthdateEQ

func BirthdateEQ(v time.Time) predicate.Person

BirthdateEQ applies the EQ predicate on the "birthdate" field.

func BirthdateGT

func BirthdateGT(v time.Time) predicate.Person

BirthdateGT applies the GT predicate on the "birthdate" field.

func BirthdateGTE

func BirthdateGTE(v time.Time) predicate.Person

BirthdateGTE applies the GTE predicate on the "birthdate" field.

func BirthdateIn

func BirthdateIn(vs ...time.Time) predicate.Person

BirthdateIn applies the In predicate on the "birthdate" field.

func BirthdateIsNil

func BirthdateIsNil() predicate.Person

BirthdateIsNil applies the IsNil predicate on the "birthdate" field.

func BirthdateLT

func BirthdateLT(v time.Time) predicate.Person

BirthdateLT applies the LT predicate on the "birthdate" field.

func BirthdateLTE

func BirthdateLTE(v time.Time) predicate.Person

BirthdateLTE applies the LTE predicate on the "birthdate" field.

func BirthdateNEQ

func BirthdateNEQ(v time.Time) predicate.Person

BirthdateNEQ applies the NEQ predicate on the "birthdate" field.

func BirthdateNotIn

func BirthdateNotIn(vs ...time.Time) predicate.Person

BirthdateNotIn applies the NotIn predicate on the "birthdate" field.

func BirthdateNotNil

func BirthdateNotNil() predicate.Person

BirthdateNotNil applies the NotNil predicate on the "birthdate" field.

func City

func City(v string) predicate.Person

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.Person

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.Person

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

func CityEQ(v string) predicate.Person

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.Person

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

func CityGT(v string) predicate.Person

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.Person

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.Person

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.Person

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

func CityIn(vs ...string) predicate.Person

CityIn applies the In predicate on the "city" field.

func CityIsNil

func CityIsNil() predicate.Person

CityIsNil applies the IsNil predicate on the "city" field.

func CityLT

func CityLT(v string) predicate.Person

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.Person

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.Person

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

func CityNotIn(vs ...string) predicate.Person

CityNotIn applies the NotIn predicate on the "city" field.

func CityNotNil

func CityNotNil() predicate.Person

CityNotNil applies the NotNil predicate on the "city" field.

func Country

func Country(v string) predicate.Person

Country applies equality check predicate on the "country" field. It's identical to CountryEQ.

func CountryContains

func CountryContains(v string) predicate.Person

CountryContains applies the Contains predicate on the "country" field.

func CountryContainsFold

func CountryContainsFold(v string) predicate.Person

CountryContainsFold applies the ContainsFold predicate on the "country" field.

func CountryEQ

func CountryEQ(v string) predicate.Person

CountryEQ applies the EQ predicate on the "country" field.

func CountryEqualFold

func CountryEqualFold(v string) predicate.Person

CountryEqualFold applies the EqualFold predicate on the "country" field.

func CountryGT

func CountryGT(v string) predicate.Person

CountryGT applies the GT predicate on the "country" field.

func CountryGTE

func CountryGTE(v string) predicate.Person

CountryGTE applies the GTE predicate on the "country" field.

func CountryHasPrefix

func CountryHasPrefix(v string) predicate.Person

CountryHasPrefix applies the HasPrefix predicate on the "country" field.

func CountryHasSuffix

func CountryHasSuffix(v string) predicate.Person

CountryHasSuffix applies the HasSuffix predicate on the "country" field.

func CountryIn

func CountryIn(vs ...string) predicate.Person

CountryIn applies the In predicate on the "country" field.

func CountryIsNil

func CountryIsNil() predicate.Person

CountryIsNil applies the IsNil predicate on the "country" field.

func CountryLT

func CountryLT(v string) predicate.Person

CountryLT applies the LT predicate on the "country" field.

func CountryLTE

func CountryLTE(v string) predicate.Person

CountryLTE applies the LTE predicate on the "country" field.

func CountryNEQ

func CountryNEQ(v string) predicate.Person

CountryNEQ applies the NEQ predicate on the "country" field.

func CountryNotIn

func CountryNotIn(vs ...string) predicate.Person

CountryNotIn applies the NotIn predicate on the "country" field.

func CountryNotNil

func CountryNotNil() predicate.Person

CountryNotNil applies the NotNil predicate on the "country" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Person

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Person

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Person

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Person

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Person

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Person

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Person

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

func CreatedAtNotIn

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

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

func Email

func Email(v string) predicate.Person

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

func EmailContains

func EmailContains(v string) predicate.Person

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.Person

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

func EmailEQ

func EmailEQ(v string) predicate.Person

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.Person

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

func EmailGT

func EmailGT(v string) predicate.Person

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

func EmailGTE

func EmailGTE(v string) predicate.Person

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Person

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Person

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.Person

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

func EmailLTE

func EmailLTE(v string) predicate.Person

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

func EmailNEQ

func EmailNEQ(v string) predicate.Person

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

func EmailNotIn

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

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

func EmailVerifiedAt

func EmailVerifiedAt(v time.Time) predicate.Person

EmailVerifiedAt applies equality check predicate on the "email_verified_at" field. It's identical to EmailVerifiedAtEQ.

func EmailVerifiedAtEQ

func EmailVerifiedAtEQ(v time.Time) predicate.Person

EmailVerifiedAtEQ applies the EQ predicate on the "email_verified_at" field.

func EmailVerifiedAtGT

func EmailVerifiedAtGT(v time.Time) predicate.Person

EmailVerifiedAtGT applies the GT predicate on the "email_verified_at" field.

func EmailVerifiedAtGTE

func EmailVerifiedAtGTE(v time.Time) predicate.Person

EmailVerifiedAtGTE applies the GTE predicate on the "email_verified_at" field.

func EmailVerifiedAtIn

func EmailVerifiedAtIn(vs ...time.Time) predicate.Person

EmailVerifiedAtIn applies the In predicate on the "email_verified_at" field.

func EmailVerifiedAtIsNil

func EmailVerifiedAtIsNil() predicate.Person

EmailVerifiedAtIsNil applies the IsNil predicate on the "email_verified_at" field.

func EmailVerifiedAtLT

func EmailVerifiedAtLT(v time.Time) predicate.Person

EmailVerifiedAtLT applies the LT predicate on the "email_verified_at" field.

func EmailVerifiedAtLTE

func EmailVerifiedAtLTE(v time.Time) predicate.Person

EmailVerifiedAtLTE applies the LTE predicate on the "email_verified_at" field.

func EmailVerifiedAtNEQ

func EmailVerifiedAtNEQ(v time.Time) predicate.Person

EmailVerifiedAtNEQ applies the NEQ predicate on the "email_verified_at" field.

func EmailVerifiedAtNotIn

func EmailVerifiedAtNotIn(vs ...time.Time) predicate.Person

EmailVerifiedAtNotIn applies the NotIn predicate on the "email_verified_at" field.

func EmailVerifiedAtNotNil

func EmailVerifiedAtNotNil() predicate.Person

EmailVerifiedAtNotNil applies the NotNil predicate on the "email_verified_at" field.

func FirstName

func FirstName(v string) predicate.Person

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.Person

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.Person

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.Person

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.Person

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.Person

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.Person

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.Person

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.Person

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

func FirstNameIn(vs ...string) predicate.Person

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.Person

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.Person

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.Person

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

func FirstNameNotIn(vs ...string) predicate.Person

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func GenderEQ

func GenderEQ(v Gender) predicate.Person

GenderEQ applies the EQ predicate on the "gender" field.

func GenderIn

func GenderIn(vs ...Gender) predicate.Person

GenderIn applies the In predicate on the "gender" field.

func GenderIsNil

func GenderIsNil() predicate.Person

GenderIsNil applies the IsNil predicate on the "gender" field.

func GenderNEQ

func GenderNEQ(v Gender) predicate.Person

GenderNEQ applies the NEQ predicate on the "gender" field.

func GenderNotIn

func GenderNotIn(vs ...Gender) predicate.Person

GenderNotIn applies the NotIn predicate on the "gender" field.

func GenderNotNil

func GenderNotNil() predicate.Person

GenderNotNil applies the NotNil predicate on the "gender" field.

func GenderValidator

func GenderValidator(ge Gender) error

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

func HasAuthentications

func HasAuthentications() predicate.Person

HasAuthentications applies the HasEdge predicate on the "authentications" edge.

func HasAuthenticationsWith

func HasAuthenticationsWith(preds ...predicate.Authentication) predicate.Person

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

func HasAuthorizations

func HasAuthorizations() predicate.Person

HasAuthorizations applies the HasEdge predicate on the "authorizations" edge.

func HasAuthorizationsWith

func HasAuthorizationsWith(preds ...predicate.Authorization) predicate.Person

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

func ID

func ID(id uuid.UUID) predicate.Person

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Person

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Person

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Person

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Person

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Person

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Person

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Person

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Person

IDNotIn applies the NotIn predicate on the ID field.

func Language

func Language(v string) predicate.Person

Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.

func LanguageContains

func LanguageContains(v string) predicate.Person

LanguageContains applies the Contains predicate on the "language" field.

func LanguageContainsFold

func LanguageContainsFold(v string) predicate.Person

LanguageContainsFold applies the ContainsFold predicate on the "language" field.

func LanguageEQ

func LanguageEQ(v string) predicate.Person

LanguageEQ applies the EQ predicate on the "language" field.

func LanguageEqualFold

func LanguageEqualFold(v string) predicate.Person

LanguageEqualFold applies the EqualFold predicate on the "language" field.

func LanguageGT

func LanguageGT(v string) predicate.Person

LanguageGT applies the GT predicate on the "language" field.

func LanguageGTE

func LanguageGTE(v string) predicate.Person

LanguageGTE applies the GTE predicate on the "language" field.

func LanguageHasPrefix

func LanguageHasPrefix(v string) predicate.Person

LanguageHasPrefix applies the HasPrefix predicate on the "language" field.

func LanguageHasSuffix

func LanguageHasSuffix(v string) predicate.Person

LanguageHasSuffix applies the HasSuffix predicate on the "language" field.

func LanguageIn

func LanguageIn(vs ...string) predicate.Person

LanguageIn applies the In predicate on the "language" field.

func LanguageLT

func LanguageLT(v string) predicate.Person

LanguageLT applies the LT predicate on the "language" field.

func LanguageLTE

func LanguageLTE(v string) predicate.Person

LanguageLTE applies the LTE predicate on the "language" field.

func LanguageNEQ

func LanguageNEQ(v string) predicate.Person

LanguageNEQ applies the NEQ predicate on the "language" field.

func LanguageNotIn

func LanguageNotIn(vs ...string) predicate.Person

LanguageNotIn applies the NotIn predicate on the "language" field.

func LastName

func LastName(v string) predicate.Person

LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.Person

LastNameContains applies the Contains predicate on the "last_name" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.Person

LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.

func LastNameEQ

func LastNameEQ(v string) predicate.Person

LastNameEQ applies the EQ predicate on the "last_name" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.Person

LastNameEqualFold applies the EqualFold predicate on the "last_name" field.

func LastNameGT

func LastNameGT(v string) predicate.Person

LastNameGT applies the GT predicate on the "last_name" field.

func LastNameGTE

func LastNameGTE(v string) predicate.Person

LastNameGTE applies the GTE predicate on the "last_name" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.Person

LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.Person

LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.

func LastNameIn

func LastNameIn(vs ...string) predicate.Person

LastNameIn applies the In predicate on the "last_name" field.

func LastNameIsNil

func LastNameIsNil() predicate.Person

LastNameIsNil applies the IsNil predicate on the "last_name" field.

func LastNameLT

func LastNameLT(v string) predicate.Person

LastNameLT applies the LT predicate on the "last_name" field.

func LastNameLTE

func LastNameLTE(v string) predicate.Person

LastNameLTE applies the LTE predicate on the "last_name" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.Person

LastNameNEQ applies the NEQ predicate on the "last_name" field.

func LastNameNotIn

func LastNameNotIn(vs ...string) predicate.Person

LastNameNotIn applies the NotIn predicate on the "last_name" field.

func LastNameNotNil

func LastNameNotNil() predicate.Person

LastNameNotNil applies the NotNil predicate on the "last_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Person) predicate.Person

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.Person

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.Person

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Person

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.Person

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Person

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.Person

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.Person

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Person

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Person

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.Person

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.Person

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.Person

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.Person

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.Person

PasswordNotIn applies the NotIn predicate on the "password" field.

func Phone

func Phone(v string) predicate.Person

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Person

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Person

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Person

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Person

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Person

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Person

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Person

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Person

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Person

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.Person

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Person

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Person

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Person

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Person

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.Person

PhoneNotNil applies the NotNil predicate on the "phone" field.

func PostalCode

func PostalCode(v string) predicate.Person

PostalCode applies equality check predicate on the "postal_code" field. It's identical to PostalCodeEQ.

func PostalCodeContains

func PostalCodeContains(v string) predicate.Person

PostalCodeContains applies the Contains predicate on the "postal_code" field.

func PostalCodeContainsFold

func PostalCodeContainsFold(v string) predicate.Person

PostalCodeContainsFold applies the ContainsFold predicate on the "postal_code" field.

func PostalCodeEQ

func PostalCodeEQ(v string) predicate.Person

PostalCodeEQ applies the EQ predicate on the "postal_code" field.

func PostalCodeEqualFold

func PostalCodeEqualFold(v string) predicate.Person

PostalCodeEqualFold applies the EqualFold predicate on the "postal_code" field.

func PostalCodeGT

func PostalCodeGT(v string) predicate.Person

PostalCodeGT applies the GT predicate on the "postal_code" field.

func PostalCodeGTE

func PostalCodeGTE(v string) predicate.Person

PostalCodeGTE applies the GTE predicate on the "postal_code" field.

func PostalCodeHasPrefix

func PostalCodeHasPrefix(v string) predicate.Person

PostalCodeHasPrefix applies the HasPrefix predicate on the "postal_code" field.

func PostalCodeHasSuffix

func PostalCodeHasSuffix(v string) predicate.Person

PostalCodeHasSuffix applies the HasSuffix predicate on the "postal_code" field.

func PostalCodeIn

func PostalCodeIn(vs ...string) predicate.Person

PostalCodeIn applies the In predicate on the "postal_code" field.

func PostalCodeIsNil

func PostalCodeIsNil() predicate.Person

PostalCodeIsNil applies the IsNil predicate on the "postal_code" field.

func PostalCodeLT

func PostalCodeLT(v string) predicate.Person

PostalCodeLT applies the LT predicate on the "postal_code" field.

func PostalCodeLTE

func PostalCodeLTE(v string) predicate.Person

PostalCodeLTE applies the LTE predicate on the "postal_code" field.

func PostalCodeNEQ

func PostalCodeNEQ(v string) predicate.Person

PostalCodeNEQ applies the NEQ predicate on the "postal_code" field.

func PostalCodeNotIn

func PostalCodeNotIn(vs ...string) predicate.Person

PostalCodeNotIn applies the NotIn predicate on the "postal_code" field.

func PostalCodeNotNil

func PostalCodeNotNil() predicate.Person

PostalCodeNotNil applies the NotNil predicate on the "postal_code" field.

func StripeID

func StripeID(v string) predicate.Person

StripeID applies equality check predicate on the "stripe_id" field. It's identical to StripeIDEQ.

func StripeIDContains

func StripeIDContains(v string) predicate.Person

StripeIDContains applies the Contains predicate on the "stripe_id" field.

func StripeIDContainsFold

func StripeIDContainsFold(v string) predicate.Person

StripeIDContainsFold applies the ContainsFold predicate on the "stripe_id" field.

func StripeIDEQ

func StripeIDEQ(v string) predicate.Person

StripeIDEQ applies the EQ predicate on the "stripe_id" field.

func StripeIDEqualFold

func StripeIDEqualFold(v string) predicate.Person

StripeIDEqualFold applies the EqualFold predicate on the "stripe_id" field.

func StripeIDGT

func StripeIDGT(v string) predicate.Person

StripeIDGT applies the GT predicate on the "stripe_id" field.

func StripeIDGTE

func StripeIDGTE(v string) predicate.Person

StripeIDGTE applies the GTE predicate on the "stripe_id" field.

func StripeIDHasPrefix

func StripeIDHasPrefix(v string) predicate.Person

StripeIDHasPrefix applies the HasPrefix predicate on the "stripe_id" field.

func StripeIDHasSuffix

func StripeIDHasSuffix(v string) predicate.Person

StripeIDHasSuffix applies the HasSuffix predicate on the "stripe_id" field.

func StripeIDIn

func StripeIDIn(vs ...string) predicate.Person

StripeIDIn applies the In predicate on the "stripe_id" field.

func StripeIDIsNil

func StripeIDIsNil() predicate.Person

StripeIDIsNil applies the IsNil predicate on the "stripe_id" field.

func StripeIDLT

func StripeIDLT(v string) predicate.Person

StripeIDLT applies the LT predicate on the "stripe_id" field.

func StripeIDLTE

func StripeIDLTE(v string) predicate.Person

StripeIDLTE applies the LTE predicate on the "stripe_id" field.

func StripeIDNEQ

func StripeIDNEQ(v string) predicate.Person

StripeIDNEQ applies the NEQ predicate on the "stripe_id" field.

func StripeIDNotIn

func StripeIDNotIn(vs ...string) predicate.Person

StripeIDNotIn applies the NotIn predicate on the "stripe_id" field.

func StripeIDNotNil

func StripeIDNotNil() predicate.Person

StripeIDNotNil applies the NotNil predicate on the "stripe_id" field.

func Subscribed

func Subscribed(v bool) predicate.Person

Subscribed applies equality check predicate on the "subscribed" field. It's identical to SubscribedEQ.

func SubscribedEQ

func SubscribedEQ(v bool) predicate.Person

SubscribedEQ applies the EQ predicate on the "subscribed" field.

func SubscribedNEQ

func SubscribedNEQ(v bool) predicate.Person

SubscribedNEQ applies the NEQ predicate on the "subscribed" field.

func TaxID

func TaxID(v string) predicate.Person

TaxID applies equality check predicate on the "tax_id" field. It's identical to TaxIDEQ.

func TaxIDContains

func TaxIDContains(v string) predicate.Person

TaxIDContains applies the Contains predicate on the "tax_id" field.

func TaxIDContainsFold

func TaxIDContainsFold(v string) predicate.Person

TaxIDContainsFold applies the ContainsFold predicate on the "tax_id" field.

func TaxIDEQ

func TaxIDEQ(v string) predicate.Person

TaxIDEQ applies the EQ predicate on the "tax_id" field.

func TaxIDEqualFold

func TaxIDEqualFold(v string) predicate.Person

TaxIDEqualFold applies the EqualFold predicate on the "tax_id" field.

func TaxIDGT

func TaxIDGT(v string) predicate.Person

TaxIDGT applies the GT predicate on the "tax_id" field.

func TaxIDGTE

func TaxIDGTE(v string) predicate.Person

TaxIDGTE applies the GTE predicate on the "tax_id" field.

func TaxIDHasPrefix

func TaxIDHasPrefix(v string) predicate.Person

TaxIDHasPrefix applies the HasPrefix predicate on the "tax_id" field.

func TaxIDHasSuffix

func TaxIDHasSuffix(v string) predicate.Person

TaxIDHasSuffix applies the HasSuffix predicate on the "tax_id" field.

func TaxIDIn

func TaxIDIn(vs ...string) predicate.Person

TaxIDIn applies the In predicate on the "tax_id" field.

func TaxIDLT

func TaxIDLT(v string) predicate.Person

TaxIDLT applies the LT predicate on the "tax_id" field.

func TaxIDLTE

func TaxIDLTE(v string) predicate.Person

TaxIDLTE applies the LTE predicate on the "tax_id" field.

func TaxIDNEQ

func TaxIDNEQ(v string) predicate.Person

TaxIDNEQ applies the NEQ predicate on the "tax_id" field.

func TaxIDNotIn

func TaxIDNotIn(vs ...string) predicate.Person

TaxIDNotIn applies the NotIn predicate on the "tax_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Person

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Person

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Person

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Person

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Person

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Person

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Person

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Gender

type Gender string

Gender defines the type for the "gender" enum field.

const (
	GenderWoman     Gender = "woman"
	GenderMan       Gender = "man"
	GenderNonBinary Gender = "nonbinary"
)

Gender values.

func (Gender) MarshalGQL

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

MarshalGQL implements graphql.Marshaler interface.

func (Gender) String

func (ge Gender) String() string

func (*Gender) UnmarshalGQL

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

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Person queries.

func ByAddress

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

ByAddress orders the results by the address field.

func ByAuthentications

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

ByAuthentications orders the results by authentications terms.

func ByAuthenticationsCount

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

ByAuthenticationsCount orders the results by authentications count.

func ByAuthorizations

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

ByAuthorizations orders the results by authorizations terms.

func ByAuthorizationsCount

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

ByAuthorizationsCount orders the results by authorizations count.

func ByBirthdate

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

ByBirthdate orders the results by the birthdate field.

func ByCity

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

ByCity orders the results by the city field.

func ByCountry

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

ByCountry orders the results by the country field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByEmailVerifiedAt

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

ByEmailVerifiedAt orders the results by the email_verified_at field.

func ByFirstName

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

ByFirstName orders the results by the first_name field.

func ByGender

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

ByGender orders the results by the gender field.

func ByID

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

ByID orders the results by the id field.

func ByLanguage

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

ByLanguage orders the results by the language field.

func ByLastName

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

ByLastName orders the results by the last_name field.

func ByPassword

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

ByPassword orders the results by the password field.

func ByPhone

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

ByPhone orders the results by the phone field.

func ByPostalCode

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

ByPostalCode orders the results by the postal_code field.

func ByStripeID

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

ByStripeID orders the results by the stripe_id field.

func BySubscribed

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

BySubscribed orders the results by the subscribed field.

func ByTaxID

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

ByTaxID orders the results by the tax_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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