Files

1104 lines
38 KiB
Go

// Code generated by ent, DO NOT EDIT.
package model
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/chaitin/MonkeyCode/backend/db/predicate"
"github.com/google/uuid"
)
// ID filters vertices based on their ID field.
func ID(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldID, id))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldDeletedAt, v))
}
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldUserID, v))
}
// Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func Provider(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldProvider, v))
}
// APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
func APIKey(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldAPIKey, v))
}
// BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.
func BaseURL(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldBaseURL, v))
}
// Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func Model(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldModel, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldRemark, v))
}
// Temperature applies equality check predicate on the "temperature" field. It's identical to TemperatureEQ.
func Temperature(v float64) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldTemperature, v))
}
// InterfaceType applies equality check predicate on the "interface_type" field. It's identical to InterfaceTypeEQ.
func InterfaceType(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldInterfaceType, v))
}
// Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func Weight(v int) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldWeight, v))
}
// LastCheckAt applies equality check predicate on the "last_check_at" field. It's identical to LastCheckAtEQ.
func LastCheckAt(v time.Time) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldLastCheckAt, v))
}
// LastCheckSuccess applies equality check predicate on the "last_check_success" field. It's identical to LastCheckSuccessEQ.
func LastCheckSuccess(v bool) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldLastCheckSuccess, v))
}
// LastCheckError applies equality check predicate on the "last_check_error" field. It's identical to LastCheckErrorEQ.
func LastCheckError(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldLastCheckError, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Model {
return predicate.Model(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.Model {
return predicate.Model(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldDeletedAt))
}
// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldUserID, v))
}
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldUserID, v))
}
// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldIn(FieldUserID, vs...))
}
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...uuid.UUID) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldUserID, vs...))
}
// ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldProvider, v))
}
// ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldProvider, v))
}
// ProviderIn applies the In predicate on the "provider" field.
func ProviderIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldProvider, vs...))
}
// ProviderNotIn applies the NotIn predicate on the "provider" field.
func ProviderNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldProvider, vs...))
}
// ProviderGT applies the GT predicate on the "provider" field.
func ProviderGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldProvider, v))
}
// ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldProvider, v))
}
// ProviderLT applies the LT predicate on the "provider" field.
func ProviderLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldProvider, v))
}
// ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldProvider, v))
}
// ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldProvider, v))
}
// ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldProvider, v))
}
// ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldProvider, v))
}
// ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldProvider, v))
}
// ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldProvider, v))
}
// APIKeyEQ applies the EQ predicate on the "api_key" field.
func APIKeyEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldAPIKey, v))
}
// APIKeyNEQ applies the NEQ predicate on the "api_key" field.
func APIKeyNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldAPIKey, v))
}
// APIKeyIn applies the In predicate on the "api_key" field.
func APIKeyIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldAPIKey, vs...))
}
// APIKeyNotIn applies the NotIn predicate on the "api_key" field.
func APIKeyNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldAPIKey, vs...))
}
// APIKeyGT applies the GT predicate on the "api_key" field.
func APIKeyGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldAPIKey, v))
}
// APIKeyGTE applies the GTE predicate on the "api_key" field.
func APIKeyGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldAPIKey, v))
}
// APIKeyLT applies the LT predicate on the "api_key" field.
func APIKeyLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldAPIKey, v))
}
// APIKeyLTE applies the LTE predicate on the "api_key" field.
func APIKeyLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldAPIKey, v))
}
// APIKeyContains applies the Contains predicate on the "api_key" field.
func APIKeyContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldAPIKey, v))
}
// APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
func APIKeyHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldAPIKey, v))
}
// APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
func APIKeyHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldAPIKey, v))
}
// APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
func APIKeyEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldAPIKey, v))
}
// APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
func APIKeyContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldAPIKey, v))
}
// BaseURLEQ applies the EQ predicate on the "base_url" field.
func BaseURLEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldBaseURL, v))
}
// BaseURLNEQ applies the NEQ predicate on the "base_url" field.
func BaseURLNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldBaseURL, v))
}
// BaseURLIn applies the In predicate on the "base_url" field.
func BaseURLIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldBaseURL, vs...))
}
// BaseURLNotIn applies the NotIn predicate on the "base_url" field.
func BaseURLNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldBaseURL, vs...))
}
// BaseURLGT applies the GT predicate on the "base_url" field.
func BaseURLGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldBaseURL, v))
}
// BaseURLGTE applies the GTE predicate on the "base_url" field.
func BaseURLGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldBaseURL, v))
}
// BaseURLLT applies the LT predicate on the "base_url" field.
func BaseURLLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldBaseURL, v))
}
// BaseURLLTE applies the LTE predicate on the "base_url" field.
func BaseURLLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldBaseURL, v))
}
// BaseURLContains applies the Contains predicate on the "base_url" field.
func BaseURLContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldBaseURL, v))
}
// BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.
func BaseURLHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldBaseURL, v))
}
// BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.
func BaseURLHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldBaseURL, v))
}
// BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.
func BaseURLEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldBaseURL, v))
}
// BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.
func BaseURLContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldBaseURL, v))
}
// ModelEQ applies the EQ predicate on the "model" field.
func ModelEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldModel, v))
}
// ModelNEQ applies the NEQ predicate on the "model" field.
func ModelNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldModel, v))
}
// ModelIn applies the In predicate on the "model" field.
func ModelIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldModel, vs...))
}
// ModelNotIn applies the NotIn predicate on the "model" field.
func ModelNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldModel, vs...))
}
// ModelGT applies the GT predicate on the "model" field.
func ModelGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldModel, v))
}
// ModelGTE applies the GTE predicate on the "model" field.
func ModelGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldModel, v))
}
// ModelLT applies the LT predicate on the "model" field.
func ModelLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldModel, v))
}
// ModelLTE applies the LTE predicate on the "model" field.
func ModelLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldModel, v))
}
// ModelContains applies the Contains predicate on the "model" field.
func ModelContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldModel, v))
}
// ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldModel, v))
}
// ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldModel, v))
}
// ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldModel, v))
}
// ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldModel, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldRemark, v))
}
// RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldRemark, v))
}
// RemarkIn applies the In predicate on the "remark" field.
func RemarkIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldRemark, vs...))
}
// RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldRemark, vs...))
}
// RemarkGT applies the GT predicate on the "remark" field.
func RemarkGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldRemark, v))
}
// RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldRemark, v))
}
// RemarkLT applies the LT predicate on the "remark" field.
func RemarkLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldRemark, v))
}
// RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldRemark, v))
}
// RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldRemark, v))
}
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldRemark, v))
}
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldRemark, v))
}
// RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldRemark))
}
// RemarkNotNil applies the NotNil predicate on the "remark" field.
func RemarkNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldRemark))
}
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldRemark, v))
}
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldRemark, v))
}
// TemperatureEQ applies the EQ predicate on the "temperature" field.
func TemperatureEQ(v float64) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldTemperature, v))
}
// TemperatureNEQ applies the NEQ predicate on the "temperature" field.
func TemperatureNEQ(v float64) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldTemperature, v))
}
// TemperatureIn applies the In predicate on the "temperature" field.
func TemperatureIn(vs ...float64) predicate.Model {
return predicate.Model(sql.FieldIn(FieldTemperature, vs...))
}
// TemperatureNotIn applies the NotIn predicate on the "temperature" field.
func TemperatureNotIn(vs ...float64) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldTemperature, vs...))
}
// TemperatureGT applies the GT predicate on the "temperature" field.
func TemperatureGT(v float64) predicate.Model {
return predicate.Model(sql.FieldGT(FieldTemperature, v))
}
// TemperatureGTE applies the GTE predicate on the "temperature" field.
func TemperatureGTE(v float64) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldTemperature, v))
}
// TemperatureLT applies the LT predicate on the "temperature" field.
func TemperatureLT(v float64) predicate.Model {
return predicate.Model(sql.FieldLT(FieldTemperature, v))
}
// TemperatureLTE applies the LTE predicate on the "temperature" field.
func TemperatureLTE(v float64) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldTemperature, v))
}
// TemperatureIsNil applies the IsNil predicate on the "temperature" field.
func TemperatureIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldTemperature))
}
// TemperatureNotNil applies the NotNil predicate on the "temperature" field.
func TemperatureNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldTemperature))
}
// InterfaceTypeEQ applies the EQ predicate on the "interface_type" field.
func InterfaceTypeEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldInterfaceType, v))
}
// InterfaceTypeNEQ applies the NEQ predicate on the "interface_type" field.
func InterfaceTypeNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldInterfaceType, v))
}
// InterfaceTypeIn applies the In predicate on the "interface_type" field.
func InterfaceTypeIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldInterfaceType, vs...))
}
// InterfaceTypeNotIn applies the NotIn predicate on the "interface_type" field.
func InterfaceTypeNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldInterfaceType, vs...))
}
// InterfaceTypeGT applies the GT predicate on the "interface_type" field.
func InterfaceTypeGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldInterfaceType, v))
}
// InterfaceTypeGTE applies the GTE predicate on the "interface_type" field.
func InterfaceTypeGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldInterfaceType, v))
}
// InterfaceTypeLT applies the LT predicate on the "interface_type" field.
func InterfaceTypeLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldInterfaceType, v))
}
// InterfaceTypeLTE applies the LTE predicate on the "interface_type" field.
func InterfaceTypeLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldInterfaceType, v))
}
// InterfaceTypeContains applies the Contains predicate on the "interface_type" field.
func InterfaceTypeContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldInterfaceType, v))
}
// InterfaceTypeHasPrefix applies the HasPrefix predicate on the "interface_type" field.
func InterfaceTypeHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldInterfaceType, v))
}
// InterfaceTypeHasSuffix applies the HasSuffix predicate on the "interface_type" field.
func InterfaceTypeHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldInterfaceType, v))
}
// InterfaceTypeIsNil applies the IsNil predicate on the "interface_type" field.
func InterfaceTypeIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldInterfaceType))
}
// InterfaceTypeNotNil applies the NotNil predicate on the "interface_type" field.
func InterfaceTypeNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldInterfaceType))
}
// InterfaceTypeEqualFold applies the EqualFold predicate on the "interface_type" field.
func InterfaceTypeEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldInterfaceType, v))
}
// InterfaceTypeContainsFold applies the ContainsFold predicate on the "interface_type" field.
func InterfaceTypeContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldInterfaceType, v))
}
// WeightEQ applies the EQ predicate on the "weight" field.
func WeightEQ(v int) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldWeight, v))
}
// WeightNEQ applies the NEQ predicate on the "weight" field.
func WeightNEQ(v int) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldWeight, v))
}
// WeightIn applies the In predicate on the "weight" field.
func WeightIn(vs ...int) predicate.Model {
return predicate.Model(sql.FieldIn(FieldWeight, vs...))
}
// WeightNotIn applies the NotIn predicate on the "weight" field.
func WeightNotIn(vs ...int) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldWeight, vs...))
}
// WeightGT applies the GT predicate on the "weight" field.
func WeightGT(v int) predicate.Model {
return predicate.Model(sql.FieldGT(FieldWeight, v))
}
// WeightGTE applies the GTE predicate on the "weight" field.
func WeightGTE(v int) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldWeight, v))
}
// WeightLT applies the LT predicate on the "weight" field.
func WeightLT(v int) predicate.Model {
return predicate.Model(sql.FieldLT(FieldWeight, v))
}
// WeightLTE applies the LTE predicate on the "weight" field.
func WeightLTE(v int) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldWeight, v))
}
// LastCheckAtEQ applies the EQ predicate on the "last_check_at" field.
func LastCheckAtEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldLastCheckAt, v))
}
// LastCheckAtNEQ applies the NEQ predicate on the "last_check_at" field.
func LastCheckAtNEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldLastCheckAt, v))
}
// LastCheckAtIn applies the In predicate on the "last_check_at" field.
func LastCheckAtIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldIn(FieldLastCheckAt, vs...))
}
// LastCheckAtNotIn applies the NotIn predicate on the "last_check_at" field.
func LastCheckAtNotIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldLastCheckAt, vs...))
}
// LastCheckAtGT applies the GT predicate on the "last_check_at" field.
func LastCheckAtGT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGT(FieldLastCheckAt, v))
}
// LastCheckAtGTE applies the GTE predicate on the "last_check_at" field.
func LastCheckAtGTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldLastCheckAt, v))
}
// LastCheckAtLT applies the LT predicate on the "last_check_at" field.
func LastCheckAtLT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLT(FieldLastCheckAt, v))
}
// LastCheckAtLTE applies the LTE predicate on the "last_check_at" field.
func LastCheckAtLTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldLastCheckAt, v))
}
// LastCheckAtIsNil applies the IsNil predicate on the "last_check_at" field.
func LastCheckAtIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldLastCheckAt))
}
// LastCheckAtNotNil applies the NotNil predicate on the "last_check_at" field.
func LastCheckAtNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldLastCheckAt))
}
// LastCheckSuccessEQ applies the EQ predicate on the "last_check_success" field.
func LastCheckSuccessEQ(v bool) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldLastCheckSuccess, v))
}
// LastCheckSuccessNEQ applies the NEQ predicate on the "last_check_success" field.
func LastCheckSuccessNEQ(v bool) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldLastCheckSuccess, v))
}
// LastCheckSuccessIsNil applies the IsNil predicate on the "last_check_success" field.
func LastCheckSuccessIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldLastCheckSuccess))
}
// LastCheckSuccessNotNil applies the NotNil predicate on the "last_check_success" field.
func LastCheckSuccessNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldLastCheckSuccess))
}
// LastCheckErrorEQ applies the EQ predicate on the "last_check_error" field.
func LastCheckErrorEQ(v string) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldLastCheckError, v))
}
// LastCheckErrorNEQ applies the NEQ predicate on the "last_check_error" field.
func LastCheckErrorNEQ(v string) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldLastCheckError, v))
}
// LastCheckErrorIn applies the In predicate on the "last_check_error" field.
func LastCheckErrorIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldIn(FieldLastCheckError, vs...))
}
// LastCheckErrorNotIn applies the NotIn predicate on the "last_check_error" field.
func LastCheckErrorNotIn(vs ...string) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldLastCheckError, vs...))
}
// LastCheckErrorGT applies the GT predicate on the "last_check_error" field.
func LastCheckErrorGT(v string) predicate.Model {
return predicate.Model(sql.FieldGT(FieldLastCheckError, v))
}
// LastCheckErrorGTE applies the GTE predicate on the "last_check_error" field.
func LastCheckErrorGTE(v string) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldLastCheckError, v))
}
// LastCheckErrorLT applies the LT predicate on the "last_check_error" field.
func LastCheckErrorLT(v string) predicate.Model {
return predicate.Model(sql.FieldLT(FieldLastCheckError, v))
}
// LastCheckErrorLTE applies the LTE predicate on the "last_check_error" field.
func LastCheckErrorLTE(v string) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldLastCheckError, v))
}
// LastCheckErrorContains applies the Contains predicate on the "last_check_error" field.
func LastCheckErrorContains(v string) predicate.Model {
return predicate.Model(sql.FieldContains(FieldLastCheckError, v))
}
// LastCheckErrorHasPrefix applies the HasPrefix predicate on the "last_check_error" field.
func LastCheckErrorHasPrefix(v string) predicate.Model {
return predicate.Model(sql.FieldHasPrefix(FieldLastCheckError, v))
}
// LastCheckErrorHasSuffix applies the HasSuffix predicate on the "last_check_error" field.
func LastCheckErrorHasSuffix(v string) predicate.Model {
return predicate.Model(sql.FieldHasSuffix(FieldLastCheckError, v))
}
// LastCheckErrorIsNil applies the IsNil predicate on the "last_check_error" field.
func LastCheckErrorIsNil() predicate.Model {
return predicate.Model(sql.FieldIsNull(FieldLastCheckError))
}
// LastCheckErrorNotNil applies the NotNil predicate on the "last_check_error" field.
func LastCheckErrorNotNil() predicate.Model {
return predicate.Model(sql.FieldNotNull(FieldLastCheckError))
}
// LastCheckErrorEqualFold applies the EqualFold predicate on the "last_check_error" field.
func LastCheckErrorEqualFold(v string) predicate.Model {
return predicate.Model(sql.FieldEqualFold(FieldLastCheckError, v))
}
// LastCheckErrorContainsFold applies the ContainsFold predicate on the "last_check_error" field.
func LastCheckErrorContainsFold(v string) predicate.Model {
return predicate.Model(sql.FieldContainsFold(FieldLastCheckError, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Model {
return predicate.Model(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Model {
return predicate.Model(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Model {
return predicate.Model(sql.FieldLTE(FieldUpdatedAt, v))
}
// HasUser applies the HasEdge predicate on the "user" edge.
func HasUser() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasUserWith(preds ...predicate.User) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newUserStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTeams applies the HasEdge predicate on the "teams" edge.
func HasTeams() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, true, TeamsTable, TeamsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func HasTeamsWith(preds ...predicate.Team) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newTeamsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasGroups applies the HasEdge predicate on the "groups" edge.
func HasGroups() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, true, GroupsTable, GroupsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newGroupsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasVms applies the HasEdge predicate on the "vms" edge.
func HasVms() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, VmsTable, VmsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).
func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newVmsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasProjectTasks applies the HasEdge predicate on the "project_tasks" edge.
func HasProjectTasks() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ProjectTasksTable, ProjectTasksColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasProjectTasksWith applies the HasEdge predicate on the "project_tasks" edge with a given conditions (other predicates).
func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newProjectTasksStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTeamModels applies the HasEdge predicate on the "team_models" edge.
func HasTeamModels() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, true, TeamModelsTable, TeamModelsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTeamModelsWith applies the HasEdge predicate on the "team_models" edge with a given conditions (other predicates).
func HasTeamModelsWith(preds ...predicate.TeamModel) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newTeamModelsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTeamGroupModels applies the HasEdge predicate on the "team_group_models" edge.
func HasTeamGroupModels() predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, true, TeamGroupModelsTable, TeamGroupModelsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTeamGroupModelsWith applies the HasEdge predicate on the "team_group_models" edge with a given conditions (other predicates).
func HasTeamGroupModelsWith(preds ...predicate.TeamGroupModel) predicate.Model {
return predicate.Model(func(s *sql.Selector) {
step := newTeamGroupModelsStep()
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.Model) predicate.Model {
return predicate.Model(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Model) predicate.Model {
return predicate.Model(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Model) predicate.Model {
return predicate.Model(sql.NotPredicates(p))
}