tiplog

package
v0.0.0-...-bfbcaf2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tiplog type in the database.
	Label = "tip_log"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldTippedToDiscordID holds the string denoting the tipped_to_discord_id field in the database.
	FieldTippedToDiscordID = "tipped_to_discord_id"
	// FieldTippedBy holds the string denoting the tipped_by field in the database.
	FieldTippedBy = "tipped_by"
	// FieldTippedTo holds the string denoting the tipped_to field in the database.
	FieldTippedTo = "tipped_to"
	// 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"
	// EdgeTipsReceived holds the string denoting the tips_received edge name in mutations.
	EdgeTipsReceived = "tips_received"
	// EdgeTipsGiven holds the string denoting the tips_given edge name in mutations.
	EdgeTipsGiven = "tips_given"
	// Table holds the table name of the tiplog in the database.
	Table = "tip_log"
	// TipsReceivedTable is the table that holds the tips_received relation/edge.
	TipsReceivedTable = "tip_log"
	// TipsReceivedInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	TipsReceivedInverseTable = "users"
	// TipsReceivedColumn is the table column denoting the tips_received relation/edge.
	TipsReceivedColumn = "tipped_to"
	// TipsGivenTable is the table that holds the tips_given relation/edge.
	TipsGivenTable = "tip_log"
	// TipsGivenInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	TipsGivenInverseTable = "users"
	// TipsGivenColumn is the table column denoting the tips_given relation/edge.
	TipsGivenColumn = "tipped_by"
)

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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for tiplog fields.

Functions

func Amount

func Amount(v int32) predicate.TipLog

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v int32) predicate.TipLog

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v int32) predicate.TipLog

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v int32) predicate.TipLog

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...int32) predicate.TipLog

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v int32) predicate.TipLog

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v int32) predicate.TipLog

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v int32) predicate.TipLog

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...int32) predicate.TipLog

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.TipLog) predicate.TipLog

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.TipLog

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.TipLog

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.TipLog

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.TipLog

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.TipLog

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.TipLog

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.TipLog

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

func CreatedAtNotIn

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

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

func HasTipsGiven

func HasTipsGiven() predicate.TipLog

HasTipsGiven applies the HasEdge predicate on the "tips_given" edge.

func HasTipsGivenWith

func HasTipsGivenWith(preds ...predicate.User) predicate.TipLog

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

func HasTipsReceived

func HasTipsReceived() predicate.TipLog

HasTipsReceived applies the HasEdge predicate on the "tips_received" edge.

func HasTipsReceivedWith

func HasTipsReceivedWith(preds ...predicate.User) predicate.TipLog

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

func ID

func ID(id uuid.UUID) predicate.TipLog

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.TipLog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.TipLog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.TipLog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.TipLog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.TipLog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.TipLog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func TippedBy

func TippedBy(v uuid.UUID) predicate.TipLog

TippedBy applies equality check predicate on the "tipped_by" field. It's identical to TippedByEQ.

func TippedByEQ

func TippedByEQ(v uuid.UUID) predicate.TipLog

TippedByEQ applies the EQ predicate on the "tipped_by" field.

func TippedByIn

func TippedByIn(vs ...uuid.UUID) predicate.TipLog

TippedByIn applies the In predicate on the "tipped_by" field.

func TippedByNEQ

func TippedByNEQ(v uuid.UUID) predicate.TipLog

TippedByNEQ applies the NEQ predicate on the "tipped_by" field.

func TippedByNotIn

func TippedByNotIn(vs ...uuid.UUID) predicate.TipLog

TippedByNotIn applies the NotIn predicate on the "tipped_by" field.

func TippedTo

func TippedTo(v uuid.UUID) predicate.TipLog

TippedTo applies equality check predicate on the "tipped_to" field. It's identical to TippedToEQ.

func TippedToDiscordID

func TippedToDiscordID(v string) predicate.TipLog

TippedToDiscordID applies equality check predicate on the "tipped_to_discord_id" field. It's identical to TippedToDiscordIDEQ.

func TippedToDiscordIDContains

func TippedToDiscordIDContains(v string) predicate.TipLog

TippedToDiscordIDContains applies the Contains predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDContainsFold

func TippedToDiscordIDContainsFold(v string) predicate.TipLog

TippedToDiscordIDContainsFold applies the ContainsFold predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDEQ

func TippedToDiscordIDEQ(v string) predicate.TipLog

TippedToDiscordIDEQ applies the EQ predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDEqualFold

func TippedToDiscordIDEqualFold(v string) predicate.TipLog

TippedToDiscordIDEqualFold applies the EqualFold predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDGT

func TippedToDiscordIDGT(v string) predicate.TipLog

TippedToDiscordIDGT applies the GT predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDGTE

func TippedToDiscordIDGTE(v string) predicate.TipLog

TippedToDiscordIDGTE applies the GTE predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDHasPrefix

func TippedToDiscordIDHasPrefix(v string) predicate.TipLog

TippedToDiscordIDHasPrefix applies the HasPrefix predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDHasSuffix

func TippedToDiscordIDHasSuffix(v string) predicate.TipLog

TippedToDiscordIDHasSuffix applies the HasSuffix predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDIn

func TippedToDiscordIDIn(vs ...string) predicate.TipLog

TippedToDiscordIDIn applies the In predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDLT

func TippedToDiscordIDLT(v string) predicate.TipLog

TippedToDiscordIDLT applies the LT predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDLTE

func TippedToDiscordIDLTE(v string) predicate.TipLog

TippedToDiscordIDLTE applies the LTE predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDNEQ

func TippedToDiscordIDNEQ(v string) predicate.TipLog

TippedToDiscordIDNEQ applies the NEQ predicate on the "tipped_to_discord_id" field.

func TippedToDiscordIDNotIn

func TippedToDiscordIDNotIn(vs ...string) predicate.TipLog

TippedToDiscordIDNotIn applies the NotIn predicate on the "tipped_to_discord_id" field.

func TippedToEQ

func TippedToEQ(v uuid.UUID) predicate.TipLog

TippedToEQ applies the EQ predicate on the "tipped_to" field.

func TippedToIn

func TippedToIn(vs ...uuid.UUID) predicate.TipLog

TippedToIn applies the In predicate on the "tipped_to" field.

func TippedToIsNil

func TippedToIsNil() predicate.TipLog

TippedToIsNil applies the IsNil predicate on the "tipped_to" field.

func TippedToNEQ

func TippedToNEQ(v uuid.UUID) predicate.TipLog

TippedToNEQ applies the NEQ predicate on the "tipped_to" field.

func TippedToNotIn

func TippedToNotIn(vs ...uuid.UUID) predicate.TipLog

TippedToNotIn applies the NotIn predicate on the "tipped_to" field.

func TippedToNotNil

func TippedToNotNil() predicate.TipLog

TippedToNotNil applies the NotNil predicate on the "tipped_to" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.TipLog

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.TipLog

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.TipLog

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.TipLog

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.TipLog

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.TipLog

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.TipLog

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

func UpdatedAtNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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