mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
705 lines
28 KiB
705 lines
28 KiB
// Code generated by ent, DO NOT EDIT. |
|
|
|
package useridentity |
|
|
|
import ( |
|
"time" |
|
|
|
"entgo.io/ent/dialect/sql" |
|
"github.com/dexidp/dex/storage/ent/db/predicate" |
|
) |
|
|
|
// ID filters vertices based on their ID field. |
|
func ID(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldID, id)) |
|
} |
|
|
|
// IDEQ applies the EQ predicate on the ID field. |
|
func IDEQ(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldID, id)) |
|
} |
|
|
|
// IDNEQ applies the NEQ predicate on the ID field. |
|
func IDNEQ(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldID, id)) |
|
} |
|
|
|
// IDIn applies the In predicate on the ID field. |
|
func IDIn(ids ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldID, ids...)) |
|
} |
|
|
|
// IDNotIn applies the NotIn predicate on the ID field. |
|
func IDNotIn(ids ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldID, ids...)) |
|
} |
|
|
|
// IDGT applies the GT predicate on the ID field. |
|
func IDGT(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldID, id)) |
|
} |
|
|
|
// IDGTE applies the GTE predicate on the ID field. |
|
func IDGTE(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldID, id)) |
|
} |
|
|
|
// IDLT applies the LT predicate on the ID field. |
|
func IDLT(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldID, id)) |
|
} |
|
|
|
// IDLTE applies the LTE predicate on the ID field. |
|
func IDLTE(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldID, id)) |
|
} |
|
|
|
// IDEqualFold applies the EqualFold predicate on the ID field. |
|
func IDEqualFold(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldID, id)) |
|
} |
|
|
|
// IDContainsFold applies the ContainsFold predicate on the ID field. |
|
func IDContainsFold(id string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldID, id)) |
|
} |
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ. |
|
func UserID(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldUserID, v)) |
|
} |
|
|
|
// ConnectorID applies equality check predicate on the "connector_id" field. It's identical to ConnectorIDEQ. |
|
func ConnectorID(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldConnectorID, v)) |
|
} |
|
|
|
// ClaimsUserID applies equality check predicate on the "claims_user_id" field. It's identical to ClaimsUserIDEQ. |
|
func ClaimsUserID(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUsername applies equality check predicate on the "claims_username" field. It's identical to ClaimsUsernameEQ. |
|
func ClaimsUsername(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsername applies equality check predicate on the "claims_preferred_username" field. It's identical to ClaimsPreferredUsernameEQ. |
|
func ClaimsPreferredUsername(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsEmail applies equality check predicate on the "claims_email" field. It's identical to ClaimsEmailEQ. |
|
func ClaimsEmail(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailVerified applies equality check predicate on the "claims_email_verified" field. It's identical to ClaimsEmailVerifiedEQ. |
|
func ClaimsEmailVerified(v bool) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsEmailVerified, v)) |
|
} |
|
|
|
// Consents applies equality check predicate on the "consents" field. It's identical to ConsentsEQ. |
|
func Consents(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldConsents, v)) |
|
} |
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. |
|
func CreatedAt(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldCreatedAt, v)) |
|
} |
|
|
|
// LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ. |
|
func LastLogin(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldLastLogin, v)) |
|
} |
|
|
|
// BlockedUntil applies equality check predicate on the "blocked_until" field. It's identical to BlockedUntilEQ. |
|
func BlockedUntil(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldBlockedUntil, v)) |
|
} |
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field. |
|
func UserIDEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldUserID, v)) |
|
} |
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field. |
|
func UserIDNEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldUserID, v)) |
|
} |
|
|
|
// UserIDIn applies the In predicate on the "user_id" field. |
|
func UserIDIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldUserID, vs...)) |
|
} |
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field. |
|
func UserIDNotIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldUserID, vs...)) |
|
} |
|
|
|
// UserIDGT applies the GT predicate on the "user_id" field. |
|
func UserIDGT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldUserID, v)) |
|
} |
|
|
|
// UserIDGTE applies the GTE predicate on the "user_id" field. |
|
func UserIDGTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldUserID, v)) |
|
} |
|
|
|
// UserIDLT applies the LT predicate on the "user_id" field. |
|
func UserIDLT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldUserID, v)) |
|
} |
|
|
|
// UserIDLTE applies the LTE predicate on the "user_id" field. |
|
func UserIDLTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldUserID, v)) |
|
} |
|
|
|
// UserIDContains applies the Contains predicate on the "user_id" field. |
|
func UserIDContains(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContains(FieldUserID, v)) |
|
} |
|
|
|
// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field. |
|
func UserIDHasPrefix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasPrefix(FieldUserID, v)) |
|
} |
|
|
|
// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field. |
|
func UserIDHasSuffix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasSuffix(FieldUserID, v)) |
|
} |
|
|
|
// UserIDEqualFold applies the EqualFold predicate on the "user_id" field. |
|
func UserIDEqualFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldUserID, v)) |
|
} |
|
|
|
// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field. |
|
func UserIDContainsFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldUserID, v)) |
|
} |
|
|
|
// ConnectorIDEQ applies the EQ predicate on the "connector_id" field. |
|
func ConnectorIDEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDNEQ applies the NEQ predicate on the "connector_id" field. |
|
func ConnectorIDNEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDIn applies the In predicate on the "connector_id" field. |
|
func ConnectorIDIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldConnectorID, vs...)) |
|
} |
|
|
|
// ConnectorIDNotIn applies the NotIn predicate on the "connector_id" field. |
|
func ConnectorIDNotIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldConnectorID, vs...)) |
|
} |
|
|
|
// ConnectorIDGT applies the GT predicate on the "connector_id" field. |
|
func ConnectorIDGT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDGTE applies the GTE predicate on the "connector_id" field. |
|
func ConnectorIDGTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDLT applies the LT predicate on the "connector_id" field. |
|
func ConnectorIDLT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDLTE applies the LTE predicate on the "connector_id" field. |
|
func ConnectorIDLTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDContains applies the Contains predicate on the "connector_id" field. |
|
func ConnectorIDContains(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContains(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDHasPrefix applies the HasPrefix predicate on the "connector_id" field. |
|
func ConnectorIDHasPrefix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasPrefix(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDHasSuffix applies the HasSuffix predicate on the "connector_id" field. |
|
func ConnectorIDHasSuffix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasSuffix(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDEqualFold applies the EqualFold predicate on the "connector_id" field. |
|
func ConnectorIDEqualFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldConnectorID, v)) |
|
} |
|
|
|
// ConnectorIDContainsFold applies the ContainsFold predicate on the "connector_id" field. |
|
func ConnectorIDContainsFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldConnectorID, v)) |
|
} |
|
|
|
// ClaimsUserIDEQ applies the EQ predicate on the "claims_user_id" field. |
|
func ClaimsUserIDEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDNEQ applies the NEQ predicate on the "claims_user_id" field. |
|
func ClaimsUserIDNEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDIn applies the In predicate on the "claims_user_id" field. |
|
func ClaimsUserIDIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldClaimsUserID, vs...)) |
|
} |
|
|
|
// ClaimsUserIDNotIn applies the NotIn predicate on the "claims_user_id" field. |
|
func ClaimsUserIDNotIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldClaimsUserID, vs...)) |
|
} |
|
|
|
// ClaimsUserIDGT applies the GT predicate on the "claims_user_id" field. |
|
func ClaimsUserIDGT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDGTE applies the GTE predicate on the "claims_user_id" field. |
|
func ClaimsUserIDGTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDLT applies the LT predicate on the "claims_user_id" field. |
|
func ClaimsUserIDLT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDLTE applies the LTE predicate on the "claims_user_id" field. |
|
func ClaimsUserIDLTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDContains applies the Contains predicate on the "claims_user_id" field. |
|
func ClaimsUserIDContains(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContains(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDHasPrefix applies the HasPrefix predicate on the "claims_user_id" field. |
|
func ClaimsUserIDHasPrefix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasPrefix(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDHasSuffix applies the HasSuffix predicate on the "claims_user_id" field. |
|
func ClaimsUserIDHasSuffix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasSuffix(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDEqualFold applies the EqualFold predicate on the "claims_user_id" field. |
|
func ClaimsUserIDEqualFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUserIDContainsFold applies the ContainsFold predicate on the "claims_user_id" field. |
|
func ClaimsUserIDContainsFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldClaimsUserID, v)) |
|
} |
|
|
|
// ClaimsUsernameEQ applies the EQ predicate on the "claims_username" field. |
|
func ClaimsUsernameEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameNEQ applies the NEQ predicate on the "claims_username" field. |
|
func ClaimsUsernameNEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameIn applies the In predicate on the "claims_username" field. |
|
func ClaimsUsernameIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldClaimsUsername, vs...)) |
|
} |
|
|
|
// ClaimsUsernameNotIn applies the NotIn predicate on the "claims_username" field. |
|
func ClaimsUsernameNotIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldClaimsUsername, vs...)) |
|
} |
|
|
|
// ClaimsUsernameGT applies the GT predicate on the "claims_username" field. |
|
func ClaimsUsernameGT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameGTE applies the GTE predicate on the "claims_username" field. |
|
func ClaimsUsernameGTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameLT applies the LT predicate on the "claims_username" field. |
|
func ClaimsUsernameLT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameLTE applies the LTE predicate on the "claims_username" field. |
|
func ClaimsUsernameLTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameContains applies the Contains predicate on the "claims_username" field. |
|
func ClaimsUsernameContains(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContains(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameHasPrefix applies the HasPrefix predicate on the "claims_username" field. |
|
func ClaimsUsernameHasPrefix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasPrefix(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameHasSuffix applies the HasSuffix predicate on the "claims_username" field. |
|
func ClaimsUsernameHasSuffix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasSuffix(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameEqualFold applies the EqualFold predicate on the "claims_username" field. |
|
func ClaimsUsernameEqualFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsUsernameContainsFold applies the ContainsFold predicate on the "claims_username" field. |
|
func ClaimsUsernameContainsFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldClaimsUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameEQ applies the EQ predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameNEQ applies the NEQ predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameNEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameIn applies the In predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldClaimsPreferredUsername, vs...)) |
|
} |
|
|
|
// ClaimsPreferredUsernameNotIn applies the NotIn predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameNotIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldClaimsPreferredUsername, vs...)) |
|
} |
|
|
|
// ClaimsPreferredUsernameGT applies the GT predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameGT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameGTE applies the GTE predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameGTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameLT applies the LT predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameLT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameLTE applies the LTE predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameLTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameContains applies the Contains predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameContains(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContains(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameHasPrefix applies the HasPrefix predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameHasPrefix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasPrefix(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameHasSuffix applies the HasSuffix predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameHasSuffix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasSuffix(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameEqualFold applies the EqualFold predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameEqualFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsPreferredUsernameContainsFold applies the ContainsFold predicate on the "claims_preferred_username" field. |
|
func ClaimsPreferredUsernameContainsFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldClaimsPreferredUsername, v)) |
|
} |
|
|
|
// ClaimsEmailEQ applies the EQ predicate on the "claims_email" field. |
|
func ClaimsEmailEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailNEQ applies the NEQ predicate on the "claims_email" field. |
|
func ClaimsEmailNEQ(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailIn applies the In predicate on the "claims_email" field. |
|
func ClaimsEmailIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldClaimsEmail, vs...)) |
|
} |
|
|
|
// ClaimsEmailNotIn applies the NotIn predicate on the "claims_email" field. |
|
func ClaimsEmailNotIn(vs ...string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldClaimsEmail, vs...)) |
|
} |
|
|
|
// ClaimsEmailGT applies the GT predicate on the "claims_email" field. |
|
func ClaimsEmailGT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailGTE applies the GTE predicate on the "claims_email" field. |
|
func ClaimsEmailGTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailLT applies the LT predicate on the "claims_email" field. |
|
func ClaimsEmailLT(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailLTE applies the LTE predicate on the "claims_email" field. |
|
func ClaimsEmailLTE(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailContains applies the Contains predicate on the "claims_email" field. |
|
func ClaimsEmailContains(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContains(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailHasPrefix applies the HasPrefix predicate on the "claims_email" field. |
|
func ClaimsEmailHasPrefix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasPrefix(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailHasSuffix applies the HasSuffix predicate on the "claims_email" field. |
|
func ClaimsEmailHasSuffix(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldHasSuffix(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailEqualFold applies the EqualFold predicate on the "claims_email" field. |
|
func ClaimsEmailEqualFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEqualFold(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailContainsFold applies the ContainsFold predicate on the "claims_email" field. |
|
func ClaimsEmailContainsFold(v string) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldContainsFold(FieldClaimsEmail, v)) |
|
} |
|
|
|
// ClaimsEmailVerifiedEQ applies the EQ predicate on the "claims_email_verified" field. |
|
func ClaimsEmailVerifiedEQ(v bool) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldClaimsEmailVerified, v)) |
|
} |
|
|
|
// ClaimsEmailVerifiedNEQ applies the NEQ predicate on the "claims_email_verified" field. |
|
func ClaimsEmailVerifiedNEQ(v bool) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldClaimsEmailVerified, v)) |
|
} |
|
|
|
// ClaimsGroupsIsNil applies the IsNil predicate on the "claims_groups" field. |
|
func ClaimsGroupsIsNil() predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIsNull(FieldClaimsGroups)) |
|
} |
|
|
|
// ClaimsGroupsNotNil applies the NotNil predicate on the "claims_groups" field. |
|
func ClaimsGroupsNotNil() predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotNull(FieldClaimsGroups)) |
|
} |
|
|
|
// ConsentsEQ applies the EQ predicate on the "consents" field. |
|
func ConsentsEQ(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldConsents, v)) |
|
} |
|
|
|
// ConsentsNEQ applies the NEQ predicate on the "consents" field. |
|
func ConsentsNEQ(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldConsents, v)) |
|
} |
|
|
|
// ConsentsIn applies the In predicate on the "consents" field. |
|
func ConsentsIn(vs ...[]byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldConsents, vs...)) |
|
} |
|
|
|
// ConsentsNotIn applies the NotIn predicate on the "consents" field. |
|
func ConsentsNotIn(vs ...[]byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldConsents, vs...)) |
|
} |
|
|
|
// ConsentsGT applies the GT predicate on the "consents" field. |
|
func ConsentsGT(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldConsents, v)) |
|
} |
|
|
|
// ConsentsGTE applies the GTE predicate on the "consents" field. |
|
func ConsentsGTE(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldConsents, v)) |
|
} |
|
|
|
// ConsentsLT applies the LT predicate on the "consents" field. |
|
func ConsentsLT(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldConsents, v)) |
|
} |
|
|
|
// ConsentsLTE applies the LTE predicate on the "consents" field. |
|
func ConsentsLTE(v []byte) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldConsents, v)) |
|
} |
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field. |
|
func CreatedAtEQ(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldCreatedAt, v)) |
|
} |
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. |
|
func CreatedAtNEQ(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldCreatedAt, v)) |
|
} |
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field. |
|
func CreatedAtIn(vs ...time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldCreatedAt, vs...)) |
|
} |
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. |
|
func CreatedAtNotIn(vs ...time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldCreatedAt, vs...)) |
|
} |
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field. |
|
func CreatedAtGT(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldCreatedAt, v)) |
|
} |
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field. |
|
func CreatedAtGTE(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldCreatedAt, v)) |
|
} |
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field. |
|
func CreatedAtLT(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldCreatedAt, v)) |
|
} |
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field. |
|
func CreatedAtLTE(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldCreatedAt, v)) |
|
} |
|
|
|
// LastLoginEQ applies the EQ predicate on the "last_login" field. |
|
func LastLoginEQ(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldLastLogin, v)) |
|
} |
|
|
|
// LastLoginNEQ applies the NEQ predicate on the "last_login" field. |
|
func LastLoginNEQ(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldLastLogin, v)) |
|
} |
|
|
|
// LastLoginIn applies the In predicate on the "last_login" field. |
|
func LastLoginIn(vs ...time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldLastLogin, vs...)) |
|
} |
|
|
|
// LastLoginNotIn applies the NotIn predicate on the "last_login" field. |
|
func LastLoginNotIn(vs ...time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldLastLogin, vs...)) |
|
} |
|
|
|
// LastLoginGT applies the GT predicate on the "last_login" field. |
|
func LastLoginGT(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldLastLogin, v)) |
|
} |
|
|
|
// LastLoginGTE applies the GTE predicate on the "last_login" field. |
|
func LastLoginGTE(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldLastLogin, v)) |
|
} |
|
|
|
// LastLoginLT applies the LT predicate on the "last_login" field. |
|
func LastLoginLT(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldLastLogin, v)) |
|
} |
|
|
|
// LastLoginLTE applies the LTE predicate on the "last_login" field. |
|
func LastLoginLTE(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldLastLogin, v)) |
|
} |
|
|
|
// BlockedUntilEQ applies the EQ predicate on the "blocked_until" field. |
|
func BlockedUntilEQ(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldEQ(FieldBlockedUntil, v)) |
|
} |
|
|
|
// BlockedUntilNEQ applies the NEQ predicate on the "blocked_until" field. |
|
func BlockedUntilNEQ(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNEQ(FieldBlockedUntil, v)) |
|
} |
|
|
|
// BlockedUntilIn applies the In predicate on the "blocked_until" field. |
|
func BlockedUntilIn(vs ...time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldIn(FieldBlockedUntil, vs...)) |
|
} |
|
|
|
// BlockedUntilNotIn applies the NotIn predicate on the "blocked_until" field. |
|
func BlockedUntilNotIn(vs ...time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldNotIn(FieldBlockedUntil, vs...)) |
|
} |
|
|
|
// BlockedUntilGT applies the GT predicate on the "blocked_until" field. |
|
func BlockedUntilGT(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGT(FieldBlockedUntil, v)) |
|
} |
|
|
|
// BlockedUntilGTE applies the GTE predicate on the "blocked_until" field. |
|
func BlockedUntilGTE(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldGTE(FieldBlockedUntil, v)) |
|
} |
|
|
|
// BlockedUntilLT applies the LT predicate on the "blocked_until" field. |
|
func BlockedUntilLT(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLT(FieldBlockedUntil, v)) |
|
} |
|
|
|
// BlockedUntilLTE applies the LTE predicate on the "blocked_until" field. |
|
func BlockedUntilLTE(v time.Time) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.FieldLTE(FieldBlockedUntil, v)) |
|
} |
|
|
|
// And groups predicates with the AND operator between them. |
|
func And(predicates ...predicate.UserIdentity) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.AndPredicates(predicates...)) |
|
} |
|
|
|
// Or groups predicates with the OR operator between them. |
|
func Or(predicates ...predicate.UserIdentity) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.OrPredicates(predicates...)) |
|
} |
|
|
|
// Not applies the not operator on the given predicate. |
|
func Not(p predicate.UserIdentity) predicate.UserIdentity { |
|
return predicate.UserIdentity(sql.NotPredicates(p)) |
|
}
|
|
|