model

package
v0.0.0-...-481d40d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the model type in the database.
	Label = "model"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldAPIKey holds the string denoting the api_key field in the database.
	FieldAPIKey = "api_key"
	// FieldBaseURL holds the string denoting the base_url field in the database.
	FieldBaseURL = "base_url"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldRemark holds the string denoting the remark field in the database.
	FieldRemark = "remark"
	// FieldTemperature holds the string denoting the temperature field in the database.
	FieldTemperature = "temperature"
	// FieldInterfaceType holds the string denoting the interface_type field in the database.
	FieldInterfaceType = "interface_type"
	// FieldWeight holds the string denoting the weight field in the database.
	FieldWeight = "weight"
	// FieldLastCheckAt holds the string denoting the last_check_at field in the database.
	FieldLastCheckAt = "last_check_at"
	// FieldLastCheckSuccess holds the string denoting the last_check_success field in the database.
	FieldLastCheckSuccess = "last_check_success"
	// FieldLastCheckError holds the string denoting the last_check_error field in the database.
	FieldLastCheckError = "last_check_error"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeTeams holds the string denoting the teams edge name in mutations.
	EdgeTeams = "teams"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeVms holds the string denoting the vms edge name in mutations.
	EdgeVms = "vms"
	// EdgeProjectTasks holds the string denoting the project_tasks edge name in mutations.
	EdgeProjectTasks = "project_tasks"
	// EdgePricing holds the string denoting the pricing edge name in mutations.
	EdgePricing = "pricing"
	// EdgeApikeys holds the string denoting the apikeys edge name in mutations.
	EdgeApikeys = "apikeys"
	// EdgeTeamModels holds the string denoting the team_models edge name in mutations.
	EdgeTeamModels = "team_models"
	// EdgeTeamGroupModels holds the string denoting the team_group_models edge name in mutations.
	EdgeTeamGroupModels = "team_group_models"
	// Table holds the table name of the model in the database.
	Table = "models"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "models"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// TeamsTable is the table that holds the teams relation/edge. The primary key declared below.
	TeamsTable = "team_models"
	// TeamsInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamsInverseTable = "teams"
	// GroupsTable is the table that holds the groups relation/edge. The primary key declared below.
	GroupsTable = "team_group_models"
	// GroupsInverseTable is the table name for the TeamGroup entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroup" package.
	GroupsInverseTable = "team_groups"
	// VmsTable is the table that holds the vms relation/edge.
	VmsTable = "virtualmachines"
	// VmsInverseTable is the table name for the VirtualMachine entity.
	// It exists in this package in order to avoid circular dependency with the "virtualmachine" package.
	VmsInverseTable = "virtualmachines"
	// VmsColumn is the table column denoting the vms relation/edge.
	VmsColumn = "model_id"
	// ProjectTasksTable is the table that holds the project_tasks relation/edge.
	ProjectTasksTable = "project_tasks"
	// ProjectTasksInverseTable is the table name for the ProjectTask entity.
	// It exists in this package in order to avoid circular dependency with the "projecttask" package.
	ProjectTasksInverseTable = "project_tasks"
	// ProjectTasksColumn is the table column denoting the project_tasks relation/edge.
	ProjectTasksColumn = "model_id"
	// PricingTable is the table that holds the pricing relation/edge.
	PricingTable = "model_pricings"
	// PricingInverseTable is the table name for the ModelPricing entity.
	// It exists in this package in order to avoid circular dependency with the "modelpricing" package.
	PricingInverseTable = "model_pricings"
	// PricingColumn is the table column denoting the pricing relation/edge.
	PricingColumn = "model_id"
	// ApikeysTable is the table that holds the apikeys relation/edge.
	ApikeysTable = "model_api_keys"
	// ApikeysInverseTable is the table name for the ModelApiKey entity.
	// It exists in this package in order to avoid circular dependency with the "modelapikey" package.
	ApikeysInverseTable = "model_api_keys"
	// ApikeysColumn is the table column denoting the apikeys relation/edge.
	ApikeysColumn = "model_id"
	// TeamModelsTable is the table that holds the team_models relation/edge.
	TeamModelsTable = "team_models"
	// TeamModelsInverseTable is the table name for the TeamModel entity.
	// It exists in this package in order to avoid circular dependency with the "teammodel" package.
	TeamModelsInverseTable = "team_models"
	// TeamModelsColumn is the table column denoting the team_models relation/edge.
	TeamModelsColumn = "model_id"
	// TeamGroupModelsTable is the table that holds the team_group_models relation/edge.
	TeamGroupModelsTable = "team_group_models"
	// TeamGroupModelsInverseTable is the table name for the TeamGroupModel entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroupmodel" package.
	TeamGroupModelsInverseTable = "team_group_models"
	// TeamGroupModelsColumn is the table column denoting the team_group_models relation/edge.
	TeamGroupModelsColumn = "model_id"
)

