user

package
v0.0.0-...-d1147f9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 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"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldAdmin holds the string denoting the admin field in the database.
	FieldAdmin = "admin"
	// FieldBanned holds the string denoting the banned field in the database.
	FieldBanned = "banned"
	// FieldBanReason holds the string denoting the ban_reason field in the database.
	FieldBanReason = "ban_reason"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldDiscriminator holds the string denoting the discriminator field in the database.
	FieldDiscriminator = "discriminator"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldAvatarHash holds the string denoting the avatar_hash field in the database.
	FieldAvatarHash = "avatar_hash"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldLocale holds the string denoting the locale field in the database.
	FieldLocale = "locale"
	// FieldBot holds the string denoting the bot field in the database.
	FieldBot = "bot"
	// FieldSystem holds the string denoting the system field in the database.
	FieldSystem = "system"
	// FieldMfaEnabled holds the string denoting the mfa_enabled field in the database.
	FieldMfaEnabled = "mfa_enabled"
	// FieldVerified holds the string denoting the verified field in the database.
	FieldVerified = "verified"
	// FieldFlags holds the string denoting the flags field in the database.
	FieldFlags = "flags"
	// FieldPremiumType holds the string denoting the premium_type field in the database.
	FieldPremiumType = "premium_type"
	// FieldPublicFlags holds the string denoting the public_flags field in the database.
	FieldPublicFlags = "public_flags"
	// EdgeUserGuilds holds the string denoting the user_guilds edge name in mutations.
	EdgeUserGuilds = "user_guilds"
	// EdgeBannedUsers holds the string denoting the banned_users edge name in mutations.
	EdgeBannedUsers = "banned_users"
	// EdgeBannedBy holds the string denoting the banned_by edge name in mutations.
	EdgeBannedBy = "banned_by"
	// Table holds the table name of the user in the database.
	Table = "users"
	// UserGuildsTable is the table that holds the user_guilds relation/edge. The primary key declared below.
	UserGuildsTable = "user_user_guilds"
	// UserGuildsInverseTable is the table name for the Guild entity.
	// It exists in this package in order to avoid circular dependency with the "guild" package.
	UserGuildsInverseTable = "guilds"
	// BannedUsersTable is the table that holds the banned_users relation/edge.
	BannedUsersTable = "users"
	// BannedUsersColumn is the table column denoting the banned_users relation/edge.
	BannedUsersColumn = "user_banned_users"
	// BannedByTable is the table that holds the banned_by relation/edge.
	BannedByTable = "users"
	// BannedByColumn is the table column denoting the banned_by relation/edge.
	BannedByColumn = "user_banned_users"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// DiscriminatorValidator is a validator for the "discriminator" field. It is called by the builders before save.
	DiscriminatorValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// AvatarHashValidator is a validator for the "avatar_hash" field. It is called by the builders before save.
	AvatarHashValidator func(string) error
	// AvatarURLValidator is a validator for the "avatar_url" field. It is called by the builders before save.
	AvatarURLValidator func(string) error
	// LocaleValidator is a validator for the "locale" field. It is called by the builders before save.
	LocaleValidator func(string) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/lrstanley/spectrograph/internal/database/ent/runtime"

Columns holds all SQL columns for user fields.

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

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

View Source
var (
	// UserGuildsPrimaryKey and UserGuildsColumn2 are the table columns denoting the
	// primary key for the user_guilds relation (M2M).
	UserGuildsPrimaryKey = []string{"user_id", "guild_id"}
)

Functions

func Admin

func Admin(v bool) predicate.User

Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.

func AdminEQ

func AdminEQ(v bool) predicate.User

AdminEQ applies the EQ predicate on the "admin" field.

func AdminIsNil

func AdminIsNil() predicate.User

AdminIsNil applies the IsNil predicate on the "admin" field.

func AdminNEQ

func AdminNEQ(v bool) predicate.User

AdminNEQ applies the NEQ predicate on the "admin" field.

func AdminNotNil

func AdminNotNil() predicate.User

AdminNotNil applies the NotNil predicate on the "admin" field.

func And

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

And groups predicates with the AND operator between them.

func AvatarHash

func AvatarHash(v string) predicate.User

