businessunit

package
v0.0.0-...-4d78421 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the businessunit type in the database.
	Label = "business_unit"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldEntityKey holds the string denoting the entity_key field in the database.
	FieldEntityKey = "entity_key"
	// FieldPhoneNumber holds the string denoting the phone_number field in the database.
	FieldPhoneNumber = "phone_number"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldCountry holds the string denoting the country field in the database.
	FieldCountry = "country"
	// FieldPostalCode holds the string denoting the postal_code field in the database.
	FieldPostalCode = "postal_code"
	// FieldTaxID holds the string denoting the tax_id field in the database.
	FieldTaxID = "tax_id"
	// FieldSubscriptionPlan holds the string denoting the subscription_plan field in the database.
	FieldSubscriptionPlan = "subscription_plan"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLegalName holds the string denoting the legal_name field in the database.
	FieldLegalName = "legal_name"
	// FieldContactName holds the string denoting the contact_name field in the database.
	FieldContactName = "contact_name"
	// FieldContactEmail holds the string denoting the contact_email field in the database.
	FieldContactEmail = "contact_email"
	// FieldPaidUntil holds the string denoting the paid_until field in the database.
	FieldPaidUntil = "paid_until"
	// FieldSettings holds the string denoting the settings field in the database.
	FieldSettings = "settings"
	// FieldFreeTrial holds the string denoting the free_trial field in the database.
	FieldFreeTrial = "free_trial"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// EdgePrev holds the string denoting the prev edge name in mutations.
	EdgePrev = "prev"
	// EdgeNext holds the string denoting the next edge name in mutations.
	EdgeNext = "next"
	// EdgeOrganizations holds the string denoting the organizations edge name in mutations.
	EdgeOrganizations = "organizations"
	// Table holds the table name of the businessunit in the database.
	Table = "business_units"
	// PrevTable is the table that holds the prev relation/edge.
	PrevTable = "business_units"
	// PrevColumn is the table column denoting the prev relation/edge.
	PrevColumn = "parent_id"
	// NextTable is the table that holds the next relation/edge.
	NextTable = "business_units"
	// NextColumn is the table column denoting the next relation/edge.
	NextColumn = "parent_id"
	// OrganizationsTable is the table that holds the organizations relation/edge.
	OrganizationsTable = "organizations"
	// OrganizationsInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationsInverseTable = "organizations"
	// OrganizationsColumn is the table column denoting the organizations relation/edge.
	OrganizationsColumn = "business_unit_id"
)
View Source
const DefaultStatus = StatusA

StatusA is the default value of the Status enum.

Variables

