Files
MonkeyCode/backend/db/billingusage/where.go
2025-06-25 15:56:22 +08:00

481 lines
18 KiB
Go

// Code generated by ent, DO NOT EDIT.
package billingusage
import (
"time"
"entgo.io/ent/dialect/sql"
"github.com/chaitin/MonkeyCode/backend/db/predicate"
)
// ID filters vertices based on their ID field.
func ID(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContainsFold(FieldID, id))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldDeletedAt, v))
}
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldUserID, v))
}
// ModelName applies equality check predicate on the "model_name" field. It's identical to ModelNameEQ.
func ModelName(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldModelName, v))
}
// Tokens applies equality check predicate on the "tokens" field. It's identical to TokensEQ.
func Tokens(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldTokens, v))
}
// Operation applies equality check predicate on the "operation" field. It's identical to OperationEQ.
func Operation(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldOperation, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(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.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotNull(FieldDeletedAt))
}
// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldUserID, v))
}
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldUserID, v))
}
// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldUserID, vs...))
}
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldUserID, vs...))
}
// UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGT(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldUserID, v))
}
// UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDGTE(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldUserID, v))
}
// UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLT(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldUserID, v))
}
// UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDLTE(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldUserID, v))
}
// UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContains(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContains(FieldUserID, v))
}
// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasPrefix(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldHasPrefix(FieldUserID, v))
}
// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDHasSuffix(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldHasSuffix(FieldUserID, v))
}
// UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDEqualFold(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEqualFold(FieldUserID, v))
}
// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDContainsFold(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContainsFold(FieldUserID, v))
}
// ModelNameEQ applies the EQ predicate on the "model_name" field.
func ModelNameEQ(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldModelName, v))
}
// ModelNameNEQ applies the NEQ predicate on the "model_name" field.
func ModelNameNEQ(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldModelName, v))
}
// ModelNameIn applies the In predicate on the "model_name" field.
func ModelNameIn(vs ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldModelName, vs...))
}
// ModelNameNotIn applies the NotIn predicate on the "model_name" field.
func ModelNameNotIn(vs ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldModelName, vs...))
}
// ModelNameGT applies the GT predicate on the "model_name" field.
func ModelNameGT(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldModelName, v))
}
// ModelNameGTE applies the GTE predicate on the "model_name" field.
func ModelNameGTE(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldModelName, v))
}
// ModelNameLT applies the LT predicate on the "model_name" field.
func ModelNameLT(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldModelName, v))
}
// ModelNameLTE applies the LTE predicate on the "model_name" field.
func ModelNameLTE(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldModelName, v))
}
// ModelNameContains applies the Contains predicate on the "model_name" field.
func ModelNameContains(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContains(FieldModelName, v))
}
// ModelNameHasPrefix applies the HasPrefix predicate on the "model_name" field.
func ModelNameHasPrefix(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldHasPrefix(FieldModelName, v))
}
// ModelNameHasSuffix applies the HasSuffix predicate on the "model_name" field.
func ModelNameHasSuffix(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldHasSuffix(FieldModelName, v))
}
// ModelNameEqualFold applies the EqualFold predicate on the "model_name" field.
func ModelNameEqualFold(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEqualFold(FieldModelName, v))
}
// ModelNameContainsFold applies the ContainsFold predicate on the "model_name" field.
func ModelNameContainsFold(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContainsFold(FieldModelName, v))
}
// TokensEQ applies the EQ predicate on the "tokens" field.
func TokensEQ(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldTokens, v))
}
// TokensNEQ applies the NEQ predicate on the "tokens" field.
func TokensNEQ(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldTokens, v))
}
// TokensIn applies the In predicate on the "tokens" field.
func TokensIn(vs ...int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldTokens, vs...))
}
// TokensNotIn applies the NotIn predicate on the "tokens" field.
func TokensNotIn(vs ...int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldTokens, vs...))
}
// TokensGT applies the GT predicate on the "tokens" field.
func TokensGT(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldTokens, v))
}
// TokensGTE applies the GTE predicate on the "tokens" field.
func TokensGTE(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldTokens, v))
}
// TokensLT applies the LT predicate on the "tokens" field.
func TokensLT(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldTokens, v))
}
// TokensLTE applies the LTE predicate on the "tokens" field.
func TokensLTE(v int64) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldTokens, v))
}
// OperationEQ applies the EQ predicate on the "operation" field.
func OperationEQ(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldOperation, v))
}
// OperationNEQ applies the NEQ predicate on the "operation" field.
func OperationNEQ(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldOperation, v))
}
// OperationIn applies the In predicate on the "operation" field.
func OperationIn(vs ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldOperation, vs...))
}
// OperationNotIn applies the NotIn predicate on the "operation" field.
func OperationNotIn(vs ...string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldOperation, vs...))
}
// OperationGT applies the GT predicate on the "operation" field.
func OperationGT(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldOperation, v))
}
// OperationGTE applies the GTE predicate on the "operation" field.
func OperationGTE(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldOperation, v))
}
// OperationLT applies the LT predicate on the "operation" field.
func OperationLT(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldOperation, v))
}
// OperationLTE applies the LTE predicate on the "operation" field.
func OperationLTE(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldOperation, v))
}
// OperationContains applies the Contains predicate on the "operation" field.
func OperationContains(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContains(FieldOperation, v))
}
// OperationHasPrefix applies the HasPrefix predicate on the "operation" field.
func OperationHasPrefix(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldHasPrefix(FieldOperation, v))
}
// OperationHasSuffix applies the HasSuffix predicate on the "operation" field.
func OperationHasSuffix(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldHasSuffix(FieldOperation, v))
}
// OperationEqualFold applies the EqualFold predicate on the "operation" field.
func OperationEqualFold(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEqualFold(FieldOperation, v))
}
// OperationContainsFold applies the ContainsFold predicate on the "operation" field.
func OperationContainsFold(v string) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldContainsFold(FieldOperation, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.BillingUsage {
return predicate.BillingUsage(sql.FieldLTE(FieldUpdatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.BillingUsage) predicate.BillingUsage {
return predicate.BillingUsage(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.BillingUsage) predicate.BillingUsage {
return predicate.BillingUsage(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.BillingUsage) predicate.BillingUsage {
return predicate.BillingUsage(sql.NotPredicates(p))
}