AvatarHash applies equality check predicate on the "avatar_hash" field. It's identical to AvatarHashEQ.

func AvatarHashContains

func AvatarHashContains(v string) predicate.User

AvatarHashContains applies the Contains predicate on the "avatar_hash" field.

func AvatarHashContainsFold

func AvatarHashContainsFold(v string) predicate.User

AvatarHashContainsFold applies the ContainsFold predicate on the "avatar_hash" field.

func AvatarHashEQ

func AvatarHashEQ(v string) predicate.User

AvatarHashEQ applies the EQ predicate on the "avatar_hash" field.

func AvatarHashEqualFold

func AvatarHashEqualFold(v string) predicate.User

AvatarHashEqualFold applies the EqualFold predicate on the "avatar_hash" field.

func AvatarHashGT

func AvatarHashGT(v string) predicate.User

AvatarHashGT applies the GT predicate on the "avatar_hash" field.

func AvatarHashGTE

func AvatarHashGTE(v string) predicate.User

AvatarHashGTE applies the GTE predicate on the "avatar_hash" field.

func AvatarHashHasPrefix

func AvatarHashHasPrefix(v string) predicate.User

AvatarHashHasPrefix applies the HasPrefix predicate on the "avatar_hash" field.

func AvatarHashHasSuffix

func AvatarHashHasSuffix(v string) predicate.User

AvatarHashHasSuffix applies the HasSuffix predicate on the "avatar_hash" field.

func AvatarHashIn

func AvatarHashIn(vs ...string) predicate.User

AvatarHashIn applies the In predicate on the "avatar_hash" field.

func AvatarHashIsNil

func AvatarHashIsNil() predicate.User

AvatarHashIsNil applies the IsNil predicate on the "avatar_hash" field.

func AvatarHashLT

func AvatarHashLT(v string) predicate.User

AvatarHashLT applies the LT predicate on the "avatar_hash" field.

func AvatarHashLTE

func AvatarHashLTE(v string) predicate.User

AvatarHashLTE applies the LTE predicate on the "avatar_hash" field.

func AvatarHashNEQ

func AvatarHashNEQ(v string) predicate.User

AvatarHashNEQ applies the NEQ predicate on the "avatar_hash" field.

func AvatarHashNotIn

func AvatarHashNotIn(vs ...string) predicate.User

AvatarHashNotIn applies the NotIn predicate on the "avatar_hash" field.

func AvatarHashNotNil

func AvatarHashNotNil() predicate.User

AvatarHashNotNil applies the NotNil predicate on the "avatar_hash" field.

func AvatarURL

func AvatarURL(v string) predicate.User

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.User

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.User

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.User

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.User

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.User

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.User

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.User

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.User

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

func AvatarURLIn(vs ...string) predicate.User

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.User

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.User

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.User

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

func AvatarURLNotIn(vs ...string) predicate.User

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func BanReason

func BanReason(v string) predicate.User

BanReason applies equality check predicate on the "ban_reason" field. It's identical to BanReasonEQ.

func BanReasonContains

func BanReasonContains(v string) predicate.User

BanReasonContains applies the Contains predicate on the "ban_reason" field.

func BanReasonContainsFold

func BanReasonContainsFold(v string) predicate.User

BanReasonContainsFold applies the ContainsFold predicate on the "ban_reason" field.

func BanReasonEQ

func BanReasonEQ(v string) predicate.User

BanReasonEQ applies the EQ predicate on the "ban_reason" field.

func BanReasonEqualFold

func BanReasonEqualFold(v string) predicate.User

BanReasonEqualFold applies the EqualFold predicate on the "ban_reason" field.

func BanReasonGT

func BanReasonGT(v string) predicate.User

BanReasonGT applies the GT predicate on the "ban_reason" field.

func BanReasonGTE

func BanReasonGTE(v string) predicate.User

BanReasonGTE applies the GTE predicate on the "ban_reason" field.

func BanReasonHasPrefix

func BanReasonHasPrefix(v string) predicate.User

BanReasonHasPrefix applies the HasPrefix predicate on the "ban_reason" field.

func BanReasonHasSuffix

func BanReasonHasSuffix(v string) predicate.User

BanReasonHasSuffix applies the HasSuffix predicate on the "ban_reason" field.

func BanReasonIn