Variables

View Source
var (
	// TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the
	// primary key for the teams relation (M2M).
	TeamsPrimaryKey = []string{"team_id", "model_id"}
	// GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
	// primary key for the groups relation (M2M).
	GroupsPrimaryKey = []string{"group_id", "model_id"}
)
View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// ProviderValidator is a validator for the "provider" field. It is called by the builders before save.
	ProviderValidator func(string) error
	// APIKeyValidator is a validator for the "api_key" field. It is called by the builders before save.
	APIKeyValidator func(string) error
	// BaseURLValidator is a validator for the "base_url" field. It is called by the builders before save.
	BaseURLValidator func(string) error
	// ModelValidator is a validator for the "model" field. It is called by the builders before save.
	ModelValidator func(string) error
	// DefaultWeight holds the default value on creation for the "weight" field.
	DefaultWeight int
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for model fields.

Functions

func APIKey

func APIKey(v string) predicate.Model

APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.

func APIKeyContains

func APIKeyContains(v string) predicate.Model

APIKeyContains applies the Contains predicate on the "api_key" field.

func APIKeyContainsFold

func APIKeyContainsFold(v string) predicate.Model

APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.

func APIKeyEQ

func APIKeyEQ(v string) predicate.Model

APIKeyEQ applies the EQ predicate on the "api_key" field.

func APIKeyEqualFold

func APIKeyEqualFold(v string) predicate.Model

APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.

func APIKeyGT

func APIKeyGT(v string) predicate.Model

APIKeyGT applies the GT predicate on the "api_key" field.

func APIKeyGTE

func APIKeyGTE(v string) predicate.Model

APIKeyGTE applies the GTE predicate on the "api_key" field.

func APIKeyHasPrefix

func APIKeyHasPrefix(v string) predicate.Model

APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.

func APIKeyHasSuffix

func APIKeyHasSuffix(v string) predicate.Model

APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.

func APIKeyIn

func APIKeyIn(vs ...string) predicate.Model

APIKeyIn applies the In predicate on the "api_key" field.

func APIKeyLT

func APIKeyLT(v string) predicate.Model

APIKeyLT applies the LT predicate on the "api_key" field.

func APIKeyLTE

func APIKeyLTE(v string) predicate.Model

APIKeyLTE applies the LTE predicate on the "api_key" field.

func APIKeyNEQ

func APIKeyNEQ(v string) predicate.Model

APIKeyNEQ applies the NEQ predicate on the "api_key" field.

func APIKeyNotIn

func APIKeyNotIn(vs ...string) predicate.Model

APIKeyNotIn applies the NotIn predicate on the "api_key" field.

func And

func And(predicates ...predicate.Model) predicate.Model

And groups predicates with the AND operator between them.

func BaseURL

func BaseURL(v string) predicate.Model

BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.

func BaseURLContains

func BaseURLContains(v string) predicate.Model

BaseURLContains applies the Contains predicate on the "base_url" field.

func BaseURLContainsFold

func BaseURLContainsFold(v string) predicate.Model

BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.

func BaseURLEQ

func BaseURLEQ(v string) predicate.Model

BaseURLEQ applies the EQ predicate on the "base_url" field.

func BaseURLEqualFold

func BaseURLEqualFold(v string) predicate.Model

BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.

func BaseURLGT

func BaseURLGT(v string) predicate.Model

