user

package
v0.0.0-...-f0d0762 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT 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"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldBirthdayYear holds the string denoting the birthday_year field in the database.
	FieldBirthdayYear = "birthday_year"
	// FieldBirthdayMonth holds the string denoting the birthday_month field in the database.
	FieldBirthdayMonth = "birthday_month"
	// FieldBirthdayDay holds the string denoting the birthday_day field in the database.
	FieldBirthdayDay = "birthday_day"
	// FieldJob holds the string denoting the job field in the database.
	FieldJob = "job"
	// FieldBelongTo holds the string denoting the belong_to field in the database.
	FieldBelongTo = "belong_to"
	// FieldPr holds the string denoting the pr field in the database.
	FieldPr = "pr"
	// EdgeActivities holds the string denoting the activities edge name in mutations.
	EdgeActivities = "activities"
	// EdgeQualifications holds the string denoting the qualifications edge name in mutations.
	EdgeQualifications = "qualifications"
	// EdgeCareerGroups holds the string denoting the careergroups edge name in mutations.
	EdgeCareerGroups = "careerGroups"
	// EdgeNotes holds the string denoting the notes edge name in mutations.
	EdgeNotes = "notes"
	// EdgeAppeals holds the string denoting the appeals edge name in mutations.
	EdgeAppeals = "appeals"
	// EdgeSolutions holds the string denoting the solutions edge name in mutations.
	EdgeSolutions = "solutions"
	// Table holds the table name of the user in the database.
	Table = "users"
	// ActivitiesTable is the table that holds the activities relation/edge.
	ActivitiesTable = "user_activities"
	// ActivitiesInverseTable is the table name for the UserActivity entity.
	// It exists in this package in order to avoid circular dependency with the "useractivity" package.
	ActivitiesInverseTable = "user_activities"
	// ActivitiesColumn is the table column denoting the activities relation/edge.
	ActivitiesColumn = "user_id"
	// QualificationsTable is the table that holds the qualifications relation/edge.
	QualificationsTable = "user_qualifications"
	// QualificationsInverseTable is the table name for the UserQualification entity.
	// It exists in this package in order to avoid circular dependency with the "userqualification" package.
	QualificationsInverseTable = "user_qualifications"
	// QualificationsColumn is the table column denoting the qualifications relation/edge.
	QualificationsColumn = "user_id"
	// CareerGroupsTable is the table that holds the careerGroups relation/edge.
	CareerGroupsTable = "user_career_groups"
	// CareerGroupsInverseTable is the table name for the UserCareerGroup entity.
	// It exists in this package in order to avoid circular dependency with the "usercareergroup" package.
	CareerGroupsInverseTable = "user_career_groups"
	// CareerGroupsColumn is the table column denoting the careerGroups relation/edge.
	CareerGroupsColumn = "user_id"
	// NotesTable is the table that holds the notes relation/edge.
	NotesTable = "user_notes"
	// NotesInverseTable is the table name for the UserNote entity.
	// It exists in this package in order to avoid circular dependency with the "usernote" package.
	NotesInverseTable = "user_notes"
	// NotesColumn is the table column denoting the notes relation/edge.
	NotesColumn = "user_id"
	// AppealsTable is the table that holds the appeals relation/edge.
	AppealsTable = "user_appeals"
	// AppealsInverseTable is the table name for the UserAppeal entity.
	// It exists in this package in order to avoid circular dependency with the "userappeal" package.
	AppealsInverseTable = "user_appeals"
	// AppealsColumn is the table column denoting the appeals relation/edge.
	AppealsColumn = "user_id"
	// SolutionsTable is the table that holds the solutions relation/edge.
	SolutionsTable = "user_solutions"
	// SolutionsInverseTable is the table name for the UserSolution entity.
	// It exists in this package in order to avoid circular dependency with the "usersolution" package.
	SolutionsInverseTable = "user_solutions"
	// SolutionsColumn is the table column denoting the solutions relation/edge.
	SolutionsColumn = "user_id"
)

