// Code generated by ent, DO NOT EDIT.

package loginrecord

import (
	"time"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/predicate"
)

// ID filters vertices based on their ID field.
func ID(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldID, id))
}

// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldID, id))
}

// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldID, id))
}

// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldID, ids...))
}

// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldID, ids...))
}

// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldID, id))
}

// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldID, id))
}

// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldID, id))
}

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.LoginRecord {
	return predicate.LoginRecord(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.LoginRecord {
	return predicate.LoginRecord(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.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldUpdatedAt, v))
}

// Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func Version(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldVersion, v))
}

// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldUserID, v))
}

// LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.
func LastLoginAt(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginAt, v))
}

// LastLoginIpv4 applies equality check predicate on the "last_login_ipv4" field. It's identical to LastLoginIpv4EQ.
func LastLoginIpv4(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginIpv4, v))
}

// LastLoginDevice applies equality check predicate on the "last_login_device" field. It's identical to LastLoginDeviceEQ.
func LastLoginDevice(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginDevice, v))
}

// LastLoginUA applies equality check predicate on the "last_login_UA" field. It's identical to LastLoginUAEQ.
func LastLoginUA(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginUA, v))
}

// LoginCount applies equality check predicate on the "login_count" field. It's identical to LoginCountEQ.
func LoginCount(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLoginCount, v))
}

// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldCreatedAt, v))
}

// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldCreatedAt, v))
}

// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldCreatedAt, vs...))
}

// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldCreatedAt, vs...))
}

// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldCreatedAt, v))
}

// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldCreatedAt, v))
}

// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldCreatedAt, v))
}

// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldCreatedAt, v))
}

// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldUpdatedAt, v))
}

// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldUpdatedAt, v))
}

// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldUpdatedAt, vs...))
}

// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldUpdatedAt, vs...))
}

// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldUpdatedAt, v))
}

// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldUpdatedAt, v))
}

// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldUpdatedAt, v))
}

// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldUpdatedAt, v))
}

// VersionEQ applies the EQ predicate on the "version" field.
func VersionEQ(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldVersion, v))
}

// VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNEQ(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldVersion, v))
}

// VersionIn applies the In predicate on the "version" field.
func VersionIn(vs ...int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldVersion, vs...))
}

// VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotIn(vs ...int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldVersion, vs...))
}

// VersionGT applies the GT predicate on the "version" field.
func VersionGT(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldVersion, v))
}

// VersionGTE applies the GTE predicate on the "version" field.
func VersionGTE(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldVersion, v))
}

// VersionLT applies the LT predicate on the "version" field.
func VersionLT(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldVersion, v))
}

// VersionLTE applies the LTE predicate on the "version" field.
func VersionLTE(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldVersion, v))
}

// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldUserID, v))
}

// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldUserID, v))
}

// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldUserID, vs...))
}

// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...int64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldUserID, vs...))
}

// LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.
func LastLoginAtEQ(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginAt, v))
}

// LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.
func LastLoginAtNEQ(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldLastLoginAt, v))
}

// LastLoginAtIn applies the In predicate on the "last_login_at" field.
func LastLoginAtIn(vs ...time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldLastLoginAt, vs...))
}

// LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.
func LastLoginAtNotIn(vs ...time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldLastLoginAt, vs...))
}

// LastLoginAtGT applies the GT predicate on the "last_login_at" field.
func LastLoginAtGT(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldLastLoginAt, v))
}

// LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.
func LastLoginAtGTE(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldLastLoginAt, v))
}

// LastLoginAtLT applies the LT predicate on the "last_login_at" field.
func LastLoginAtLT(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldLastLoginAt, v))
}

// LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.
func LastLoginAtLTE(v time.Time) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldLastLoginAt, v))
}

// LastLoginAtIsNil applies the IsNil predicate on the "last_login_at" field.
func LastLoginAtIsNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIsNull(FieldLastLoginAt))
}

// LastLoginAtNotNil applies the NotNil predicate on the "last_login_at" field.
func LastLoginAtNotNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotNull(FieldLastLoginAt))
}

// LastLoginIpv4EQ applies the EQ predicate on the "last_login_ipv4" field.
func LastLoginIpv4EQ(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginIpv4, v))
}

// LastLoginIpv4NEQ applies the NEQ predicate on the "last_login_ipv4" field.
func LastLoginIpv4NEQ(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldLastLoginIpv4, v))
}

// LastLoginIpv4In applies the In predicate on the "last_login_ipv4" field.
func LastLoginIpv4In(vs ...string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldLastLoginIpv4, vs...))
}

// LastLoginIpv4NotIn applies the NotIn predicate on the "last_login_ipv4" field.
func LastLoginIpv4NotIn(vs ...string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldLastLoginIpv4, vs...))
}