BaseURLGT applies the GT predicate on the "base_url" field.

func BaseURLGTE

func BaseURLGTE(v string) predicate.Model

BaseURLGTE applies the GTE predicate on the "base_url" field.

func BaseURLHasPrefix

func BaseURLHasPrefix(v string) predicate.Model

BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.

func BaseURLHasSuffix

func BaseURLHasSuffix(v string) predicate.Model

BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.

func BaseURLIn

func BaseURLIn(vs ...string) predicate.Model

BaseURLIn applies the In predicate on the "base_url" field.

func BaseURLLT

func BaseURLLT(v string) predicate.Model

BaseURLLT applies the LT predicate on the "base_url" field.

func BaseURLLTE

func BaseURLLTE(v string) predicate.Model

BaseURLLTE applies the LTE predicate on the "base_url" field.

func BaseURLNEQ

func BaseURLNEQ(v string) predicate.Model

BaseURLNEQ applies the NEQ predicate on the "base_url" field.

func BaseURLNotIn

func BaseURLNotIn(vs ...string) predicate.Model

BaseURLNotIn applies the NotIn predicate on the "base_url" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Model

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Model

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Model

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Model

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Model

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Model

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Model

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Model

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Model

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Model

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Model

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Model

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Model

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Model

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Model

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Model

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Model

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Model

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Model

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Model

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasApikeys

func HasApikeys() predicate.Model

HasApikeys applies the HasEdge predicate on the "apikeys" edge.

func HasApikeysWith

func HasApikeysWith(preds ...predicate.ModelApiKey) predicate.Model

HasApikeysWith applies the HasEdge predicate on the "apikeys" edge with a given conditions (other predicates).

func HasGroups

func HasGroups() predicate.Model

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Model

HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).

func HasPricing

func HasPricing() predicate.Model

HasPricing applies the HasEdge predicate on the "pricing" edge.

func HasPricingWith

func HasPricingWith(preds ...predicate.ModelPricing) predicate.Model

HasPricingWith applies the HasEdge predicate on the "pricing" edge with a given conditions (other predicates).

func HasProjectTasks

func HasProjectTasks() predicate.Model

HasProjectTasks applies the HasEdge predicate on the "project_tasks" edge.

func HasProjectTasksWith

func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Model

HasProjectTasksWith applies the HasEdge predicate on the "project_tasks" edge with a given conditions (other predicates).

func HasTeamGroupModels

func HasTeamGroupModels() predicate.Model

HasTeamGroupModels applies the HasEdge predicate on the "team_group_models" edge.

func HasTeamGroupModelsWith

func HasTeamGroupModelsWith(preds ...predicate.TeamGroupModel) predicate.Model

HasTeamGroupModelsWith applies the HasEdge predicate on the "team_group_models" edge with a given conditions (other predicates).

func HasTeamModels

func HasTeamModels() predicate.Model

HasTeamModels applies the HasEdge predicate on the "team_models" edge.

func HasTeamModelsWith

func HasTeamModelsWith(preds ...predicate.TeamModel) predicate.Model

HasTeamModelsWith applies the HasEdge predicate on the "team_models" edge with a given conditions (other predicates).

func HasTeams

func HasTeams() predicate.Model

HasTeams applies the HasEdge predicate on the "teams" edge.

func HasTeamsWith

func HasTeamsWith(preds ...predicate.Team) predicate.Model

HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).

func HasUser

func HasUser() predicate.Model

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Model

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func HasVms

func HasVms() predicate.Model

HasVms applies the HasEdge predicate on the "vms" edge.

func HasVmsWith

func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Model

HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Model

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Model

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Model

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Model

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Model

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Model

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Model

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Model

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Model

IDNotIn applies the NotIn predicate on the ID field.

func InterfaceType

func InterfaceType(v string) predicate.Model

InterfaceType applies equality check predicate on the "interface_type" field. It's identical to InterfaceTypeEQ.

func InterfaceTypeContains

func InterfaceTypeContains(v string) predicate.Model

InterfaceTypeContains applies the Contains predicate on the "interface_type" field.

func InterfaceTypeContainsFold

func InterfaceTypeContainsFold(v string) predicate.Model

