Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func ChatID(v int) predicate.User
- func ChatIDEQ(v int) predicate.User
- func ChatIDGT(v int) predicate.User
- func ChatIDGTE(v int) predicate.User
- func ChatIDIn(vs ...int) predicate.User
- func ChatIDLT(v int) predicate.User
- func ChatIDLTE(v int) predicate.User
- func ChatIDNEQ(v int) predicate.User
- func ChatIDNotIn(vs ...int) predicate.User
- func HasChannels() predicate.User
- func HasChannelsWith(preds ...predicate.Channel) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func IsAdmin(v bool) predicate.User
- func IsAdminEQ(v bool) predicate.User
- func IsAdminNEQ(v bool) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
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"} )
View Source
var Columns = []string{ FieldID, FieldChatID, FieldIsAdmin, }
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 ChatID ¶
ChatID applies equality check predicate on the "ChatID" field. It's identical to ChatIDEQ.
func ChatIDNotIn ¶
ChatIDNotIn applies the NotIn predicate on the "ChatID" field.
func HasChannels ¶
HasChannels applies the HasEdge predicate on the "Channels" edge.
func HasChannelsWith ¶
HasChannelsWith applies the HasEdge predicate on the "Channels" edge with a given conditions (other predicates).
func IsAdmin ¶
IsAdmin applies equality check predicate on the "IsAdmin" field. It's identical to IsAdminEQ.
func IsAdminNEQ ¶
IsAdminNEQ applies the NEQ predicate on the "IsAdmin" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.