user

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 6 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"
	// FieldFirstName holds the string denoting the first_name field in the database.
	FieldFirstName = "first_name"
	// FieldLastName holds the string denoting the last_name field in the database.
	FieldLastName = "last_name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldPoints holds the string denoting the points field in the database.
	FieldPoints = "points"
	// FieldPointsAwardedCount holds the string denoting the points_awarded_count field in the database.
	FieldPointsAwardedCount = "points_awarded_count"
	// FieldPointsAwardedResetTime holds the string denoting the points_awarded_reset_time field in the database.
	FieldPointsAwardedResetTime = "points_awarded_reset_time"
	// FieldGodMode holds the string denoting the god_mode field in the database.
	FieldGodMode = "god_mode"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// EdgeInstitution holds the string denoting the institution edge name in mutations.
	EdgeInstitution = "institution"
	// EdgeRedemptions holds the string denoting the redemptions edge name in mutations.
	EdgeRedemptions = "redemptions"
	// EdgeForumPosts holds the string denoting the forum_posts edge name in mutations.
	EdgeForumPosts = "forum_posts"
	// EdgePet holds the string denoting the pet edge name in mutations.
	EdgePet = "pet"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeReactedPosts holds the string denoting the reacted_posts edge name in mutations.
	EdgeReactedPosts = "reacted_posts"
	// EdgeVotedDeadlines holds the string denoting the voted_deadlines edge name in mutations.
	EdgeVotedDeadlines = "voted_deadlines"
	// EdgeAuthoredDeadlines holds the string denoting the authored_deadlines edge name in mutations.
	EdgeAuthoredDeadlines = "authored_deadlines"
	// EdgeUserPets holds the string denoting the user_pets edge name in mutations.
	EdgeUserPets = "user_pets"
	// EdgeGroupUsers holds the string denoting the group_users edge name in mutations.
	EdgeGroupUsers = "group_users"
	// EdgeReactions holds the string denoting the reactions edge name in mutations.
	EdgeReactions = "reactions"
	// Table holds the table name of the user in the database.
	Table = "users"
	// InstitutionTable is the table that holds the institution relation/edge.
	InstitutionTable = "users"
	// InstitutionInverseTable is the table name for the Institution entity.
	// It exists in this package in order to avoid circular dependency with the "entinstitution" package.
	InstitutionInverseTable = "institutions"
	// InstitutionColumn is the table column denoting the institution relation/edge.
	InstitutionColumn = "institution_users"
	// RedemptionsTable is the table that holds the redemptions relation/edge.
	RedemptionsTable = "redemptions"
	// RedemptionsInverseTable is the table name for the Redemption entity.
	// It exists in this package in order to avoid circular dependency with the "redemption" package.
	RedemptionsInverseTable = "redemptions"
	// RedemptionsColumn is the table column denoting the redemptions relation/edge.
	RedemptionsColumn = "redemption_user"
	// ForumPostsTable is the table that holds the forum_posts relation/edge.
	ForumPostsTable = "forum_posts"
	// ForumPostsInverseTable is the table name for the ForumPost entity.
	// It exists in this package in order to avoid circular dependency with the "forumpost" package.
	ForumPostsInverseTable = "forum_posts"
	// ForumPostsColumn is the table column denoting the forum_posts relation/edge.
	ForumPostsColumn = "forum_post_author"
	// PetTable is the table that holds the pet relation/edge. The primary key declared below.
	PetTable = "user_pets"
	// PetInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	PetInverseTable = "pets"
	// GroupsTable is the table that holds the groups relation/edge. The primary key declared below.
	GroupsTable = "group_users"
	// GroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "entgroup" package.
	GroupsInverseTable = "groups"
	// ReactedPostsTable is the table that holds the reacted_posts relation/edge. The primary key declared below.
	ReactedPostsTable = "reactions"
	// ReactedPostsInverseTable is the table name for the ForumPost entity.
	// It exists in this package in order to avoid circular dependency with the "forumpost" package.
	ReactedPostsInverseTable = "forum_posts"
	// VotedDeadlinesTable is the table that holds the voted_deadlines relation/edge. The primary key declared below.
	VotedDeadlinesTable = "deadline_voted_users"
	// VotedDeadlinesInverseTable is the table name for the Deadline entity.
	// It exists in this package in order to avoid circular dependency with the "deadline" package.
	VotedDeadlinesInverseTable = "deadlines"
	// AuthoredDeadlinesTable is the table that holds the authored_deadlines relation/edge.
	AuthoredDeadlinesTable = "deadlines"
	// AuthoredDeadlinesInverseTable is the table name for the Deadline entity.
	// It exists in this package in order to avoid circular dependency with the "deadline" package.
	AuthoredDeadlinesInverseTable = "deadlines"
	// AuthoredDeadlinesColumn is the table column denoting the authored_deadlines relation/edge.
	AuthoredDeadlinesColumn = "deadline_author"
	// UserPetsTable is the table that holds the user_pets relation/edge.
	UserPetsTable = "user_pets"
	// UserPetsInverseTable is the table name for the UserPet entity.
	// It exists in this package in order to avoid circular dependency with the "userpet" package.
	UserPetsInverseTable = "user_pets"
	// UserPetsColumn is the table column denoting the user_pets relation/edge.
	UserPetsColumn = "user_id"
	// GroupUsersTable is the table that holds the group_users relation/edge.
	GroupUsersTable = "group_users"
	// GroupUsersInverseTable is the table name for the GroupUser entity.
	// It exists in this package in order to avoid circular dependency with the "groupuser" package.
	GroupUsersInverseTable = "group_users"
	// GroupUsersColumn is the table column denoting the group_users relation/edge.
	GroupUsersColumn = "user_id"
	// ReactionsTable is the table that holds the reactions relation/edge.
	ReactionsTable = "reactions"
	// ReactionsInverseTable is the table name for the Reaction entity.
	// It exists in this package in order to avoid circular dependency with the "reaction" package.
	ReactionsInverseTable = "reactions"
	// ReactionsColumn is the table column denoting the reactions relation/edge.
	ReactionsColumn = "user_id"
)

