// Code generated by ent, DO NOT EDIT.

package adminloginhistory

import (
	"time"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"github.com/chaitin/MonkeyCode/backend/db/predicate"
	"github.com/google/uuid"
)

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

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

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

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

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

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

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

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

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldID, id))
}

// AdminID applies equality check predicate on the "admin_id" field. It's identical to AdminIDEQ.
func AdminID(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldAdminID, v))
}

// IP applies equality check predicate on the "ip" field. It's identical to IPEQ.
func IP(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldIP, v))
}

// Country applies equality check predicate on the "country" field. It's identical to CountryEQ.
func Country(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldCountry, v))
}

// Province applies equality check predicate on the "province" field. It's identical to ProvinceEQ.
func Province(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldProvince, v))
}

// City applies equality check predicate on the "city" field. It's identical to CityEQ.
func City(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldCity, v))
}

// Isp applies equality check predicate on the "isp" field. It's identical to IspEQ.
func Isp(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldIsp, v))
}

// Asn applies equality check predicate on the "asn" field. It's identical to AsnEQ.
func Asn(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldAsn, v))
}

// ClientVersion applies equality check predicate on the "client_version" field. It's identical to ClientVersionEQ.
func ClientVersion(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldClientVersion, v))
}

// Device applies equality check predicate on the "device" field. It's identical to DeviceEQ.
func Device(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldDevice, v))
}

// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldCreatedAt, v))
}

// AdminIDEQ applies the EQ predicate on the "admin_id" field.
func AdminIDEQ(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldAdminID, v))
}

// AdminIDNEQ applies the NEQ predicate on the "admin_id" field.
func AdminIDNEQ(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldAdminID, v))
}

// AdminIDIn applies the In predicate on the "admin_id" field.
func AdminIDIn(vs ...uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldAdminID, vs...))
}

// AdminIDNotIn applies the NotIn predicate on the "admin_id" field.
func AdminIDNotIn(vs ...uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldAdminID, vs...))
}

// AdminIDGT applies the GT predicate on the "admin_id" field.
func AdminIDGT(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldAdminID, v))
}

// AdminIDGTE applies the GTE predicate on the "admin_id" field.
func AdminIDGTE(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldAdminID, v))
}

// AdminIDLT applies the LT predicate on the "admin_id" field.
func AdminIDLT(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldAdminID, v))
}

// AdminIDLTE applies the LTE predicate on the "admin_id" field.
func AdminIDLTE(v uuid.UUID) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldAdminID, v))
}

// IPEQ applies the EQ predicate on the "ip" field.
func IPEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldIP, v))
}

// IPNEQ applies the NEQ predicate on the "ip" field.
func IPNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldIP, v))
}

// IPIn applies the In predicate on the "ip" field.
func IPIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldIP, vs...))
}

// IPNotIn applies the NotIn predicate on the "ip" field.
func IPNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldIP, vs...))
}

// IPGT applies the GT predicate on the "ip" field.
func IPGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldIP, v))
}

// IPGTE applies the GTE predicate on the "ip" field.
func IPGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldIP, v))
}

// IPLT applies the LT predicate on the "ip" field.
func IPLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldIP, v))
}

// IPLTE applies the LTE predicate on the "ip" field.
func IPLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldIP, v))
}

// IPContains applies the Contains predicate on the "ip" field.
func IPContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldIP, v))
}

// IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldIP, v))
}

// IPHasSuffix applies the HasSuffix predicate on the "ip" field.
func IPHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldIP, v))
}

// IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldIP, v))
}

// IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldIP, v))
}

// CountryEQ applies the EQ predicate on the "country" field.
func CountryEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldCountry, v))
}

// CountryNEQ applies the NEQ predicate on the "country" field.
func CountryNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldCountry, v))
}

// CountryIn applies the In predicate on the "country" field.
func CountryIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldCountry, vs...))
}

// CountryNotIn applies the NotIn predicate on the "country" field.
func CountryNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldCountry, vs...))
}

// CountryGT applies the GT predicate on the "country" field.
func CountryGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldCountry, v))
}

// CountryGTE applies the GTE predicate on the "country" field.
func CountryGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldCountry, v))
}

// CountryLT applies the LT predicate on the "country" field.
func CountryLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldCountry, v))
}

// CountryLTE applies the LTE predicate on the "country" field.
func CountryLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldCountry, v))
}

// CountryContains applies the Contains predicate on the "country" field.
func CountryContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldCountry, v))
}

// CountryHasPrefix applies the HasPrefix predicate on the "country" field.
func CountryHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldCountry, v))
}

// CountryHasSuffix applies the HasSuffix predicate on the "country" field.
func CountryHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldCountry, v))
}

// CountryEqualFold applies the EqualFold predicate on the "country" field.
func CountryEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldCountry, v))
}

