senderordertoken

package
v0.0.0-...-6269356 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the senderordertoken type in the database.
	Label = "sender_order_token"
	// 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"
	// FieldFeePercent holds the string denoting the fee_percent field in the database.
	FieldFeePercent = "fee_percent"
	// FieldFeeAddress holds the string denoting the fee_address field in the database.
	FieldFeeAddress = "fee_address"
	// FieldRefundAddress holds the string denoting the refund_address field in the database.
	FieldRefundAddress = "refund_address"
	// EdgeSender holds the string denoting the sender edge name in mutations.
	EdgeSender = "sender"
	// EdgeToken holds the string denoting the token edge name in mutations.
	EdgeToken = "token"
	// Table holds the table name of the senderordertoken in the database.
	Table = "sender_order_tokens"
	// SenderTable is the table that holds the sender relation/edge.
	SenderTable = "sender_order_tokens"
	// SenderInverseTable is the table name for the SenderProfile entity.
	// It exists in this package in order to avoid circular dependency with the "senderprofile" package.
	SenderInverseTable = "sender_profiles"
	// SenderColumn is the table column denoting the sender relation/edge.
	SenderColumn = "sender_profile_order_tokens"
	// TokenTable is the table that holds the token relation/edge.
	TokenTable = "sender_order_tokens"
	// TokenInverseTable is the table name for the Token entity.
	// It exists in this package in order to avoid circular dependency with the "token" package.
	TokenInverseTable = "tokens"
	// TokenColumn is the table column denoting the token relation/edge.
	TokenColumn = "token_sender_order_tokens"
)

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
	// FeeAddressValidator is a validator for the "fee_address" field. It is called by the builders before save.
	FeeAddressValidator func(string) error
	// RefundAddressValidator is a validator for the "refund_address" field. It is called by the builders before save.
	RefundAddressValidator func(string) error
)

Columns holds all SQL columns for senderordertoken fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.SenderOrderToken

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SenderOrderToken

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SenderOrderToken

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SenderOrderToken

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SenderOrderToken

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SenderOrderToken

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SenderOrderToken

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

func CreatedAtNotIn

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

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

func FeeAddress

func FeeAddress(v string) predicate.SenderOrderToken

FeeAddress applies equality check predicate on the "fee_address" field. It's identical to FeeAddressEQ.

func FeeAddressContains

func FeeAddressContains(v string) predicate.SenderOrderToken

FeeAddressContains applies the Contains predicate on the "fee_address" field.

func FeeAddressContainsFold

func FeeAddressContainsFold(v string) predicate.SenderOrderToken

FeeAddressContainsFold applies the ContainsFold predicate on the "fee_address" field.

func FeeAddressEQ

func FeeAddressEQ(v string) predicate.SenderOrderToken

FeeAddressEQ applies the EQ predicate on the "fee_address" field.

func FeeAddressEqualFold

func FeeAddressEqualFold(v string) predicate.SenderOrderToken

FeeAddressEqualFold applies the EqualFold predicate on the "fee_address" field.

func FeeAddressGT

func FeeAddressGT(v string) predicate.SenderOrderToken

FeeAddressGT applies the GT predicate on the "fee_address" field.

func FeeAddressGTE

func FeeAddressGTE(v string) predicate.SenderOrderToken

FeeAddressGTE applies the GTE predicate on the "fee_address" field.

func FeeAddressHasPrefix

func FeeAddressHasPrefix(v string) predicate.SenderOrderToken

FeeAddressHasPrefix applies the HasPrefix predicate on the "fee_address" field.

func FeeAddressHasSuffix

func FeeAddressHasSuffix(v string) predicate.SenderOrderToken

FeeAddressHasSuffix applies the HasSuffix predicate on the "fee_address" field.

func FeeAddressIn

func FeeAddressIn(vs ...string) predicate.SenderOrderToken

FeeAddressIn applies the In predicate on the "fee_address" field.

func FeeAddressLT

func FeeAddressLT(v string) predicate.SenderOrderToken

FeeAddressLT applies the LT predicate on the "fee_address" field.

func FeeAddressLTE

func FeeAddressLTE(v string) predicate.SenderOrderToken

FeeAddressLTE applies the LTE predicate on the "fee_address" field.

func FeeAddressNEQ

func FeeAddressNEQ(v string) predicate.SenderOrderToken

FeeAddressNEQ applies the NEQ predicate on the "fee_address" field.

func FeeAddressNotIn

func FeeAddressNotIn(vs ...string) predicate.SenderOrderToken

FeeAddressNotIn applies the NotIn predicate on the "fee_address" field.

func FeePercent

FeePercent applies equality check predicate on the "fee_percent" field. It's identical to FeePercentEQ.

func FeePercentEQ

func FeePercentEQ(v decimal.Decimal) predicate.SenderOrderToken

FeePercentEQ applies the EQ predicate on the "fee_percent" field.