Variables

View Source
var (
	// 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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// NicknameValidator is a validator for the "nickname" field. It is called by the builders before save.
	NicknameValidator func(string) error
	// AvatarURLValidator is a validator for the "avatar_url" field. It is called by the builders before save.
	AvatarURLValidator func(string) error
	// BirthdayYearValidator is a validator for the "birthday_year" field. It is called by the builders before save.
	BirthdayYearValidator func(int) error
	// BirthdayMonthValidator is a validator for the "birthday_month" field. It is called by the builders before save.
	BirthdayMonthValidator func(int) error
	// BirthdayDayValidator is a validator for the "birthday_day" field. It is called by the builders before save.
	BirthdayDayValidator func(int) error
	// JobValidator is a validator for the "job" field. It is called by the builders before save.
	JobValidator func(string) error
	// BelongToValidator is a validator for the "belong_to" field. It is called by the builders before save.
	BelongToValidator func(string) error
	// PrValidator is a validator for the "pr" field. It is called by the builders before save.
	PrValidator func(string) error
)

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups predicates with the AND operator between them.

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 AvatarURLIsNil

func AvatarURLIsNil() predicate.User

AvatarURLIsNil applies the IsNil 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 AvatarURLNotNil

func AvatarURLNotNil() predicate.User

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.

func BelongTo

func BelongTo(v string) predicate.User

BelongTo applies equality check predicate on the "belong_to" field. It's identical to BelongToEQ.

func BelongToContains

func BelongToContains(v string) predicate.User

BelongToContains applies the Contains predicate on the "belong_to" field.

func BelongToContainsFold

func BelongToContainsFold(v string) predicate.User

BelongToContainsFold applies the ContainsFold predicate on the "belong_to" field.

func BelongToEQ

func BelongToEQ(v string) predicate.User

BelongToEQ applies the EQ predicate on the "belong_to" field.

func BelongToEqualFold

func BelongToEqualFold(v string) predicate.User

BelongToEqualFold applies the EqualFold predicate on the "belong_to" field.

func BelongToGT

func BelongToGT(v string) predicate.User

BelongToGT applies the GT predicate on the "belong_to" field.

func BelongToGTE

func BelongToGTE(v string) predicate.User

BelongToGTE applies the GTE predicate on the "belong_to" field.

func BelongToHasPrefix

func BelongToHasPrefix(v string) predicate.User

BelongToHasPrefix applies the HasPrefix predicate on the "belong_to" field.

func BelongToHasSuffix

func BelongToHasSuffix(v string) predicate.User

BelongToHasSuffix applies the HasSuffix predicate on the "belong_to" field.

func BelongToIn

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

BelongToIn applies the In predicate on the "belong_to" field.

func BelongToIsNil

func BelongToIsNil() predicate.User

BelongToIsNil applies the IsNil predicate on the "belong_to" field.

func BelongToLT

func BelongToLT(v string) predicate.User

BelongToLT applies the LT predicate on the "belong_to" field.

func BelongToLTE

func BelongToLTE(v string) predicate.User

BelongToLTE applies the LTE predicate on the "belong_to" field.

func BelongToNEQ

func BelongToNEQ(v string) predicate.User

BelongToNEQ applies the NEQ predicate on the "belong_to" field.

func BelongToNotIn

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

BelongToNotIn applies the NotIn predicate on the "belong_to" field.

func BelongToNotNil

func BelongToNotNil() predicate.User

BelongToNotNil applies the NotNil predicate on the "belong_to" field.

func BirthdayDay

func BirthdayDay(v int) predicate.User

BirthdayDay applies equality check predicate on the "birthday_day" field. It's identical to BirthdayDayEQ.

func BirthdayDayEQ

func BirthdayDayEQ(v int) predicate.User

BirthdayDayEQ applies the EQ predicate on the "birthday_day" field.

