// Code generated by ent, DO NOT EDIT.

package creditusage

import (
	"time"
	"wechat-api/ent/predicate"

	"entgo.io/ent/dialect/sql"
)

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

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

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

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

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

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

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

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

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uint64) predicate.CreditUsage {
	return predicate.CreditUsage(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.CreditUsage {
	return predicate.CreditUsage(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.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldUpdatedAt, v))
}

// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldDeletedAt, v))
}

// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldUserID, v))
}

// Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func Number(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldNumber, v))
}

// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldStatus, v))
}

// Ntype applies equality check predicate on the "ntype" field. It's identical to NtypeEQ.
func Ntype(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldNtype, v))
}

// OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationID(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldOrganizationID, v))
}

// Nid applies equality check predicate on the "nid" field. It's identical to NidEQ.
func Nid(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldNid, v))
}

// Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
func Reason(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldReason, v))
}

// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
func Operator(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldOperator, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldDeletedAt, v))
}

// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldDeletedAt, v))
}

// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldDeletedAt, vs...))
}

// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldDeletedAt, vs...))
}

// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldDeletedAt, v))
}

// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldDeletedAt, v))
}

// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldDeletedAt, v))
}

// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldDeletedAt, v))
}

// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIsNull(FieldDeletedAt))
}

// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotNull(FieldDeletedAt))
}

// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldUserID, v))
}

// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldUserID, v))
}

// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldUserID, vs...))
}

// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldUserID, vs...))
}

// UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldUserID, v))
}

// UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDGTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldUserID, v))
}

// UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldUserID, v))
}

// UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDLTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldUserID, v))
}

// UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContains(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContains(FieldUserID, v))
}

// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasPrefix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasPrefix(FieldUserID, v))
}

// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDHasSuffix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasSuffix(FieldUserID, v))
}

// UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDIsNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIsNull(FieldUserID))
}

// UserIDNotNil applies the NotNil predicate on the "user_id" field.
func UserIDNotNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotNull(FieldUserID))
}

// UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDEqualFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEqualFold(FieldUserID, v))
}

// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDContainsFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContainsFold(FieldUserID, v))
}

// NumberEQ applies the EQ predicate on the "number" field.
func NumberEQ(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldNumber, v))
}

// NumberNEQ applies the NEQ predicate on the "number" field.
func NumberNEQ(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldNumber, v))
}

// NumberIn applies the In predicate on the "number" field.
func NumberIn(vs ...float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldNumber, vs...))
}

// NumberNotIn applies the NotIn predicate on the "number" field.
func NumberNotIn(vs ...float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldNumber, vs...))
}

// NumberGT applies the GT predicate on the "number" field.
func NumberGT(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldNumber, v))
}

// NumberGTE applies the GTE predicate on the "number" field.
func NumberGTE(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldNumber, v))
}

// NumberLT applies the LT predicate on the "number" field.
func NumberLT(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldNumber, v))
}

// NumberLTE applies the LTE predicate on the "number" field.
func NumberLTE(v float32) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldNumber, v))
}

// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldStatus, v))
}

// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldStatus, v))
}

// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldStatus, vs...))
}

// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldStatus, vs...))
}

// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldStatus, v))
}

// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldStatus, v))
}

// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldStatus, v))
}

// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldStatus, v))
}

// StatusIsNil applies the IsNil predicate on the "status" field.
func StatusIsNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIsNull(FieldStatus))
}

// StatusNotNil applies the NotNil predicate on the "status" field.
func StatusNotNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotNull(FieldStatus))
}

// NtypeEQ applies the EQ predicate on the "ntype" field.
func NtypeEQ(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldNtype, v))
}

// NtypeNEQ applies the NEQ predicate on the "ntype" field.
func NtypeNEQ(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldNtype, v))
}

// NtypeIn applies the In predicate on the "ntype" field.
func NtypeIn(vs ...int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldNtype, vs...))
}

// NtypeNotIn applies the NotIn predicate on the "ntype" field.
func NtypeNotIn(vs ...int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldNtype, vs...))
}

// NtypeGT applies the GT predicate on the "ntype" field.
func NtypeGT(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldNtype, v))
}

// NtypeGTE applies the GTE predicate on the "ntype" field.
func NtypeGTE(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldNtype, v))
}

// NtypeLT applies the LT predicate on the "ntype" field.
func NtypeLT(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldNtype, v))
}

// NtypeLTE applies the LTE predicate on the "ntype" field.
func NtypeLTE(v int) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldNtype, v))
}

// TableEQ applies the EQ predicate on the "table" field.
func TableEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldTable, v))
}

// TableNEQ applies the NEQ predicate on the "table" field.
func TableNEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldTable, v))
}

// TableIn applies the In predicate on the "table" field.
func TableIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldTable, vs...))
}

// TableNotIn applies the NotIn predicate on the "table" field.
func TableNotIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldTable, vs...))
}

// TableGT applies the GT predicate on the "table" field.
func TableGT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldTable, v))
}

// TableGTE applies the GTE predicate on the "table" field.
func TableGTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldTable, v))
}

// TableLT applies the LT predicate on the "table" field.
func TableLT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldTable, v))
}

// TableLTE applies the LTE predicate on the "table" field.
func TableLTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldTable, v))
}

// TableContains applies the Contains predicate on the "table" field.
func TableContains(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContains(FieldTable, v))
}