func FeePercentGT

func FeePercentGT(v decimal.Decimal) predicate.SenderOrderToken

FeePercentGT applies the GT predicate on the "fee_percent" field.

func FeePercentGTE

func FeePercentGTE(v decimal.Decimal) predicate.SenderOrderToken

FeePercentGTE applies the GTE predicate on the "fee_percent" field.

func FeePercentIn

func FeePercentIn(vs ...decimal.Decimal) predicate.SenderOrderToken

FeePercentIn applies the In predicate on the "fee_percent" field.

func FeePercentLT

func FeePercentLT(v decimal.Decimal) predicate.SenderOrderToken

FeePercentLT applies the LT predicate on the "fee_percent" field.

func FeePercentLTE

func FeePercentLTE(v decimal.Decimal) predicate.SenderOrderToken

FeePercentLTE applies the LTE predicate on the "fee_percent" field.

func FeePercentNEQ

func FeePercentNEQ(v decimal.Decimal) predicate.SenderOrderToken

FeePercentNEQ applies the NEQ predicate on the "fee_percent" field.

func FeePercentNotIn

func FeePercentNotIn(vs ...decimal.Decimal) predicate.SenderOrderToken

FeePercentNotIn applies the NotIn predicate on the "fee_percent" field.

func HasSender

func HasSender() predicate.SenderOrderToken

HasSender applies the HasEdge predicate on the "sender" edge.

func HasSenderWith

func HasSenderWith(preds ...predicate.SenderProfile) predicate.SenderOrderToken

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

func HasToken

func HasToken() predicate.SenderOrderToken

HasToken applies the HasEdge predicate on the "token" edge.

func HasTokenWith

func HasTokenWith(preds ...predicate.Token) predicate.SenderOrderToken

HasTokenWith applies the HasEdge predicate on the "token" 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 int) predicate.SenderOrderToken

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

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 int) predicate.SenderOrderToken

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SenderOrderToken

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RefundAddress

func RefundAddress(v string) predicate.SenderOrderToken

RefundAddress applies equality check predicate on the "refund_address" field. It's identical to RefundAddressEQ.

func RefundAddressContains

func RefundAddressContains(v string) predicate.SenderOrderToken

RefundAddressContains applies the Contains predicate on the "refund_address" field.

func RefundAddressContainsFold

func RefundAddressContainsFold(v string) predicate.SenderOrderToken

RefundAddressContainsFold applies the ContainsFold predicate on the "refund_address" field.

func RefundAddressEQ

func RefundAddressEQ(v string) predicate.SenderOrderToken

RefundAddressEQ applies the EQ predicate on the "refund_address" field.

func RefundAddressEqualFold

func RefundAddressEqualFold(v string) predicate.SenderOrderToken

RefundAddressEqualFold applies the EqualFold predicate on the "refund_address" field.

func RefundAddressGT

func RefundAddressGT(v string) predicate.SenderOrderToken

RefundAddressGT applies the GT predicate on the "refund_address" field.

func RefundAddressGTE

func RefundAddressGTE(v string) predicate.SenderOrderToken

RefundAddressGTE applies the GTE predicate on the "refund_address" field.

func RefundAddressHasPrefix

func RefundAddressHasPrefix(v string) predicate.SenderOrderToken

RefundAddressHasPrefix applies the HasPrefix predicate on the "refund_address" field.

func RefundAddressHasSuffix

func RefundAddressHasSuffix(v string) predicate.SenderOrderToken

RefundAddressHasSuffix applies the HasSuffix predicate on the "refund_address" field.

func RefundAddressIn

func RefundAddressIn(vs ...string) predicate.SenderOrderToken

RefundAddressIn applies the In predicate on the "refund_address" field.

func RefundAddressLT

func RefundAddressLT(v string) predicate.SenderOrderToken

RefundAddressLT applies the LT predicate on the "refund_address" field.

func RefundAddressLTE

func RefundAddressLTE(v string) predicate.SenderOrderToken

RefundAddressLTE applies the LTE predicate on the "refund_address" field.

func RefundAddressNEQ

func RefundAddressNEQ(v string) predicate.SenderOrderToken

RefundAddressNEQ applies the NEQ predicate on the "refund_address" field.

func RefundAddressNotIn

func RefundAddressNotIn(vs ...string) predicate.SenderOrderToken

RefundAddressNotIn applies the NotIn predicate on the "refund_address" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SenderOrderToken

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

func UpdatedAtNotIn

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

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFeeAddress

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

ByFeeAddress orders the results by the fee_address field.

func ByFeePercent

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

ByFeePercent orders the results by the fee_percent field.

func ByID

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

ByID orders the results by the id field.

func ByRefundAddress

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

ByRefundAddress orders the results by the refund_address field.

func BySenderField

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

BySenderField orders the results by sender field.

func ByTokenField

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

ByTokenField orders the results by token field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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