user

package
v0.0.0-...-905e761 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0 Imports: 4 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"
	// FieldFullName holds the string denoting the full_name field in the database.
	FieldFullName = "full_name"
	// FieldAvatarHash holds the string denoting the avatar_hash field in the database.
	FieldAvatarHash = "avatar_hash"
	// FieldLastCheck holds the string denoting the last_check field in the database.
	FieldLastCheck = "last_check"
	// FieldYoutubeID holds the string denoting the youtube_id field in the database.
	FieldYoutubeID = "youtube_id"
	// FieldYoutubeToken holds the string denoting the youtube_token field in the database.
	FieldYoutubeToken = "youtube_token"
	// FieldDiscordToken holds the string denoting the discord_token field in the database.
	FieldDiscordToken = "discord_token"
	// EdgeGuilds holds the string denoting the guilds edge name in mutations.
	EdgeGuilds = "guilds"
	// EdgeGuildsAdmin holds the string denoting the guilds_admin edge name in mutations.
	EdgeGuildsAdmin = "guilds_admin"
	// EdgeMemberships holds the string denoting the memberships edge name in mutations.
	EdgeMemberships = "memberships"
	// Table holds the table name of the user in the database.
	Table = "users"
	// GuildsTable is the table that holds the guilds relation/edge. The primary key declared below.
	GuildsTable = "guild_members"
	// GuildsInverseTable is the table name for the Guild entity.
	// It exists in this package in order to avoid circular dependency with the "guild" package.
	GuildsInverseTable = "guilds"
	// GuildsAdminTable is the table that holds the guilds_admin relation/edge. The primary key declared below.
	GuildsAdminTable = "guild_admins"
	// GuildsAdminInverseTable is the table name for the Guild entity.
	// It exists in this package in order to avoid circular dependency with the "guild" package.
	GuildsAdminInverseTable = "guilds"
	// MembershipsTable is the table that holds the memberships relation/edge.
	MembershipsTable = "user_memberships"
	// MembershipsInverseTable is the table name for the UserMembership entity.
	// It exists in this package in order to avoid circular dependency with the "usermembership" package.
	MembershipsInverseTable = "user_memberships"
	// MembershipsColumn is the table column denoting the memberships relation/edge.
	MembershipsColumn = "user_memberships"
)

Variables

View Source
var (
	// GuildsPrimaryKey and GuildsColumn2 are the table columns denoting the
	// primary key for the guilds relation (M2M).
	GuildsPrimaryKey = []string{"guild_id", "user_id"}
	// GuildsAdminPrimaryKey and GuildsAdminColumn2 are the table columns denoting the
	// primary key for the guilds_admin relation (M2M).
	GuildsAdminPrimaryKey = []string{"guild_id", "user_id"}
)

Columns holds all SQL columns for user fields.

View Source
var (
	// DefaultLastCheck holds the default value on creation for the "last_check" field.
	DefaultLastCheck func() time.Time
)

Functions

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 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 DiscordTokenIsNil

func DiscordTokenIsNil() predicate.User

DiscordTokenIsNil applies the IsNil predicate on the "discord_token" field.

func DiscordTokenNotNil

func DiscordTokenNotNil() predicate.User

DiscordTokenNotNil applies the NotNil predicate on the "discord_token" field.

func FullName

func FullName(v string) predicate.User

FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.

func FullNameContains

func FullNameContains(v string) predicate.User

FullNameContains applies the Contains predicate on the "full_name" field.

func FullNameContainsFold

func FullNameContainsFold(v string) predicate.User

FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.

func FullNameEQ

func FullNameEQ(v string) predicate.User

FullNameEQ applies the EQ predicate on the "full_name" field.

func FullNameEqualFold

func FullNameEqualFold(v string) predicate.User

FullNameEqualFold applies the EqualFold predicate on the "full_name" field.

func FullNameGT

func FullNameGT(v string) predicate.User

FullNameGT applies the GT predicate on the "full_name" field.

func FullNameGTE

func FullNameGTE(v string) predicate.User

FullNameGTE applies the GTE predicate on the "full_name" field.

func FullNameHasPrefix

func FullNameHasPrefix(v string) predicate.User

FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.

func FullNameHasSuffix

func FullNameHasSuffix(v string) predicate.User

FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.

func FullNameIn

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

FullNameIn applies the In predicate on the "full_name" field.

func FullNameLT

func FullNameLT(v string) predicate.User

FullNameLT applies the LT predicate on the "full_name" field.

func FullNameLTE

func FullNameLTE(v string) predicate.User

FullNameLTE applies the LTE predicate on the "full_name" field.

func FullNameNEQ

func FullNameNEQ(v string) predicate.User

FullNameNEQ applies the NEQ predicate on the "full_name" field.

func FullNameNotIn

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

FullNameNotIn applies the NotIn predicate on the "full_name" field.

func HasGuilds

func HasGuilds() predicate.User

HasGuilds applies the HasEdge predicate on the "guilds" edge.

func HasGuildsAdmin

func HasGuildsAdmin() predicate.User

HasGuildsAdmin applies the HasEdge predicate on the "guilds_admin" edge.

func HasGuildsAdminWith

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

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

func HasGuildsWith

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

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

func HasMemberships

func HasMemberships() predicate.User

