user

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldSpouseID holds the string denoting the spouse_id field in the database.
	FieldSpouseID = "spouse_id"
	// EdgePets holds the string denoting the pets edge name in mutations.
	EdgePets = "pets"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeSpouse holds the string denoting the spouse edge name in mutations.
	EdgeSpouse = "spouse"
	// EdgeCard holds the string denoting the card edge name in mutations.
	EdgeCard = "card"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeInfo holds the string denoting the info edge name in mutations.
	EdgeInfo = "info"
	// EdgeRentals holds the string denoting the rentals edge name in mutations.
	EdgeRentals = "rentals"
	// Table holds the table name of the user in the database.
	Table = "users"
	// PetsTable is the table that holds the pets relation/edge.
	PetsTable = "pets"
	// PetsInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	PetsInverseTable = "pets"
	// PetsColumn is the table column denoting the pets relation/edge.
	PetsColumn = "owner_id"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "users"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "parent_id"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "users"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "parent_id"
	// SpouseTable is the table that holds the spouse relation/edge.
	SpouseTable = "users"
	// SpouseColumn is the table column denoting the spouse relation/edge.
	SpouseColumn = "spouse_id"
	// CardTable is the table that holds the card relation/edge.
	CardTable = "cards"
	// CardInverseTable is the table name for the Card entity.
	// It exists in this package in order to avoid circular dependency with the "card" package.
	CardInverseTable = "cards"
	// CardColumn is the table column denoting the card relation/edge.
	CardColumn = "owner_id"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "metadata"
	// MetadataInverseTable is the table name for the Metadata entity.
	// It exists in this package in order to avoid circular dependency with the "metadata" package.
	MetadataInverseTable = "metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "id"
	// InfoTable is the table that holds the info relation/edge.
	InfoTable = "infos"
	// InfoInverseTable is the table name for the Info entity.
	// It exists in this package in order to avoid circular dependency with the "info" package.
	InfoInverseTable = "infos"
	// InfoColumn is the table column denoting the info relation/edge.
	InfoColumn = "id"
	// RentalsTable is the table that holds the rentals relation/edge.
	RentalsTable = "rentals"
	// RentalsInverseTable is the table name for the Rental entity.
	// It exists in this package in order to avoid circular dependency with the "rental" package.
	RentalsInverseTable = "rentals"
	// RentalsColumn is the table column denoting the rentals relation/edge.
	RentalsColumn = "user_id"
)

Variables

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func HasCard

func HasCard() predicate.User

HasCard applies the HasEdge predicate on the "card" edge.

func HasCardWith

func HasCardWith(preds ...predicate.Card) predicate.User

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

func HasChildren

func HasChildren() predicate.User

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.User) predicate.User

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

func HasInfo

func HasInfo() predicate.User

HasInfo applies the HasEdge predicate on the "info" edge.

func HasInfoWith

func HasInfoWith(preds ...predicate.Info) predicate.User

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

func HasMetadata

func HasMetadata() predicate.User

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.User

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

func HasParent

func HasParent() predicate.User

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.User) predicate.User

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

func HasPets

func HasPets() predicate.User

HasPets applies the HasEdge predicate on the "pets" edge.

func HasPetsWith

func HasPetsWith(preds ...predicate.Pet) predicate.User

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

func HasRentals added in v0.9.0

func HasRentals() predicate.User

HasRentals applies the HasEdge predicate on the "rentals" edge.

func HasRentalsWith added in v0.9.0

func HasRentalsWith(preds ...predicate.Rental) predicate.User

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

func HasSpouse

func HasSpouse() predicate.User

HasSpouse applies the HasEdge predicate on the "spouse" edge.

func HasSpouseWith

func HasSpouseWith(preds ...predicate.User) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func ParentID

func ParentID(v int) predicate.User

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

func ParentIDEQ

func ParentIDEQ(v int) predicate.User

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

func ParentIDIn

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

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

func ParentIDIsNil

func ParentIDIsNil() predicate.User

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

func ParentIDNEQ

func ParentIDNEQ(v int) predicate.User

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

func ParentIDNotIn

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

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

func ParentIDNotNil

func ParentIDNotNil() predicate.User

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

func SpouseID

func SpouseID(v int) predicate.User

SpouseID applies equality check predicate on the "spouse_id" field. It's identical to SpouseIDEQ.

func SpouseIDEQ

func SpouseIDEQ(v int) predicate.User

SpouseIDEQ applies the EQ predicate on the "spouse_id" field.

func SpouseIDIn

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

SpouseIDIn applies the In predicate on the "spouse_id" field.

func SpouseIDIsNil

func SpouseIDIsNil() predicate.User

SpouseIDIsNil applies the IsNil predicate on the "spouse_id" field.

func SpouseIDNEQ

func SpouseIDNEQ(v int) predicate.User

SpouseIDNEQ applies the NEQ predicate on the "spouse_id" field.

func SpouseIDNotIn

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

SpouseIDNotIn applies the NotIn predicate on the "spouse_id" field.

func SpouseIDNotNil

func SpouseIDNotNil() predicate.User

SpouseIDNotNil applies the NotNil predicate on the "spouse_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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