891 lines
34 KiB
Go
891 lines
34 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package userloginlog
|
|
|
|
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.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(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.UserLoginLog {
|
|
return predicate.UserLoginLog(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.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
|
func Status(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
|
|
func TenantID(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(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.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// LoginTime applies equality check predicate on the "login_time" field. It's identical to LoginTimeEQ.
|
|
func LoginTime(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginIP applies equality check predicate on the "login_ip" field. It's identical to LoginIPEQ.
|
|
func LoginIP(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginLocation applies equality check predicate on the "login_location" field. It's identical to LoginLocationEQ.
|
|
func LoginLocation(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginResult applies equality check predicate on the "login_result" field. It's identical to LoginResultEQ.
|
|
func LoginResult(v bool) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginResult, v))
|
|
}
|
|
|
|
// FailureReason applies equality check predicate on the "failure_reason" field. It's identical to FailureReasonEQ.
|
|
func FailureReason(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldFailureReason, v))
|
|
}
|
|
|
|
// SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.
|
|
func SessionID(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldSessionID, v))
|
|
}
|
|
|
|
// LatencyMs applies equality check predicate on the "latency_ms" field. It's identical to LatencyMsEQ.
|
|
func LatencyMs(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLatencyMs, v))
|
|
}
|
|
|
|
// AuthID applies equality check predicate on the "auth_id" field. It's identical to AuthIDEQ.
|
|
func AuthID(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldAuthID, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusGT applies the GT predicate on the "status" field.
|
|
func StatusGT(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
|
func StatusGTE(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLT applies the LT predicate on the "status" field.
|
|
func StatusLT(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
|
func StatusLTE(v uint8) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIsNil applies the IsNil predicate on the "status" field.
|
|
func StatusIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldStatus))
|
|
}
|
|
|
|
// StatusNotNil applies the NotNil predicate on the "status" field.
|
|
func StatusNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldStatus))
|
|
}
|
|
|
|
// TenantIDEQ applies the EQ predicate on the "tenant_id" field.
|
|
func TenantIDEQ(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
|
|
func TenantIDNEQ(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDIn applies the In predicate on the "tenant_id" field.
|
|
func TenantIDIn(vs ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldTenantID, vs...))
|
|
}
|
|
|
|
// TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
|
|
func TenantIDNotIn(vs ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldTenantID, vs...))
|
|
}
|
|
|
|
// TenantIDGT applies the GT predicate on the "tenant_id" field.
|
|
func TenantIDGT(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDGTE applies the GTE predicate on the "tenant_id" field.
|
|
func TenantIDGTE(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDLT applies the LT predicate on the "tenant_id" field.
|
|
func TenantIDLT(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldTenantID, v))
|
|
}
|
|
|
|
// TenantIDLTE applies the LTE predicate on the "tenant_id" field.
|
|
func TenantIDLTE(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldTenantID, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDGT applies the GT predicate on the "user_id" field.
|
|
func UserIDGT(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDGTE applies the GTE predicate on the "user_id" field.
|
|
func UserIDGTE(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDLT applies the LT predicate on the "user_id" field.
|
|
func UserIDLT(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDLTE applies the LTE predicate on the "user_id" field.
|
|
func UserIDLTE(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldUserID, v))
|
|
}
|
|
|
|
// LoginTimeEQ applies the EQ predicate on the "login_time" field.
|
|
func LoginTimeEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginTimeNEQ applies the NEQ predicate on the "login_time" field.
|
|
func LoginTimeNEQ(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginTimeIn applies the In predicate on the "login_time" field.
|
|
func LoginTimeIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldLoginTime, vs...))
|
|
}
|
|
|
|
// LoginTimeNotIn applies the NotIn predicate on the "login_time" field.
|
|
func LoginTimeNotIn(vs ...time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldLoginTime, vs...))
|
|
}
|
|
|
|
// LoginTimeGT applies the GT predicate on the "login_time" field.
|
|
func LoginTimeGT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginTimeGTE applies the GTE predicate on the "login_time" field.
|
|
func LoginTimeGTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginTimeLT applies the LT predicate on the "login_time" field.
|
|
func LoginTimeLT(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginTimeLTE applies the LTE predicate on the "login_time" field.
|
|
func LoginTimeLTE(v time.Time) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldLoginTime, v))
|
|
}
|
|
|
|
// LoginIPEQ applies the EQ predicate on the "login_ip" field.
|
|
func LoginIPEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPNEQ applies the NEQ predicate on the "login_ip" field.
|
|
func LoginIPNEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPIn applies the In predicate on the "login_ip" field.
|
|
func LoginIPIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldLoginIP, vs...))
|
|
}
|
|
|
|
// LoginIPNotIn applies the NotIn predicate on the "login_ip" field.
|
|
func LoginIPNotIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldLoginIP, vs...))
|
|
}
|
|
|
|
// LoginIPGT applies the GT predicate on the "login_ip" field.
|
|
func LoginIPGT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPGTE applies the GTE predicate on the "login_ip" field.
|
|
func LoginIPGTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPLT applies the LT predicate on the "login_ip" field.
|
|
func LoginIPLT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPLTE applies the LTE predicate on the "login_ip" field.
|
|
func LoginIPLTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPContains applies the Contains predicate on the "login_ip" field.
|
|
func LoginIPContains(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContains(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPHasPrefix applies the HasPrefix predicate on the "login_ip" field.
|
|
func LoginIPHasPrefix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasPrefix(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPHasSuffix applies the HasSuffix predicate on the "login_ip" field.
|
|
func LoginIPHasSuffix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasSuffix(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPEqualFold applies the EqualFold predicate on the "login_ip" field.
|
|
func LoginIPEqualFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEqualFold(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginIPContainsFold applies the ContainsFold predicate on the "login_ip" field.
|
|
func LoginIPContainsFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContainsFold(FieldLoginIP, v))
|
|
}
|
|
|
|
// LoginLocationEQ applies the EQ predicate on the "login_location" field.
|
|
func LoginLocationEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationNEQ applies the NEQ predicate on the "login_location" field.
|
|
func LoginLocationNEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationIn applies the In predicate on the "login_location" field.
|
|
func LoginLocationIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldLoginLocation, vs...))
|
|
}
|
|
|
|
// LoginLocationNotIn applies the NotIn predicate on the "login_location" field.
|
|
func LoginLocationNotIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldLoginLocation, vs...))
|
|
}
|
|
|
|
// LoginLocationGT applies the GT predicate on the "login_location" field.
|
|
func LoginLocationGT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationGTE applies the GTE predicate on the "login_location" field.
|
|
func LoginLocationGTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationLT applies the LT predicate on the "login_location" field.
|
|
func LoginLocationLT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationLTE applies the LTE predicate on the "login_location" field.
|
|
func LoginLocationLTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationContains applies the Contains predicate on the "login_location" field.
|
|
func LoginLocationContains(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContains(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationHasPrefix applies the HasPrefix predicate on the "login_location" field.
|
|
func LoginLocationHasPrefix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasPrefix(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationHasSuffix applies the HasSuffix predicate on the "login_location" field.
|
|
func LoginLocationHasSuffix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasSuffix(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationIsNil applies the IsNil predicate on the "login_location" field.
|
|
func LoginLocationIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldLoginLocation))
|
|
}
|
|
|
|
// LoginLocationNotNil applies the NotNil predicate on the "login_location" field.
|
|
func LoginLocationNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldLoginLocation))
|
|
}
|
|
|
|
// LoginLocationEqualFold applies the EqualFold predicate on the "login_location" field.
|
|
func LoginLocationEqualFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEqualFold(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginLocationContainsFold applies the ContainsFold predicate on the "login_location" field.
|
|
func LoginLocationContainsFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContainsFold(FieldLoginLocation, v))
|
|
}
|
|
|
|
// LoginTypeEQ applies the EQ predicate on the "login_type" field.
|
|
func LoginTypeEQ(v LoginType) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginType, v))
|
|
}
|
|
|
|
// LoginTypeNEQ applies the NEQ predicate on the "login_type" field.
|
|
func LoginTypeNEQ(v LoginType) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLoginType, v))
|
|
}
|
|
|
|
// LoginTypeIn applies the In predicate on the "login_type" field.
|
|
func LoginTypeIn(vs ...LoginType) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldLoginType, vs...))
|
|
}
|
|
|
|
// LoginTypeNotIn applies the NotIn predicate on the "login_type" field.
|
|
func LoginTypeNotIn(vs ...LoginType) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldLoginType, vs...))
|
|
}
|
|
|
|
// LoginPlatformEQ applies the EQ predicate on the "login_platform" field.
|
|
func LoginPlatformEQ(v LoginPlatform) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginPlatform, v))
|
|
}
|
|
|
|
// LoginPlatformNEQ applies the NEQ predicate on the "login_platform" field.
|
|
func LoginPlatformNEQ(v LoginPlatform) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLoginPlatform, v))
|
|
}
|
|
|
|
// LoginPlatformIn applies the In predicate on the "login_platform" field.
|
|
func LoginPlatformIn(vs ...LoginPlatform) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldLoginPlatform, vs...))
|
|
}
|
|
|
|
// LoginPlatformNotIn applies the NotIn predicate on the "login_platform" field.
|
|
func LoginPlatformNotIn(vs ...LoginPlatform) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldLoginPlatform, vs...))
|
|
}
|
|
|
|
// LoginResultEQ applies the EQ predicate on the "login_result" field.
|
|
func LoginResultEQ(v bool) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLoginResult, v))
|
|
}
|
|
|
|
// LoginResultNEQ applies the NEQ predicate on the "login_result" field.
|
|
func LoginResultNEQ(v bool) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLoginResult, v))
|
|
}
|
|
|
|
// FailureReasonEQ applies the EQ predicate on the "failure_reason" field.
|
|
func FailureReasonEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonNEQ applies the NEQ predicate on the "failure_reason" field.
|
|
func FailureReasonNEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonIn applies the In predicate on the "failure_reason" field.
|
|
func FailureReasonIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldFailureReason, vs...))
|
|
}
|
|
|
|
// FailureReasonNotIn applies the NotIn predicate on the "failure_reason" field.
|
|
func FailureReasonNotIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldFailureReason, vs...))
|
|
}
|
|
|
|
// FailureReasonGT applies the GT predicate on the "failure_reason" field.
|
|
func FailureReasonGT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonGTE applies the GTE predicate on the "failure_reason" field.
|
|
func FailureReasonGTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonLT applies the LT predicate on the "failure_reason" field.
|
|
func FailureReasonLT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonLTE applies the LTE predicate on the "failure_reason" field.
|
|
func FailureReasonLTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonContains applies the Contains predicate on the "failure_reason" field.
|
|
func FailureReasonContains(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContains(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonHasPrefix applies the HasPrefix predicate on the "failure_reason" field.
|
|
func FailureReasonHasPrefix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasPrefix(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonHasSuffix applies the HasSuffix predicate on the "failure_reason" field.
|
|
func FailureReasonHasSuffix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasSuffix(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonIsNil applies the IsNil predicate on the "failure_reason" field.
|
|
func FailureReasonIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldFailureReason))
|
|
}
|
|
|
|
// FailureReasonNotNil applies the NotNil predicate on the "failure_reason" field.
|
|
func FailureReasonNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldFailureReason))
|
|
}
|
|
|
|
// FailureReasonEqualFold applies the EqualFold predicate on the "failure_reason" field.
|
|
func FailureReasonEqualFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEqualFold(FieldFailureReason, v))
|
|
}
|
|
|
|
// FailureReasonContainsFold applies the ContainsFold predicate on the "failure_reason" field.
|
|
func FailureReasonContainsFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContainsFold(FieldFailureReason, v))
|
|
}
|
|
|
|
// SessionIDEQ applies the EQ predicate on the "session_id" field.
|
|
func SessionIDEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDNEQ applies the NEQ predicate on the "session_id" field.
|
|
func SessionIDNEQ(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDIn applies the In predicate on the "session_id" field.
|
|
func SessionIDIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldSessionID, vs...))
|
|
}
|
|
|
|
// SessionIDNotIn applies the NotIn predicate on the "session_id" field.
|
|
func SessionIDNotIn(vs ...string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldSessionID, vs...))
|
|
}
|
|
|
|
// SessionIDGT applies the GT predicate on the "session_id" field.
|
|
func SessionIDGT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDGTE applies the GTE predicate on the "session_id" field.
|
|
func SessionIDGTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDLT applies the LT predicate on the "session_id" field.
|
|
func SessionIDLT(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDLTE applies the LTE predicate on the "session_id" field.
|
|
func SessionIDLTE(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDContains applies the Contains predicate on the "session_id" field.
|
|
func SessionIDContains(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContains(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.
|
|
func SessionIDHasPrefix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasPrefix(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.
|
|
func SessionIDHasSuffix(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldHasSuffix(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDIsNil applies the IsNil predicate on the "session_id" field.
|
|
func SessionIDIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldSessionID))
|
|
}
|
|
|
|
// SessionIDNotNil applies the NotNil predicate on the "session_id" field.
|
|
func SessionIDNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldSessionID))
|
|
}
|
|
|
|
// SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.
|
|
func SessionIDEqualFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEqualFold(FieldSessionID, v))
|
|
}
|
|
|
|
// SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.
|
|
func SessionIDContainsFold(v string) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldContainsFold(FieldSessionID, v))
|
|
}
|
|
|
|
// LatencyMsEQ applies the EQ predicate on the "latency_ms" field.
|
|
func LatencyMsEQ(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldLatencyMs, v))
|
|
}
|
|
|
|
// LatencyMsNEQ applies the NEQ predicate on the "latency_ms" field.
|
|
func LatencyMsNEQ(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldLatencyMs, v))
|
|
}
|
|
|
|
// LatencyMsIn applies the In predicate on the "latency_ms" field.
|
|
func LatencyMsIn(vs ...int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldLatencyMs, vs...))
|
|
}
|
|
|
|
// LatencyMsNotIn applies the NotIn predicate on the "latency_ms" field.
|
|
func LatencyMsNotIn(vs ...int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldLatencyMs, vs...))
|
|
}
|
|
|
|
// LatencyMsGT applies the GT predicate on the "latency_ms" field.
|
|
func LatencyMsGT(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldLatencyMs, v))
|
|
}
|
|
|
|
// LatencyMsGTE applies the GTE predicate on the "latency_ms" field.
|
|
func LatencyMsGTE(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldLatencyMs, v))
|
|
}
|
|
|
|
// LatencyMsLT applies the LT predicate on the "latency_ms" field.
|
|
func LatencyMsLT(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldLatencyMs, v))
|
|
}
|
|
|
|
// LatencyMsLTE applies the LTE predicate on the "latency_ms" field.
|
|
func LatencyMsLTE(v int) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldLatencyMs, v))
|
|
}
|
|
|
|
// LatencyMsIsNil applies the IsNil predicate on the "latency_ms" field.
|
|
func LatencyMsIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldLatencyMs))
|
|
}
|
|
|
|
// LatencyMsNotNil applies the NotNil predicate on the "latency_ms" field.
|
|
func LatencyMsNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldLatencyMs))
|
|
}
|
|
|
|
// AuthIDEQ applies the EQ predicate on the "auth_id" field.
|
|
func AuthIDEQ(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldEQ(FieldAuthID, v))
|
|
}
|
|
|
|
// AuthIDNEQ applies the NEQ predicate on the "auth_id" field.
|
|
func AuthIDNEQ(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNEQ(FieldAuthID, v))
|
|
}
|
|
|
|
// AuthIDIn applies the In predicate on the "auth_id" field.
|
|
func AuthIDIn(vs ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIn(FieldAuthID, vs...))
|
|
}
|
|
|
|
// AuthIDNotIn applies the NotIn predicate on the "auth_id" field.
|
|
func AuthIDNotIn(vs ...uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotIn(FieldAuthID, vs...))
|
|
}
|
|
|
|
// AuthIDGT applies the GT predicate on the "auth_id" field.
|
|
func AuthIDGT(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGT(FieldAuthID, v))
|
|
}
|
|
|
|
// AuthIDGTE applies the GTE predicate on the "auth_id" field.
|
|
func AuthIDGTE(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldGTE(FieldAuthID, v))
|
|
}
|
|
|
|
// AuthIDLT applies the LT predicate on the "auth_id" field.
|
|
func AuthIDLT(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLT(FieldAuthID, v))
|
|
}
|
|
|
|
// AuthIDLTE applies the LTE predicate on the "auth_id" field.
|
|
func AuthIDLTE(v uint64) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldLTE(FieldAuthID, v))
|
|
}
|
|
|
|
// AuthIDIsNil applies the IsNil predicate on the "auth_id" field.
|
|
func AuthIDIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldAuthID))
|
|
}
|
|
|
|
// AuthIDNotNil applies the NotNil predicate on the "auth_id" field.
|
|
func AuthIDNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldAuthID))
|
|
}
|
|
|
|
// AdditionalDataIsNil applies the IsNil predicate on the "additional_data" field.
|
|
func AdditionalDataIsNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldIsNull(FieldAdditionalData))
|
|
}
|
|
|
|
// AdditionalDataNotNil applies the NotNil predicate on the "additional_data" field.
|
|
func AdditionalDataNotNil() predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.FieldNotNull(FieldAdditionalData))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.UserLoginLog) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.UserLoginLog) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.UserLoginLog) predicate.UserLoginLog {
|
|
return predicate.UserLoginLog(sql.NotPredicates(p))
|
|
}
|