func BirthdayDayGT

func BirthdayDayGT(v int) predicate.User

BirthdayDayGT applies the GT predicate on the "birthday_day" field.

func BirthdayDayGTE

func BirthdayDayGTE(v int) predicate.User

BirthdayDayGTE applies the GTE predicate on the "birthday_day" field.

func BirthdayDayIn

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

BirthdayDayIn applies the In predicate on the "birthday_day" field.

func BirthdayDayLT

func BirthdayDayLT(v int) predicate.User

BirthdayDayLT applies the LT predicate on the "birthday_day" field.

func BirthdayDayLTE

func BirthdayDayLTE(v int) predicate.User

BirthdayDayLTE applies the LTE predicate on the "birthday_day" field.

func BirthdayDayNEQ

func BirthdayDayNEQ(v int) predicate.User

BirthdayDayNEQ applies the NEQ predicate on the "birthday_day" field.

func BirthdayDayNotIn

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

BirthdayDayNotIn applies the NotIn predicate on the "birthday_day" field.

func BirthdayMonth

func BirthdayMonth(v int) predicate.User

BirthdayMonth applies equality check predicate on the "birthday_month" field. It's identical to BirthdayMonthEQ.

func BirthdayMonthEQ

func BirthdayMonthEQ(v int) predicate.User

BirthdayMonthEQ applies the EQ predicate on the "birthday_month" field.

func BirthdayMonthGT

func BirthdayMonthGT(v int) predicate.User

BirthdayMonthGT applies the GT predicate on the "birthday_month" field.

func BirthdayMonthGTE

func BirthdayMonthGTE(v int) predicate.User

BirthdayMonthGTE applies the GTE predicate on the "birthday_month" field.

func BirthdayMonthIn

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

BirthdayMonthIn applies the In predicate on the "birthday_month" field.

func BirthdayMonthLT

func BirthdayMonthLT(v int) predicate.User

BirthdayMonthLT applies the LT predicate on the "birthday_month" field.

func BirthdayMonthLTE

func BirthdayMonthLTE(v int) predicate.User

BirthdayMonthLTE applies the LTE predicate on the "birthday_month" field.

func BirthdayMonthNEQ

func BirthdayMonthNEQ(v int) predicate.User

BirthdayMonthNEQ applies the NEQ predicate on the "birthday_month" field.

func BirthdayMonthNotIn

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

BirthdayMonthNotIn applies the NotIn predicate on the "birthday_month" field.

func BirthdayYear

func BirthdayYear(v int) predicate.User

BirthdayYear applies equality check predicate on the "birthday_year" field. It's identical to BirthdayYearEQ.

func BirthdayYearEQ

func BirthdayYearEQ(v int) predicate.User

BirthdayYearEQ applies the EQ predicate on the "birthday_year" field.

func BirthdayYearGT

func BirthdayYearGT(v int) predicate.User

BirthdayYearGT applies the GT predicate on the "birthday_year" field.

func BirthdayYearGTE

func BirthdayYearGTE(v int) predicate.User

BirthdayYearGTE applies the GTE predicate on the "birthday_year" field.

func BirthdayYearIn

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

BirthdayYearIn applies the In predicate on the "birthday_year" field.

func BirthdayYearLT

func BirthdayYearLT(v int) predicate.User

BirthdayYearLT applies the LT predicate on the "birthday_year" field.

func BirthdayYearLTE

func BirthdayYearLTE(v int) predicate.User

BirthdayYearLTE applies the LTE predicate on the "birthday_year" field.

func BirthdayYearNEQ

func BirthdayYearNEQ(v int) predicate.User

BirthdayYearNEQ applies the NEQ predicate on the "birthday_year" field.

func BirthdayYearNotIn

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

BirthdayYearNotIn applies the NotIn predicate on the "birthday_year" 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 HasActivities

func HasActivities() predicate.User

