// Code generated by ent, DO NOT EDIT.
package auditlog
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/Southclaws/storyden/internal/ent/predicate"
"github.com/rs/xid"
)
// ID filters vertices based on their ID field.
func ID(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id xid.ID) predicate.AuditLog {
return predicate.AuditLog(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.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldCreatedAt, v))
}
// EnactedByID applies equality check predicate on the "enacted_by_id" field. It's identical to EnactedByIDEQ.
func EnactedByID(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldEnactedByID, v))
}
// TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.
func TargetID(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldTargetID, v))
}
// TargetKind applies equality check predicate on the "target_kind" field. It's identical to TargetKindEQ.
func TargetKind(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldTargetKind, v))
}
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func Type(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldType, v))
}
// Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func Error(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldError, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLTE(FieldCreatedAt, v))
}
// EnactedByIDEQ applies the EQ predicate on the "enacted_by_id" field.
func EnactedByIDEQ(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldEnactedByID, v))
}
// EnactedByIDNEQ applies the NEQ predicate on the "enacted_by_id" field.
func EnactedByIDNEQ(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldEnactedByID, v))
}
// EnactedByIDIn applies the In predicate on the "enacted_by_id" field.
func EnactedByIDIn(vs ...xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldEnactedByID, vs...))
}
// EnactedByIDNotIn applies the NotIn predicate on the "enacted_by_id" field.
func EnactedByIDNotIn(vs ...xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldEnactedByID, vs...))
}
// EnactedByIDGT applies the GT predicate on the "enacted_by_id" field.
func EnactedByIDGT(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldEnactedByID, v))
}
// EnactedByIDGTE applies the GTE predicate on the "enacted_by_id" field.
func EnactedByIDGTE(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldEnactedByID, v))
}
// EnactedByIDLT applies the LT predicate on the "enacted_by_id" field.
func EnactedByIDLT(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldEnactedByID, v))
}
// EnactedByIDLTE applies the LTE predicate on the "enacted_by_id" field.
func EnactedByIDLTE(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLTE(FieldEnactedByID, v))
}
// EnactedByIDContains applies the Contains predicate on the "enacted_by_id" field.
func EnactedByIDContains(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldContains(FieldEnactedByID, vc))
}
// EnactedByIDHasPrefix applies the HasPrefix predicate on the "enacted_by_id" field.
func EnactedByIDHasPrefix(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldHasPrefix(FieldEnactedByID, vc))
}
// EnactedByIDHasSuffix applies the HasSuffix predicate on the "enacted_by_id" field.
func EnactedByIDHasSuffix(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldHasSuffix(FieldEnactedByID, vc))
}
// EnactedByIDIsNil applies the IsNil predicate on the "enacted_by_id" field.
func EnactedByIDIsNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldIsNull(FieldEnactedByID))
}
// EnactedByIDNotNil applies the NotNil predicate on the "enacted_by_id" field.
func EnactedByIDNotNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotNull(FieldEnactedByID))
}
// EnactedByIDEqualFold applies the EqualFold predicate on the "enacted_by_id" field.
func EnactedByIDEqualFold(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldEqualFold(FieldEnactedByID, vc))
}
// EnactedByIDContainsFold applies the ContainsFold predicate on the "enacted_by_id" field.
func EnactedByIDContainsFold(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldContainsFold(FieldEnactedByID, vc))
}
// TargetIDEQ applies the EQ predicate on the "target_id" field.
func TargetIDEQ(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldTargetID, v))
}
// TargetIDNEQ applies the NEQ predicate on the "target_id" field.
func TargetIDNEQ(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldTargetID, v))
}
// TargetIDIn applies the In predicate on the "target_id" field.
func TargetIDIn(vs ...xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldTargetID, vs...))
}
// TargetIDNotIn applies the NotIn predicate on the "target_id" field.
func TargetIDNotIn(vs ...xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldTargetID, vs...))
}
// TargetIDGT applies the GT predicate on the "target_id" field.
func TargetIDGT(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldTargetID, v))
}
// TargetIDGTE applies the GTE predicate on the "target_id" field.
func TargetIDGTE(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldTargetID, v))
}
// TargetIDLT applies the LT predicate on the "target_id" field.
func TargetIDLT(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldTargetID, v))
}
// TargetIDLTE applies the LTE predicate on the "target_id" field.
func TargetIDLTE(v xid.ID) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLTE(FieldTargetID, v))
}
// TargetIDContains applies the Contains predicate on the "target_id" field.
func TargetIDContains(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldContains(FieldTargetID, vc))
}
// TargetIDHasPrefix applies the HasPrefix predicate on the "target_id" field.
func TargetIDHasPrefix(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldHasPrefix(FieldTargetID, vc))
}
// TargetIDHasSuffix applies the HasSuffix predicate on the "target_id" field.
func TargetIDHasSuffix(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldHasSuffix(FieldTargetID, vc))
}
// TargetIDIsNil applies the IsNil predicate on the "target_id" field.
func TargetIDIsNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldIsNull(FieldTargetID))
}
// TargetIDNotNil applies the NotNil predicate on the "target_id" field.
func TargetIDNotNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotNull(FieldTargetID))
}
// TargetIDEqualFold applies the EqualFold predicate on the "target_id" field.
func TargetIDEqualFold(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldEqualFold(FieldTargetID, vc))
}
// TargetIDContainsFold applies the ContainsFold predicate on the "target_id" field.
func TargetIDContainsFold(v xid.ID) predicate.AuditLog {
vc := v.String()
return predicate.AuditLog(sql.FieldContainsFold(FieldTargetID, vc))
}
// TargetKindEQ applies the EQ predicate on the "target_kind" field.
func TargetKindEQ(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldTargetKind, v))
}
// TargetKindNEQ applies the NEQ predicate on the "target_kind" field.
func TargetKindNEQ(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldTargetKind, v))
}
// TargetKindIn applies the In predicate on the "target_kind" field.
func TargetKindIn(vs ...string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldTargetKind, vs...))
}
// TargetKindNotIn applies the NotIn predicate on the "target_kind" field.
func TargetKindNotIn(vs ...string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldTargetKind, vs...))
}
// TargetKindGT applies the GT predicate on the "target_kind" field.
func TargetKindGT(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldTargetKind, v))
}
// TargetKindGTE applies the GTE predicate on the "target_kind" field.
func TargetKindGTE(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldTargetKind, v))
}
// TargetKindLT applies the LT predicate on the "target_kind" field.
func TargetKindLT(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldTargetKind, v))
}
// TargetKindLTE applies the LTE predicate on the "target_kind" field.
func TargetKindLTE(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLTE(FieldTargetKind, v))
}
// TargetKindContains applies the Contains predicate on the "target_kind" field.
func TargetKindContains(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldContains(FieldTargetKind, v))
}
// TargetKindHasPrefix applies the HasPrefix predicate on the "target_kind" field.
func TargetKindHasPrefix(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldHasPrefix(FieldTargetKind, v))
}
// TargetKindHasSuffix applies the HasSuffix predicate on the "target_kind" field.
func TargetKindHasSuffix(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldHasSuffix(FieldTargetKind, v))
}
// TargetKindIsNil applies the IsNil predicate on the "target_kind" field.
func TargetKindIsNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldIsNull(FieldTargetKind))
}
// TargetKindNotNil applies the NotNil predicate on the "target_kind" field.
func TargetKindNotNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotNull(FieldTargetKind))
}
// TargetKindEqualFold applies the EqualFold predicate on the "target_kind" field.
func TargetKindEqualFold(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEqualFold(FieldTargetKind, v))
}
// TargetKindContainsFold applies the ContainsFold predicate on the "target_kind" field.
func TargetKindContainsFold(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldContainsFold(FieldTargetKind, v))
}
// TypeEQ applies the EQ predicate on the "type" field.
func TypeEQ(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldType, v))
}
// TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNEQ(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldType, v))
}
// TypeIn applies the In predicate on the "type" field.
func TypeIn(vs ...string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldType, vs...))
}
// TypeNotIn applies the NotIn predicate on the "type" field.
func TypeNotIn(vs ...string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldType, vs...))
}
// TypeGT applies the GT predicate on the "type" field.
func TypeGT(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldType, v))
}
// TypeGTE applies the GTE predicate on the "type" field.
func TypeGTE(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldType, v))
}
// TypeLT applies the LT predicate on the "type" field.
func TypeLT(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldType, v))
}
// TypeLTE applies the LTE predicate on the "type" field.
func TypeLTE(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLTE(FieldType, v))
}
// TypeContains applies the Contains predicate on the "type" field.
func TypeContains(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldContains(FieldType, v))
}
// TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasPrefix(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldHasPrefix(FieldType, v))
}
// TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeHasSuffix(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldHasSuffix(FieldType, v))
}
// TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeEqualFold(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEqualFold(FieldType, v))
}
// TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeContainsFold(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldContainsFold(FieldType, v))
}
// ErrorEQ applies the EQ predicate on the "error" field.
func ErrorEQ(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEQ(FieldError, v))
}
// ErrorNEQ applies the NEQ predicate on the "error" field.
func ErrorNEQ(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNEQ(FieldError, v))
}
// ErrorIn applies the In predicate on the "error" field.
func ErrorIn(vs ...string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldIn(FieldError, vs...))
}
// ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotIn(vs ...string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotIn(FieldError, vs...))
}
// ErrorGT applies the GT predicate on the "error" field.
func ErrorGT(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGT(FieldError, v))
}
// ErrorGTE applies the GTE predicate on the "error" field.
func ErrorGTE(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldGTE(FieldError, v))
}
// ErrorLT applies the LT predicate on the "error" field.
func ErrorLT(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLT(FieldError, v))
}
// ErrorLTE applies the LTE predicate on the "error" field.
func ErrorLTE(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldLTE(FieldError, v))
}
// ErrorContains applies the Contains predicate on the "error" field.
func ErrorContains(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldContains(FieldError, v))
}
// ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasPrefix(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldHasPrefix(FieldError, v))
}
// ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorHasSuffix(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldHasSuffix(FieldError, v))
}
// ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorIsNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldIsNull(FieldError))
}
// ErrorNotNil applies the NotNil predicate on the "error" field.
func ErrorNotNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotNull(FieldError))
}
// ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorEqualFold(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldEqualFold(FieldError, v))
}
// ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorContainsFold(v string) predicate.AuditLog {
return predicate.AuditLog(sql.FieldContainsFold(FieldError, v))
}
// MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataIsNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldIsNull(FieldMetadata))
}
// MetadataNotNil applies the NotNil predicate on the "metadata" field.
func MetadataNotNil() predicate.AuditLog {
return predicate.AuditLog(sql.FieldNotNull(FieldMetadata))
}
// HasEnactedBy applies the HasEdge predicate on the "enacted_by" edge.
func HasEnactedBy() predicate.AuditLog {
return predicate.AuditLog(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, EnactedByTable, EnactedByColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasEnactedByWith applies the HasEdge predicate on the "enacted_by" edge with a given conditions (other predicates).
func HasEnactedByWith(preds ...predicate.Account) predicate.AuditLog {
return predicate.AuditLog(func(s *sql.Selector) {
step := newEnactedByStep()
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.AuditLog) predicate.AuditLog {
return predicate.AuditLog(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.AuditLog) predicate.AuditLog {
return predicate.AuditLog(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.AuditLog) predicate.AuditLog {
return predicate.AuditLog(sql.NotPredicates(p))
}