Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func AvatarURL(v string) predicate.User
- func AvatarURLContains(v string) predicate.User
- func AvatarURLContainsFold(v string) predicate.User
- func AvatarURLEQ(v string) predicate.User
- func AvatarURLEqualFold(v string) predicate.User
- func AvatarURLGT(v string) predicate.User
- func AvatarURLGTE(v string) predicate.User
- func AvatarURLHasPrefix(v string) predicate.User
- func AvatarURLHasSuffix(v string) predicate.User
- func AvatarURLIn(vs ...string) predicate.User
- func AvatarURLIsNil() predicate.User
- func AvatarURLLT(v string) predicate.User
- func AvatarURLLTE(v string) predicate.User
- func AvatarURLNEQ(v string) predicate.User
- func AvatarURLNotIn(vs ...string) predicate.User
- func AvatarURLNotNil() predicate.User
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) predicate.User
- func DeleteTime(v time.Time) predicate.User
- func DeleteTimeEQ(v time.Time) predicate.User
- func DeleteTimeGT(v time.Time) predicate.User
- func DeleteTimeGTE(v time.Time) predicate.User
- func DeleteTimeIn(vs ...time.Time) predicate.User
- func DeleteTimeIsNil() predicate.User
- func DeleteTimeLT(v time.Time) predicate.User
- func DeleteTimeLTE(v time.Time) predicate.User
- func DeleteTimeNEQ(v time.Time) predicate.User
- func DeleteTimeNotIn(vs ...time.Time) predicate.User
- func DeleteTimeNotNil() predicate.User
- func GenderEQ(v Gender) predicate.User
- func GenderIn(vs ...Gender) predicate.User
- func GenderNEQ(v Gender) predicate.User
- func GenderNotIn(vs ...Gender) predicate.User
- func GenderValidator(ge Gender) error
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.UserGroup) predicate.User
- func HasUserEmails() predicate.User
- func HasUserEmailsWith(preds ...predicate.UserEmail) predicate.User
- func HasUserSecurityLogs() predicate.User
- func HasUserSecurityLogsWith(preds ...predicate.UserSecurityLog) predicate.User
- func HasUserSettings() predicate.User
- func HasUserSettingsWith(preds ...predicate.UserSetting) 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 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 PasswordIsNil() 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 PasswordNotNil() predicate.User
- func Phone(v string) predicate.User
- func PhoneContains(v string) predicate.User
- func PhoneContainsFold(v string) predicate.User
- func PhoneEQ(v string) predicate.User
- func PhoneEqualFold(v string) predicate.User
- func PhoneGT(v string) predicate.User
- func PhoneGTE(v string) predicate.User
- func PhoneHasPrefix(v string) predicate.User
- func PhoneHasSuffix(v string) predicate.User
- func PhoneIn(vs ...string) predicate.User
- func PhoneIsNil() predicate.User
- func PhoneLT(v string) predicate.User
- func PhoneLTE(v string) predicate.User
- func PhoneNEQ(v string) predicate.User
- func PhoneNotIn(vs ...string) predicate.User
- func PhoneNotNil() predicate.User
- func PlanEQ(v Plan) predicate.User
- func PlanIn(vs ...Plan) predicate.User
- func PlanIsNil() predicate.User
- func PlanNEQ(v Plan) predicate.User
- func PlanNotIn(vs ...Plan) predicate.User
- func PlanNotNil() predicate.User
- func PlanValidator(pl Plan) error
- func SecondAuth(v bool) predicate.User
- func SecondAuthEQ(v bool) predicate.User
- func SecondAuthNEQ(v bool) predicate.User
- func Sn(v string) predicate.User
- func SnContains(v string) predicate.User
- func SnContainsFold(v string) predicate.User
- func SnEQ(v string) predicate.User
- func SnEqualFold(v string) predicate.User
- func SnGT(v string) predicate.User
- func SnGTE(v string) predicate.User
- func SnHasPrefix(v string) predicate.User
- func SnHasSuffix(v string) predicate.User
- func SnIn(vs ...string) predicate.User
- func SnLT(v string) predicate.User
- func SnLTE(v string) predicate.User
- func SnNEQ(v string) predicate.User
- func SnNotIn(vs ...string) predicate.User
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusIsNil() predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusNotNil() predicate.User
- func StatusValidator(s Status) error
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
- type Gender
- type Plan
- type Status
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" // FieldSn holds the string denoting the sn field in the database. FieldSn = "sn" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldPlan holds the string denoting the plan field in the database. FieldPlan = "plan" // FieldAvatarURL holds the string denoting the avatar_url field in the database. FieldAvatarURL = "avatar_url" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldSecondAuth holds the string denoting the second_auth field in the database. FieldSecondAuth = "second_auth" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // FieldDeleteTime holds the string denoting the delete_time field in the database. FieldDeleteTime = "delete_time" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeUserEmails holds the string denoting the useremails edge name in mutations. EdgeUserEmails = "UserEmails" // EdgeUserSettings holds the string denoting the usersettings edge name in mutations. EdgeUserSettings = "UserSettings" // EdgeUserSecurityLogs holds the string denoting the usersecuritylogs edge name in mutations. EdgeUserSecurityLogs = "UserSecurityLogs" // Table holds the table name of the user in the database. Table = "user_profile" // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. GroupsTable = "user_group_users" // GroupsInverseTable is the table name for the UserGroup entity. // It exists in this package in order to avoid circular dependency with the "usergroup" package. GroupsInverseTable = "user_group" // UserEmailsTable is the table the holds the UserEmails relation/edge. UserEmailsTable = "user_email" // UserEmailsInverseTable is the table name for the UserEmail entity. // It exists in this package in order to avoid circular dependency with the "useremail" package. UserEmailsInverseTable = "user_email" // UserEmailsColumn is the table column denoting the UserEmails relation/edge. UserEmailsColumn = "owner_id" // UserSettingsTable is the table the holds the UserSettings relation/edge. UserSettingsTable = "user_setting" // UserSettingsInverseTable is the table name for the UserSetting entity. // It exists in this package in order to avoid circular dependency with the "usersetting" package. UserSettingsInverseTable = "user_setting" // UserSettingsColumn is the table column denoting the UserSettings relation/edge. UserSettingsColumn = "owner_id" // UserSecurityLogsTable is the table the holds the UserSecurityLogs relation/edge. UserSecurityLogsTable = "user_security_log" // UserSecurityLogsInverseTable is the table name for the UserSecurityLog entity. // It exists in this package in order to avoid circular dependency with the "usersecuritylog" package. UserSecurityLogsInverseTable = "user_security_log" // UserSecurityLogsColumn is the table column denoting the UserSecurityLogs relation/edge. UserSecurityLogsColumn = "owner_id" )
const DefaultGender = GenderUNKNOWN
GenderUNKNOWN is the default value of the Gender enum.
const DefaultPlan = PlanFREE
PlanFREE is the default value of the Plan enum.
Variables ¶
var ( // DefaultSn holds the default value on creation for the "sn" field. DefaultSn func() string // SnValidator is a validator for the "sn" field. It is called by the builders before save. SnValidator func(string) error // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // DefaultAvatarURL holds the default value on creation for the "avatar_url" field. DefaultAvatarURL string // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // DefaultSecondAuth holds the default value on creation for the "second_auth" field. DefaultSecondAuth bool // DefaultPassword holds the default value on creation for the "password" field. DefaultPassword string // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // 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 )
var Columns = []string{ FieldID, FieldSn, FieldNickname, FieldGender, FieldPlan, FieldAvatarURL, FieldPhone, FieldSecondAuth, FieldPassword, FieldStatus, FieldCreateTime, FieldUpdateTime, FieldDeleteTime, }
Columns holds all SQL columns for user fields.
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"user_group_id", "user_id"} )
Functions ¶
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIsNil ¶
AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotNil ¶
AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeleteTime ¶
DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.
func DeleteTimeEQ ¶
DeleteTimeEQ applies the EQ predicate on the "delete_time" field.
func DeleteTimeGT ¶
DeleteTimeGT applies the GT predicate on the "delete_time" field.
func DeleteTimeGTE ¶
DeleteTimeGTE applies the GTE predicate on the "delete_time" field.
func DeleteTimeIn ¶
DeleteTimeIn applies the In predicate on the "delete_time" field.
func DeleteTimeIsNil ¶
DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.
func DeleteTimeLT ¶
DeleteTimeLT applies the LT predicate on the "delete_time" field.
func DeleteTimeLTE ¶
DeleteTimeLTE applies the LTE predicate on the "delete_time" field.
func DeleteTimeNEQ ¶
DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.
func DeleteTimeNotIn ¶
DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.
func DeleteTimeNotNil ¶
DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.
func GenderNotIn ¶
GenderNotIn applies the NotIn predicate on the "gender" field.
func GenderValidator ¶
GenderValidator is a validator for the "gender" field enum values. It is called by the builders before save.
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasUserEmails ¶
HasUserEmails applies the HasEdge predicate on the "UserEmails" edge.
func HasUserEmailsWith ¶
HasUserEmailsWith applies the HasEdge predicate on the "UserEmails" edge with a given conditions (other predicates).
func HasUserSecurityLogs ¶
HasUserSecurityLogs applies the HasEdge predicate on the "UserSecurityLogs" edge.
func HasUserSecurityLogsWith ¶
func HasUserSecurityLogsWith(preds ...predicate.UserSecurityLog) predicate.User
HasUserSecurityLogsWith applies the HasEdge predicate on the "UserSecurityLogs" edge with a given conditions (other predicates).
func HasUserSettings ¶
HasUserSettings applies the HasEdge predicate on the "UserSettings" edge.
func HasUserSettingsWith ¶
func HasUserSettingsWith(preds ...predicate.UserSetting) predicate.User
HasUserSettingsWith applies the HasEdge predicate on the "UserSettings" 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 PasswordIsNil ¶
PasswordIsNil applies the IsNil 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 PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func PlanNotNil ¶
PlanNotNil applies the NotNil predicate on the "plan" field.
func PlanValidator ¶
PlanValidator is a validator for the "plan" field enum values. It is called by the builders before save.
func SecondAuth ¶
SecondAuth applies equality check predicate on the "second_auth" field. It's identical to SecondAuthEQ.
func SecondAuthEQ ¶
SecondAuthEQ applies the EQ predicate on the "second_auth" field.
func SecondAuthNEQ ¶
SecondAuthNEQ applies the NEQ predicate on the "second_auth" field.
func SnContains ¶
SnContains applies the Contains predicate on the "sn" field.
func SnContainsFold ¶
SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnEqualFold ¶
SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnHasPrefix ¶
SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasSuffix ¶
SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Gender ¶
type Gender string
Gender defines the type for the "gender" enum field.