View Source
var (
	// 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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// EntityKeyValidator is a validator for the "entity_key" field. It is called by the builders before save.
	EntityKeyValidator func(string) error
	// PhoneNumberValidator is a validator for the "phone_number" field. It is called by the builders before save.
	PhoneNumberValidator func(string) error
	// CityValidator is a validator for the "city" field. It is called by the builders before save.
	CityValidator func(string) error
	// StateValidator is a validator for the "state" field. It is called by the builders before save.
	StateValidator func(string) error
	// CountryValidator is a validator for the "country" field. It is called by the builders before save.
	CountryValidator func(string) error
	// PostalCodeValidator is a validator for the "postal_code" field. It is called by the builders before save.
	PostalCodeValidator func(string) error
	// TaxIDValidator is a validator for the "tax_id" field. It is called by the builders before save.
	TaxIDValidator func(string) error
	// DefaultFreeTrial holds the default value on creation for the "free_trial" field.
	DefaultFreeTrial bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for businessunit fields.

Functions

func Address

func Address(v string) predicate.BusinessUnit

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

func AddressContains

func AddressContains(v string) predicate.BusinessUnit

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

func AddressContainsFold

func AddressContainsFold(v string) predicate.BusinessUnit

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

func AddressEQ

func AddressEQ(v string) predicate.BusinessUnit

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

func AddressEqualFold

func AddressEqualFold(v string) predicate.BusinessUnit

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

func AddressGT

func AddressGT(v string) predicate.BusinessUnit

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

func AddressGTE

func AddressGTE(v string) predicate.BusinessUnit

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

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.BusinessUnit

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

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.BusinessUnit

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

func AddressIn

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

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

func AddressIsNil

func AddressIsNil() predicate.BusinessUnit

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

func AddressLT

func AddressLT(v string) predicate.BusinessUnit

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

func AddressLTE

func AddressLTE(v string) predicate.BusinessUnit

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

func AddressNEQ

func AddressNEQ(v string) predicate.BusinessUnit

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

func AddressNotIn

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

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

func AddressNotNil

func AddressNotNil() predicate.BusinessUnit

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

func And

func And(predicates ...predicate.BusinessUnit) predicate.BusinessUnit

And groups predicates with the AND operator between them.

func City

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

func CityContains

func CityContains(v string) predicate.BusinessUnit

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

func CityContainsFold

func CityContainsFold(v string) predicate.BusinessUnit

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

func CityEQ

func CityEQ(v string) predicate.BusinessUnit

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

func CityEqualFold

func CityEqualFold(v string) predicate.BusinessUnit

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

func CityGT

func CityGT(v string) predicate.BusinessUnit

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

func CityGTE

func CityGTE(v string) predicate.BusinessUnit

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

func CityHasPrefix

func CityHasPrefix(v string) predicate.BusinessUnit

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

func CityHasSuffix

func CityHasSuffix(v string) predicate.BusinessUnit

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

func CityIn

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

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

func CityIsNil

func CityIsNil() predicate.BusinessUnit

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

func CityLT

func CityLT(v string) predicate.BusinessUnit

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

func CityLTE

func CityLTE(v string) predicate.BusinessUnit

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

func CityNEQ

func CityNEQ(v string) predicate.BusinessUnit

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

func CityNotIn

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

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

func CityNotNil

func CityNotNil() predicate.BusinessUnit

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

func ContactEmail

func ContactEmail(v string) predicate.BusinessUnit

ContactEmail applies equality check predicate on the "contact_email" field. It's identical to ContactEmailEQ.

func ContactEmailContains

func ContactEmailContains(v string) predicate.BusinessUnit

ContactEmailContains applies the Contains predicate on the "contact_email" field.

func ContactEmailContainsFold

func ContactEmailContainsFold(v string) predicate.BusinessUnit

ContactEmailContainsFold applies the ContainsFold predicate on the "contact_email" field.

func ContactEmailEQ

func ContactEmailEQ(v string) predicate.BusinessUnit

ContactEmailEQ applies the EQ predicate on the "contact_email" field.

func ContactEmailEqualFold

func ContactEmailEqualFold(v string) predicate.BusinessUnit

ContactEmailEqualFold applies the EqualFold predicate on the "contact_email" field.

func ContactEmailGT

func ContactEmailGT(v string) predicate.BusinessUnit

ContactEmailGT applies the GT predicate on the "contact_email" field.

func ContactEmailGTE

func ContactEmailGTE(v string) predicate.BusinessUnit

ContactEmailGTE applies the GTE predicate on the "contact_email" field.

func ContactEmailHasPrefix

func ContactEmailHasPrefix(v string) predicate.BusinessUnit

ContactEmailHasPrefix applies the HasPrefix predicate on the "contact_email" field.

func ContactEmailHasSuffix

func ContactEmailHasSuffix(v string) predicate.BusinessUnit

ContactEmailHasSuffix applies the HasSuffix predicate on the "contact_email" field.

func ContactEmailIn

func ContactEmailIn(vs ...string) predicate.BusinessUnit

ContactEmailIn applies the In predicate on the "contact_email" field.

func ContactEmailIsNil

func ContactEmailIsNil() predicate.BusinessUnit

ContactEmailIsNil applies the IsNil predicate on the "contact_email" field.

func ContactEmailLT

func ContactEmailLT(v string) predicate.BusinessUnit

ContactEmailLT applies the LT predicate on the "contact_email" field.

func ContactEmailLTE

func ContactEmailLTE(v string) predicate.BusinessUnit

ContactEmailLTE applies the LTE predicate on the "contact_email" field.

func ContactEmailNEQ

func ContactEmailNEQ(v string) predicate.BusinessUnit

ContactEmailNEQ applies the NEQ predicate on the "contact_email" field.

func ContactEmailNotIn

func ContactEmailNotIn(vs ...string) predicate.BusinessUnit

ContactEmailNotIn applies the NotIn predicate on the "contact_email" field.

func ContactEmailNotNil

func ContactEmailNotNil() predicate.BusinessUnit

ContactEmailNotNil applies the NotNil predicate on the "contact_email" field.

func ContactName

func ContactName(v string) predicate.BusinessUnit

ContactName applies equality check predicate on the "contact_name" field. It's identical to ContactNameEQ.

func ContactNameContains

func ContactNameContains(v string) predicate.BusinessUnit

ContactNameContains applies the Contains predicate on the "contact_name" field.

func ContactNameContainsFold

func ContactNameContainsFold(v string) predicate.BusinessUnit

ContactNameContainsFold applies the ContainsFold predicate on the "contact_name" field.

func ContactNameEQ

func ContactNameEQ(v string) predicate.BusinessUnit

ContactNameEQ applies the EQ predicate on the "contact_name" field.

func ContactNameEqualFold

func ContactNameEqualFold(v string) predicate.BusinessUnit

ContactNameEqualFold applies the EqualFold predicate on the "contact_name" field.

func ContactNameGT

func ContactNameGT(v string) predicate.BusinessUnit

ContactNameGT applies the GT predicate on the "contact_name" field.

func ContactNameGTE

func ContactNameGTE(v string) predicate.BusinessUnit

ContactNameGTE applies the GTE predicate on the "contact_name" field.

func ContactNameHasPrefix

func ContactNameHasPrefix(v string) predicate.BusinessUnit

ContactNameHasPrefix applies the HasPrefix predicate on the "contact_name" field.

func ContactNameHasSuffix

func ContactNameHasSuffix(v string) predicate.BusinessUnit

ContactNameHasSuffix applies the HasSuffix predicate on the "contact_name" field.

func ContactNameIn

func ContactNameIn(vs ...string) predicate.BusinessUnit

ContactNameIn applies the In predicate on the "contact_name" field.

func ContactNameIsNil

func ContactNameIsNil() predicate.BusinessUnit

ContactNameIsNil applies the IsNil predicate on the "contact_name" field.

func ContactNameLT

func ContactNameLT(v string) predicate.BusinessUnit

ContactNameLT applies the LT predicate on the "contact_name" field.

func ContactNameLTE

func ContactNameLTE(v string) predicate.BusinessUnit

ContactNameLTE applies the LTE predicate on the "contact_name" field.

func ContactNameNEQ

func ContactNameNEQ(v string) predicate.BusinessUnit

ContactNameNEQ applies the NEQ predicate on the "contact_name" field.

func ContactNameNotIn

func ContactNameNotIn(vs ...string) predicate.BusinessUnit

ContactNameNotIn applies the NotIn predicate on the "contact_name" field.

func ContactNameNotNil

func ContactNameNotNil() predicate.BusinessUnit

ContactNameNotNil applies the NotNil predicate on the "contact_name" field.

func Country

func Country(v string) predicate.BusinessUnit

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

func CountryContains

func CountryContains(v string) predicate.BusinessUnit

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

func CountryContainsFold

func CountryContainsFold(v string) predicate.BusinessUnit

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

func CountryEQ

func CountryEQ(v string) predicate.BusinessUnit

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

func CountryEqualFold

func CountryEqualFold(v string) predicate.BusinessUnit

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

func CountryGT

func CountryGT(v string) predicate.BusinessUnit

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

func CountryGTE

func CountryGTE(v string) predicate.BusinessUnit

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

func CountryHasPrefix

func CountryHasPrefix(v string) predicate.BusinessUnit

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

func CountryHasSuffix

func CountryHasSuffix(v string) predicate.BusinessUnit

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

func CountryIn

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

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

func CountryIsNil

func CountryIsNil() predicate.BusinessUnit

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

func CountryLT

func CountryLT(v string) predicate.BusinessUnit

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

func CountryLTE

func CountryLTE(v string) predicate.BusinessUnit

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

func CountryNEQ

func CountryNEQ(v string) predicate.BusinessUnit

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

func CountryNotIn

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

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

func CountryNotNil

func CountryNotNil() predicate.BusinessUnit

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

func CreatedAt

func CreatedAt(v time.Time) predicate.BusinessUnit

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BusinessUnit

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BusinessUnit

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BusinessUnit

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BusinessUnit

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BusinessUnit

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BusinessUnit

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.BusinessUnit

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.BusinessUnit

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.BusinessUnit

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.BusinessUnit

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.BusinessUnit

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.BusinessUnit

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.BusinessUnit

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.BusinessUnit

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.BusinessUnit

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.BusinessUnit

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.BusinessUnit

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.BusinessUnit

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.BusinessUnit

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.BusinessUnit

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.BusinessUnit

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.BusinessUnit

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EntityKey

func EntityKey(v string) predicate.BusinessUnit

EntityKey applies equality check predicate on the "entity_key" field. It's identical to EntityKeyEQ.

func EntityKeyContains

func EntityKeyContains(v string) predicate.BusinessUnit

EntityKeyContains applies the Contains predicate on the "entity_key" field.

func EntityKeyContainsFold

func EntityKeyContainsFold(v string) predicate.BusinessUnit

EntityKeyContainsFold applies the ContainsFold predicate on the "entity_key" field.

func EntityKeyEQ

func EntityKeyEQ(v string) predicate.BusinessUnit

EntityKeyEQ applies the EQ predicate on the "entity_key" field.

func EntityKeyEqualFold

func EntityKeyEqualFold(v string) predicate.BusinessUnit

EntityKeyEqualFold applies the EqualFold predicate on the "entity_key" field.

func EntityKeyGT

func EntityKeyGT(v string) predicate.BusinessUnit

EntityKeyGT applies the GT predicate on the "entity_key" field.

func EntityKeyGTE

func EntityKeyGTE(v string) predicate.BusinessUnit

EntityKeyGTE applies the GTE predicate on the "entity_key" field.

func EntityKeyHasPrefix

func EntityKeyHasPrefix(v string) predicate.BusinessUnit

EntityKeyHasPrefix applies the HasPrefix predicate on the "entity_key" field.

func EntityKeyHasSuffix

func EntityKeyHasSuffix(v string) predicate.BusinessUnit

EntityKeyHasSuffix applies the HasSuffix predicate on the "entity_key" field.

func EntityKeyIn

func EntityKeyIn(vs ...string) predicate.BusinessUnit

EntityKeyIn applies the In predicate on the "entity_key" field.

func EntityKeyLT

func EntityKeyLT(v string) predicate.BusinessUnit

EntityKeyLT applies the LT predicate on the "entity_key" field.

func EntityKeyLTE

func EntityKeyLTE(v string) predicate.BusinessUnit

EntityKeyLTE applies the LTE predicate on the "entity_key" field.

func EntityKeyNEQ

func EntityKeyNEQ(v string) predicate.BusinessUnit

EntityKeyNEQ applies the NEQ predicate on the "entity_key" field.

func EntityKeyNotIn

func EntityKeyNotIn(vs ...string) predicate.BusinessUnit

EntityKeyNotIn applies the NotIn predicate on the "entity_key" field.

func FreeTrial

func FreeTrial(v bool) predicate.BusinessUnit

FreeTrial applies equality check predicate on the "free_trial" field. It's identical to FreeTrialEQ.

func FreeTrialEQ

func FreeTrialEQ(v bool) predicate.BusinessUnit

FreeTrialEQ applies the EQ predicate on the "free_trial" field.

func FreeTrialNEQ

func FreeTrialNEQ(v bool) predicate.BusinessUnit

FreeTrialNEQ applies the NEQ predicate on the "free_trial" field.

func HasNext

func HasNext() predicate.BusinessUnit

HasNext applies the HasEdge predicate on the "next" edge.

func HasNextWith

func HasNextWith(preds ...predicate.BusinessUnit) predicate.BusinessUnit

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

func HasOrganizations

func HasOrganizations() predicate.BusinessUnit

HasOrganizations applies the HasEdge predicate on the "organizations" edge.

func HasOrganizationsWith

func HasOrganizationsWith(preds ...predicate.Organization) predicate.BusinessUnit

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

func HasPrev

func HasPrev() predicate.BusinessUnit

HasPrev applies the HasEdge predicate on the "prev" edge.

func HasPrevWith

func HasPrevWith(preds ...predicate.BusinessUnit) predicate.BusinessUnit

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.BusinessUnit

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.BusinessUnit

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.BusinessUnit

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LegalName

func LegalName(v string) predicate.BusinessUnit

LegalName applies equality check predicate on the "legal_name" field. It's identical to LegalNameEQ.

func LegalNameContains

func LegalNameContains(v string) predicate.BusinessUnit

LegalNameContains applies the Contains predicate on the "legal_name" field.

func LegalNameContainsFold

func LegalNameContainsFold(v string) predicate.BusinessUnit

LegalNameContainsFold applies the ContainsFold predicate on the "legal_name" field.

func LegalNameEQ

func LegalNameEQ(v string) predicate.BusinessUnit

LegalNameEQ applies the EQ predicate on the "legal_name" field.

func LegalNameEqualFold

func LegalNameEqualFold(v string) predicate.BusinessUnit

LegalNameEqualFold applies the EqualFold predicate on the "legal_name" field.

func LegalNameGT

func LegalNameGT(v string) predicate.BusinessUnit

LegalNameGT applies the GT predicate on the "legal_name" field.

func LegalNameGTE

func LegalNameGTE(v string) predicate.BusinessUnit

LegalNameGTE applies the GTE predicate on the "legal_name" field.

func LegalNameHasPrefix

func LegalNameHasPrefix(v string) predicate.BusinessUnit

LegalNameHasPrefix applies the HasPrefix predicate on the "legal_name" field.

func LegalNameHasSuffix

func LegalNameHasSuffix(v string) predicate.BusinessUnit

LegalNameHasSuffix applies the HasSuffix predicate on the "legal_name" field.

func LegalNameIn

func LegalNameIn(vs ...string) predicate.BusinessUnit

LegalNameIn applies the In predicate on the "legal_name" field.

func LegalNameIsNil

func LegalNameIsNil() predicate.BusinessUnit

LegalNameIsNil applies the IsNil predicate on the "legal_name" field.

func LegalNameLT

func LegalNameLT(v string) predicate.BusinessUnit

LegalNameLT applies the LT predicate on the "legal_name" field.

func LegalNameLTE

func LegalNameLTE(v string) predicate.BusinessUnit

LegalNameLTE applies the LTE predicate on the "legal_name" field.

func LegalNameNEQ

func LegalNameNEQ(v string) predicate.BusinessUnit

LegalNameNEQ applies the NEQ predicate on the "legal_name" field.

func LegalNameNotIn

func LegalNameNotIn(vs ...string) predicate.BusinessUnit

LegalNameNotIn applies the NotIn predicate on the "legal_name" field.

func LegalNameNotNil

func LegalNameNotNil() predicate.BusinessUnit

LegalNameNotNil applies the NotNil predicate on the "legal_name" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.BusinessUnit

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.BusinessUnit

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.BusinessUnit

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.BusinessUnit

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.BusinessUnit

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.BusinessUnit

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.BusinessUnit

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.BusinessUnit

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.BusinessUnit

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.BusinessUnit

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.BusinessUnit

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.BusinessUnit

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.BusinessUnit

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.BusinessUnit) predicate.BusinessUnit