InterfaceTypeContainsFold applies the ContainsFold predicate on the "interface_type" field.

func InterfaceTypeEQ

func InterfaceTypeEQ(v string) predicate.Model

InterfaceTypeEQ applies the EQ predicate on the "interface_type" field.

func InterfaceTypeEqualFold

func InterfaceTypeEqualFold(v string) predicate.Model

InterfaceTypeEqualFold applies the EqualFold predicate on the "interface_type" field.

func InterfaceTypeGT

func InterfaceTypeGT(v string) predicate.Model

InterfaceTypeGT applies the GT predicate on the "interface_type" field.

func InterfaceTypeGTE

func InterfaceTypeGTE(v string) predicate.Model

InterfaceTypeGTE applies the GTE predicate on the "interface_type" field.

func InterfaceTypeHasPrefix

func InterfaceTypeHasPrefix(v string) predicate.Model

InterfaceTypeHasPrefix applies the HasPrefix predicate on the "interface_type" field.

func InterfaceTypeHasSuffix

func InterfaceTypeHasSuffix(v string) predicate.Model

InterfaceTypeHasSuffix applies the HasSuffix predicate on the "interface_type" field.

func InterfaceTypeIn

func InterfaceTypeIn(vs ...string) predicate.Model

InterfaceTypeIn applies the In predicate on the "interface_type" field.

func InterfaceTypeIsNil

func InterfaceTypeIsNil() predicate.Model

InterfaceTypeIsNil applies the IsNil predicate on the "interface_type" field.

func InterfaceTypeLT

func InterfaceTypeLT(v string) predicate.Model

InterfaceTypeLT applies the LT predicate on the "interface_type" field.

func InterfaceTypeLTE

func InterfaceTypeLTE(v string) predicate.Model

InterfaceTypeLTE applies the LTE predicate on the "interface_type" field.

func InterfaceTypeNEQ

func InterfaceTypeNEQ(v string) predicate.Model

InterfaceTypeNEQ applies the NEQ predicate on the "interface_type" field.

func InterfaceTypeNotIn

func InterfaceTypeNotIn(vs ...string) predicate.Model

InterfaceTypeNotIn applies the NotIn predicate on the "interface_type" field.

func InterfaceTypeNotNil

func InterfaceTypeNotNil() predicate.Model

InterfaceTypeNotNil applies the NotNil predicate on the "interface_type" field.

func LastCheckAt

func LastCheckAt(v time.Time) predicate.Model

LastCheckAt applies equality check predicate on the "last_check_at" field. It's identical to LastCheckAtEQ.

func LastCheckAtEQ

func LastCheckAtEQ(v time.Time) predicate.Model

LastCheckAtEQ applies the EQ predicate on the "last_check_at" field.

func LastCheckAtGT

func LastCheckAtGT(v time.Time) predicate.Model

LastCheckAtGT applies the GT predicate on the "last_check_at" field.

func LastCheckAtGTE

func LastCheckAtGTE(v time.Time) predicate.Model

LastCheckAtGTE applies the GTE predicate on the "last_check_at" field.

func LastCheckAtIn

func LastCheckAtIn(vs ...time.Time) predicate.Model

LastCheckAtIn applies the In predicate on the "last_check_at" field.

func LastCheckAtIsNil

func LastCheckAtIsNil() predicate.Model

LastCheckAtIsNil applies the IsNil predicate on the "last_check_at" field.

func LastCheckAtLT

func LastCheckAtLT(v time.Time) predicate.Model

LastCheckAtLT applies the LT predicate on the "last_check_at" field.

func LastCheckAtLTE

func LastCheckAtLTE(v time.Time) predicate.Model

LastCheckAtLTE applies the LTE predicate on the "last_check_at" field.

func LastCheckAtNEQ

func LastCheckAtNEQ(v time.Time) predicate.Model

LastCheckAtNEQ applies the NEQ predicate on the "last_check_at" field.

func LastCheckAtNotIn

func LastCheckAtNotIn(vs ...time.Time) predicate.Model

LastCheckAtNotIn applies the NotIn predicate on the "last_check_at" field.

func LastCheckAtNotNil

