investor

package
v0.0.0-...-fa32389 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the investor type in the database.
	Label = "investor"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldJoinedAt holds the string denoting the joined_at field in the database.
	FieldJoinedAt = "joined_at"
	// EdgeBids holds the string denoting the bids edge name in mutations.
	EdgeBids = "bids"
	// EdgeInvoices holds the string denoting the invoices edge name in mutations.
	EdgeInvoices = "invoices"
	// EdgeBalance holds the string denoting the balance edge name in mutations.
	EdgeBalance = "balance"
	// Table holds the table name of the investor in the database.
	Table = "investors"
	// BidsTable is the table that holds the bids relation/edge.
	BidsTable = "bids"
	// BidsInverseTable is the table name for the Bid entity.
	// It exists in this package in order to avoid circular dependency with the "bid" package.
	BidsInverseTable = "bids"
	// BidsColumn is the table column denoting the bids relation/edge.
	BidsColumn = "investor_bids"
	// InvoicesTable is the table that holds the invoices relation/edge. The primary key declared below.
	InvoicesTable = "investor_invoices"
	// InvoicesInverseTable is the table name for the Invoice entity.
	// It exists in this package in order to avoid circular dependency with the "invoice" package.
	InvoicesInverseTable = "invoices"
	// BalanceTable is the table that holds the balance relation/edge.
	BalanceTable = "investors"
	// BalanceInverseTable is the table name for the Balance entity.
	// It exists in this package in order to avoid circular dependency with the "balance" package.
	BalanceInverseTable = "balances"
	// BalanceColumn is the table column denoting the balance relation/edge.
	BalanceColumn = "investor_balance"
)

Variables

View Source
var (
	// DefaultJoinedAt holds the default value on creation for the "joined_at" field.
	DefaultJoinedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for investor fields.

View Source
var ForeignKeys = []string{
	"investor_balance",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "investors" table and are not defined as standalone fields in the schema.

View Source
var (
	// InvoicesPrimaryKey and InvoicesColumn2 are the table columns denoting the
	// primary key for the invoices relation (M2M).
	InvoicesPrimaryKey = []string{"investor_id", "invoice_id"}
)

Functions

func And

func And(predicates ...predicate.Investor) predicate.Investor

And groups predicates with the AND operator between them.

func HasBalance

func HasBalance() predicate.Investor

HasBalance applies the HasEdge predicate on the "balance" edge.

func HasBalanceWith

func HasBalanceWith(preds ...predicate.Balance) predicate.Investor

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

func HasBids

func HasBids() predicate.Investor

HasBids applies the HasEdge predicate on the "bids" edge.

func HasBidsWith

func HasBidsWith(preds ...predicate.Bid) predicate.Investor

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

func HasInvoices

func HasInvoices() predicate.Investor

HasInvoices applies the HasEdge predicate on the "invoices" edge.

func HasInvoicesWith

func HasInvoicesWith(preds ...predicate.Invoice) predicate.Investor

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

func ID

func ID(id uuid.UUID) predicate.Investor

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Investor

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Investor

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Investor

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Investor

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Investor

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Investor

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func JoinedAt

func JoinedAt(v time.Time) predicate.Investor

JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.

func JoinedAtEQ

func JoinedAtEQ(v time.Time) predicate.Investor

JoinedAtEQ applies the EQ predicate on the "joined_at" field.

func JoinedAtGT

func JoinedAtGT(v time.Time) predicate.Investor

JoinedAtGT applies the GT predicate on the "joined_at" field.

func JoinedAtGTE

func JoinedAtGTE(v time.Time) predicate.Investor

JoinedAtGTE applies the GTE predicate on the "joined_at" field.

func JoinedAtIn

func JoinedAtIn(vs ...time.Time) predicate.Investor

JoinedAtIn applies the In predicate on the "joined_at" field.

func JoinedAtLT

func JoinedAtLT(v time.Time) predicate.Investor

JoinedAtLT applies the LT predicate on the "joined_at" field.

func JoinedAtLTE

func JoinedAtLTE(v time.Time) predicate.Investor

JoinedAtLTE applies the LTE predicate on the "joined_at" field.

func JoinedAtNEQ

func JoinedAtNEQ(v time.Time) predicate.Investor

JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.

func JoinedAtNotIn

func JoinedAtNotIn(vs ...time.Time) predicate.Investor

JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.

func Name

func Name(v string) predicate.Investor

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

func NameContains

func NameContains(v string) predicate.Investor

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

func NameContainsFold

func NameContainsFold(v string) predicate.Investor

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

func NameEQ

func NameEQ(v string) predicate.Investor

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

func NameEqualFold

func NameEqualFold(v string) predicate.Investor

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

func NameGT

func NameGT(v string) predicate.Investor

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

func NameGTE

func NameGTE(v string) predicate.Investor

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Investor

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Investor

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Investor

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

func NameLTE

func NameLTE(v string) predicate.Investor

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

func NameNEQ

func NameNEQ(v string) predicate.Investor

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

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 Investor queries.

func ByBalanceField

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

ByBalanceField orders the results by balance field.

func ByBids

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

ByBids orders the results by bids terms.

func ByBidsCount

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

ByBidsCount orders the results by bids count.

func ByID

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

ByID orders the results by the id field.

func ByInvoices

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

ByInvoices orders the results by invoices terms.

func ByInvoicesCount

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

ByInvoicesCount orders the results by invoices count.

func ByJoinedAt

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

ByJoinedAt orders the results by the joined_at field.

func ByName

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

ByName orders the results by the name field.

Jump to

Keyboard shortcuts

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