user

package
v0.0.0-...-552f0aa Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChatID holds the string denoting the chatid field in the database.
	FieldChatID = "chat_id"
	// FieldIsAdmin holds the string denoting the isadmin field in the database.
	FieldIsAdmin = "is_admin"
	// EdgeChannels holds the string denoting the channels edge name in mutations.
	EdgeChannels = "Channels"
	// Table holds the table name of the user in the database.
	Table = "users"
	// ChannelsTable is the table the holds the Channels relation/edge. The primary key declared below.
	ChannelsTable = "channel_Subscribers"
	// ChannelsInverseTable is the table name for the Channel entity.
	// It exists in this package in order to avoid circular dependency with the "channel" package.
	ChannelsInverseTable = "channels"
)

Variables

View Source
var (
	// ChannelsPrimaryKey and ChannelsColumn2 are the table columns denoting the
	// primary key for the Channels relation (M2M).
	ChannelsPrimaryKey = []string{"channel_id", "user_id"}
)

Columns holds all SQL columns for user fields.

View Source
var (
	// DefaultIsAdmin holds the default value on creation for the "IsAdmin" field.
	DefaultIsAdmin bool
)

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func ChatID

func ChatID(v int) predicate.User

ChatID applies equality check predicate on the "ChatID" field. It's identical to ChatIDEQ.

func ChatIDEQ

func ChatIDEQ(v int) predicate.User

ChatIDEQ applies the EQ predicate on the "ChatID" field.

func ChatIDGT

func ChatIDGT(v int) predicate.User

ChatIDGT applies the GT predicate on the "ChatID" field.

func ChatIDGTE

func ChatIDGTE(v int) predicate.User

ChatIDGTE applies the GTE predicate on the "ChatID" field.

func ChatIDIn

func ChatIDIn(vs ...int) predicate.User

ChatIDIn applies the In predicate on the "ChatID" field.

func ChatIDLT

func ChatIDLT(v int) predicate.User

ChatIDLT applies the LT predicate on the "ChatID" field.

func ChatIDLTE

func ChatIDLTE(v int) predicate.User

ChatIDLTE applies the LTE predicate on the "ChatID" field.

func ChatIDNEQ

func ChatIDNEQ(v int) predicate.User

ChatIDNEQ applies the NEQ predicate on the "ChatID" field.

func ChatIDNotIn

func ChatIDNotIn(vs ...int) predicate.User

ChatIDNotIn applies the NotIn predicate on the "ChatID" field.

func HasChannels

func HasChannels() predicate.User

HasChannels applies the HasEdge predicate on the "Channels" edge.

func HasChannelsWith

func HasChannelsWith(preds ...predicate.Channel) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsAdmin

func IsAdmin(v bool) predicate.User

IsAdmin applies equality check predicate on the "IsAdmin" field. It's identical to IsAdminEQ.

func IsAdminEQ

func IsAdminEQ(v bool) predicate.User

IsAdminEQ applies the EQ predicate on the "IsAdmin" field.

func IsAdminNEQ

func IsAdminNEQ(v bool) predicate.User

IsAdminNEQ applies the NEQ predicate on the "IsAdmin" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

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

This section is empty.

Jump to

Keyboard shortcuts

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