// Code generated by ent, DO NOT EDIT.

package account

import (
	"time"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"github.com/AvengeMedia/dankcalendar/core/ent/predicate"
)

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

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

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

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

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

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

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

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

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

// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.Account {
	return predicate.Account(sql.FieldEqualFold(FieldID, id))
}

// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.Account {
	return predicate.Account(sql.FieldContainsFold(FieldID, id))
}

// DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayName(v string) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldDisplayName, v))
}

// NeedsReauth applies equality check predicate on the "needs_reauth" field. It's identical to NeedsReauthEQ.
func NeedsReauth(v bool) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldNeedsReauth, v))
}

// AuthError applies equality check predicate on the "auth_error" field. It's identical to AuthErrorEQ.
func AuthError(v string) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldAuthError, v))
}

// SyncNotice applies equality check predicate on the "sync_notice" field. It's identical to SyncNoticeEQ.
func SyncNotice(v string) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldSyncNotice, v))
}

// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Account {
	return predicate.Account(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.Account {
	return predicate.Account(sql.FieldEQ(FieldUpdatedAt, v))
}

// KindEQ applies the EQ predicate on the "kind" field.
func KindEQ(v Kind) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldKind, v))
}

// KindNEQ applies the NEQ predicate on the "kind" field.
func KindNEQ(v Kind) predicate.Account {
	return predicate.Account(sql.FieldNEQ(FieldKind, v))
}

// KindIn applies the In predicate on the "kind" field.
func KindIn(vs ...Kind) predicate.Account {
	return predicate.Account(sql.FieldIn(FieldKind, vs...))
}

// KindNotIn applies the NotIn predicate on the "kind" field.
func KindNotIn(vs ...Kind) predicate.Account {
	return predicate.Account(sql.FieldNotIn(FieldKind, vs...))
}

// DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEQ(v string) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldDisplayName, v))
}

// DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNEQ(v string) predicate.Account {
	return predicate.Account(sql.FieldNEQ(FieldDisplayName, v))
}

// DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIn(vs ...string) predicate.Account {
	return predicate.Account(sql.FieldIn(FieldDisplayName, vs...))
}

// DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotIn(vs ...string) predicate.Account {
	return predicate.Account(sql.FieldNotIn(FieldDisplayName, vs...))
}

// DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGT(v string) predicate.Account {
	return predicate.Account(sql.FieldGT(FieldDisplayName, v))
}

// DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameGTE(v string) predicate.Account {
	return predicate.Account(sql.FieldGTE(FieldDisplayName, v))
}

// DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLT(v string) predicate.Account {
	return predicate.Account(sql.FieldLT(FieldDisplayName, v))
}

// DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameLTE(v string) predicate.Account {
	return predicate.Account(sql.FieldLTE(FieldDisplayName, v))
}

// DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContains(v string) predicate.Account {
	return predicate.Account(sql.FieldContains(FieldDisplayName, v))
}

// DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasPrefix(v string) predicate.Account {
	return predicate.Account(sql.FieldHasPrefix(FieldDisplayName, v))
}

// DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameHasSuffix(v string) predicate.Account {
	return predicate.Account(sql.FieldHasSuffix(FieldDisplayName, v))
}

// DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameEqualFold(v string) predicate.Account {
	return predicate.Account(sql.FieldEqualFold(FieldDisplayName, v))
}

// DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameContainsFold(v string) predicate.Account {
	return predicate.Account(sql.FieldContainsFold(FieldDisplayName, v))
}

// SettingsIsNil applies the IsNil predicate on the "settings" field.
func SettingsIsNil() predicate.Account {
	return predicate.Account(sql.FieldIsNull(FieldSettings))
}

// SettingsNotNil applies the NotNil predicate on the "settings" field.
func SettingsNotNil() predicate.Account {
	return predicate.Account(sql.FieldNotNull(FieldSettings))
}

// NeedsReauthEQ applies the EQ predicate on the "needs_reauth" field.
func NeedsReauthEQ(v bool) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldNeedsReauth, v))
}