func BanReasonIn(vs ...string) predicate.User

BanReasonIn applies the In predicate on the "ban_reason" field.

func BanReasonIsNil

func BanReasonIsNil() predicate.User

BanReasonIsNil applies the IsNil predicate on the "ban_reason" field.

func BanReasonLT

func BanReasonLT(v string) predicate.User

BanReasonLT applies the LT predicate on the "ban_reason" field.

func BanReasonLTE

func BanReasonLTE(v string) predicate.User

BanReasonLTE applies the LTE predicate on the "ban_reason" field.

func BanReasonNEQ

func BanReasonNEQ(v string) predicate.User

BanReasonNEQ applies the NEQ predicate on the "ban_reason" field.

func BanReasonNotIn

func BanReasonNotIn(vs ...string) predicate.User

BanReasonNotIn applies the NotIn predicate on the "ban_reason" field.

func BanReasonNotNil

func BanReasonNotNil() predicate.User

BanReasonNotNil applies the NotNil predicate on the "ban_reason" field.

func Banned

func Banned(v bool) predicate.User

Banned applies equality check predicate on the "banned" field. It's identical to BannedEQ.

func BannedEQ

func BannedEQ(v bool) predicate.User

BannedEQ applies the EQ predicate on the "banned" field.

func BannedIsNil

func BannedIsNil() predicate.User

BannedIsNil applies the IsNil predicate on the "banned" field.

func BannedNEQ

func BannedNEQ(v bool) predicate.User

BannedNEQ applies the NEQ predicate on the "banned" field.

func BannedNotNil

func BannedNotNil() predicate.User

BannedNotNil applies the NotNil predicate on the "banned" field.

func Bot

func Bot(v bool) predicate.User

Bot applies equality check predicate on the "bot" field. It's identical to BotEQ.

func BotEQ

func BotEQ(v bool) predicate.User

BotEQ applies the EQ predicate on the "bot" field.

func BotIsNil

func BotIsNil() predicate.User

BotIsNil applies the IsNil predicate on the "bot" field.

func BotNEQ

func BotNEQ(v bool) predicate.User

BotNEQ applies the NEQ predicate on the "bot" field.

func BotNotNil

func BotNotNil() predicate.User

BotNotNil applies the NotNil predicate on the "bot" field.

func CreateTime

func CreateTime(v time.Time) predicate.User

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.User

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.User

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.User

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.User

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.User

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.User

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.User

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.User

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Discriminator

func Discriminator(v string) predicate.User

Discriminator applies equality check predicate on the "discriminator" field. It's identical to DiscriminatorEQ.

func DiscriminatorContains

func DiscriminatorContains(v string) predicate.User

DiscriminatorContains applies the Contains predicate on the "discriminator" field.

func DiscriminatorContainsFold

func DiscriminatorContainsFold(v string) predicate.User

DiscriminatorContainsFold applies the ContainsFold predicate on the "discriminator" field.

func DiscriminatorEQ

func DiscriminatorEQ(v string) predicate.User

DiscriminatorEQ applies the EQ predicate on the "discriminator" field.

func DiscriminatorEqualFold

func DiscriminatorEqualFold(v string) predicate.User

DiscriminatorEqualFold applies the EqualFold predicate on the "discriminator" field.

func DiscriminatorGT

func DiscriminatorGT(v string) predicate.User

DiscriminatorGT applies the GT predicate on the "discriminator" field.

func DiscriminatorGTE

func DiscriminatorGTE(v string) predicate.User

DiscriminatorGTE applies the GTE predicate on the "discriminator" field.

func DiscriminatorHasPrefix

func DiscriminatorHasPrefix(v string) predicate.User

DiscriminatorHasPrefix applies the HasPrefix predicate on the "discriminator" field.

func DiscriminatorHasSuffix

func DiscriminatorHasSuffix(v string) predicate.User

DiscriminatorHasSuffix applies the HasSuffix predicate on the "discriminator" field.

func DiscriminatorIn

func DiscriminatorIn(vs ...string) predicate.User

DiscriminatorIn applies the In predicate on the "discriminator" field.

func DiscriminatorLT

func DiscriminatorLT(v string) predicate.User

DiscriminatorLT applies the LT predicate on the "discriminator" field.