HasMemberships applies the HasEdge predicate on the "memberships" edge.

func HasMembershipsWith

func HasMembershipsWith(preds ...predicate.UserMembership) predicate.User

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

func ID

func ID(id uint64) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastCheck

func LastCheck(v time.Time) predicate.User

LastCheck applies equality check predicate on the "last_check" field. It's identical to LastCheckEQ.

func LastCheckEQ

func LastCheckEQ(v time.Time) predicate.User

LastCheckEQ applies the EQ predicate on the "last_check" field.

func LastCheckGT

func LastCheckGT(v time.Time) predicate.User

LastCheckGT applies the GT predicate on the "last_check" field.

func LastCheckGTE

func LastCheckGTE(v time.Time) predicate.User

LastCheckGTE applies the GTE predicate on the "last_check" field.

func LastCheckIn

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

LastCheckIn applies the In predicate on the "last_check" field.

func LastCheckLT

func LastCheckLT(v time.Time) predicate.User

LastCheckLT applies the LT predicate on the "last_check" field.

func LastCheckLTE

func LastCheckLTE(v time.Time) predicate.User

LastCheckLTE applies the LTE predicate on the "last_check" field.

func LastCheckNEQ

func LastCheckNEQ(v time.Time) predicate.User

LastCheckNEQ applies the NEQ predicate on the "last_check" field.

func LastCheckNotIn

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

LastCheckNotIn applies the NotIn predicate on the "last_check" 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).

func YoutubeID

func YoutubeID(v string) predicate.User

YoutubeID applies equality check predicate on the "youtube_id" field. It's identical to YoutubeIDEQ.

func YoutubeIDContains

func YoutubeIDContains(v string) predicate.User

YoutubeIDContains applies the Contains predicate on the "youtube_id" field.

func YoutubeIDContainsFold

func YoutubeIDContainsFold(v string) predicate.User

YoutubeIDContainsFold applies the ContainsFold predicate on the "youtube_id" field.

func YoutubeIDEQ

func YoutubeIDEQ(v string) predicate.User

YoutubeIDEQ applies the EQ predicate on the "youtube_id" field.

func YoutubeIDEqualFold

func YoutubeIDEqualFold(v string) predicate.User

YoutubeIDEqualFold applies the EqualFold predicate on the "youtube_id" field.

func YoutubeIDGT

func YoutubeIDGT(v string) predicate.User

YoutubeIDGT applies the GT predicate on the "youtube_id" field.

func YoutubeIDGTE

func YoutubeIDGTE(v string) predicate.User

YoutubeIDGTE applies the GTE predicate on the "youtube_id" field.

func YoutubeIDHasPrefix

func YoutubeIDHasPrefix(v string) predicate.User

YoutubeIDHasPrefix applies the HasPrefix predicate on the "youtube_id" field.

func YoutubeIDHasSuffix

func YoutubeIDHasSuffix(v string) predicate.User

YoutubeIDHasSuffix applies the HasSuffix predicate on the "youtube_id" field.

func YoutubeIDIn

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

YoutubeIDIn applies the In predicate on the "youtube_id" field.

func YoutubeIDIsNil

func YoutubeIDIsNil() predicate.User

YoutubeIDIsNil applies the IsNil predicate on the "youtube_id" field.

func YoutubeIDLT

func YoutubeIDLT(v string) predicate.User

YoutubeIDLT applies the LT predicate on the "youtube_id" field.

func YoutubeIDLTE

func YoutubeIDLTE(v string) predicate.User

YoutubeIDLTE applies the LTE predicate on the "youtube_id" field.

func YoutubeIDNEQ

func YoutubeIDNEQ(v string) predicate.User

YoutubeIDNEQ applies the NEQ predicate on the "youtube_id" field.

func YoutubeIDNotIn

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

YoutubeIDNotIn applies the NotIn predicate on the "youtube_id" field.

func YoutubeIDNotNil

func YoutubeIDNotNil() predicate.User

YoutubeIDNotNil applies the NotNil predicate on the "youtube_id" field.

func YoutubeTokenIsNil

func YoutubeTokenIsNil() predicate.User

YoutubeTokenIsNil applies the IsNil predicate on the "youtube_token" field.

func YoutubeTokenNotNil

func YoutubeTokenNotNil() predicate.User

YoutubeTokenNotNil applies the NotNil predicate on the "youtube_token" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAvatarHash

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

ByAvatarHash orders the results by the avatar_hash field.

func ByFullName

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

ByFullName orders the results by the full_name field.

func ByGuilds

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

ByGuilds orders the results by guilds terms.

func ByGuildsAdmin

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

ByGuildsAdmin orders the results by guilds_admin terms.

func ByGuildsAdminCount

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

ByGuildsAdminCount orders the results by guilds_admin count.

func ByGuildsCount

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

ByGuildsCount orders the results by guilds count.

func ByID

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

ByID orders the results by the id field.

func ByLastCheck

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

ByLastCheck orders the results by the last_check field.

func ByMemberships

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

ByMemberships orders the results by memberships terms.

func ByMembershipsCount

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

ByMembershipsCount orders the results by memberships count.

func ByYoutubeID

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

ByYoutubeID orders the results by the youtube_id field.

Jump to

Keyboard shortcuts

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