// CountryContainsFold applies the ContainsFold predicate on the "country" field.
func CountryContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldCountry, v))
}

// ProvinceEQ applies the EQ predicate on the "province" field.
func ProvinceEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldProvince, v))
}

// ProvinceNEQ applies the NEQ predicate on the "province" field.
func ProvinceNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldProvince, v))
}

// ProvinceIn applies the In predicate on the "province" field.
func ProvinceIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldProvince, vs...))
}

// ProvinceNotIn applies the NotIn predicate on the "province" field.
func ProvinceNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldProvince, vs...))
}

// ProvinceGT applies the GT predicate on the "province" field.
func ProvinceGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldProvince, v))
}

// ProvinceGTE applies the GTE predicate on the "province" field.
func ProvinceGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldProvince, v))
}

// ProvinceLT applies the LT predicate on the "province" field.
func ProvinceLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldProvince, v))
}

// ProvinceLTE applies the LTE predicate on the "province" field.
func ProvinceLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldProvince, v))
}

// ProvinceContains applies the Contains predicate on the "province" field.
func ProvinceContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldProvince, v))
}

// ProvinceHasPrefix applies the HasPrefix predicate on the "province" field.
func ProvinceHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldProvince, v))
}

// ProvinceHasSuffix applies the HasSuffix predicate on the "province" field.
func ProvinceHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldProvince, v))
}

// ProvinceEqualFold applies the EqualFold predicate on the "province" field.
func ProvinceEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldProvince, v))
}

// ProvinceContainsFold applies the ContainsFold predicate on the "province" field.
func ProvinceContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldProvince, v))
}

// CityEQ applies the EQ predicate on the "city" field.
func CityEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldCity, v))
}

// CityNEQ applies the NEQ predicate on the "city" field.
func CityNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldCity, v))
}

// CityIn applies the In predicate on the "city" field.
func CityIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldCity, vs...))
}

// CityNotIn applies the NotIn predicate on the "city" field.
func CityNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldCity, vs...))
}

// CityGT applies the GT predicate on the "city" field.
func CityGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldCity, v))
}

// CityGTE applies the GTE predicate on the "city" field.
func CityGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldCity, v))
}

// CityLT applies the LT predicate on the "city" field.
func CityLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldCity, v))
}

// CityLTE applies the LTE predicate on the "city" field.
func CityLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldCity, v))
}

// CityContains applies the Contains predicate on the "city" field.
func CityContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldCity, v))
}

// CityHasPrefix applies the HasPrefix predicate on the "city" field.
func CityHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldCity, v))
}

// CityHasSuffix applies the HasSuffix predicate on the "city" field.
func CityHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldCity, v))
}

// CityEqualFold applies the EqualFold predicate on the "city" field.
func CityEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldCity, v))
}

// CityContainsFold applies the ContainsFold predicate on the "city" field.
func CityContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldCity, v))
}

// IspEQ applies the EQ predicate on the "isp" field.
func IspEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldIsp, v))
}

// IspNEQ applies the NEQ predicate on the "isp" field.
func IspNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldIsp, v))
}

// IspIn applies the In predicate on the "isp" field.
func IspIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldIsp, vs...))
}

// IspNotIn applies the NotIn predicate on the "isp" field.
func IspNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldIsp, vs...))
}

// IspGT applies the GT predicate on the "isp" field.
func IspGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldIsp, v))
}

// IspGTE applies the GTE predicate on the "isp" field.
func IspGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldIsp, v))
}

// IspLT applies the LT predicate on the "isp" field.
func IspLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldIsp, v))
}

// IspLTE applies the LTE predicate on the "isp" field.
func IspLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldIsp, v))
}

// IspContains applies the Contains predicate on the "isp" field.
func IspContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldIsp, v))
}

// IspHasPrefix applies the HasPrefix predicate on the "isp" field.
func IspHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldIsp, v))
}

// IspHasSuffix applies the HasSuffix predicate on the "isp" field.
func IspHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldIsp, v))
}

// IspEqualFold applies the EqualFold predicate on the "isp" field.
func IspEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldIsp, v))
}

// IspContainsFold applies the ContainsFold predicate on the "isp" field.
func IspContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldIsp, v))
}

// AsnEQ applies the EQ predicate on the "asn" field.
func AsnEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldAsn, v))
}

// AsnNEQ applies the NEQ predicate on the "asn" field.
func AsnNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldAsn, v))
}

// AsnIn applies the In predicate on the "asn" field.
func AsnIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldAsn, vs...))
}

// AsnNotIn applies the NotIn predicate on the "asn" field.
func AsnNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldAsn, vs...))
}

// AsnGT applies the GT predicate on the "asn" field.
func AsnGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldAsn, v))
}