func LastCheckAtNotNil() predicate.Model

LastCheckAtNotNil applies the NotNil predicate on the "last_check_at" field.

func LastCheckError

func LastCheckError(v string) predicate.Model

LastCheckError applies equality check predicate on the "last_check_error" field. It's identical to LastCheckErrorEQ.

func LastCheckErrorContains

func LastCheckErrorContains(v string) predicate.Model

LastCheckErrorContains applies the Contains predicate on the "last_check_error" field.

func LastCheckErrorContainsFold

func LastCheckErrorContainsFold(v string) predicate.Model

LastCheckErrorContainsFold applies the ContainsFold predicate on the "last_check_error" field.

func LastCheckErrorEQ

func LastCheckErrorEQ(v string) predicate.Model

LastCheckErrorEQ applies the EQ predicate on the "last_check_error" field.

func LastCheckErrorEqualFold

func LastCheckErrorEqualFold(v string) predicate.Model

LastCheckErrorEqualFold applies the EqualFold predicate on the "last_check_error" field.

func LastCheckErrorGT

func LastCheckErrorGT(v string) predicate.Model

LastCheckErrorGT applies the GT predicate on the "last_check_error" field.

func LastCheckErrorGTE

func LastCheckErrorGTE(v string) predicate.Model

LastCheckErrorGTE applies the GTE predicate on the "last_check_error" field.

func LastCheckErrorHasPrefix

func LastCheckErrorHasPrefix(v string) predicate.Model

LastCheckErrorHasPrefix applies the HasPrefix predicate on the "last_check_error" field.

func LastCheckErrorHasSuffix

func LastCheckErrorHasSuffix(v string) predicate.Model

LastCheckErrorHasSuffix applies the HasSuffix predicate on the "last_check_error" field.

func LastCheckErrorIn

func LastCheckErrorIn(vs ...string) predicate.Model

LastCheckErrorIn applies the In predicate on the "last_check_error" field.

func LastCheckErrorIsNil

func LastCheckErrorIsNil() predicate.Model

LastCheckErrorIsNil applies the IsNil predicate on the "last_check_error" field.

func LastCheckErrorLT

func LastCheckErrorLT(v string) predicate.Model

LastCheckErrorLT applies the LT predicate on the "last_check_error" field.

func LastCheckErrorLTE

func LastCheckErrorLTE(v string) predicate.Model

LastCheckErrorLTE applies the LTE predicate on the "last_check_error" field.

func LastCheckErrorNEQ

func LastCheckErrorNEQ(v string) predicate.Model

LastCheckErrorNEQ applies the NEQ predicate on the "last_check_error" field.

func LastCheckErrorNotIn

func LastCheckErrorNotIn(vs ...string) predicate.Model

LastCheckErrorNotIn applies the NotIn predicate on the "last_check_error" field.

func LastCheckErrorNotNil

func LastCheckErrorNotNil() predicate.Model

LastCheckErrorNotNil applies the NotNil predicate on the "last_check_error" field.

func LastCheckSuccess

func LastCheckSuccess(v bool) predicate.Model

LastCheckSuccess applies equality check predicate on the "last_check_success" field. It's identical to LastCheckSuccessEQ.

func LastCheckSuccessEQ

func LastCheckSuccessEQ(v bool) predicate.Model

LastCheckSuccessEQ applies the EQ predicate on the "last_check_success" field.

func LastCheckSuccessIsNil

func LastCheckSuccessIsNil() predicate.Model

LastCheckSuccessIsNil applies the IsNil predicate on the "last_check_success" field.

func LastCheckSuccessNEQ

func LastCheckSuccessNEQ(v bool) predicate.Model

LastCheckSuccessNEQ applies the NEQ predicate on the "last_check_success" field.

func LastCheckSuccessNotNil

func LastCheckSuccessNotNil() predicate.Model

LastCheckSuccessNotNil applies the NotNil predicate on the "last_check_success" field.

func Model

func Model(v string) predicate.Model

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Model

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Model

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Model

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Model

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Model

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Model

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Model

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Model

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

func ModelIn(vs ...string) predicate.Model

ModelIn applies the In predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Model

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Model

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Model

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