Or groups predicates with the OR operator between them.

func PaidUntil

func PaidUntil(v time.Time) predicate.BusinessUnit

PaidUntil applies equality check predicate on the "paid_until" field. It's identical to PaidUntilEQ.

func PaidUntilEQ

func PaidUntilEQ(v time.Time) predicate.BusinessUnit

PaidUntilEQ applies the EQ predicate on the "paid_until" field.

func PaidUntilGT

func PaidUntilGT(v time.Time) predicate.BusinessUnit

PaidUntilGT applies the GT predicate on the "paid_until" field.

func PaidUntilGTE

func PaidUntilGTE(v time.Time) predicate.BusinessUnit

PaidUntilGTE applies the GTE predicate on the "paid_until" field.

func PaidUntilIn

func PaidUntilIn(vs ...time.Time) predicate.BusinessUnit

PaidUntilIn applies the In predicate on the "paid_until" field.

func PaidUntilIsNil

func PaidUntilIsNil() predicate.BusinessUnit

PaidUntilIsNil applies the IsNil predicate on the "paid_until" field.

func PaidUntilLT

func PaidUntilLT(v time.Time) predicate.BusinessUnit

PaidUntilLT applies the LT predicate on the "paid_until" field.

func PaidUntilLTE

func PaidUntilLTE(v time.Time) predicate.BusinessUnit