// LastLoginIpv4GT applies the GT predicate on the "last_login_ipv4" field.
func LastLoginIpv4GT(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldLastLoginIpv4, v))
}

// LastLoginIpv4GTE applies the GTE predicate on the "last_login_ipv4" field.
func LastLoginIpv4GTE(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldLastLoginIpv4, v))
}

// LastLoginIpv4LT applies the LT predicate on the "last_login_ipv4" field.
func LastLoginIpv4LT(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldLastLoginIpv4, v))
}

// LastLoginIpv4LTE applies the LTE predicate on the "last_login_ipv4" field.
func LastLoginIpv4LTE(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldLastLoginIpv4, v))
}

// LastLoginIpv4Contains applies the Contains predicate on the "last_login_ipv4" field.
func LastLoginIpv4Contains(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldContains(FieldLastLoginIpv4, v))
}

// LastLoginIpv4HasPrefix applies the HasPrefix predicate on the "last_login_ipv4" field.
func LastLoginIpv4HasPrefix(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldHasPrefix(FieldLastLoginIpv4, v))
}

// LastLoginIpv4HasSuffix applies the HasSuffix predicate on the "last_login_ipv4" field.
func LastLoginIpv4HasSuffix(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldHasSuffix(FieldLastLoginIpv4, v))
}

// LastLoginIpv4IsNil applies the IsNil predicate on the "last_login_ipv4" field.
func LastLoginIpv4IsNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIsNull(FieldLastLoginIpv4))
}

// LastLoginIpv4NotNil applies the NotNil predicate on the "last_login_ipv4" field.
func LastLoginIpv4NotNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotNull(FieldLastLoginIpv4))
}

// LastLoginIpv4EqualFold applies the EqualFold predicate on the "last_login_ipv4" field.
func LastLoginIpv4EqualFold(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEqualFold(FieldLastLoginIpv4, v))
}

// LastLoginIpv4ContainsFold applies the ContainsFold predicate on the "last_login_ipv4" field.
func LastLoginIpv4ContainsFold(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldContainsFold(FieldLastLoginIpv4, v))
}

// LastLoginDeviceEQ applies the EQ predicate on the "last_login_device" field.
func LastLoginDeviceEQ(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginDevice, v))
}

// LastLoginDeviceNEQ applies the NEQ predicate on the "last_login_device" field.
func LastLoginDeviceNEQ(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldLastLoginDevice, v))
}

// LastLoginDeviceIn applies the In predicate on the "last_login_device" field.
func LastLoginDeviceIn(vs ...string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldLastLoginDevice, vs...))
}

// LastLoginDeviceNotIn applies the NotIn predicate on the "last_login_device" field.
func LastLoginDeviceNotIn(vs ...string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldLastLoginDevice, vs...))
}

// LastLoginDeviceGT applies the GT predicate on the "last_login_device" field.
func LastLoginDeviceGT(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldLastLoginDevice, v))
}

// LastLoginDeviceGTE applies the GTE predicate on the "last_login_device" field.
func LastLoginDeviceGTE(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldLastLoginDevice, v))
}

// LastLoginDeviceLT applies the LT predicate on the "last_login_device" field.
func LastLoginDeviceLT(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldLastLoginDevice, v))
}

// LastLoginDeviceLTE applies the LTE predicate on the "last_login_device" field.
func LastLoginDeviceLTE(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldLastLoginDevice, v))
}

// LastLoginDeviceContains applies the Contains predicate on the "last_login_device" field.
func LastLoginDeviceContains(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldContains(FieldLastLoginDevice, v))
}

// LastLoginDeviceHasPrefix applies the HasPrefix predicate on the "last_login_device" field.
func LastLoginDeviceHasPrefix(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldHasPrefix(FieldLastLoginDevice, v))
}

// LastLoginDeviceHasSuffix applies the HasSuffix predicate on the "last_login_device" field.
func LastLoginDeviceHasSuffix(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldHasSuffix(FieldLastLoginDevice, v))
}

// LastLoginDeviceIsNil applies the IsNil predicate on the "last_login_device" field.
func LastLoginDeviceIsNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIsNull(FieldLastLoginDevice))
}

// LastLoginDeviceNotNil applies the NotNil predicate on the "last_login_device" field.
func LastLoginDeviceNotNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotNull(FieldLastLoginDevice))
}

// LastLoginDeviceEqualFold applies the EqualFold predicate on the "last_login_device" field.
func LastLoginDeviceEqualFold(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEqualFold(FieldLastLoginDevice, v))
}

// LastLoginDeviceContainsFold applies the ContainsFold predicate on the "last_login_device" field.
func LastLoginDeviceContainsFold(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldContainsFold(FieldLastLoginDevice, v))
}

// LastLoginUAEQ applies the EQ predicate on the "last_login_UA" field.
func LastLoginUAEQ(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLastLoginUA, v))
}