func ModelNotIn(vs ...string) predicate.Model

ModelNotIn applies the NotIn predicate on the "model" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Model) predicate.Model

Or groups predicates with the OR operator between them.

func Provider

func Provider(v string) predicate.Model

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.Model

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.Model

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.Model

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.Model

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.Model

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.Model

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.Model

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.Model

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.Model

ProviderIn applies the In predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.Model

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.Model

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.Model

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.Model

ProviderNotIn applies the NotIn predicate on the "provider" field.

func Remark

func Remark(v string) predicate.Model

Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.

func RemarkContains

func RemarkContains(v string) predicate.Model

RemarkContains applies the Contains predicate on the "remark" field.

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.Model

RemarkContainsFold applies the ContainsFold predicate on the "remark" field.

func RemarkEQ

func RemarkEQ(v string) predicate.Model

RemarkEQ applies the EQ predicate on the "remark" field.

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.Model

RemarkEqualFold applies the EqualFold predicate on the "remark" field.

func RemarkGT

func RemarkGT(v string) predicate.Model

RemarkGT applies the GT predicate on the "remark" field.

func RemarkGTE

func RemarkGTE(v string) predicate.Model

RemarkGTE applies the GTE predicate on the "remark" field.

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.Model

RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.Model

RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.

func RemarkIn

func RemarkIn(vs ...string) predicate.Model

RemarkIn applies the In predicate on the "remark" field.

func RemarkIsNil

func RemarkIsNil() predicate.Model

RemarkIsNil applies the IsNil predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.Model

RemarkLT applies the LT predicate on the "remark" field.

func RemarkLTE

func RemarkLTE(v string) predicate.Model

RemarkLTE applies the LTE predicate on the "remark" field.

func RemarkNEQ

func RemarkNEQ(v string) predicate.Model

RemarkNEQ applies the NEQ predicate on the "remark" field.

func RemarkNotIn

func RemarkNotIn(vs ...string) predicate.Model

RemarkNotIn applies the NotIn predicate on the "remark" field.

func RemarkNotNil

func RemarkNotNil() predicate.Model

RemarkNotNil applies the NotNil predicate on the "remark" field.

func Temperature

func Temperature(v float64) predicate.Model

Temperature applies equality check predicate on the "temperature" field. It's identical to TemperatureEQ.

func TemperatureEQ

func TemperatureEQ(v float64) predicate.Model

TemperatureEQ applies the EQ predicate on the "temperature" field.

func TemperatureGT

func TemperatureGT(v float64) predicate.Model

TemperatureGT applies the GT predicate on the "temperature" field.

func TemperatureGTE

func TemperatureGTE(v float64) predicate.Model

TemperatureGTE applies the GTE predicate on the "temperature" field.

func TemperatureIn

func TemperatureIn(vs ...float64) predicate.Model

TemperatureIn applies the In predicate on the "temperature" field.

func TemperatureIsNil

func TemperatureIsNil() predicate.Model

TemperatureIsNil applies the IsNil predicate on the "temperature" field.

func TemperatureLT

func TemperatureLT(v float64) predicate.Model

TemperatureLT applies the LT predicate on the "temperature" field.

func TemperatureLTE

func TemperatureLTE(v float64) predicate.Model

TemperatureLTE applies the LTE predicate on the "temperature" field.

func TemperatureNEQ

func TemperatureNEQ(v float64) predicate.Model

TemperatureNEQ applies the NEQ predicate on the "temperature" field.

func TemperatureNotIn

func TemperatureNotIn(vs ...float64) predicate.Model

TemperatureNotIn applies the NotIn predicate on the "temperature" field.

func TemperatureNotNil

func TemperatureNotNil() predicate.Model

TemperatureNotNil applies the NotNil predicate on the "temperature" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Model

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Model

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Model

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Model

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Model

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Model

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Model

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Model

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Model

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v uuid.UUID) predicate.Model

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.Model

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.Model

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.Model

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.Model

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Weight

func Weight(v int) predicate.Model

Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.

func WeightEQ

func WeightEQ(v int) predicate.Model

WeightEQ applies the EQ predicate on the "weight" field.

func WeightGT