PaidUntilLTE applies the LTE predicate on the "paid_until" field.

func PaidUntilNEQ

func PaidUntilNEQ(v time.Time) predicate.BusinessUnit

PaidUntilNEQ applies the NEQ predicate on the "paid_until" field.

func PaidUntilNotIn

func PaidUntilNotIn(vs ...time.Time) predicate.BusinessUnit

PaidUntilNotIn applies the NotIn predicate on the "paid_until" field.

func PaidUntilNotNil

func PaidUntilNotNil() predicate.BusinessUnit

PaidUntilNotNil applies the NotNil predicate on the "paid_until" field.

func ParentID

func ParentID(v uuid.UUID) predicate.BusinessUnit

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v uuid.UUID) predicate.BusinessUnit

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...uuid.UUID) predicate.BusinessUnit

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDIsNil

func ParentIDIsNil() predicate.BusinessUnit

ParentIDIsNil applies the IsNil predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v uuid.UUID) predicate.BusinessUnit

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...uuid.UUID) predicate.BusinessUnit

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func ParentIDNotNil

func ParentIDNotNil() predicate.BusinessUnit

ParentIDNotNil applies the NotNil predicate on the "parent_id" field.

func PhoneNumber

func PhoneNumber(v string) predicate.BusinessUnit

PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.

func PhoneNumberContains

func PhoneNumberContains(v string) predicate.BusinessUnit

PhoneNumberContains applies the Contains predicate on the "phone_number" field.

func PhoneNumberContainsFold

func PhoneNumberContainsFold(v string) predicate.BusinessUnit

PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.

func PhoneNumberEQ

func PhoneNumberEQ(v string) predicate.BusinessUnit

PhoneNumberEQ applies the EQ predicate on the "phone_number" field.

func PhoneNumberEqualFold

func PhoneNumberEqualFold(v string) predicate.BusinessUnit

PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.

func PhoneNumberGT

func PhoneNumberGT(v string) predicate.BusinessUnit

PhoneNumberGT applies the GT predicate on the "phone_number" field.

func PhoneNumberGTE

func PhoneNumberGTE(v string) predicate.BusinessUnit

PhoneNumberGTE applies the GTE predicate on the "phone_number" field.

func PhoneNumberHasPrefix

func PhoneNumberHasPrefix(v string) predicate.BusinessUnit

PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.

func PhoneNumberHasSuffix

func PhoneNumberHasSuffix(v string) predicate.BusinessUnit

PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.

func PhoneNumberIn

func PhoneNumberIn(vs ...string) predicate.BusinessUnit

PhoneNumberIn applies the In predicate on the "phone_number" field.