HasActivities applies the HasEdge predicate on the "activities" edge.

func HasActivitiesWith

func HasActivitiesWith(preds ...predicate.UserActivity) predicate.User

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

func HasAppeals

func HasAppeals() predicate.User

HasAppeals applies the HasEdge predicate on the "appeals" edge.

func HasAppealsWith

func HasAppealsWith(preds ...predicate.UserAppeal) predicate.User

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

func HasCareerGroups

func HasCareerGroups() predicate.User

HasCareerGroups applies the HasEdge predicate on the "careerGroups" edge.

func HasCareerGroupsWith

func HasCareerGroupsWith(preds ...predicate.UserCareerGroup) predicate.User

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

func HasNotes

func HasNotes() predicate.User

HasNotes applies the HasEdge predicate on the "notes" edge.

func HasNotesWith

func HasNotesWith(preds ...predicate.UserNote) predicate.User

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

func HasQualifications

func HasQualifications() predicate.User

HasQualifications applies the HasEdge predicate on the "qualifications" edge.

func HasQualificationsWith

func HasQualificationsWith(preds ...predicate.UserQualification) predicate.User

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

func HasSolutions

func HasSolutions() predicate.User

HasSolutions applies the HasEdge predicate on the "solutions" edge.

func HasSolutionsWith

func HasSolutionsWith(preds ...predicate.UserSolution) predicate.User

HasSolutionsWith applies the HasEdge predicate on the "solutions" 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 Job

func Job(v string) predicate.User

Job applies equality check predicate on the "job" field. It's identical to JobEQ.

func JobContains

func JobContains(v string) predicate.User

JobContains applies the Contains predicate on the "job" field.

func JobContainsFold

func JobContainsFold(v string) predicate.User

JobContainsFold applies the ContainsFold predicate on the "job" field.

func JobEQ

func JobEQ(v string) predicate.User

JobEQ applies the EQ predicate on the "job" field.

func JobEqualFold

func JobEqualFold(v string) predicate.User

JobEqualFold applies the EqualFold predicate on the "job" field.

func JobGT

func JobGT(v string) predicate.User

JobGT applies the GT predicate on the "job" field.

func JobGTE

func JobGTE(v string) predicate.User

JobGTE applies the GTE predicate on the "job" field.

func JobHasPrefix

func JobHasPrefix(v string) predicate.User

JobHasPrefix applies the HasPrefix predicate on the "job" field.

func JobHasSuffix

func JobHasSuffix(v string) predicate.User

JobHasSuffix applies the HasSuffix predicate on the "job" field.

func JobIn

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

JobIn applies the In predicate on the "job" field.

func JobIsNil

func JobIsNil() predicate.User

JobIsNil applies the IsNil predicate on the "job" field.

func JobLT

func JobLT(v string) predicate.User

JobLT applies the LT predicate on the "job" field.

func JobLTE

func JobLTE(v string) predicate.User

JobLTE applies the LTE predicate on the "job" field.

func JobNEQ

func JobNEQ(v string) predicate.User

JobNEQ applies the NEQ predicate on the "job" field.

func JobNotIn

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

JobNotIn applies the NotIn predicate on the "job" field.

func JobNotNil

func JobNotNil() predicate.User

JobNotNil applies the NotNil predicate on the "job" field.

func Name

func Name(v string) predicate.User

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.User

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.User

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.User

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.User

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.User

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.User

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.User

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.User

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.User

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Nickname

func Nickname(v string) predicate.User

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains

func NicknameContains(v string) predicate.User

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.User

NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.User

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.User

NicknameEqualFold applies the EqualFold predicate on the "nickname" field.

func NicknameGT

func NicknameGT(v string) predicate.User

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE

func NicknameGTE(v string) predicate.User

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.User

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.User

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn

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

NicknameIn applies the In predicate on the "nickname" field.

func NicknameIsNil

func NicknameIsNil() predicate.User

