wallet

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the wallet type in the database.
	Label = "wallet"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPaper holds the string denoting the paper field in the database.
	FieldPaper = "paper"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeDopes holds the string denoting the dopes edge name in mutations.
	EdgeDopes = "dopes"
	// EdgeItems holds the string denoting the items edge name in mutations.
	EdgeItems = "items"
	// EdgeHustlers holds the string denoting the hustlers edge name in mutations.
	EdgeHustlers = "hustlers"
	// Table holds the table name of the wallet in the database.
	Table = "wallets"
	// DopesTable is the table that holds the dopes relation/edge.
	DopesTable = "dopes"
	// DopesInverseTable is the table name for the Dope entity.
	// It exists in this package in order to avoid circular dependency with the "dope" package.
	DopesInverseTable = "dopes"
	// DopesColumn is the table column denoting the dopes relation/edge.
	DopesColumn = "wallet_dopes"
	// ItemsTable is the table that holds the items relation/edge.
	ItemsTable = "wallet_items"
	// ItemsInverseTable is the table name for the WalletItems entity.
	// It exists in this package in order to avoid circular dependency with the "walletitems" package.
	ItemsInverseTable = "wallet_items"
	// ItemsColumn is the table column denoting the items relation/edge.
	ItemsColumn = "wallet_items"
	// HustlersTable is the table that holds the hustlers relation/edge.
	HustlersTable = "hustlers"
	// HustlersInverseTable is the table name for the Hustler entity.
	// It exists in this package in order to avoid circular dependency with the "hustler" package.
	HustlersInverseTable = "hustlers"
	// HustlersColumn is the table column denoting the hustlers relation/edge.
	HustlersColumn = "wallet_hustlers"
)

Variables

View Source
var (
	// DefaultPaper holds the default value on creation for the "paper" field.
	DefaultPaper func() schema.BigInt
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for wallet fields.

Functions

func And

func And(predicates ...predicate.Wallet) predicate.Wallet

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Wallet

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Wallet

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Wallet

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Wallet

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Wallet

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Wallet

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Wallet

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

func CreatedAtNotIn

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

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

func HasDopes

func HasDopes() predicate.Wallet

HasDopes applies the HasEdge predicate on the "dopes" edge.

func HasDopesWith

func HasDopesWith(preds ...predicate.Dope) predicate.Wallet

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

func HasHustlers

func HasHustlers() predicate.Wallet

HasHustlers applies the HasEdge predicate on the "hustlers" edge.

func HasHustlersWith

func HasHustlersWith(preds ...predicate.Hustler) predicate.Wallet

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

func HasItems

func HasItems() predicate.Wallet

HasItems applies the HasEdge predicate on the "items" edge.

func HasItemsWith

func HasItemsWith(preds ...predicate.WalletItems) predicate.Wallet

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

func ID

func ID(id string) predicate.Wallet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Wallet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Wallet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Wallet

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Wallet

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Wallet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Wallet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Wallet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Wallet

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.Wallet) predicate.Wallet

Or groups predicates with the OR operator between them.

func Paper

func Paper(v schema.BigInt) predicate.Wallet

Paper applies equality check predicate on the "paper" field. It's identical to PaperEQ.

func PaperEQ

func PaperEQ(v schema.BigInt) predicate.Wallet

PaperEQ applies the EQ predicate on the "paper" field.

func PaperGT

func PaperGT(v schema.BigInt) predicate.Wallet

PaperGT applies the GT predicate on the "paper" field.

func PaperGTE

func PaperGTE(v schema.BigInt) predicate.Wallet

PaperGTE applies the GTE predicate on the "paper" field.

func PaperIn

func PaperIn(vs ...schema.BigInt) predicate.Wallet

PaperIn applies the In predicate on the "paper" field.

func PaperLT

func PaperLT(v schema.BigInt) predicate.Wallet

PaperLT applies the LT predicate on the "paper" field.

func PaperLTE

func PaperLTE(v schema.BigInt) predicate.Wallet

PaperLTE applies the LTE predicate on the "paper" field.

func PaperNEQ

func PaperNEQ(v schema.BigInt) predicate.Wallet

PaperNEQ applies the NEQ predicate on the "paper" field.

func PaperNotIn

func PaperNotIn(vs ...schema.BigInt) predicate.Wallet

PaperNotIn applies the NotIn predicate on the "paper" 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