func PhoneNumberLT

func PhoneNumberLT(v string) predicate.BusinessUnit

PhoneNumberLT applies the LT predicate on the "phone_number" field.

func PhoneNumberLTE

func PhoneNumberLTE(v string) predicate.BusinessUnit

PhoneNumberLTE applies the LTE predicate on the "phone_number" field.

func PhoneNumberNEQ

func PhoneNumberNEQ(v string) predicate.BusinessUnit

PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.

func PhoneNumberNotIn

func PhoneNumberNotIn(vs ...string) predicate.BusinessUnit

PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.

func PostalCode

func PostalCode(v string) predicate.BusinessUnit

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

func PostalCodeContains

func PostalCodeContains(v string) predicate.BusinessUnit

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

func PostalCodeContainsFold

func PostalCodeContainsFold(v string) predicate.BusinessUnit

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

func PostalCodeEQ

func PostalCodeEQ(v string) predicate.BusinessUnit

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

func PostalCodeEqualFold

func PostalCodeEqualFold(v string) predicate.BusinessUnit

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

func PostalCodeGT

func PostalCodeGT(v string) predicate.BusinessUnit

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

func PostalCodeGTE

func PostalCodeGTE(v string) predicate.BusinessUnit

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

func PostalCodeHasPrefix

func PostalCodeHasPrefix(v string) predicate.BusinessUnit

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

func PostalCodeHasSuffix

func PostalCodeHasSuffix(v string) predicate.BusinessUnit

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

func PostalCodeIn

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

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

func PostalCodeIsNil

func PostalCodeIsNil() predicate.BusinessUnit

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

func PostalCodeLT

func PostalCodeLT(v string) predicate.BusinessUnit

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

func PostalCodeLTE

func PostalCodeLTE(v string) predicate.BusinessUnit

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

func PostalCodeNEQ

func PostalCodeNEQ(v string) predicate.BusinessUnit

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

func PostalCodeNotIn

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

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

func PostalCodeNotNil

func PostalCodeNotNil() predicate.BusinessUnit

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