// AsnGTE applies the GTE predicate on the "asn" field.
func AsnGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldAsn, v))
}

// AsnLT applies the LT predicate on the "asn" field.
func AsnLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldAsn, v))
}

// AsnLTE applies the LTE predicate on the "asn" field.
func AsnLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldAsn, v))
}

// AsnContains applies the Contains predicate on the "asn" field.
func AsnContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldAsn, v))
}

// AsnHasPrefix applies the HasPrefix predicate on the "asn" field.
func AsnHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldAsn, v))
}

// AsnHasSuffix applies the HasSuffix predicate on the "asn" field.
func AsnHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldAsn, v))
}

// AsnEqualFold applies the EqualFold predicate on the "asn" field.
func AsnEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldAsn, v))
}

// AsnContainsFold applies the ContainsFold predicate on the "asn" field.
func AsnContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldAsn, v))
}

// ClientVersionEQ applies the EQ predicate on the "client_version" field.
func ClientVersionEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldClientVersion, v))
}

// ClientVersionNEQ applies the NEQ predicate on the "client_version" field.
func ClientVersionNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldClientVersion, v))
}

// ClientVersionIn applies the In predicate on the "client_version" field.
func ClientVersionIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldClientVersion, vs...))
}

// ClientVersionNotIn applies the NotIn predicate on the "client_version" field.
func ClientVersionNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldClientVersion, vs...))
}

// ClientVersionGT applies the GT predicate on the "client_version" field.
func ClientVersionGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldClientVersion, v))
}

// ClientVersionGTE applies the GTE predicate on the "client_version" field.
func ClientVersionGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldClientVersion, v))
}

// ClientVersionLT applies the LT predicate on the "client_version" field.
func ClientVersionLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldClientVersion, v))
}

// ClientVersionLTE applies the LTE predicate on the "client_version" field.
func ClientVersionLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldClientVersion, v))
}

// ClientVersionContains applies the Contains predicate on the "client_version" field.
func ClientVersionContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldClientVersion, v))
}

// ClientVersionHasPrefix applies the HasPrefix predicate on the "client_version" field.
func ClientVersionHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldClientVersion, v))
}

// ClientVersionHasSuffix applies the HasSuffix predicate on the "client_version" field.
func ClientVersionHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldClientVersion, v))
}

// ClientVersionEqualFold applies the EqualFold predicate on the "client_version" field.
func ClientVersionEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldClientVersion, v))
}

// ClientVersionContainsFold applies the ContainsFold predicate on the "client_version" field.
func ClientVersionContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldClientVersion, v))
}

// DeviceEQ applies the EQ predicate on the "device" field.
func DeviceEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEQ(FieldDevice, v))
}

// DeviceNEQ applies the NEQ predicate on the "device" field.
func DeviceNEQ(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNEQ(FieldDevice, v))
}

// DeviceIn applies the In predicate on the "device" field.
func DeviceIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldIn(FieldDevice, vs...))
}

// DeviceNotIn applies the NotIn predicate on the "device" field.
func DeviceNotIn(vs ...string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldNotIn(FieldDevice, vs...))
}

// DeviceGT applies the GT predicate on the "device" field.
func DeviceGT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGT(FieldDevice, v))
}

// DeviceGTE applies the GTE predicate on the "device" field.
func DeviceGTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldGTE(FieldDevice, v))
}

// DeviceLT applies the LT predicate on the "device" field.
func DeviceLT(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLT(FieldDevice, v))
}

// DeviceLTE applies the LTE predicate on the "device" field.
func DeviceLTE(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldLTE(FieldDevice, v))
}

// DeviceContains applies the Contains predicate on the "device" field.
func DeviceContains(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContains(FieldDevice, v))
}

// DeviceHasPrefix applies the HasPrefix predicate on the "device" field.
func DeviceHasPrefix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasPrefix(FieldDevice, v))
}

// DeviceHasSuffix applies the HasSuffix predicate on the "device" field.
func DeviceHasSuffix(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldHasSuffix(FieldDevice, v))
}

// DeviceEqualFold applies the EqualFold predicate on the "device" field.
func DeviceEqualFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldEqualFold(FieldDevice, v))
}

// DeviceContainsFold applies the ContainsFold predicate on the "device" field.
func DeviceContainsFold(v string) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.FieldContainsFold(FieldDevice, v))
}

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

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

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

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

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

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

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

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

// HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwner() predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasOwnerWith(preds ...predicate.Admin) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(func(s *sql.Selector) {
		step := newOwnerStep()
		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.AdminLoginHistory) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.AndPredicates(predicates...))
}

// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.AdminLoginHistory) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.OrPredicates(predicates...))
}

// Not applies the not operator on the given predicate.
func Not(p predicate.AdminLoginHistory) predicate.AdminLoginHistory {
	return predicate.AdminLoginHistory(sql.NotPredicates(p))
}