// LastLoginUANEQ applies the NEQ predicate on the "last_login_UA" field.
func LastLoginUANEQ(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldLastLoginUA, v))
}

// LastLoginUAIn applies the In predicate on the "last_login_UA" field.
func LastLoginUAIn(vs ...string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldLastLoginUA, vs...))
}

// LastLoginUANotIn applies the NotIn predicate on the "last_login_UA" field.
func LastLoginUANotIn(vs ...string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldLastLoginUA, vs...))
}

// LastLoginUAGT applies the GT predicate on the "last_login_UA" field.
func LastLoginUAGT(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldLastLoginUA, v))
}

// LastLoginUAGTE applies the GTE predicate on the "last_login_UA" field.
func LastLoginUAGTE(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldLastLoginUA, v))
}

// LastLoginUALT applies the LT predicate on the "last_login_UA" field.
func LastLoginUALT(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldLastLoginUA, v))
}

// LastLoginUALTE applies the LTE predicate on the "last_login_UA" field.
func LastLoginUALTE(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldLastLoginUA, v))
}

// LastLoginUAContains applies the Contains predicate on the "last_login_UA" field.
func LastLoginUAContains(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldContains(FieldLastLoginUA, v))
}

// LastLoginUAHasPrefix applies the HasPrefix predicate on the "last_login_UA" field.
func LastLoginUAHasPrefix(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldHasPrefix(FieldLastLoginUA, v))
}

// LastLoginUAHasSuffix applies the HasSuffix predicate on the "last_login_UA" field.
func LastLoginUAHasSuffix(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldHasSuffix(FieldLastLoginUA, v))
}

// LastLoginUAIsNil applies the IsNil predicate on the "last_login_UA" field.
func LastLoginUAIsNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIsNull(FieldLastLoginUA))
}

// LastLoginUANotNil applies the NotNil predicate on the "last_login_UA" field.
func LastLoginUANotNil() predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotNull(FieldLastLoginUA))
}

// LastLoginUAEqualFold applies the EqualFold predicate on the "last_login_UA" field.
func LastLoginUAEqualFold(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEqualFold(FieldLastLoginUA, v))
}

// LastLoginUAContainsFold applies the ContainsFold predicate on the "last_login_UA" field.
func LastLoginUAContainsFold(v string) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldContainsFold(FieldLastLoginUA, v))
}

// LoginCountEQ applies the EQ predicate on the "login_count" field.
func LoginCountEQ(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldEQ(FieldLoginCount, v))
}

// LoginCountNEQ applies the NEQ predicate on the "login_count" field.
func LoginCountNEQ(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNEQ(FieldLoginCount, v))
}

// LoginCountIn applies the In predicate on the "login_count" field.
func LoginCountIn(vs ...uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldIn(FieldLoginCount, vs...))
}

// LoginCountNotIn applies the NotIn predicate on the "login_count" field.
func LoginCountNotIn(vs ...uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldNotIn(FieldLoginCount, vs...))
}

// LoginCountGT applies the GT predicate on the "login_count" field.
func LoginCountGT(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGT(FieldLoginCount, v))
}

// LoginCountGTE applies the GTE predicate on the "login_count" field.
func LoginCountGTE(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldGTE(FieldLoginCount, v))
}

// LoginCountLT applies the LT predicate on the "login_count" field.
func LoginCountLT(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLT(FieldLoginCount, v))
}

// LoginCountLTE applies the LTE predicate on the "login_count" field.
func LoginCountLTE(v uint64) predicate.LoginRecord {
	return predicate.LoginRecord(sql.FieldLTE(FieldLoginCount, v))
}

// HasUser applies the HasEdge predicate on the "user" edge.
func HasUser() predicate.LoginRecord {
	return predicate.LoginRecord(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2O, true, UserTable, UserColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasUserWith(preds ...predicate.User) predicate.LoginRecord {
	return predicate.LoginRecord(func(s *sql.Selector) {
		step := newUserStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// And groups predicates with the AND operator between them.
func And(predicates ...predicate.LoginRecord) predicate.LoginRecord {
	return predicate.LoginRecord(func(s *sql.Selector) {
		s1 := s.Clone().SetP(nil)
		for _, p := range predicates {
			p(s1)
		}
		s.Where(s1.P())
	})
}

// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.LoginRecord) predicate.LoginRecord {
	return predicate.LoginRecord(func(s *sql.Selector) {
		s1 := s.Clone().SetP(nil)
		for i, p := range predicates {
			if i > 0 {
				s1.Or()
			}
			p(s1)
		}
		s.Where(s1.P())
	})
}

// Not applies the not operator on the given predicate.
func Not(p predicate.LoginRecord) predicate.LoginRecord {
	return predicate.LoginRecord(func(s *sql.Selector) {
		p(s.Not())
	})
}