func SettingsIsNil

func SettingsIsNil() predicate.BusinessUnit

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.BusinessUnit

SettingsNotNil applies the NotNil predicate on the "settings" field.

func State

func State(v string) predicate.BusinessUnit

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateContains

func StateContains(v string) predicate.BusinessUnit

StateContains applies the Contains predicate on the "state" field.

func StateContainsFold

func StateContainsFold(v string) predicate.BusinessUnit

StateContainsFold applies the ContainsFold predicate on the "state" field.

func StateEQ

func StateEQ(v string) predicate.BusinessUnit

StateEQ applies the EQ predicate on the "state" field.

func StateEqualFold

func StateEqualFold(v string) predicate.BusinessUnit

StateEqualFold applies the EqualFold predicate on the "state" field.

func StateGT

func StateGT(v string) predicate.BusinessUnit

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v string) predicate.BusinessUnit

StateGTE applies the GTE predicate on the "state" field.

func StateHasPrefix

func StateHasPrefix(v string) predicate.BusinessUnit

StateHasPrefix applies the HasPrefix predicate on the "state" field.

func StateHasSuffix

func StateHasSuffix(v string) predicate.BusinessUnit

StateHasSuffix applies the HasSuffix predicate on the "state" field.

func StateIn

func StateIn(vs ...string) predicate.BusinessUnit

StateIn applies the In predicate on the "state" field.

func StateIsNil

func StateIsNil() predicate.BusinessUnit

StateIsNil applies the IsNil predicate on the "state" field.

func StateLT

func StateLT(v string) predicate.BusinessUnit

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v string) predicate.BusinessUnit

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v string) predicate.BusinessUnit

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...string) predicate.BusinessUnit

StateNotIn applies the NotIn predicate on the "state" field.

func StateNotNil

func StateNotNil() predicate.BusinessUnit

StateNotNil applies the NotNil predicate on the "state" field.

func StatusEQ

func StatusEQ(v Status) predicate.BusinessUnit

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

func StatusIn

func StatusIn(vs ...Status) predicate.BusinessUnit

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

func StatusNEQ

func StatusNEQ(v Status) predicate.BusinessUnit

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

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.BusinessUnit

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

func StatusValidator

func StatusValidator(s Status) error

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

func SubscriptionPlan

func SubscriptionPlan(v string) predicate.BusinessUnit

SubscriptionPlan applies equality check predicate on the "subscription_plan" field. It's identical to SubscriptionPlanEQ.

func SubscriptionPlanContains

func SubscriptionPlanContains(v string) predicate.BusinessUnit

SubscriptionPlanContains applies the Contains predicate on the "subscription_plan" field.

func SubscriptionPlanContainsFold

func SubscriptionPlanContainsFold(v string) predicate.BusinessUnit

SubscriptionPlanContainsFold applies the ContainsFold predicate on the "subscription_plan" field.

func SubscriptionPlanEQ

func SubscriptionPlanEQ(v string) predicate.BusinessUnit

SubscriptionPlanEQ applies the EQ predicate on the "subscription_plan" field.

func SubscriptionPlanEqualFold

func SubscriptionPlanEqualFold(v string) predicate.BusinessUnit

SubscriptionPlanEqualFold applies the EqualFold predicate on the "subscription_plan" field.

func SubscriptionPlanGT

func SubscriptionPlanGT(v string) predicate.BusinessUnit

SubscriptionPlanGT applies the GT predicate on the "subscription_plan" field.

func SubscriptionPlanGTE

func SubscriptionPlanGTE(v string) predicate.BusinessUnit

SubscriptionPlanGTE applies the GTE predicate on the "subscription_plan" field.

func SubscriptionPlanHasPrefix

func SubscriptionPlanHasPrefix(v string) predicate.BusinessUnit

SubscriptionPlanHasPrefix applies the HasPrefix predicate on the "subscription_plan" field.

func SubscriptionPlanHasSuffix

func SubscriptionPlanHasSuffix(v string) predicate.BusinessUnit

SubscriptionPlanHasSuffix applies the HasSuffix predicate on the "subscription_plan" field.

func SubscriptionPlanIn

func SubscriptionPlanIn(vs ...string) predicate.BusinessUnit

SubscriptionPlanIn applies the In predicate on the "subscription_plan" field.

func SubscriptionPlanIsNil