func DiscriminatorLTE

func DiscriminatorLTE(v string) predicate.User

DiscriminatorLTE applies the LTE predicate on the "discriminator" field.

func DiscriminatorNEQ

func DiscriminatorNEQ(v string) predicate.User

DiscriminatorNEQ applies the NEQ predicate on the "discriminator" field.

func DiscriminatorNotIn

func DiscriminatorNotIn(vs ...string) predicate.User

DiscriminatorNotIn applies the NotIn predicate on the "discriminator" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func Flags

func Flags(v uint64) predicate.User

Flags applies equality check predicate on the "flags" field. It's identical to FlagsEQ.

func FlagsEQ

func FlagsEQ(v uint64) predicate.User

FlagsEQ applies the EQ predicate on the "flags" field.

func FlagsGT

func FlagsGT(v uint64) predicate.User

FlagsGT applies the GT predicate on the "flags" field.

func FlagsGTE

func FlagsGTE(v uint64) predicate.User

FlagsGTE applies the GTE predicate on the "flags" field.

func FlagsIn

func FlagsIn(vs ...uint64) predicate.User

FlagsIn applies the In predicate on the "flags" field.

func FlagsIsNil

func FlagsIsNil() predicate.User

FlagsIsNil applies the IsNil predicate on the "flags" field.

func FlagsLT

func FlagsLT(v uint64) predicate.User

FlagsLT applies the LT predicate on the "flags" field.

func FlagsLTE

func FlagsLTE(v uint64) predicate.User

FlagsLTE applies the LTE predicate on the "flags" field.

func FlagsNEQ

func FlagsNEQ(v uint64) predicate.User

FlagsNEQ applies the NEQ predicate on the "flags" field.

func FlagsNotIn

func FlagsNotIn(vs ...uint64) predicate.User

FlagsNotIn applies the NotIn predicate on the "flags" field.

func FlagsNotNil

func FlagsNotNil() predicate.User

FlagsNotNil applies the NotNil predicate on the "flags" field.

func HasBannedBy

func HasBannedBy() predicate.User

HasBannedBy applies the HasEdge predicate on the "banned_by" edge.

func HasBannedByWith

func HasBannedByWith(preds ...predicate.User) predicate.User

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

func HasBannedUsers

func HasBannedUsers() predicate.User

HasBannedUsers applies the HasEdge predicate on the "banned_users" edge.

func HasBannedUsersWith

func HasBannedUsersWith(preds ...predicate.User) predicate.User

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

func HasUserGuilds

func HasUserGuilds() predicate.User

HasUserGuilds applies the HasEdge predicate on the "user_guilds" edge.

func HasUserGuildsWith

func HasUserGuildsWith(preds ...predicate.Guild) predicate.User

HasUserGuildsWith applies the HasEdge predicate on the "user_guilds" 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 Locale

func Locale(v string) predicate.User

Locale applies equality check predicate on the "locale" field. It's identical to LocaleEQ.

func LocaleContains

func LocaleContains(v string) predicate.User

LocaleContains applies the Contains predicate on the "locale" field.

func LocaleContainsFold

func LocaleContainsFold(v string) predicate.User

LocaleContainsFold applies the ContainsFold predicate on the "locale" field.

func LocaleEQ

func LocaleEQ(v string) predicate.User

LocaleEQ applies the EQ predicate on the "locale" field.

func LocaleEqualFold

func LocaleEqualFold(v string) predicate.User

LocaleEqualFold applies the EqualFold predicate on the "locale" field.

func LocaleGT

func LocaleGT(v string) predicate.User

LocaleGT applies the GT predicate on the "locale" field.

func LocaleGTE

func LocaleGTE(v string) predicate.User

LocaleGTE applies the GTE predicate on the "locale" field.

func LocaleHasPrefix

func LocaleHasPrefix(v string) predicate.User

LocaleHasPrefix applies the HasPrefix predicate on the "locale" field.

func LocaleHasSuffix

func LocaleHasSuffix(v string) predicate.User

LocaleHasSuffix applies the HasSuffix predicate on the "locale" field.

func LocaleIn

func LocaleIn(vs ...string) predicate.User

LocaleIn applies the In predicate on the "locale" field.

func LocaleIsNil

