referrerreference

package
v1.135.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the referrerreference type in the database.
	Label = "referrer_reference"
	// FieldReferrerID holds the string denoting the referrer_id field in the database.
	FieldReferrerID = "referrer_id"
	// FieldReferredByID holds the string denoting the referred_by_id field in the database.
	FieldReferredByID = "referred_by_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// EdgeReferrer holds the string denoting the referrer edge name in mutations.
	EdgeReferrer = "referrer"
	// EdgeReferredBy holds the string denoting the referred_by edge name in mutations.
	EdgeReferredBy = "referred_by"
	// ReferrerFieldID holds the string denoting the ID field of the Referrer.
	ReferrerFieldID = "id"
	// Table holds the table name of the referrerreference in the database.
	Table = "referrer_references"
	// ReferrerTable is the table that holds the referrer relation/edge.
	ReferrerTable = "referrer_references"
	// ReferrerInverseTable is the table name for the Referrer entity.
	// It exists in this package in order to avoid circular dependency with the "referrer" package.
	ReferrerInverseTable = "referrers"
	// ReferrerColumn is the table column denoting the referrer relation/edge.
	ReferrerColumn = "referrer_id"
	// ReferredByTable is the table that holds the referred_by relation/edge.
	ReferredByTable = "referrer_references"
	// ReferredByInverseTable is the table name for the Referrer entity.
	// It exists in this package in order to avoid circular dependency with the "referrer" package.
	ReferredByInverseTable = "referrers"
	// ReferredByColumn is the table column denoting the referred_by relation/edge.
	ReferredByColumn = "referred_by_id"
)

Variables

Columns holds all SQL columns for referrerreference fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ReferrerReference

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ReferrerReference

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ReferrerReference

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ReferrerReference

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ReferrerReference

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ReferrerReference

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ReferrerReference

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

func CreatedAtNotIn

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

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

func HasReferredBy

func HasReferredBy() predicate.ReferrerReference

HasReferredBy applies the HasEdge predicate on the "referred_by" edge.

func HasReferredByWith

func HasReferredByWith(preds ...predicate.Referrer) predicate.ReferrerReference

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

func HasReferrer

func HasReferrer() predicate.ReferrerReference

HasReferrer applies the HasEdge predicate on the "referrer" edge.

func HasReferrerWith

func HasReferrerWith(preds ...predicate.Referrer) predicate.ReferrerReference

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.ReferrerReference

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.ReferrerReference

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDGT

func OrganizationIDGT(v uuid.UUID) predicate.ReferrerReference

OrganizationIDGT applies the GT predicate on the "organization_id" field.

func OrganizationIDGTE

func OrganizationIDGTE(v uuid.UUID) predicate.ReferrerReference

OrganizationIDGTE applies the GTE predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.ReferrerReference

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDIsNil

func OrganizationIDIsNil() predicate.ReferrerReference

OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.

func OrganizationIDLT

func OrganizationIDLT(v uuid.UUID) predicate.ReferrerReference

OrganizationIDLT applies the LT predicate on the "organization_id" field.

func OrganizationIDLTE

func OrganizationIDLTE(v uuid.UUID) predicate.ReferrerReference

OrganizationIDLTE applies the LTE predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.ReferrerReference

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.ReferrerReference

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func OrganizationIDNotNil

func OrganizationIDNotNil() predicate.ReferrerReference

OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.

func ReferredByID

func ReferredByID(v uuid.UUID) predicate.ReferrerReference

ReferredByID applies equality check predicate on the "referred_by_id" field. It's identical to ReferredByIDEQ.

func ReferredByIDEQ

func ReferredByIDEQ(v uuid.UUID) predicate.ReferrerReference

ReferredByIDEQ applies the EQ predicate on the "referred_by_id" field.

func ReferredByIDIn

func ReferredByIDIn(vs ...uuid.UUID) predicate.ReferrerReference

ReferredByIDIn applies the In predicate on the "referred_by_id" field.

func ReferredByIDNEQ

func ReferredByIDNEQ(v uuid.UUID) predicate.ReferrerReference

ReferredByIDNEQ applies the NEQ predicate on the "referred_by_id" field.

func ReferredByIDNotIn

func ReferredByIDNotIn(vs ...uuid.UUID) predicate.ReferrerReference

ReferredByIDNotIn applies the NotIn predicate on the "referred_by_id" field.

func ReferrerID

func ReferrerID(v uuid.UUID) predicate.ReferrerReference

ReferrerID applies equality check predicate on the "referrer_id" field. It's identical to ReferrerIDEQ.

func ReferrerIDEQ

func ReferrerIDEQ(v uuid.UUID) predicate.ReferrerReference

ReferrerIDEQ applies the EQ predicate on the "referrer_id" field.

func ReferrerIDIn

func ReferrerIDIn(vs ...uuid.UUID) predicate.ReferrerReference

ReferrerIDIn applies the In predicate on the "referrer_id" field.

func ReferrerIDNEQ

func ReferrerIDNEQ(v uuid.UUID) predicate.ReferrerReference

ReferrerIDNEQ applies the NEQ predicate on the "referrer_id" field.

func ReferrerIDNotIn

func ReferrerIDNotIn(vs ...uuid.UUID) predicate.ReferrerReference

ReferrerIDNotIn applies the NotIn predicate on the "referrer_id" 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 ReferrerReference queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByReferredByField

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

ByReferredByField orders the results by referred_by field.

func ByReferredByID

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

ByReferredByID orders the results by the referred_by_id field.

func ByReferrerField

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

ByReferrerField orders the results by referrer field.

func ByReferrerID

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

ByReferrerID orders the results by the referrer_id field.

Jump to

Keyboard shortcuts

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