// NeedsReauthNEQ applies the NEQ predicate on the "needs_reauth" field.
func NeedsReauthNEQ(v bool) predicate.Account {
	return predicate.Account(sql.FieldNEQ(FieldNeedsReauth, v))
}

// AuthErrorEQ applies the EQ predicate on the "auth_error" field.
func AuthErrorEQ(v string) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldAuthError, v))
}

// AuthErrorNEQ applies the NEQ predicate on the "auth_error" field.
func AuthErrorNEQ(v string) predicate.Account {
	return predicate.Account(sql.FieldNEQ(FieldAuthError, v))
}

// AuthErrorIn applies the In predicate on the "auth_error" field.
func AuthErrorIn(vs ...string) predicate.Account {
	return predicate.Account(sql.FieldIn(FieldAuthError, vs...))
}

// AuthErrorNotIn applies the NotIn predicate on the "auth_error" field.
func AuthErrorNotIn(vs ...string) predicate.Account {
	return predicate.Account(sql.FieldNotIn(FieldAuthError, vs...))
}

// AuthErrorGT applies the GT predicate on the "auth_error" field.
func AuthErrorGT(v string) predicate.Account {
	return predicate.Account(sql.FieldGT(FieldAuthError, v))
}

// AuthErrorGTE applies the GTE predicate on the "auth_error" field.
func AuthErrorGTE(v string) predicate.Account {
	return predicate.Account(sql.FieldGTE(FieldAuthError, v))
}

// AuthErrorLT applies the LT predicate on the "auth_error" field.
func AuthErrorLT(v string) predicate.Account {
	return predicate.Account(sql.FieldLT(FieldAuthError, v))
}

// AuthErrorLTE applies the LTE predicate on the "auth_error" field.
func AuthErrorLTE(v string) predicate.Account {
	return predicate.Account(sql.FieldLTE(FieldAuthError, v))
}

// AuthErrorContains applies the Contains predicate on the "auth_error" field.
func AuthErrorContains(v string) predicate.Account {
	return predicate.Account(sql.FieldContains(FieldAuthError, v))
}

// AuthErrorHasPrefix applies the HasPrefix predicate on the "auth_error" field.
func AuthErrorHasPrefix(v string) predicate.Account {
	return predicate.Account(sql.FieldHasPrefix(FieldAuthError, v))
}

// AuthErrorHasSuffix applies the HasSuffix predicate on the "auth_error" field.
func AuthErrorHasSuffix(v string) predicate.Account {
	return predicate.Account(sql.FieldHasSuffix(FieldAuthError, v))
}

// AuthErrorIsNil applies the IsNil predicate on the "auth_error" field.
func AuthErrorIsNil() predicate.Account {
	return predicate.Account(sql.FieldIsNull(FieldAuthError))
}

// AuthErrorNotNil applies the NotNil predicate on the "auth_error" field.
func AuthErrorNotNil() predicate.Account {
	return predicate.Account(sql.FieldNotNull(FieldAuthError))
}

// AuthErrorEqualFold applies the EqualFold predicate on the "auth_error" field.
func AuthErrorEqualFold(v string) predicate.Account {
	return predicate.Account(sql.FieldEqualFold(FieldAuthError, v))
}

// AuthErrorContainsFold applies the ContainsFold predicate on the "auth_error" field.
func AuthErrorContainsFold(v string) predicate.Account {
	return predicate.Account(sql.FieldContainsFold(FieldAuthError, v))
}

// SyncNoticeEQ applies the EQ predicate on the "sync_notice" field.
func SyncNoticeEQ(v string) predicate.Account {
	return predicate.Account(sql.FieldEQ(FieldSyncNotice, v))
}

// SyncNoticeNEQ applies the NEQ predicate on the "sync_notice" field.
func SyncNoticeNEQ(v string) predicate.Account {
	return predicate.Account(sql.FieldNEQ(FieldSyncNotice, v))
}