func LocaleIsNil() predicate.User

LocaleIsNil applies the IsNil predicate on the "locale" field.

func LocaleLT

func LocaleLT(v string) predicate.User

LocaleLT applies the LT predicate on the "locale" field.

func LocaleLTE

func LocaleLTE(v string) predicate.User

LocaleLTE applies the LTE predicate on the "locale" field.

func LocaleNEQ

func LocaleNEQ(v string) predicate.User

LocaleNEQ applies the NEQ predicate on the "locale" field.

func LocaleNotIn

func LocaleNotIn(vs ...string) predicate.User

LocaleNotIn applies the NotIn predicate on the "locale" field.

func LocaleNotNil

func LocaleNotNil() predicate.User

LocaleNotNil applies the NotNil predicate on the "locale" field.

func MfaEnabled

func MfaEnabled(v bool) predicate.User

MfaEnabled applies equality check predicate on the "mfa_enabled" field. It's identical to MfaEnabledEQ.

func MfaEnabledEQ

func MfaEnabledEQ(v bool) predicate.User

MfaEnabledEQ applies the EQ predicate on the "mfa_enabled" field.

func MfaEnabledIsNil

func MfaEnabledIsNil() predicate.User

MfaEnabledIsNil applies the IsNil predicate on the "mfa_enabled" field.

func MfaEnabledNEQ

func MfaEnabledNEQ(v bool) predicate.User

MfaEnabledNEQ applies the NEQ predicate on the "mfa_enabled" field.

func MfaEnabledNotNil

func MfaEnabledNotNil() predicate.User

MfaEnabledNotNil applies the NotNil predicate on the "mfa_enabled" 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 PremiumType

func PremiumType(v int) predicate.User

PremiumType applies equality check predicate on the "premium_type" field. It's identical to PremiumTypeEQ.

func PremiumTypeEQ

func PremiumTypeEQ(v int) predicate.User

PremiumTypeEQ applies the EQ predicate on the "premium_type" field.

func PremiumTypeGT

func PremiumTypeGT(v int) predicate.User

PremiumTypeGT applies the GT predicate on the "premium_type" field.

func PremiumTypeGTE

func PremiumTypeGTE(v int) predicate.User

PremiumTypeGTE applies the GTE predicate on the "premium_type" field.

func PremiumTypeIn

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

PremiumTypeIn applies the In predicate on the "premium_type" field.

func PremiumTypeIsNil

func PremiumTypeIsNil() predicate.User

PremiumTypeIsNil applies the IsNil predicate on the "premium_type" field.

func PremiumTypeLT

func PremiumTypeLT(v int) predicate.User

PremiumTypeLT applies the LT predicate on the "premium_type" field.

func PremiumTypeLTE

func PremiumTypeLTE(v int) predicate.User

PremiumTypeLTE applies the LTE predicate on the "premium_type" field.

func PremiumTypeNEQ

func PremiumTypeNEQ(v int) predicate.User

PremiumTypeNEQ applies the NEQ predicate on the "premium_type" field.

func PremiumTypeNotIn

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

PremiumTypeNotIn applies the NotIn predicate on the "premium_type" field.

func PremiumTypeNotNil

func PremiumTypeNotNil() predicate.User

PremiumTypeNotNil applies the NotNil predicate on the "premium_type" field.

func PublicFlags

func PublicFlags(v uint64) predicate.User

PublicFlags applies equality check predicate on the "public_flags" field. It's identical to PublicFlagsEQ.

func PublicFlagsEQ

func PublicFlagsEQ(v uint64) predicate.User

PublicFlagsEQ applies the EQ predicate on the "public_flags" field.

func PublicFlagsGT

func PublicFlagsGT(v uint64) predicate.User

PublicFlagsGT applies the GT predicate on the "public_flags" field.

func PublicFlagsGTE

func PublicFlagsGTE(v uint64) predicate.User

PublicFlagsGTE applies the GTE predicate on the "public_flags" field.

func PublicFlagsIn

func PublicFlagsIn(vs ...uint64) predicate.User

PublicFlagsIn applies the In predicate on the "public_flags" field.

func PublicFlagsIsNil

func PublicFlagsIsNil() predicate.User

PublicFlagsIsNil applies the IsNil predicate on the "public_flags" field.