Variables

View Source
var (
	// PetPrimaryKey and PetColumn2 are the table columns denoting the
	// primary key for the pet relation (M2M).
	PetPrimaryKey = []string{"pet_id", "user_id"}
	// GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
	// primary key for the groups relation (M2M).
	GroupsPrimaryKey = []string{"group_id", "user_id"}
	// ReactedPostsPrimaryKey and ReactedPostsColumn2 are the table columns denoting the
	// primary key for the reacted_posts relation (M2M).
	ReactedPostsPrimaryKey = []string{"forum_post_id", "user_id"}
	// VotedDeadlinesPrimaryKey and VotedDeadlinesColumn2 are the table columns denoting the
	// primary key for the voted_deadlines relation (M2M).
	VotedDeadlinesPrimaryKey = []string{"deadline_id", "user_id"}
)
View Source
var (
	// FirstNameValidator is a validator for the "first_name" field. It is called by the builders before save.
	FirstNameValidator func(string) error
	// LastNameValidator is a validator for the "last_name" field. It is called by the builders before save.
	LastNameValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// DefaultPoints holds the default value on creation for the "points" field.
	DefaultPoints int
	// PointsValidator is a validator for the "points" field. It is called by the builders before save.
	PointsValidator func(int) error
	// DefaultPointsAwardedCount holds the default value on creation for the "points_awarded_count" field.
	DefaultPointsAwardedCount int
	// PointsAwardedCountValidator is a validator for the "points_awarded_count" field. It is called by the builders before save.
	PointsAwardedCountValidator func(int) error
)

Columns holds all SQL columns for user fields.

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

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

Functions

func And

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

And groups predicates with the AND operator between them.

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 FirstName

func FirstName(v string) predicate.User

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.User

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.User

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.User

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.User

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.User

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.User

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.User

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.User

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

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

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.User

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.User

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.User

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

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

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func GodMode

func GodMode(v bool) predicate.User

GodMode applies equality check predicate on the "god_mode" field. It's identical to GodModeEQ.

func GodModeEQ

func GodModeEQ(v bool) predicate.User

GodModeEQ applies the EQ predicate on the "god_mode" field.

func GodModeNEQ

func GodModeNEQ(v bool) predicate.User

GodModeNEQ applies the NEQ predicate on the "god_mode" field.

func HasAuthoredDeadlines

func HasAuthoredDeadlines() predicate.User

HasAuthoredDeadlines applies the HasEdge predicate on the "authored_deadlines" edge.

func HasAuthoredDeadlinesWith

func HasAuthoredDeadlinesWith(preds ...predicate.Deadline) predicate.User

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

func HasForumPosts

func HasForumPosts() predicate.User

HasForumPosts applies the HasEdge predicate on the "forum_posts" edge.

func HasForumPostsWith

func HasForumPostsWith(preds ...predicate.ForumPost) predicate.User

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

func HasGroupUsers

func HasGroupUsers() predicate.User

HasGroupUsers applies the HasEdge predicate on the "group_users" edge.

func HasGroupUsersWith

func HasGroupUsersWith(preds ...predicate.GroupUser) predicate.User

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

func HasGroups

func HasGroups() predicate.User

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.User

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

func HasInstitution

func HasInstitution() predicate.User

HasInstitution applies the HasEdge predicate on the "institution" edge.

func HasInstitutionWith

func HasInstitutionWith(preds ...predicate.Institution) predicate.User

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

