Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Avatar(v string) predicate.User
- func AvatarContains(v string) predicate.User
- func AvatarContainsFold(v string) predicate.User
- func AvatarEQ(v string) predicate.User
- func AvatarEqualFold(v string) predicate.User
- func AvatarGT(v string) predicate.User
- func AvatarGTE(v string) predicate.User
- func AvatarHasPrefix(v string) predicate.User
- func AvatarHasSuffix(v string) predicate.User
- func AvatarIn(vs ...string) predicate.User
- func AvatarLT(v string) predicate.User
- func AvatarLTE(v string) predicate.User
- func AvatarNEQ(v string) predicate.User
- func AvatarNotIn(vs ...string) predicate.User
- func CreatedTime(v time.Time) predicate.User
- func CreatedTimeEQ(v time.Time) predicate.User
- func CreatedTimeGT(v time.Time) predicate.User
- func CreatedTimeGTE(v time.Time) predicate.User
- func CreatedTimeIn(vs ...time.Time) predicate.User
- func CreatedTimeLT(v time.Time) predicate.User
- func CreatedTimeLTE(v time.Time) predicate.User
- func CreatedTimeNEQ(v time.Time) predicate.User
- func CreatedTimeNotIn(vs ...time.Time) 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 HasAnnouncements() predicate.User
- func HasAnnouncementsWith(preds ...predicate.Announcement) predicate.User
- func HasCreatedProblems() predicate.User
- func HasCreatedProblemsWith(preds ...predicate.Problem) predicate.User
- func HasManaged() predicate.User
- func HasManagedWith(preds ...predicate.Team) predicate.User
- func HasOwned() predicate.User
- func HasOwnedWith(preds ...predicate.Team) predicate.User
- func HasRecords() predicate.User
- func HasRecordsWith(preds ...predicate.JudgeRecord) predicate.User
- func HasSolvedProblems() predicate.User
- func HasSolvedProblemsWith(preds ...predicate.Problem) predicate.User
- func HasTeams() predicate.User
- func HasTeamsWith(preds ...predicate.Team) predicate.User
- func ID(id int64) predicate.User
- func IDEQ(id int64) predicate.User
- func IDGT(id int64) predicate.User
- func IDGTE(id int64) predicate.User
- func IDIn(ids ...int64) predicate.User
- func IDLT(id int64) predicate.User
- func IDLTE(id int64) predicate.User
- func IDNEQ(id int64) predicate.User
- func IDNotIn(ids ...int64) predicate.User
- func Nickname(v string) predicate.User
- func NicknameContains(v string) predicate.User
- func NicknameContainsFold(v string) predicate.User
- func NicknameEQ(v string) predicate.User
- func NicknameEqualFold(v string) predicate.User
- func NicknameGT(v string) predicate.User
- func NicknameGTE(v string) predicate.User
- func NicknameHasPrefix(v string) predicate.User
- func NicknameHasSuffix(v string) predicate.User
- func NicknameIn(vs ...string) predicate.User
- func NicknameLT(v string) predicate.User
- func NicknameLTE(v string) predicate.User
- func NicknameNEQ(v string) predicate.User
- func NicknameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
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" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // 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" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldCreatedTime holds the string denoting the created_time field in the database. FieldCreatedTime = "created_time" // EdgeTeams holds the string denoting the teams edge name in mutations. EdgeTeams = "teams" // EdgeAnnouncements holds the string denoting the announcements edge name in mutations. EdgeAnnouncements = "announcements" // EdgeRecords holds the string denoting the records edge name in mutations. EdgeRecords = "records" // EdgeCreatedProblems holds the string denoting the created_problems edge name in mutations. EdgeCreatedProblems = "created_problems" // EdgeSolvedProblems holds the string denoting the solved_problems edge name in mutations. EdgeSolvedProblems = "solved_problems" // EdgeManaged holds the string denoting the managed edge name in mutations. EdgeManaged = "managed" // EdgeOwned holds the string denoting the owned edge name in mutations. EdgeOwned = "owned" // Table holds the table name of the user in the database. Table = "users" // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "team_members" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" // AnnouncementsTable is the table that holds the announcements relation/edge. AnnouncementsTable = "users" // AnnouncementsInverseTable is the table name for the Announcement entity. // It exists in this package in order to avoid circular dependency with the "announcement" package. AnnouncementsInverseTable = "announcements" // AnnouncementsColumn is the table column denoting the announcements relation/edge. AnnouncementsColumn = "announcement_author" // RecordsTable is the table that holds the records relation/edge. RecordsTable = "users" // RecordsInverseTable is the table name for the JudgeRecord entity. // It exists in this package in order to avoid circular dependency with the "judgerecord" package. RecordsInverseTable = "judge_records" // RecordsColumn is the table column denoting the records relation/edge. RecordsColumn = "judge_record_user" // CreatedProblemsTable is the table that holds the created_problems relation/edge. CreatedProblemsTable = "problems" // CreatedProblemsInverseTable is the table name for the Problem entity. // It exists in this package in order to avoid circular dependency with the "problem" package. CreatedProblemsInverseTable = "problems" // CreatedProblemsColumn is the table column denoting the created_problems relation/edge. CreatedProblemsColumn = "user_created_problems" // SolvedProblemsTable is the table that holds the solved_problems relation/edge. The primary key declared below. SolvedProblemsTable = "user_solved_problems" // SolvedProblemsInverseTable is the table name for the Problem entity. // It exists in this package in order to avoid circular dependency with the "problem" package. SolvedProblemsInverseTable = "problems" // ManagedTable is the table that holds the managed relation/edge. The primary key declared below. ManagedTable = "team_admins" // ManagedInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. ManagedInverseTable = "teams" // OwnedTable is the table that holds the owned relation/edge. OwnedTable = "teams" // OwnedInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. OwnedInverseTable = "teams" // OwnedColumn is the table column denoting the owned relation/edge. OwnedColumn = "team_creator" )
Variables ¶
var ( // TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the // primary key for the teams relation (M2M). TeamsPrimaryKey = []string{"team_id", "user_id"} // SolvedProblemsPrimaryKey and SolvedProblemsColumn2 are the table columns denoting the // primary key for the solved_problems relation (M2M). SolvedProblemsPrimaryKey = []string{"user_id", "problem_id"} // ManagedPrimaryKey and ManagedColumn2 are the table columns denoting the // primary key for the managed relation (M2M). ManagedPrimaryKey = []string{"team_id", "user_id"} )
var ( // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultAvatar holds the default value on creation for the "avatar" field. DefaultAvatar string // AvatarValidator is a validator for the "avatar" field. It is called by the builders before save. AvatarValidator func(string) error // DefaultCreatedTime holds the default value on creation for the "created_time" field. DefaultCreatedTime time.Time )
var Columns = []string{ FieldID, FieldNickname, FieldEmail, FieldPassword, FieldAvatar, FieldCreatedTime, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"announcement_author",
"judge_record_user",
}
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 Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func CreatedTime ¶
CreatedTime applies equality check predicate on the "created_time" field. It's identical to CreatedTimeEQ.
func CreatedTimeEQ ¶
CreatedTimeEQ applies the EQ predicate on the "created_time" field.
func CreatedTimeGT ¶
CreatedTimeGT applies the GT predicate on the "created_time" field.
func CreatedTimeGTE ¶
CreatedTimeGTE applies the GTE predicate on the "created_time" field.
func CreatedTimeIn ¶
CreatedTimeIn applies the In predicate on the "created_time" field.
func CreatedTimeLT ¶
CreatedTimeLT applies the LT predicate on the "created_time" field.
func CreatedTimeLTE ¶
CreatedTimeLTE applies the LTE predicate on the "created_time" field.
func CreatedTimeNEQ ¶
CreatedTimeNEQ applies the NEQ predicate on the "created_time" field.
func CreatedTimeNotIn ¶
CreatedTimeNotIn applies the NotIn predicate on the "created_time" field.
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 HasAnnouncements ¶
HasAnnouncements applies the HasEdge predicate on the "announcements" edge.
func HasAnnouncementsWith ¶
func HasAnnouncementsWith(preds ...predicate.Announcement) predicate.User
HasAnnouncementsWith applies the HasEdge predicate on the "announcements" edge with a given conditions (other predicates).
func HasCreatedProblems ¶
HasCreatedProblems applies the HasEdge predicate on the "created_problems" edge.
func HasCreatedProblemsWith ¶
HasCreatedProblemsWith applies the HasEdge predicate on the "created_problems" edge with a given conditions (other predicates).
func HasManaged ¶
HasManaged applies the HasEdge predicate on the "managed" edge.
func HasManagedWith ¶
HasManagedWith applies the HasEdge predicate on the "managed" edge with a given conditions (other predicates).
func HasOwnedWith ¶
HasOwnedWith applies the HasEdge predicate on the "owned" edge with a given conditions (other predicates).
func HasRecords ¶
HasRecords applies the HasEdge predicate on the "records" edge.
func HasRecordsWith ¶
func HasRecordsWith(preds ...predicate.JudgeRecord) predicate.User
HasRecordsWith applies the HasEdge predicate on the "records" edge with a given conditions (other predicates).
func HasSolvedProblems ¶
HasSolvedProblems applies the HasEdge predicate on the "solved_problems" edge.
func HasSolvedProblemsWith ¶
HasSolvedProblemsWith applies the HasEdge predicate on the "solved_problems" edge with a given conditions (other predicates).
func HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.