chatuser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chatuser type in the database.
	Label = "chat_user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldRefresh holds the string denoting the refresh field in the database.
	FieldRefresh = "refresh"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldBotToken holds the string denoting the bot_token field in the database.
	FieldBotToken = "bot_token"
	// 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the chatuser in the database.
	Table = "chat_users"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "chat_users"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

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
)

Columns holds all SQL columns for chatuser fields.

Functions

func And

func And(predicates ...predicate.ChatUser) predicate.ChatUser

And groups predicates with the AND operator between them.

func BotToken

func BotToken(v string) predicate.ChatUser

BotToken applies equality check predicate on the "bot_token" field. It's identical to BotTokenEQ.

func BotTokenContains

func BotTokenContains(v string) predicate.ChatUser

BotTokenContains applies the Contains predicate on the "bot_token" field.

func BotTokenContainsFold

func BotTokenContainsFold(v string) predicate.ChatUser

BotTokenContainsFold applies the ContainsFold predicate on the "bot_token" field.

func BotTokenEQ

func BotTokenEQ(v string) predicate.ChatUser

BotTokenEQ applies the EQ predicate on the "bot_token" field.

func BotTokenEqualFold

func BotTokenEqualFold(v string) predicate.ChatUser

BotTokenEqualFold applies the EqualFold predicate on the "bot_token" field.

func BotTokenGT

func BotTokenGT(v string) predicate.ChatUser

BotTokenGT applies the GT predicate on the "bot_token" field.

func BotTokenGTE

func BotTokenGTE(v string) predicate.ChatUser

BotTokenGTE applies the GTE predicate on the "bot_token" field.

func BotTokenHasPrefix

func BotTokenHasPrefix(v string) predicate.ChatUser

BotTokenHasPrefix applies the HasPrefix predicate on the "bot_token" field.

func BotTokenHasSuffix

func BotTokenHasSuffix(v string) predicate.ChatUser

BotTokenHasSuffix applies the HasSuffix predicate on the "bot_token" field.

func BotTokenIn

func BotTokenIn(vs ...string) predicate.ChatUser

BotTokenIn applies the In predicate on the "bot_token" field.

func BotTokenLT

func BotTokenLT(v string) predicate.ChatUser

BotTokenLT applies the LT predicate on the "bot_token" field.

func BotTokenLTE

func BotTokenLTE(v string) predicate.ChatUser

BotTokenLTE applies the LTE predicate on the "bot_token" field.

func BotTokenNEQ

func BotTokenNEQ(v string) predicate.ChatUser

BotTokenNEQ applies the NEQ predicate on the "bot_token" field.

func BotTokenNotIn

func BotTokenNotIn(vs ...string) predicate.ChatUser

BotTokenNotIn applies the NotIn predicate on the "bot_token" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ChatUser

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ChatUser

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ChatUser

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ChatUser

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ChatUser

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ChatUser

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ChatUser

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

func CreatedAtNotIn

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

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

func Expiry

func Expiry(v time.Time) predicate.ChatUser

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.ChatUser

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.ChatUser

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.ChatUser

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.ChatUser

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.ChatUser

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.ChatUser

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.ChatUser

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.ChatUser

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func HasUser

func HasUser() predicate.ChatUser

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.ChatUser

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

func ID

func ID(id string) predicate.ChatUser

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.ChatUser

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.ChatUser

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.ChatUser

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.ChatUser

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.ChatUser

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.ChatUser

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Refresh

func Refresh(v string) predicate.ChatUser

Refresh applies equality check predicate on the "refresh" field. It's identical to RefreshEQ.

func RefreshContains

func RefreshContains(v string) predicate.ChatUser

RefreshContains applies the Contains predicate on the "refresh" field.

func RefreshContainsFold

func RefreshContainsFold(v string) predicate.ChatUser

RefreshContainsFold applies the ContainsFold predicate on the "refresh" field.

func RefreshEQ

func RefreshEQ(v string) predicate.ChatUser

RefreshEQ applies the EQ predicate on the "refresh" field.

func RefreshEqualFold

func RefreshEqualFold(v string) predicate.ChatUser

RefreshEqualFold applies the EqualFold predicate on the "refresh" field.

func RefreshGT

func RefreshGT(v string) predicate.ChatUser

RefreshGT applies the GT predicate on the "refresh" field.

func RefreshGTE

func RefreshGTE(v string) predicate.ChatUser

RefreshGTE applies the GTE predicate on the "refresh" field.

func RefreshHasPrefix

func RefreshHasPrefix(v string) predicate.ChatUser

RefreshHasPrefix applies the HasPrefix predicate on the "refresh" field.

func RefreshHasSuffix

func RefreshHasSuffix(v string) predicate.ChatUser

RefreshHasSuffix applies the HasSuffix predicate on the "refresh" field.

func RefreshIn

func RefreshIn(vs ...string) predicate.ChatUser

RefreshIn applies the In predicate on the "refresh" field.

func RefreshLT

func RefreshLT(v string) predicate.ChatUser

RefreshLT applies the LT predicate on the "refresh" field.

func RefreshLTE

func RefreshLTE(v string) predicate.ChatUser

RefreshLTE applies the LTE predicate on the "refresh" field.

func RefreshNEQ

func RefreshNEQ(v string) predicate.ChatUser

RefreshNEQ applies the NEQ predicate on the "refresh" field.

func RefreshNotIn

func RefreshNotIn(vs ...string) predicate.ChatUser

RefreshNotIn applies the NotIn predicate on the "refresh" field.

func Token

func Token(v string) predicate.ChatUser

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.ChatUser

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.ChatUser

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.ChatUser

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.ChatUser

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.ChatUser

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.ChatUser

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.ChatUser

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.ChatUser

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.ChatUser

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.ChatUser

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.ChatUser

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.ChatUser

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.ChatUser

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ChatUser

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ChatUser

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ChatUser

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ChatUser

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ChatUser

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ChatUser

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ChatUser

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v int64) predicate.ChatUser

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.ChatUser

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.ChatUser

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.ChatUser

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.ChatUser

UserIDNotIn applies the NotIn predicate on the "user_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