// SyncNoticeIn applies the In predicate on the "sync_notice" field.
func SyncNoticeIn(vs ...string) predicate.Account {
	return predicate.Account(sql.FieldIn(FieldSyncNotice, vs...))
}

// SyncNoticeNotIn applies the NotIn predicate on the "sync_notice" field.
func SyncNoticeNotIn(vs ...string) predicate.Account {
	return predicate.Account(sql.FieldNotIn(FieldSyncNotice, vs...))
}

// SyncNoticeGT applies the GT predicate on the "sync_notice" field.
func SyncNoticeGT(v string) predicate.Account {
	return predicate.Account(sql.FieldGT(FieldSyncNotice, v))
}

// SyncNoticeGTE applies the GTE predicate on the "sync_notice" field.
func SyncNoticeGTE(v string) predicate.Account {
	return predicate.Account(sql.FieldGTE(FieldSyncNotice, v))
}

// SyncNoticeLT applies the LT predicate on the "sync_notice" field.
func SyncNoticeLT(v string) predicate.Account {
	return predicate.Account(sql.FieldLT(FieldSyncNotice, v))
}

// SyncNoticeLTE applies the LTE predicate on the "sync_notice" field.
func SyncNoticeLTE(v string) predicate.Account {
	return predicate.Account(sql.FieldLTE(FieldSyncNotice, v))
}

// SyncNoticeContains applies the Contains predicate on the "sync_notice" field.
func SyncNoticeContains(v string) predicate.Account {
	return predicate.Account(sql.FieldContains(FieldSyncNotice, v))
}

// SyncNoticeHasPrefix applies the HasPrefix predicate on the "sync_notice" field.
func SyncNoticeHasPrefix(v string) predicate.Account {
	return predicate.Account(sql.FieldHasPrefix(FieldSyncNotice, v))
}

// SyncNoticeHasSuffix applies the HasSuffix predicate on the "sync_notice" field.
func SyncNoticeHasSuffix(v string) predicate.Account {
	return predicate.Account(sql.FieldHasSuffix(FieldSyncNotice, v))
}

// SyncNoticeIsNil applies the IsNil predicate on the "sync_notice" field.
func SyncNoticeIsNil() predicate.Account {
	return predicate.Account(sql.FieldIsNull(FieldSyncNotice))
}

// SyncNoticeNotNil applies the NotNil predicate on the "sync_notice" field.
func SyncNoticeNotNil() predicate.Account {
	return predicate.Account(sql.FieldNotNull(FieldSyncNotice))
}

// SyncNoticeEqualFold applies the EqualFold predicate on the "sync_notice" field.
func SyncNoticeEqualFold(v string) predicate.Account {
	return predicate.Account(sql.FieldEqualFold(FieldSyncNotice, v))
}

// SyncNoticeContainsFold applies the ContainsFold predicate on the "sync_notice" field.
func SyncNoticeContainsFold(v string) predicate.Account {
	return predicate.Account(sql.FieldContainsFold(FieldSyncNotice, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// HasCalendars applies the HasEdge predicate on the "calendars" edge.
func HasCalendars() predicate.Account {
	return predicate.Account(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, CalendarsTable, CalendarsColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasCalendarsWith applies the HasEdge predicate on the "calendars" edge with a given conditions (other predicates).
func HasCalendarsWith(preds ...predicate.Calendar) predicate.Account {
	return predicate.Account(func(s *sql.Selector) {
		step := newCalendarsStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// HasSecrets applies the HasEdge predicate on the "secrets" edge.
func HasSecrets() predicate.Account {
	return predicate.Account(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, SecretsTable, SecretsColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasSecretsWith applies the HasEdge predicate on the "secrets" edge with a given conditions (other predicates).
func HasSecretsWith(preds ...predicate.Secret) predicate.Account {
	return predicate.Account(func(s *sql.Selector) {
		step := newSecretsStep()
		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.Account) predicate.Account {
	return predicate.Account(sql.AndPredicates(predicates...))
}

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

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