func HasPet

func HasPet() predicate.User

HasPet applies the HasEdge predicate on the "pet" edge.

func HasPetWith

func HasPetWith(preds ...predicate.Pet) predicate.User

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

func HasReactedPosts

func HasReactedPosts() predicate.User

HasReactedPosts applies the HasEdge predicate on the "reacted_posts" edge.

func HasReactedPostsWith

func HasReactedPostsWith(preds ...predicate.ForumPost) predicate.User

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

func HasReactions

func HasReactions() predicate.User

HasReactions applies the HasEdge predicate on the "reactions" edge.

func HasReactionsWith

func HasReactionsWith(preds ...predicate.Reaction) predicate.User

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

func HasRedemptions

func HasRedemptions() predicate.User

HasRedemptions applies the HasEdge predicate on the "redemptions" edge.

func HasRedemptionsWith

func HasRedemptionsWith(preds ...predicate.Redemption) predicate.User

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

func HasUserPets

func HasUserPets() predicate.User

HasUserPets applies the HasEdge predicate on the "user_pets" edge.

func HasUserPetsWith

func HasUserPetsWith(preds ...predicate.UserPet) predicate.User

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

func HasVotedDeadlines

func HasVotedDeadlines() predicate.User

HasVotedDeadlines applies the HasEdge predicate on the "voted_deadlines" edge.

func HasVotedDeadlinesWith

func HasVotedDeadlinesWith(preds ...predicate.Deadline) predicate.User

HasVotedDeadlinesWith applies the HasEdge predicate on the "voted_deadlines" 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 LastName

func LastName(v string) predicate.User

LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.User

LastNameContains applies the Contains predicate on the "last_name" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.User

LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.

func LastNameEQ

func LastNameEQ(v string) predicate.User

LastNameEQ applies the EQ predicate on the "last_name" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.User

LastNameEqualFold applies the EqualFold predicate on the "last_name" field.

func LastNameGT

func LastNameGT(v string) predicate.User

LastNameGT applies the GT predicate on the "last_name" field.

func LastNameGTE

func LastNameGTE(v string) predicate.User

LastNameGTE applies the GTE predicate on the "last_name" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.User

LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.User

LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.

func LastNameIn

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

LastNameIn applies the In predicate on the "last_name" field.

func LastNameLT

func LastNameLT(v string) predicate.User

LastNameLT applies the LT predicate on the "last_name" field.

func LastNameLTE

func LastNameLTE(v string) predicate.User

LastNameLTE applies the LTE predicate on the "last_name" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.User

LastNameNEQ applies the NEQ predicate on the "last_name" field.

func LastNameNotIn

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

LastNameNotIn applies the NotIn predicate on the "last_name" 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 Points

func Points(v int) predicate.User

Points applies equality check predicate on the "points" field. It's identical to PointsEQ.

func PointsAwardedCount

func PointsAwardedCount(v int) predicate.User

PointsAwardedCount applies equality check predicate on the "points_awarded_count" field. It's identical to PointsAwardedCountEQ.

func PointsAwardedCountEQ

func PointsAwardedCountEQ(v int) predicate.User

PointsAwardedCountEQ applies the EQ predicate on the "points_awarded_count" field.

func PointsAwardedCountGT

func PointsAwardedCountGT(v int) predicate.User

PointsAwardedCountGT applies the GT predicate on the "points_awarded_count" field.

func PointsAwardedCountGTE

func PointsAwardedCountGTE(v int) predicate.User

PointsAwardedCountGTE applies the GTE predicate on the "points_awarded_count" field.

func PointsAwardedCountIn

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

PointsAwardedCountIn applies the In predicate on the "points_awarded_count" field.

func PointsAwardedCountLT

func PointsAwardedCountLT(v int) predicate.User

PointsAwardedCountLT applies the LT predicate on the "points_awarded_count" field.

func PointsAwardedCountLTE

func PointsAwardedCountLTE(v int) predicate.User

PointsAwardedCountLTE applies the LTE predicate on the "points_awarded_count" field.

func PointsAwardedCountNEQ

func PointsAwardedCountNEQ(v int) predicate.User

PointsAwardedCountNEQ applies the NEQ predicate on the "points_awarded_count" field.

func PointsAwardedCountNotIn

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

PointsAwardedCountNotIn applies the NotIn predicate on the "points_awarded_count" field.

func PointsAwardedResetTime

func PointsAwardedResetTime(v time.Time) predicate.User

PointsAwardedResetTime applies equality check predicate on the "points_awarded_reset_time" field. It's identical to PointsAwardedResetTimeEQ.

func PointsAwardedResetTimeEQ

func PointsAwardedResetTimeEQ(v time.Time) predicate.User

PointsAwardedResetTimeEQ applies the EQ predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeGT

func PointsAwardedResetTimeGT(v time.Time) predicate.User

PointsAwardedResetTimeGT applies the GT predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeGTE

func PointsAwardedResetTimeGTE(v time.Time) predicate.User

PointsAwardedResetTimeGTE applies the GTE predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeIn

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

PointsAwardedResetTimeIn applies the In predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeIsNil

func PointsAwardedResetTimeIsNil() predicate.User

PointsAwardedResetTimeIsNil applies the IsNil predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeLT

func PointsAwardedResetTimeLT(v time.Time) predicate.User

PointsAwardedResetTimeLT applies the LT predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeLTE

func PointsAwardedResetTimeLTE(v time.Time) predicate.User

PointsAwardedResetTimeLTE applies the LTE predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeNEQ

func PointsAwardedResetTimeNEQ(v time.Time) predicate.User

PointsAwardedResetTimeNEQ applies the NEQ predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeNotIn

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

PointsAwardedResetTimeNotIn applies the NotIn predicate on the "points_awarded_reset_time" field.

func PointsAwardedResetTimeNotNil

func PointsAwardedResetTimeNotNil() predicate.User

PointsAwardedResetTimeNotNil applies the NotNil predicate on the "points_awarded_reset_time" field.

func PointsEQ

func PointsEQ(v int) predicate.User

PointsEQ applies the EQ predicate on the "points" field.

func PointsGT

func PointsGT(v int) predicate.User

PointsGT applies the GT predicate on the "points" field.

func PointsGTE

func PointsGTE(v int) predicate.User

PointsGTE applies the GTE predicate on the "points" field.

func PointsIn

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

PointsIn applies the In predicate on the "points" field.

func PointsLT

func PointsLT(v int) predicate.User

PointsLT applies the LT predicate on the "points" field.

func PointsLTE

func PointsLTE(v int) predicate.User

PointsLTE applies the LTE predicate on the "points" field.

func PointsNEQ

func PointsNEQ(v int) predicate.User

PointsNEQ applies the NEQ predicate on the "points" field.

func PointsNotIn

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

PointsNotIn applies the NotIn predicate on the "points" field.

func RoleEQ

func RoleEQ(v institution.Role) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...institution.Role) predicate.User

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v institution.Role) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...institution.Role) predicate.User

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r institution.Role) error

RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAuthoredDeadlines

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

ByAuthoredDeadlines orders the results by authored_deadlines terms.

func ByAuthoredDeadlinesCount

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

ByAuthoredDeadlinesCount orders the results by authored_deadlines count.

func ByEmail

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

ByEmail orders the results by the email field.

func ByFirstName

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

ByFirstName orders the results by the first_name field.

func ByForumPosts

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

ByForumPosts orders the results by forum_posts terms.

func ByForumPostsCount

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

ByForumPostsCount orders the results by forum_posts count.

func ByGodMode

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

ByGodMode orders the results by the god_mode field.

func ByGroupUsers

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

ByGroupUsers orders the results by group_users terms.

func ByGroupUsersCount

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

ByGroupUsersCount orders the results by group_users count.

func ByGroups

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

ByGroups orders the results by groups terms.

func ByGroupsCount

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

ByGroupsCount orders the results by groups count.

func ByID

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

ByID orders the results by the id field.

func ByInstitutionField

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

ByInstitutionField orders the results by institution field.

func ByLastName

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

ByLastName orders the results by the last_name field.

func ByPet

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

ByPet orders the results by pet terms.

func ByPetCount

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

ByPetCount orders the results by pet count.

func ByPoints

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

ByPoints orders the results by the points field.

func ByPointsAwardedCount

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

ByPointsAwardedCount orders the results by the points_awarded_count field.

func ByPointsAwardedResetTime

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

ByPointsAwardedResetTime orders the results by the points_awarded_reset_time field.

func ByReactedPosts

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

ByReactedPosts orders the results by reacted_posts terms.

func ByReactedPostsCount

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

ByReactedPostsCount orders the results by reacted_posts count.

func ByReactions

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

ByReactions orders the results by reactions terms.

func ByReactionsCount

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

ByReactionsCount orders the results by reactions count.

func ByRedemptions

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

ByRedemptions orders the results by redemptions terms.

func ByRedemptionsCount

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

ByRedemptionsCount orders the results by redemptions count.

func ByRole

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

ByRole orders the results by the role field.

func ByUserPets

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

ByUserPets orders the results by user_pets terms.

func ByUserPetsCount

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

ByUserPetsCount orders the results by user_pets count.

func ByVotedDeadlines

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

ByVotedDeadlines orders the results by voted_deadlines terms.

func ByVotedDeadlinesCount

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

ByVotedDeadlinesCount orders the results by voted_deadlines count.

Jump to

Keyboard shortcuts

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