NicknameIsNil applies the IsNil predicate on the "nickname" field.

func NicknameLT

func NicknameLT(v string) predicate.User

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE

func NicknameLTE(v string) predicate.User

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ

func NicknameNEQ(v string) predicate.User

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn

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

NicknameNotIn applies the NotIn predicate on the "nickname" field.

func NicknameNotNil

func NicknameNotNil() predicate.User

NicknameNotNil applies the NotNil predicate on the "nickname" 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 Pr

func Pr(v string) predicate.User

Pr applies equality check predicate on the "pr" field. It's identical to PrEQ.

func PrContains

func PrContains(v string) predicate.User

PrContains applies the Contains predicate on the "pr" field.

func PrContainsFold

func PrContainsFold(v string) predicate.User

PrContainsFold applies the ContainsFold predicate on the "pr" field.

func PrEQ

func PrEQ(v string) predicate.User

PrEQ applies the EQ predicate on the "pr" field.

func PrEqualFold

func PrEqualFold(v string) predicate.User

PrEqualFold applies the EqualFold predicate on the "pr" field.

func PrGT

func PrGT(v string) predicate.User

PrGT applies the GT predicate on the "pr" field.

func PrGTE

func PrGTE(v string) predicate.User

PrGTE applies the GTE predicate on the "pr" field.

func PrHasPrefix

func PrHasPrefix(v string) predicate.User

PrHasPrefix applies the HasPrefix predicate on the "pr" field.

func PrHasSuffix

func PrHasSuffix(v string) predicate.User

PrHasSuffix applies the HasSuffix predicate on the "pr" field.

func PrIn

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

PrIn applies the In predicate on the "pr" field.

func PrIsNil

func PrIsNil() predicate.User

PrIsNil applies the IsNil predicate on the "pr" field.

func PrLT

func PrLT(v string) predicate.User

PrLT applies the LT predicate on the "pr" field.

func PrLTE

func PrLTE(v string) predicate.User

PrLTE applies the LTE predicate on the "pr" field.

func PrNEQ

func PrNEQ(v string) predicate.User

PrNEQ applies the NEQ predicate on the "pr" field.

func PrNotIn

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

PrNotIn applies the NotIn predicate on the "pr" field.

func PrNotNil

func PrNotNil() predicate.User

PrNotNil applies the NotNil predicate on the "pr" 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 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 ByActivities

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

ByActivities orders the results by activities terms.

func ByActivitiesCount

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

ByActivitiesCount orders the results by activities count.

func ByAppeals

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

ByAppeals orders the results by appeals terms.

func ByAppealsCount

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

ByAppealsCount orders the results by appeals count.

func ByAvatarURL

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

ByAvatarURL orders the results by the avatar_url field.

func ByBelongTo

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

ByBelongTo orders the results by the belong_to field.

func ByBirthdayDay

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

ByBirthdayDay orders the results by the birthday_day field.

func ByBirthdayMonth

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

ByBirthdayMonth orders the results by the birthday_month field.

func ByBirthdayYear

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

ByBirthdayYear orders the results by the birthday_year field.

func ByCareerGroups

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

ByCareerGroups orders the results by careerGroups terms.

func ByCareerGroupsCount

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

ByCareerGroupsCount orders the results by careerGroups count.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByJob

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

ByJob orders the results by the job field.

func ByName

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

ByName orders the results by the name field.

func ByNickname

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

ByNickname orders the results by the nickname field.

func ByNotes

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

ByNotes orders the results by notes terms.

func ByNotesCount

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

ByNotesCount orders the results by notes count.

func ByPr

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

ByPr orders the results by the pr field.

func ByQualifications

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

ByQualifications orders the results by qualifications terms.

func ByQualificationsCount

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

ByQualificationsCount orders the results by qualifications count.

func BySolutions

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

BySolutions orders the results by solutions terms.

func BySolutionsCount

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

BySolutionsCount orders the results by solutions count.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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