func SubscriptionPlanIsNil() predicate.BusinessUnit

SubscriptionPlanIsNil applies the IsNil predicate on the "subscription_plan" field.

func SubscriptionPlanLT

func SubscriptionPlanLT(v string) predicate.BusinessUnit

SubscriptionPlanLT applies the LT predicate on the "subscription_plan" field.

func SubscriptionPlanLTE

func SubscriptionPlanLTE(v string) predicate.BusinessUnit

SubscriptionPlanLTE applies the LTE predicate on the "subscription_plan" field.

func SubscriptionPlanNEQ

func SubscriptionPlanNEQ(v string) predicate.BusinessUnit

SubscriptionPlanNEQ applies the NEQ predicate on the "subscription_plan" field.

func SubscriptionPlanNotIn

func SubscriptionPlanNotIn(vs ...string) predicate.BusinessUnit

SubscriptionPlanNotIn applies the NotIn predicate on the "subscription_plan" field.

func SubscriptionPlanNotNil

func SubscriptionPlanNotNil() predicate.BusinessUnit

SubscriptionPlanNotNil applies the NotNil predicate on the "subscription_plan" field.

func TaxID

func TaxID(v string) predicate.BusinessUnit

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

func TaxIDContains

func TaxIDContains(v string) predicate.BusinessUnit

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

func TaxIDContainsFold

func TaxIDContainsFold(v string) predicate.BusinessUnit

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

func TaxIDEQ

func TaxIDEQ(v string) predicate.BusinessUnit

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

func TaxIDEqualFold

func TaxIDEqualFold(v string) predicate.BusinessUnit

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

func TaxIDGT

func TaxIDGT(v string) predicate.BusinessUnit

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

func TaxIDGTE

func TaxIDGTE(v string) predicate.BusinessUnit

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

func TaxIDHasPrefix

func TaxIDHasPrefix(v string) predicate.BusinessUnit

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

func TaxIDHasSuffix

func TaxIDHasSuffix(v string) predicate.BusinessUnit

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

func TaxIDIn

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

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

func TaxIDIsNil

func TaxIDIsNil() predicate.BusinessUnit

TaxIDIsNil applies the IsNil predicate on the "tax_id" field.

func TaxIDLT

func TaxIDLT(v string) predicate.BusinessUnit

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

func TaxIDLTE

func TaxIDLTE(v string) predicate.BusinessUnit

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

func TaxIDNEQ

func TaxIDNEQ(v string) predicate.BusinessUnit

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

func TaxIDNotIn

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

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

func TaxIDNotNil

func TaxIDNotNil() predicate.BusinessUnit

TaxIDNotNil applies the NotNil predicate on the "tax_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BusinessUnit

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BusinessUnit

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BusinessUnit

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BusinessUnit

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BusinessUnit

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BusinessUnit

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BusinessUnit

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

func UpdatedAtNotIn

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

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 OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the BusinessUnit queries.

func ByAddress

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

ByAddress orders the results by the address field.

func ByCity

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

ByCity orders the results by the city field.

func ByContactEmail

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

ByContactEmail orders the results by the contact_email field.

func ByContactName

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

ByContactName orders the results by the contact_name 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 ByDescription

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

ByDescription orders the results by the description field.

func ByEntityKey

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

ByEntityKey orders the results by the entity_key field.

func ByFreeTrial

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

ByFreeTrial orders the results by the free_trial field.

func ByID

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

ByID orders the results by the id field.

func ByLegalName

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

ByLegalName orders the results by the legal_name field.

func ByName

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

ByName orders the results by the name field.

func ByNextField

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

ByNextField orders the results by next field.

func ByOrganizations

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

ByOrganizations orders the results by organizations terms.

func ByOrganizationsCount

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

ByOrganizationsCount orders the results by organizations count.

func ByPaidUntil

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

ByPaidUntil orders the results by the paid_until field.

func ByParentID

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

ByParentID orders the results by the parent_id field.

func ByPhoneNumber

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

ByPhoneNumber orders the results by the phone_number field.

func ByPostalCode

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

ByPostalCode orders the results by the postal_code field.

func ByPrevField

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

ByPrevField orders the results by prev field.

func ByState

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

ByState orders the results by the state field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubscriptionPlan

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

BySubscriptionPlan orders the results by the subscription_plan 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.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusA Status = "A"
	StatusI Status = "I"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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