Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func GodMode(v bool) predicate.User
- func GodModeEQ(v bool) predicate.User
- func GodModeNEQ(v bool) predicate.User
- func HasAuthoredDeadlines() predicate.User
- func HasAuthoredDeadlinesWith(preds ...predicate.Deadline) predicate.User
- func HasForumPosts() predicate.User
- func HasForumPostsWith(preds ...predicate.ForumPost) predicate.User
- func HasGroupUsers() predicate.User
- func HasGroupUsersWith(preds ...predicate.GroupUser) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) predicate.User
- func HasInstitution() predicate.User
- func HasInstitutionWith(preds ...predicate.Institution) predicate.User
- func HasPet() predicate.User
- func HasPetWith(preds ...predicate.Pet) predicate.User
- func HasReactedPosts() predicate.User
- func HasReactedPostsWith(preds ...predicate.ForumPost) predicate.User
- func HasReactions() predicate.User
- func HasReactionsWith(preds ...predicate.Reaction) predicate.User
- func HasRedemptions() predicate.User
- func HasRedemptionsWith(preds ...predicate.Redemption) predicate.User
- func HasUserPets() predicate.User
- func HasUserPetsWith(preds ...predicate.UserPet) predicate.User
- func HasVotedDeadlines() predicate.User
- func HasVotedDeadlinesWith(preds ...predicate.Deadline) 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 LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Points(v int) predicate.User
- func PointsAwardedCount(v int) predicate.User
- func PointsAwardedCountEQ(v int) predicate.User
- func PointsAwardedCountGT(v int) predicate.User
- func PointsAwardedCountGTE(v int) predicate.User
- func PointsAwardedCountIn(vs ...int) predicate.User
- func PointsAwardedCountLT(v int) predicate.User
- func PointsAwardedCountLTE(v int) predicate.User
- func PointsAwardedCountNEQ(v int) predicate.User
- func PointsAwardedCountNotIn(vs ...int) predicate.User
- func PointsAwardedResetTime(v time.Time) predicate.User
- func PointsAwardedResetTimeEQ(v time.Time) predicate.User
- func PointsAwardedResetTimeGT(v time.Time) predicate.User
- func PointsAwardedResetTimeGTE(v time.Time) predicate.User
- func PointsAwardedResetTimeIn(vs ...time.Time) predicate.User
- func PointsAwardedResetTimeIsNil() predicate.User
- func PointsAwardedResetTimeLT(v time.Time) predicate.User
- func PointsAwardedResetTimeLTE(v time.Time) predicate.User
- func PointsAwardedResetTimeNEQ(v time.Time) predicate.User
- func PointsAwardedResetTimeNotIn(vs ...time.Time) predicate.User
- func PointsAwardedResetTimeNotNil() predicate.User
- func PointsEQ(v int) predicate.User
- func PointsGT(v int) predicate.User
- func PointsGTE(v int) predicate.User
- func PointsIn(vs ...int) predicate.User
- func PointsLT(v int) predicate.User
- func PointsLTE(v int) predicate.User
- func PointsNEQ(v int) predicate.User
- func PointsNotIn(vs ...int) predicate.User
- func RoleEQ(v institution.Role) predicate.User
- func RoleIn(vs ...institution.Role) predicate.User
- func RoleNEQ(v institution.Role) predicate.User
- func RoleNotIn(vs ...institution.Role) predicate.User
- func RoleValidator(r institution.Role) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthoredDeadlines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAuthoredDeadlinesCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByForumPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByForumPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGodMode(opts ...sql.OrderTermOption) OrderOption
- func ByGroupUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstitutionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByPet(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPetCount(opts ...sql.OrderTermOption) OrderOption
- func ByPoints(opts ...sql.OrderTermOption) OrderOption
- func ByPointsAwardedCount(opts ...sql.OrderTermOption) OrderOption
- func ByPointsAwardedResetTime(opts ...sql.OrderTermOption) OrderOption
- func ByReactedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReactedPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByReactions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReactionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRedemptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRedemptionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUserPets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserPetsCount(opts ...sql.OrderTermOption) OrderOption
- func ByVotedDeadlines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVotedDeadlinesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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 )
var Columns = []string{ FieldID, FieldFirstName, FieldLastName, FieldEmail, FieldPassword, FieldPoints, FieldPointsAwardedCount, FieldPointsAwardedResetTime, FieldGodMode, FieldRole, }
Columns holds all SQL columns for user fields.
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 Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func GodMode ¶
GodMode applies equality check predicate on the "god_mode" field. It's identical to GodModeEQ.
func GodModeNEQ ¶
GodModeNEQ applies the NEQ predicate on the "god_mode" field.
func HasAuthoredDeadlines ¶
HasAuthoredDeadlines applies the HasEdge predicate on the "authored_deadlines" edge.
func HasAuthoredDeadlinesWith ¶
HasAuthoredDeadlinesWith applies the HasEdge predicate on the "authored_deadlines" edge with a given conditions (other predicates).
func HasForumPosts ¶
HasForumPosts applies the HasEdge predicate on the "forum_posts" edge.
func HasForumPostsWith ¶
HasForumPostsWith applies the HasEdge predicate on the "forum_posts" edge with a given conditions (other predicates).
func HasGroupUsers ¶
HasGroupUsers applies the HasEdge predicate on the "group_users" edge.
func HasGroupUsersWith ¶
HasGroupUsersWith applies the HasEdge predicate on the "group_users" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasInstitution ¶
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 HasPetWith ¶
HasPetWith applies the HasEdge predicate on the "pet" edge with a given conditions (other predicates).
func HasReactedPosts ¶
HasReactedPosts applies the HasEdge predicate on the "reacted_posts" edge.
func HasReactedPostsWith ¶
HasReactedPostsWith applies the HasEdge predicate on the "reacted_posts" edge with a given conditions (other predicates).
func HasReactions ¶
HasReactions applies the HasEdge predicate on the "reactions" edge.
func HasReactionsWith ¶
HasReactionsWith applies the HasEdge predicate on the "reactions" edge with a given conditions (other predicates).
func HasRedemptions ¶
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 ¶
HasUserPets applies the HasEdge predicate on the "user_pets" edge.
func HasUserPetsWith ¶
HasUserPetsWith applies the HasEdge predicate on the "user_pets" edge with a given conditions (other predicates).
func HasVotedDeadlines ¶
HasVotedDeadlines applies the HasEdge predicate on the "voted_deadlines" edge.
func HasVotedDeadlinesWith ¶
HasVotedDeadlinesWith applies the HasEdge predicate on the "voted_deadlines" edge with a given conditions (other predicates).
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func Points ¶
Points applies equality check predicate on the "points" field. It's identical to PointsEQ.
func PointsAwardedCount ¶
PointsAwardedCount applies equality check predicate on the "points_awarded_count" field. It's identical to PointsAwardedCountEQ.
func PointsAwardedCountEQ ¶
PointsAwardedCountEQ applies the EQ predicate on the "points_awarded_count" field.
func PointsAwardedCountGT ¶
PointsAwardedCountGT applies the GT predicate on the "points_awarded_count" field.
func PointsAwardedCountGTE ¶
PointsAwardedCountGTE applies the GTE predicate on the "points_awarded_count" field.
func PointsAwardedCountIn ¶
PointsAwardedCountIn applies the In predicate on the "points_awarded_count" field.
func PointsAwardedCountLT ¶
PointsAwardedCountLT applies the LT predicate on the "points_awarded_count" field.
func PointsAwardedCountLTE ¶
PointsAwardedCountLTE applies the LTE predicate on the "points_awarded_count" field.
func PointsAwardedCountNEQ ¶
PointsAwardedCountNEQ applies the NEQ predicate on the "points_awarded_count" field.
func PointsAwardedCountNotIn ¶
PointsAwardedCountNotIn applies the NotIn predicate on the "points_awarded_count" field.
func PointsAwardedResetTime ¶
PointsAwardedResetTime applies equality check predicate on the "points_awarded_reset_time" field. It's identical to PointsAwardedResetTimeEQ.
func PointsAwardedResetTimeEQ ¶
PointsAwardedResetTimeEQ applies the EQ predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeGT ¶
PointsAwardedResetTimeGT applies the GT predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeGTE ¶
PointsAwardedResetTimeGTE applies the GTE predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeIn ¶
PointsAwardedResetTimeIn applies the In predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeIsNil ¶
PointsAwardedResetTimeIsNil applies the IsNil predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeLT ¶
PointsAwardedResetTimeLT applies the LT predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeLTE ¶
PointsAwardedResetTimeLTE applies the LTE predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeNEQ ¶
PointsAwardedResetTimeNEQ applies the NEQ predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeNotIn ¶
PointsAwardedResetTimeNotIn applies the NotIn predicate on the "points_awarded_reset_time" field.
func PointsAwardedResetTimeNotNil ¶
PointsAwardedResetTimeNotNil applies the NotNil predicate on the "points_awarded_reset_time" field.
func PointsNotIn ¶
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.