385 lines
14 KiB
Go
385 lines
14 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package extension
|
|
|
|
import (
|
|
"voidraft/internal/models/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
|
|
func DeletedAt(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
|
|
func Key(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldKey, v))
|
|
}
|
|
|
|
// Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
|
|
func Enabled(v bool) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldEnabled, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtContains applies the Contains predicate on the "created_at" field.
|
|
func CreatedAtContains(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContains(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtHasPrefix applies the HasPrefix predicate on the "created_at" field.
|
|
func CreatedAtHasPrefix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasPrefix(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtHasSuffix applies the HasSuffix predicate on the "created_at" field.
|
|
func CreatedAtHasSuffix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasSuffix(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtEqualFold applies the EqualFold predicate on the "created_at" field.
|
|
func CreatedAtEqualFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEqualFold(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtContainsFold applies the ContainsFold predicate on the "created_at" field.
|
|
func CreatedAtContainsFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContainsFold(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtContains applies the Contains predicate on the "updated_at" field.
|
|
func UpdatedAtContains(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContains(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtHasPrefix applies the HasPrefix predicate on the "updated_at" field.
|
|
func UpdatedAtHasPrefix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasPrefix(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtHasSuffix applies the HasSuffix predicate on the "updated_at" field.
|
|
func UpdatedAtHasSuffix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasSuffix(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEqualFold applies the EqualFold predicate on the "updated_at" field.
|
|
func UpdatedAtEqualFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEqualFold(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtContainsFold applies the ContainsFold predicate on the "updated_at" field.
|
|
func UpdatedAtContainsFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContainsFold(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtContains applies the Contains predicate on the "deleted_at" field.
|
|
func DeletedAtContains(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContains(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtHasPrefix applies the HasPrefix predicate on the "deleted_at" field.
|
|
func DeletedAtHasPrefix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasPrefix(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtHasSuffix applies the HasSuffix predicate on the "deleted_at" field.
|
|
func DeletedAtHasSuffix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasSuffix(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.Extension {
|
|
return predicate.Extension(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtEqualFold applies the EqualFold predicate on the "deleted_at" field.
|
|
func DeletedAtEqualFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEqualFold(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtContainsFold applies the ContainsFold predicate on the "deleted_at" field.
|
|
func DeletedAtContainsFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContainsFold(FieldDeletedAt, v))
|
|
}
|
|
|
|
// KeyEQ applies the EQ predicate on the "key" field.
|
|
func KeyEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldKey, v))
|
|
}
|
|
|
|
// KeyNEQ applies the NEQ predicate on the "key" field.
|
|
func KeyNEQ(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNEQ(FieldKey, v))
|
|
}
|
|
|
|
// KeyIn applies the In predicate on the "key" field.
|
|
func KeyIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldIn(FieldKey, vs...))
|
|
}
|
|
|
|
// KeyNotIn applies the NotIn predicate on the "key" field.
|
|
func KeyNotIn(vs ...string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotIn(FieldKey, vs...))
|
|
}
|
|
|
|
// KeyGT applies the GT predicate on the "key" field.
|
|
func KeyGT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGT(FieldKey, v))
|
|
}
|
|
|
|
// KeyGTE applies the GTE predicate on the "key" field.
|
|
func KeyGTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldGTE(FieldKey, v))
|
|
}
|
|
|
|
// KeyLT applies the LT predicate on the "key" field.
|
|
func KeyLT(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLT(FieldKey, v))
|
|
}
|
|
|
|
// KeyLTE applies the LTE predicate on the "key" field.
|
|
func KeyLTE(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldLTE(FieldKey, v))
|
|
}
|
|
|
|
// KeyContains applies the Contains predicate on the "key" field.
|
|
func KeyContains(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContains(FieldKey, v))
|
|
}
|
|
|
|
// KeyHasPrefix applies the HasPrefix predicate on the "key" field.
|
|
func KeyHasPrefix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasPrefix(FieldKey, v))
|
|
}
|
|
|
|
// KeyHasSuffix applies the HasSuffix predicate on the "key" field.
|
|
func KeyHasSuffix(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldHasSuffix(FieldKey, v))
|
|
}
|
|
|
|
// KeyEqualFold applies the EqualFold predicate on the "key" field.
|
|
func KeyEqualFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEqualFold(FieldKey, v))
|
|
}
|
|
|
|
// KeyContainsFold applies the ContainsFold predicate on the "key" field.
|
|
func KeyContainsFold(v string) predicate.Extension {
|
|
return predicate.Extension(sql.FieldContainsFold(FieldKey, v))
|
|
}
|
|
|
|
// EnabledEQ applies the EQ predicate on the "enabled" field.
|
|
func EnabledEQ(v bool) predicate.Extension {
|
|
return predicate.Extension(sql.FieldEQ(FieldEnabled, v))
|
|
}
|
|
|
|
// EnabledNEQ applies the NEQ predicate on the "enabled" field.
|
|
func EnabledNEQ(v bool) predicate.Extension {
|
|
return predicate.Extension(sql.FieldNEQ(FieldEnabled, v))
|
|
}
|
|
|
|
// ConfigIsNil applies the IsNil predicate on the "config" field.
|
|
func ConfigIsNil() predicate.Extension {
|
|
return predicate.Extension(sql.FieldIsNull(FieldConfig))
|
|
}
|
|
|
|
// ConfigNotNil applies the NotNil predicate on the "config" field.
|
|
func ConfigNotNil() predicate.Extension {
|
|
return predicate.Extension(sql.FieldNotNull(FieldConfig))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Extension) predicate.Extension {
|
|
return predicate.Extension(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Extension) predicate.Extension {
|
|
return predicate.Extension(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Extension) predicate.Extension {
|
|
return predicate.Extension(sql.NotPredicates(p))
|
|
}
|