func WeightGT(v int) predicate.Model

WeightGT applies the GT predicate on the "weight" field.

func WeightGTE

func WeightGTE(v int) predicate.Model

WeightGTE applies the GTE predicate on the "weight" field.

func WeightIn

func WeightIn(vs ...int) predicate.Model

WeightIn applies the In predicate on the "weight" field.

func WeightLT

func WeightLT(v int) predicate.Model

WeightLT applies the LT predicate on the "weight" field.

func WeightLTE

func WeightLTE(v int) predicate.Model

WeightLTE applies the LTE predicate on the "weight" field.

func WeightNEQ

func WeightNEQ(v int) predicate.Model

WeightNEQ applies the NEQ predicate on the "weight" field.

func WeightNotIn

func WeightNotIn(vs ...int) predicate.Model

WeightNotIn applies the NotIn predicate on the "weight" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Model queries.

func ByAPIKey

func ByAPIKey(opts ...sql.OrderTermOption) OrderOption

ByAPIKey orders the results by the api_key field.

func ByApikeys

func ByApikeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByApikeys orders the results by apikeys terms.

func ByApikeysCount

func ByApikeysCount(opts ...sql.OrderTermOption) OrderOption

ByApikeysCount orders the results by apikeys count.

func ByBaseURL

func ByBaseURL(opts ...sql.OrderTermOption) OrderOption

ByBaseURL orders the results by the base_url field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByGroups

func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroups orders the results by groups terms.

func ByGroupsCount

func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByGroupsCount orders the results by groups count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInterfaceType

func ByInterfaceType(opts ...sql.OrderTermOption) OrderOption

ByInterfaceType orders the results by the interface_type field.

func ByLastCheckAt

func ByLastCheckAt(opts ...sql.OrderTermOption) OrderOption

ByLastCheckAt orders the results by the last_check_at field.

func ByLastCheckError

func ByLastCheckError(opts ...sql.OrderTermOption) OrderOption

ByLastCheckError orders the results by the last_check_error field.

func ByLastCheckSuccess

func ByLastCheckSuccess(opts ...sql.OrderTermOption) OrderOption

ByLastCheckSuccess orders the results by the last_check_success field.

func ByModel

func ByModel(opts ...sql.OrderTermOption) OrderOption

ByModel orders the results by the model field.

func ByPricingField

func ByPricingField(field string, opts ...sql.OrderTermOption) OrderOption

ByPricingField orders the results by pricing field.

func ByProjectTasks

func ByProjectTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProjectTasks orders the results by project_tasks terms.

func ByProjectTasksCount

func ByProjectTasksCount(opts ...sql.OrderTermOption) OrderOption

ByProjectTasksCount orders the results by project_tasks count.

func ByProvider

func ByProvider(opts ...sql.OrderTermOption) OrderOption

ByProvider orders the results by the provider field.

func ByRemark

func ByRemark(opts ...sql.OrderTermOption) OrderOption

ByRemark orders the results by the remark field.

func ByTeamGroupModels

func ByTeamGroupModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeamGroupModels orders the results by team_group_models terms.

func ByTeamGroupModelsCount

func ByTeamGroupModelsCount(opts ...sql.OrderTermOption) OrderOption

ByTeamGroupModelsCount orders the results by team_group_models count.

func ByTeamModels

func ByTeamModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeamModels orders the results by team_models terms.

func ByTeamModelsCount

func ByTeamModelsCount(opts ...sql.OrderTermOption) OrderOption

ByTeamModelsCount orders the results by team_models count.

func ByTeams

func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeams orders the results by teams terms.

func ByTeamsCount

func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption

ByTeamsCount orders the results by teams count.

func ByTemperature

func ByTemperature(opts ...sql.OrderTermOption) OrderOption

ByTemperature orders the results by the temperature field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserID

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

func ByVms

func ByVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVms orders the results by vms terms.

func ByVmsCount

func ByVmsCount(opts ...sql.OrderTermOption) OrderOption

ByVmsCount orders the results by vms count.

func ByWeight

func ByWeight(opts ...sql.OrderTermOption) OrderOption

ByWeight orders the results by the weight field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL