1181 lines
41 KiB
Go
1181 lines
41 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package user
|
|
|
|
import (
|
|
"mingyang-admin-app-rpc/ent/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uint64) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uint64) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uint64) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
|
func Status(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
|
|
func TenantID(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldTenantID, v))
|
|
}
|
|
|
|
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
|
|
func DeletedAt(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
|
|
func Username(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUsername, v))
|
|
}
|
|
|
|
// Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
|
|
func Email(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldEmail, v))
|
|
}
|
|
|
|
// Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.
|
|
func Mobile(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldMobile, v))
|
|
}
|
|
|
|
// PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
|
|
func PasswordHash(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
|
|
}
|
|
|
|
// Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.
|
|
func Salt(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldSalt, v))
|
|
}
|
|
|
|
// Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
|
|
func Nickname(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldNickname, v))
|
|
}
|
|
|
|
// Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
|
|
func Avatar(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.
|
|
func Birthday(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldBirthday, v))
|
|
}
|
|
|
|
// IsVerified applies equality check predicate on the "is_verified" field. It's identical to IsVerifiedEQ.
|
|
func IsVerified(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldIsVerified, v))
|
|
}
|
|
|
|
// RegisteredLoginIP applies equality check predicate on the "registered_login_ip" field. It's identical to RegisteredLoginIPEQ.
|
|
func RegisteredLoginIP(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// LoginAttempts applies equality check predicate on the "login_attempts" field. It's identical to LoginAttemptsEQ.
|
|
func LoginAttempts(v int64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// RegistrationSource applies equality check predicate on the "registration_source" field. It's identical to RegistrationSourceEQ.
|
|
func RegistrationSource(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...uint8) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...uint8) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusGT applies the GT predicate on the "status" field.
|
|
func StatusGT(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
|
func StatusGTE(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLT applies the LT predicate on the "status" field.
|
|
func StatusLT(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
|
func StatusLTE(v uint8) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIsNil applies the IsNil predicate on the "status" field.
|
|
func StatusIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldStatus))
|
|
}
|
|
|
|
// StatusNotNil applies the NotNil predicate on the "status" field.
|
|
func StatusNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldStatus))
|
|
}
|
|
|
|
// TenantIDEQ applies the EQ predicate on the "tenant_id" field.
|
|
func TenantIDEQ(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
|
|
func TenantIDNEQ(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDIn applies the In predicate on the "tenant_id" field.
|
|
func TenantIDIn(vs ...uint64) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldTenantID, vs...))
|
|
}
|
|
|
|
// TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
|
|
func TenantIDNotIn(vs ...uint64) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldTenantID, vs...))
|
|
}
|
|
|
|
// TenantIDGT applies the GT predicate on the "tenant_id" field.
|
|
func TenantIDGT(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDGTE applies the GTE predicate on the "tenant_id" field.
|
|
func TenantIDGTE(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDLT applies the LT predicate on the "tenant_id" field.
|
|
func TenantIDLT(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDLTE applies the LTE predicate on the "tenant_id" field.
|
|
func TenantIDLTE(v uint64) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldTenantID, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// UsernameEQ applies the EQ predicate on the "username" field.
|
|
func UsernameEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameNEQ applies the NEQ predicate on the "username" field.
|
|
func UsernameNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameIn applies the In predicate on the "username" field.
|
|
func UsernameIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldUsername, vs...))
|
|
}
|
|
|
|
// UsernameNotIn applies the NotIn predicate on the "username" field.
|
|
func UsernameNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldUsername, vs...))
|
|
}
|
|
|
|
// UsernameGT applies the GT predicate on the "username" field.
|
|
func UsernameGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameGTE applies the GTE predicate on the "username" field.
|
|
func UsernameGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameLT applies the LT predicate on the "username" field.
|
|
func UsernameLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameLTE applies the LTE predicate on the "username" field.
|
|
func UsernameLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameContains applies the Contains predicate on the "username" field.
|
|
func UsernameContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
|
|
func UsernameHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
|
|
func UsernameHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameEqualFold applies the EqualFold predicate on the "username" field.
|
|
func UsernameEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameContainsFold applies the ContainsFold predicate on the "username" field.
|
|
func UsernameContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldUsername, v))
|
|
}
|
|
|
|
// EmailEQ applies the EQ predicate on the "email" field.
|
|
func EmailEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldEmail, v))
|
|
}
|
|
|
|
// EmailNEQ applies the NEQ predicate on the "email" field.
|
|
func EmailNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldEmail, v))
|
|
}
|
|
|
|
// EmailIn applies the In predicate on the "email" field.
|
|
func EmailIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldEmail, vs...))
|
|
}
|
|
|
|
// EmailNotIn applies the NotIn predicate on the "email" field.
|
|
func EmailNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldEmail, vs...))
|
|
}
|
|
|
|
// EmailGT applies the GT predicate on the "email" field.
|
|
func EmailGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldEmail, v))
|
|
}
|
|
|
|
// EmailGTE applies the GTE predicate on the "email" field.
|
|
func EmailGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldEmail, v))
|
|
}
|
|
|
|
// EmailLT applies the LT predicate on the "email" field.
|
|
func EmailLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldEmail, v))
|
|
}
|
|
|
|
// EmailLTE applies the LTE predicate on the "email" field.
|
|
func EmailLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldEmail, v))
|
|
}
|
|
|
|
// EmailContains applies the Contains predicate on the "email" field.
|
|
func EmailContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldEmail, v))
|
|
}
|
|
|
|
// EmailHasPrefix applies the HasPrefix predicate on the "email" field.
|
|
func EmailHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldEmail, v))
|
|
}
|
|
|
|
// EmailHasSuffix applies the HasSuffix predicate on the "email" field.
|
|
func EmailHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldEmail, v))
|
|
}
|
|
|
|
// EmailEqualFold applies the EqualFold predicate on the "email" field.
|
|
func EmailEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldEmail, v))
|
|
}
|
|
|
|
// EmailContainsFold applies the ContainsFold predicate on the "email" field.
|
|
func EmailContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldEmail, v))
|
|
}
|
|
|
|
// MobileEQ applies the EQ predicate on the "mobile" field.
|
|
func MobileEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldMobile, v))
|
|
}
|
|
|
|
// MobileNEQ applies the NEQ predicate on the "mobile" field.
|
|
func MobileNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldMobile, v))
|
|
}
|
|
|
|
// MobileIn applies the In predicate on the "mobile" field.
|
|
func MobileIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldMobile, vs...))
|
|
}
|
|
|
|
// MobileNotIn applies the NotIn predicate on the "mobile" field.
|
|
func MobileNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldMobile, vs...))
|
|
}
|
|
|
|
// MobileGT applies the GT predicate on the "mobile" field.
|
|
func MobileGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldMobile, v))
|
|
}
|
|
|
|
// MobileGTE applies the GTE predicate on the "mobile" field.
|
|
func MobileGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldMobile, v))
|
|
}
|
|
|
|
// MobileLT applies the LT predicate on the "mobile" field.
|
|
func MobileLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldMobile, v))
|
|
}
|
|
|
|
// MobileLTE applies the LTE predicate on the "mobile" field.
|
|
func MobileLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldMobile, v))
|
|
}
|
|
|
|
// MobileContains applies the Contains predicate on the "mobile" field.
|
|
func MobileContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldMobile, v))
|
|
}
|
|
|
|
// MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.
|
|
func MobileHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldMobile, v))
|
|
}
|
|
|
|
// MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.
|
|
func MobileHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldMobile, v))
|
|
}
|
|
|
|
// MobileIsNil applies the IsNil predicate on the "mobile" field.
|
|
func MobileIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldMobile))
|
|
}
|
|
|
|
// MobileNotNil applies the NotNil predicate on the "mobile" field.
|
|
func MobileNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldMobile))
|
|
}
|
|
|
|
// MobileEqualFold applies the EqualFold predicate on the "mobile" field.
|
|
func MobileEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldMobile, v))
|
|
}
|
|
|
|
// MobileContainsFold applies the ContainsFold predicate on the "mobile" field.
|
|
func MobileContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldMobile, v))
|
|
}
|
|
|
|
// PasswordHashEQ applies the EQ predicate on the "password_hash" field.
|
|
func PasswordHashEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
|
|
func PasswordHashNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashIn applies the In predicate on the "password_hash" field.
|
|
func PasswordHashIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldPasswordHash, vs...))
|
|
}
|
|
|
|
// PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
|
|
func PasswordHashNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldPasswordHash, vs...))
|
|
}
|
|
|
|
// PasswordHashGT applies the GT predicate on the "password_hash" field.
|
|
func PasswordHashGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashGTE applies the GTE predicate on the "password_hash" field.
|
|
func PasswordHashGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashLT applies the LT predicate on the "password_hash" field.
|
|
func PasswordHashLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashLTE applies the LTE predicate on the "password_hash" field.
|
|
func PasswordHashLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashContains applies the Contains predicate on the "password_hash" field.
|
|
func PasswordHashContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
|
|
func PasswordHashHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
|
|
func PasswordHashHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
|
|
func PasswordHashEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldPasswordHash, v))
|
|
}
|
|
|
|
// PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
|
|
func PasswordHashContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldPasswordHash, v))
|
|
}
|
|
|
|
// SaltEQ applies the EQ predicate on the "salt" field.
|
|
func SaltEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldSalt, v))
|
|
}
|
|
|
|
// SaltNEQ applies the NEQ predicate on the "salt" field.
|
|
func SaltNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldSalt, v))
|
|
}
|
|
|
|
// SaltIn applies the In predicate on the "salt" field.
|
|
func SaltIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldSalt, vs...))
|
|
}
|
|
|
|
// SaltNotIn applies the NotIn predicate on the "salt" field.
|
|
func SaltNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldSalt, vs...))
|
|
}
|
|
|
|
// SaltGT applies the GT predicate on the "salt" field.
|
|
func SaltGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldSalt, v))
|
|
}
|
|
|
|
// SaltGTE applies the GTE predicate on the "salt" field.
|
|
func SaltGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldSalt, v))
|
|
}
|
|
|
|
// SaltLT applies the LT predicate on the "salt" field.
|
|
func SaltLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldSalt, v))
|
|
}
|
|
|
|
// SaltLTE applies the LTE predicate on the "salt" field.
|
|
func SaltLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldSalt, v))
|
|
}
|
|
|
|
// SaltContains applies the Contains predicate on the "salt" field.
|
|
func SaltContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldSalt, v))
|
|
}
|
|
|
|
// SaltHasPrefix applies the HasPrefix predicate on the "salt" field.
|
|
func SaltHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldSalt, v))
|
|
}
|
|
|
|
// SaltHasSuffix applies the HasSuffix predicate on the "salt" field.
|
|
func SaltHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldSalt, v))
|
|
}
|
|
|
|
// SaltEqualFold applies the EqualFold predicate on the "salt" field.
|
|
func SaltEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldSalt, v))
|
|
}
|
|
|
|
// SaltContainsFold applies the ContainsFold predicate on the "salt" field.
|
|
func SaltContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldSalt, v))
|
|
}
|
|
|
|
// NicknameEQ applies the EQ predicate on the "nickname" field.
|
|
func NicknameEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameNEQ applies the NEQ predicate on the "nickname" field.
|
|
func NicknameNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameIn applies the In predicate on the "nickname" field.
|
|
func NicknameIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldNickname, vs...))
|
|
}
|
|
|
|
// NicknameNotIn applies the NotIn predicate on the "nickname" field.
|
|
func NicknameNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldNickname, vs...))
|
|
}
|
|
|
|
// NicknameGT applies the GT predicate on the "nickname" field.
|
|
func NicknameGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameGTE applies the GTE predicate on the "nickname" field.
|
|
func NicknameGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameLT applies the LT predicate on the "nickname" field.
|
|
func NicknameLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameLTE applies the LTE predicate on the "nickname" field.
|
|
func NicknameLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameContains applies the Contains predicate on the "nickname" field.
|
|
func NicknameContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
|
|
func NicknameHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
|
|
func NicknameHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
|
|
func NicknameEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldNickname, v))
|
|
}
|
|
|
|
// NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
|
|
func NicknameContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldNickname, v))
|
|
}
|
|
|
|
// AvatarEQ applies the EQ predicate on the "avatar" field.
|
|
func AvatarEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarNEQ applies the NEQ predicate on the "avatar" field.
|
|
func AvatarNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarIn applies the In predicate on the "avatar" field.
|
|
func AvatarIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldAvatar, vs...))
|
|
}
|
|
|
|
// AvatarNotIn applies the NotIn predicate on the "avatar" field.
|
|
func AvatarNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldAvatar, vs...))
|
|
}
|
|
|
|
// AvatarGT applies the GT predicate on the "avatar" field.
|
|
func AvatarGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarGTE applies the GTE predicate on the "avatar" field.
|
|
func AvatarGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarLT applies the LT predicate on the "avatar" field.
|
|
func AvatarLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarLTE applies the LTE predicate on the "avatar" field.
|
|
func AvatarLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarContains applies the Contains predicate on the "avatar" field.
|
|
func AvatarContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
|
|
func AvatarHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
|
|
func AvatarHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarIsNil applies the IsNil predicate on the "avatar" field.
|
|
func AvatarIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldAvatar))
|
|
}
|
|
|
|
// AvatarNotNil applies the NotNil predicate on the "avatar" field.
|
|
func AvatarNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldAvatar))
|
|
}
|
|
|
|
// AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
|
|
func AvatarEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
|
|
func AvatarContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldAvatar, v))
|
|
}
|
|
|
|
// GenderEQ applies the EQ predicate on the "gender" field.
|
|
func GenderEQ(v Gender) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldGender, v))
|
|
}
|
|
|
|
// GenderNEQ applies the NEQ predicate on the "gender" field.
|
|
func GenderNEQ(v Gender) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldGender, v))
|
|
}
|
|
|
|
// GenderIn applies the In predicate on the "gender" field.
|
|
func GenderIn(vs ...Gender) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldGender, vs...))
|
|
}
|
|
|
|
// GenderNotIn applies the NotIn predicate on the "gender" field.
|
|
func GenderNotIn(vs ...Gender) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldGender, vs...))
|
|
}
|
|
|
|
// BirthdayEQ applies the EQ predicate on the "birthday" field.
|
|
func BirthdayEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldBirthday, v))
|
|
}
|
|
|
|
// BirthdayNEQ applies the NEQ predicate on the "birthday" field.
|
|
func BirthdayNEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldBirthday, v))
|
|
}
|
|
|
|
// BirthdayIn applies the In predicate on the "birthday" field.
|
|
func BirthdayIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldBirthday, vs...))
|
|
}
|
|
|
|
// BirthdayNotIn applies the NotIn predicate on the "birthday" field.
|
|
func BirthdayNotIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldBirthday, vs...))
|
|
}
|
|
|
|
// BirthdayGT applies the GT predicate on the "birthday" field.
|
|
func BirthdayGT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldBirthday, v))
|
|
}
|
|
|
|
// BirthdayGTE applies the GTE predicate on the "birthday" field.
|
|
func BirthdayGTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldBirthday, v))
|
|
}
|
|
|
|
// BirthdayLT applies the LT predicate on the "birthday" field.
|
|
func BirthdayLT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldBirthday, v))
|
|
}
|
|
|
|
// BirthdayLTE applies the LTE predicate on the "birthday" field.
|
|
func BirthdayLTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldBirthday, v))
|
|
}
|
|
|
|
// BirthdayIsNil applies the IsNil predicate on the "birthday" field.
|
|
func BirthdayIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldBirthday))
|
|
}
|
|
|
|
// BirthdayNotNil applies the NotNil predicate on the "birthday" field.
|
|
func BirthdayNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldBirthday))
|
|
}
|
|
|
|
// AccountStatusEQ applies the EQ predicate on the "account_status" field.
|
|
func AccountStatusEQ(v AccountStatus) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldAccountStatus, v))
|
|
}
|
|
|
|
// AccountStatusNEQ applies the NEQ predicate on the "account_status" field.
|
|
func AccountStatusNEQ(v AccountStatus) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldAccountStatus, v))
|
|
}
|
|
|
|
// AccountStatusIn applies the In predicate on the "account_status" field.
|
|
func AccountStatusIn(vs ...AccountStatus) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldAccountStatus, vs...))
|
|
}
|
|
|
|
// AccountStatusNotIn applies the NotIn predicate on the "account_status" field.
|
|
func AccountStatusNotIn(vs ...AccountStatus) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldAccountStatus, vs...))
|
|
}
|
|
|
|
// IsVerifiedEQ applies the EQ predicate on the "is_verified" field.
|
|
func IsVerifiedEQ(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldIsVerified, v))
|
|
}
|
|
|
|
// IsVerifiedNEQ applies the NEQ predicate on the "is_verified" field.
|
|
func IsVerifiedNEQ(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldIsVerified, v))
|
|
}
|
|
|
|
// IsVerifiedIn applies the In predicate on the "is_verified" field.
|
|
func IsVerifiedIn(vs ...uint32) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldIsVerified, vs...))
|
|
}
|
|
|
|
// IsVerifiedNotIn applies the NotIn predicate on the "is_verified" field.
|
|
func IsVerifiedNotIn(vs ...uint32) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldIsVerified, vs...))
|
|
}
|
|
|
|
// IsVerifiedGT applies the GT predicate on the "is_verified" field.
|
|
func IsVerifiedGT(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldIsVerified, v))
|
|
}
|
|
|
|
// IsVerifiedGTE applies the GTE predicate on the "is_verified" field.
|
|
func IsVerifiedGTE(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldIsVerified, v))
|
|
}
|
|
|
|
// IsVerifiedLT applies the LT predicate on the "is_verified" field.
|
|
func IsVerifiedLT(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldIsVerified, v))
|
|
}
|
|
|
|
// IsVerifiedLTE applies the LTE predicate on the "is_verified" field.
|
|
func IsVerifiedLTE(v uint32) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldIsVerified, v))
|
|
}
|
|
|
|
// RegisteredLoginIPEQ applies the EQ predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPNEQ applies the NEQ predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPIn applies the In predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldRegisteredLoginIP, vs...))
|
|
}
|
|
|
|
// RegisteredLoginIPNotIn applies the NotIn predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldRegisteredLoginIP, vs...))
|
|
}
|
|
|
|
// RegisteredLoginIPGT applies the GT predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPGTE applies the GTE predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPLT applies the LT predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPLTE applies the LTE predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPContains applies the Contains predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPHasPrefix applies the HasPrefix predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPHasSuffix applies the HasSuffix predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPIsNil applies the IsNil predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldRegisteredLoginIP))
|
|
}
|
|
|
|
// RegisteredLoginIPNotNil applies the NotNil predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldRegisteredLoginIP))
|
|
}
|
|
|
|
// RegisteredLoginIPEqualFold applies the EqualFold predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// RegisteredLoginIPContainsFold applies the ContainsFold predicate on the "registered_login_ip" field.
|
|
func RegisteredLoginIPContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldRegisteredLoginIP, v))
|
|
}
|
|
|
|
// LoginAttemptsEQ applies the EQ predicate on the "login_attempts" field.
|
|
func LoginAttemptsEQ(v int64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// LoginAttemptsNEQ applies the NEQ predicate on the "login_attempts" field.
|
|
func LoginAttemptsNEQ(v int64) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// LoginAttemptsIn applies the In predicate on the "login_attempts" field.
|
|
func LoginAttemptsIn(vs ...int64) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldLoginAttempts, vs...))
|
|
}
|
|
|
|
// LoginAttemptsNotIn applies the NotIn predicate on the "login_attempts" field.
|
|
func LoginAttemptsNotIn(vs ...int64) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldLoginAttempts, vs...))
|
|
}
|
|
|
|
// LoginAttemptsGT applies the GT predicate on the "login_attempts" field.
|
|
func LoginAttemptsGT(v int64) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// LoginAttemptsGTE applies the GTE predicate on the "login_attempts" field.
|
|
func LoginAttemptsGTE(v int64) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// LoginAttemptsLT applies the LT predicate on the "login_attempts" field.
|
|
func LoginAttemptsLT(v int64) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// LoginAttemptsLTE applies the LTE predicate on the "login_attempts" field.
|
|
func LoginAttemptsLTE(v int64) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldLoginAttempts, v))
|
|
}
|
|
|
|
// MetadataIsNil applies the IsNil predicate on the "metadata" field.
|
|
func MetadataIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldMetadata))
|
|
}
|
|
|
|
// MetadataNotNil applies the NotNil predicate on the "metadata" field.
|
|
func MetadataNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldMetadata))
|
|
}
|
|
|
|
// RegistrationSourceEQ applies the EQ predicate on the "registration_source" field.
|
|
func RegistrationSourceEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceNEQ applies the NEQ predicate on the "registration_source" field.
|
|
func RegistrationSourceNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceIn applies the In predicate on the "registration_source" field.
|
|
func RegistrationSourceIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldRegistrationSource, vs...))
|
|
}
|
|
|
|
// RegistrationSourceNotIn applies the NotIn predicate on the "registration_source" field.
|
|
func RegistrationSourceNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldRegistrationSource, vs...))
|
|
}
|
|
|
|
// RegistrationSourceGT applies the GT predicate on the "registration_source" field.
|
|
func RegistrationSourceGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceGTE applies the GTE predicate on the "registration_source" field.
|
|
func RegistrationSourceGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceLT applies the LT predicate on the "registration_source" field.
|
|
func RegistrationSourceLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceLTE applies the LTE predicate on the "registration_source" field.
|
|
func RegistrationSourceLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceContains applies the Contains predicate on the "registration_source" field.
|
|
func RegistrationSourceContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceHasPrefix applies the HasPrefix predicate on the "registration_source" field.
|
|
func RegistrationSourceHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceHasSuffix applies the HasSuffix predicate on the "registration_source" field.
|
|
func RegistrationSourceHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceIsNil applies the IsNil predicate on the "registration_source" field.
|
|
func RegistrationSourceIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldRegistrationSource))
|
|
}
|
|
|
|
// RegistrationSourceNotNil applies the NotNil predicate on the "registration_source" field.
|
|
func RegistrationSourceNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldRegistrationSource))
|
|
}
|
|
|
|
// RegistrationSourceEqualFold applies the EqualFold predicate on the "registration_source" field.
|
|
func RegistrationSourceEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// RegistrationSourceContainsFold applies the ContainsFold predicate on the "registration_source" field.
|
|
func RegistrationSourceContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldRegistrationSource, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.User) predicate.User {
|
|
return predicate.User(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.User) predicate.User {
|
|
return predicate.User(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.User) predicate.User {
|
|
return predicate.User(sql.NotPredicates(p))
|
|
}
|