// TableHasPrefix applies the HasPrefix predicate on the "table" field.
func TableHasPrefix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasPrefix(FieldTable, v))
}

// TableHasSuffix applies the HasSuffix predicate on the "table" field.
func TableHasSuffix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasSuffix(FieldTable, v))
}

// TableEqualFold applies the EqualFold predicate on the "table" field.
func TableEqualFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEqualFold(FieldTable, v))
}

// TableContainsFold applies the ContainsFold predicate on the "table" field.
func TableContainsFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContainsFold(FieldTable, v))
}

// OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDEQ(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldOrganizationID, v))
}

// OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNEQ(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldOrganizationID, v))
}

// OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDIn(vs ...uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldOrganizationID, vs...))
}

// OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func OrganizationIDNotIn(vs ...uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldOrganizationID, vs...))
}

// OrganizationIDGT applies the GT predicate on the "organization_id" field.
func OrganizationIDGT(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldOrganizationID, v))
}

// OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
func OrganizationIDGTE(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldOrganizationID, v))
}

// OrganizationIDLT applies the LT predicate on the "organization_id" field.
func OrganizationIDLT(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldOrganizationID, v))
}

// OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
func OrganizationIDLTE(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldOrganizationID, v))
}

// OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
func OrganizationIDIsNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIsNull(FieldOrganizationID))
}

// OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
func OrganizationIDNotNil() predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotNull(FieldOrganizationID))
}

// NidEQ applies the EQ predicate on the "nid" field.
func NidEQ(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldNid, v))
}

// NidNEQ applies the NEQ predicate on the "nid" field.
func NidNEQ(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldNid, v))
}

// NidIn applies the In predicate on the "nid" field.
func NidIn(vs ...uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldNid, vs...))
}

// NidNotIn applies the NotIn predicate on the "nid" field.
func NidNotIn(vs ...uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldNid, vs...))
}

// NidGT applies the GT predicate on the "nid" field.
func NidGT(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldNid, v))
}

// NidGTE applies the GTE predicate on the "nid" field.
func NidGTE(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldNid, v))
}

// NidLT applies the LT predicate on the "nid" field.
func NidLT(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldNid, v))
}

// NidLTE applies the LTE predicate on the "nid" field.
func NidLTE(v uint64) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldNid, v))
}

// ReasonEQ applies the EQ predicate on the "reason" field.
func ReasonEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldReason, v))
}

// ReasonNEQ applies the NEQ predicate on the "reason" field.
func ReasonNEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldReason, v))
}

// ReasonIn applies the In predicate on the "reason" field.
func ReasonIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldReason, vs...))
}

// ReasonNotIn applies the NotIn predicate on the "reason" field.
func ReasonNotIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldReason, vs...))
}

// ReasonGT applies the GT predicate on the "reason" field.
func ReasonGT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldReason, v))
}

// ReasonGTE applies the GTE predicate on the "reason" field.
func ReasonGTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldReason, v))
}

// ReasonLT applies the LT predicate on the "reason" field.
func ReasonLT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldReason, v))
}

// ReasonLTE applies the LTE predicate on the "reason" field.
func ReasonLTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldReason, v))
}

// ReasonContains applies the Contains predicate on the "reason" field.
func ReasonContains(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContains(FieldReason, v))
}

// ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.
func ReasonHasPrefix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasPrefix(FieldReason, v))
}

// ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.
func ReasonHasSuffix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasSuffix(FieldReason, v))
}

// ReasonEqualFold applies the EqualFold predicate on the "reason" field.
func ReasonEqualFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEqualFold(FieldReason, v))
}

// ReasonContainsFold applies the ContainsFold predicate on the "reason" field.
func ReasonContainsFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContainsFold(FieldReason, v))
}

// OperatorEQ applies the EQ predicate on the "operator" field.
func OperatorEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEQ(FieldOperator, v))
}

// OperatorNEQ applies the NEQ predicate on the "operator" field.
func OperatorNEQ(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNEQ(FieldOperator, v))
}

// OperatorIn applies the In predicate on the "operator" field.
func OperatorIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldIn(FieldOperator, vs...))
}

// OperatorNotIn applies the NotIn predicate on the "operator" field.
func OperatorNotIn(vs ...string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldNotIn(FieldOperator, vs...))
}

// OperatorGT applies the GT predicate on the "operator" field.
func OperatorGT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGT(FieldOperator, v))
}

// OperatorGTE applies the GTE predicate on the "operator" field.
func OperatorGTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldGTE(FieldOperator, v))
}

// OperatorLT applies the LT predicate on the "operator" field.
func OperatorLT(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLT(FieldOperator, v))
}

// OperatorLTE applies the LTE predicate on the "operator" field.
func OperatorLTE(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldLTE(FieldOperator, v))
}

// OperatorContains applies the Contains predicate on the "operator" field.
func OperatorContains(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContains(FieldOperator, v))
}

// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
func OperatorHasPrefix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasPrefix(FieldOperator, v))
}

// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
func OperatorHasSuffix(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldHasSuffix(FieldOperator, v))
}

// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
func OperatorEqualFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldEqualFold(FieldOperator, v))
}

// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
func OperatorContainsFold(v string) predicate.CreditUsage {
	return predicate.CreditUsage(sql.FieldContainsFold(FieldOperator, v))
}

// And groups predicates with the AND operator between them.
func And(predicates ...predicate.CreditUsage) predicate.CreditUsage {
	return predicate.CreditUsage(sql.AndPredicates(predicates...))
}

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

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