func PublicFlagsLT

func PublicFlagsLT(v uint64) predicate.User

PublicFlagsLT applies the LT predicate on the "public_flags" field.

func PublicFlagsLTE

func PublicFlagsLTE(v uint64) predicate.User

PublicFlagsLTE applies the LTE predicate on the "public_flags" field.

func PublicFlagsNEQ

func PublicFlagsNEQ(v uint64) predicate.User

PublicFlagsNEQ applies the NEQ predicate on the "public_flags" field.

func PublicFlagsNotIn

func PublicFlagsNotIn(vs ...uint64) predicate.User

PublicFlagsNotIn applies the NotIn predicate on the "public_flags" field.

func PublicFlagsNotNil

func PublicFlagsNotNil() predicate.User

PublicFlagsNotNil applies the NotNil predicate on the "public_flags" field.

func System

func System(v bool) predicate.User

System applies equality check predicate on the "system" field. It's identical to SystemEQ.

func SystemEQ

func SystemEQ(v bool) predicate.User

SystemEQ applies the EQ predicate on the "system" field.

func SystemIsNil

func SystemIsNil() predicate.User

SystemIsNil applies the IsNil predicate on the "system" field.

func SystemNEQ

func SystemNEQ(v bool) predicate.User

SystemNEQ applies the NEQ predicate on the "system" field.

func SystemNotNil

func SystemNotNil() predicate.User

SystemNotNil applies the NotNil predicate on the "system" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.User

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.User

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.User

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.User

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.User

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.User

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.User

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.User

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.User

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserID

func UserID(v string) predicate.User

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

func UserIDContains

func UserIDContains(v string) predicate.User

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.User

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.User

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.User

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.User

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.User

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.User

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.User

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.User

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

func UserIDLT

func UserIDLT(v string) predicate.User

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.User

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.User

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

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.User

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.User

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.User

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Verified

func Verified(v bool) predicate.User

Verified applies equality check predicate on the "verified" field. It's identical to VerifiedEQ.

func VerifiedEQ

func VerifiedEQ(v bool) predicate.User

VerifiedEQ applies the EQ predicate on the "verified" field.

func VerifiedIsNil

func VerifiedIsNil() predicate.User

VerifiedIsNil applies the IsNil predicate on the "verified" field.

func VerifiedNEQ

func VerifiedNEQ(v bool) predicate.User

VerifiedNEQ applies the NEQ predicate on the "verified" field.

func VerifiedNotNil

func VerifiedNotNil() predicate.User

VerifiedNotNil applies the NotNil predicate on the "verified" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAdmin

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

ByAdmin orders the results by the admin field.

func ByAvatarHash

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

ByAvatarHash orders the results by the avatar_hash field.

func ByAvatarURL

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

ByAvatarURL orders the results by the avatar_url field.

func ByBanReason

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

ByBanReason orders the results by the ban_reason field.

func ByBanned

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

ByBanned orders the results by the banned field.

func ByBannedByField

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

ByBannedByField orders the results by banned_by field.

func ByBannedUsers

func ByBannedUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBannedUsers orders the results by banned_users terms.

func ByBannedUsersCount

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

ByBannedUsersCount orders the results by banned_users count.

func ByBot

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

ByBot orders the results by the bot field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByDiscriminator

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

ByDiscriminator orders the results by the discriminator field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByFlags

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

ByFlags orders the results by the flags field.

func ByID

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

ByID orders the results by the id field.

func ByLocale

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

ByLocale orders the results by the locale field.

func ByMfaEnabled

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

ByMfaEnabled orders the results by the mfa_enabled field.

func ByPremiumType

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

ByPremiumType orders the results by the premium_type field.

func ByPublicFlags

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

ByPublicFlags orders the results by the public_flags field.

func BySystem

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

BySystem orders the results by the system field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByUserGuilds

func ByUserGuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUserGuilds orders the results by user_guilds terms.

func ByUserGuildsCount

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

ByUserGuildsCount orders the results by user_guilds count.

func ByUserID

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

ByUserID orders the results by the user_id field.

func ByUsername

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

ByUsername orders the results by the username field.

func ByVerified

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

ByVerified orders the results by the verified field.

Jump to

Keyboard shortcuts

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