model

package
v0.0.0-...-0ebafd4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldModelName holds the string denoting the model_name field in the database.
	FieldModelName = "model_name"
	// FieldModelType holds the string denoting the model_type field in the database.
	FieldModelType = "model_type"
	// FieldShowName holds the string denoting the show_name field in the database.
	FieldShowName = "show_name"
	// FieldAPIBase holds the string denoting the api_base field in the database.
	FieldAPIBase = "api_base"
	// FieldAPIKey holds the string denoting the api_key field in the database.
	FieldAPIKey = "api_key"
	// FieldAPIVersion holds the string denoting the api_version field in the database.
	FieldAPIVersion = "api_version"
	// FieldAPIHeader holds the string denoting the api_header field in the database.
	FieldAPIHeader = "api_header"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsInternal holds the string denoting the is_internal field in the database.
	FieldIsInternal = "is_internal"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldParameters holds the string denoting the parameters field in the database.
	FieldParameters = "parameters"
	// FieldContextLength holds the string denoting the context_length field in the database.
	FieldContextLength = "context_length"
	// 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"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the model in the database.
	Table = "models"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "tasks"
	// TasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TasksInverseTable = "tasks"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "model_id"
	// 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"
)

Variables

View Source
var (
	// DefaultIsInternal holds the default value on creation for the "is_internal" field.
	DefaultIsInternal bool
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus consts.ModelStatus
	// 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
)

Columns holds all SQL columns for model fields.

Functions

func APIBase

func APIBase(v string) predicate.Model

APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.

func APIBaseContains

func APIBaseContains(v string) predicate.Model

APIBaseContains applies the Contains predicate on the "api_base" field.

func APIBaseContainsFold

func APIBaseContainsFold(v string) predicate.Model

APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.

func APIBaseEQ

func APIBaseEQ(v string) predicate.Model

APIBaseEQ applies the EQ predicate on the "api_base" field.

func APIBaseEqualFold

func APIBaseEqualFold(v string) predicate.Model

APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.

func APIBaseGT

func APIBaseGT(v string) predicate.Model

APIBaseGT applies the GT predicate on the "api_base" field.

func APIBaseGTE

func APIBaseGTE(v string) predicate.Model

APIBaseGTE applies the GTE predicate on the "api_base" field.

func APIBaseHasPrefix

func APIBaseHasPrefix(v string) predicate.Model

APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.

func APIBaseHasSuffix

func APIBaseHasSuffix(v string) predicate.Model

APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.

func APIBaseIn

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

APIBaseIn applies the In predicate on the "api_base" field.

func APIBaseLT

func APIBaseLT(v string) predicate.Model

APIBaseLT applies the LT predicate on the "api_base" field.

func APIBaseLTE

func APIBaseLTE(v string) predicate.Model

APIBaseLTE applies the LTE predicate on the "api_base" field.

func APIBaseNEQ

func APIBaseNEQ(v string) predicate.Model

APIBaseNEQ applies the NEQ predicate on the "api_base" field.

func APIBaseNotIn

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

APIBaseNotIn applies the NotIn predicate on the "api_base" field.

func APIHeader

func APIHeader(v string) predicate.Model

APIHeader applies equality check predicate on the "api_header" field. It's identical to APIHeaderEQ.

func APIHeaderContains

func APIHeaderContains(v string) predicate.Model

APIHeaderContains applies the Contains predicate on the "api_header" field.

func APIHeaderContainsFold

func APIHeaderContainsFold(v string) predicate.Model

APIHeaderContainsFold applies the ContainsFold predicate on the "api_header" field.

func APIHeaderEQ

func APIHeaderEQ(v string) predicate.Model

APIHeaderEQ applies the EQ predicate on the "api_header" field.

func APIHeaderEqualFold

func APIHeaderEqualFold(v string) predicate.Model

APIHeaderEqualFold applies the EqualFold predicate on the "api_header" field.

func APIHeaderGT

func APIHeaderGT(v string) predicate.Model

APIHeaderGT applies the GT predicate on the "api_header" field.

func APIHeaderGTE

func APIHeaderGTE(v string) predicate.Model

APIHeaderGTE applies the GTE predicate on the "api_header" field.

func APIHeaderHasPrefix

func APIHeaderHasPrefix(v string) predicate.Model

APIHeaderHasPrefix applies the HasPrefix predicate on the "api_header" field.

func APIHeaderHasSuffix

func APIHeaderHasSuffix(v string) predicate.Model

APIHeaderHasSuffix applies the HasSuffix predicate on the "api_header" field.

func APIHeaderIn

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

APIHeaderIn applies the In predicate on the "api_header" field.

func APIHeaderIsNil

func APIHeaderIsNil() predicate.Model

APIHeaderIsNil applies the IsNil predicate on the "api_header" field.

func APIHeaderLT

func APIHeaderLT(v string) predicate.Model

APIHeaderLT applies the LT predicate on the "api_header" field.

func APIHeaderLTE

func APIHeaderLTE(v string) predicate.Model

APIHeaderLTE applies the LTE predicate on the "api_header" field.

func APIHeaderNEQ

func APIHeaderNEQ(v string) predicate.Model

APIHeaderNEQ applies the NEQ predicate on the "api_header" field.

func APIHeaderNotIn

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

APIHeaderNotIn applies the NotIn predicate on the "api_header" field.

func APIHeaderNotNil

func APIHeaderNotNil() predicate.Model

APIHeaderNotNil applies the NotNil predicate on the "api_header" field.

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 APIKeyIsNil

func APIKeyIsNil() predicate.Model

APIKeyIsNil applies the IsNil 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 APIKeyNotNil

func APIKeyNotNil() predicate.Model

APIKeyNotNil applies the NotNil predicate on the "api_key" field.

func APIVersion

func APIVersion(v string) predicate.Model

APIVersion applies equality check predicate on the "api_version" field. It's identical to APIVersionEQ.

func APIVersionContains

func APIVersionContains(v string) predicate.Model

APIVersionContains applies the Contains predicate on the "api_version" field.

func APIVersionContainsFold

func APIVersionContainsFold(v string) predicate.Model

APIVersionContainsFold applies the ContainsFold predicate on the "api_version" field.

func APIVersionEQ

func APIVersionEQ(v string) predicate.Model

APIVersionEQ applies the EQ predicate on the "api_version" field.

func APIVersionEqualFold

func APIVersionEqualFold(v string) predicate.Model

APIVersionEqualFold applies the EqualFold predicate on the "api_version" field.

func APIVersionGT

func APIVersionGT(v string) predicate.Model

APIVersionGT applies the GT predicate on the "api_version" field.

func APIVersionGTE

func APIVersionGTE(v string) predicate.Model

APIVersionGTE applies the GTE predicate on the "api_version" field.

func APIVersionHasPrefix

func APIVersionHasPrefix(v string) predicate.Model

APIVersionHasPrefix applies the HasPrefix predicate on the "api_version" field.

func APIVersionHasSuffix

func APIVersionHasSuffix(v string) predicate.Model

APIVersionHasSuffix applies the HasSuffix predicate on the "api_version" field.

func APIVersionIn

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

APIVersionIn applies the In predicate on the "api_version" field.

func APIVersionIsNil

func APIVersionIsNil() predicate.Model

APIVersionIsNil applies the IsNil predicate on the "api_version" field.

func APIVersionLT

func APIVersionLT(v string) predicate.Model

APIVersionLT applies the LT predicate on the "api_version" field.

func APIVersionLTE

func APIVersionLTE(v string) predicate.Model

APIVersionLTE applies the LTE predicate on the "api_version" field.

func APIVersionNEQ

func APIVersionNEQ(v string) predicate.Model

APIVersionNEQ applies the NEQ predicate on the "api_version" field.

func APIVersionNotIn

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

APIVersionNotIn applies the NotIn predicate on the "api_version" field.

func APIVersionNotNil

func APIVersionNotNil() predicate.Model

APIVersionNotNil applies the NotNil predicate on the "api_version" field.

func And

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

And groups predicates with the AND operator between them.

func ContextLength

func ContextLength(v int) predicate.Model

ContextLength applies equality check predicate on the "context_length" field. It's identical to ContextLengthEQ.

func ContextLengthEQ

func ContextLengthEQ(v int) predicate.Model

ContextLengthEQ applies the EQ predicate on the "context_length" field.

func ContextLengthGT

func ContextLengthGT(v int) predicate.Model

ContextLengthGT applies the GT predicate on the "context_length" field.

func ContextLengthGTE

func ContextLengthGTE(v int) predicate.Model

ContextLengthGTE applies the GTE predicate on the "context_length" field.

func ContextLengthIn

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

ContextLengthIn applies the In predicate on the "context_length" field.

func ContextLengthIsNil

func ContextLengthIsNil() predicate.Model

ContextLengthIsNil applies the IsNil predicate on the "context_length" field.

func ContextLengthLT

func ContextLengthLT(v int) predicate.Model

ContextLengthLT applies the LT predicate on the "context_length" field.

func ContextLengthLTE

func ContextLengthLTE(v int) predicate.Model

ContextLengthLTE applies the LTE predicate on the "context_length" field.

func ContextLengthNEQ

func ContextLengthNEQ(v int) predicate.Model

ContextLengthNEQ applies the NEQ predicate on the "context_length" field.

func ContextLengthNotIn

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

ContextLengthNotIn applies the NotIn predicate on the "context_length" field.

func ContextLengthNotNil

func ContextLengthNotNil() predicate.Model

ContextLengthNotNil applies the NotNil predicate on the "context_length" 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 Description

func Description(v string) predicate.Model

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Model

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Model

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Model

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Model

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Model

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Model

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Model

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Model

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

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

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Model

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Model

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Model

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Model

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

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

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Model

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasTasks

func HasTasks() predicate.Model

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.Model

HasTasksWith applies the HasEdge predicate on the "tasks" 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 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 IsInternal

func IsInternal(v bool) predicate.Model

IsInternal applies equality check predicate on the "is_internal" field. It's identical to IsInternalEQ.

func IsInternalEQ

func IsInternalEQ(v bool) predicate.Model

IsInternalEQ applies the EQ predicate on the "is_internal" field.

func IsInternalNEQ

func IsInternalNEQ(v bool) predicate.Model

IsInternalNEQ applies the NEQ predicate on the "is_internal" field.

func ModelName

func ModelName(v string) predicate.Model

ModelName applies equality check predicate on the "model_name" field. It's identical to ModelNameEQ.

func ModelNameContains

func ModelNameContains(v string) predicate.Model

ModelNameContains applies the Contains predicate on the "model_name" field.

func ModelNameContainsFold

func ModelNameContainsFold(v string) predicate.Model

ModelNameContainsFold applies the ContainsFold predicate on the "model_name" field.

func ModelNameEQ

func ModelNameEQ(v string) predicate.Model

ModelNameEQ applies the EQ predicate on the "model_name" field.

func ModelNameEqualFold

func ModelNameEqualFold(v string) predicate.Model

ModelNameEqualFold applies the EqualFold predicate on the "model_name" field.

func ModelNameGT

func ModelNameGT(v string) predicate.Model

ModelNameGT applies the GT predicate on the "model_name" field.

func ModelNameGTE

func ModelNameGTE(v string) predicate.Model

ModelNameGTE applies the GTE predicate on the "model_name" field.

func ModelNameHasPrefix

func ModelNameHasPrefix(v string) predicate.Model

ModelNameHasPrefix applies the HasPrefix predicate on the "model_name" field.

func ModelNameHasSuffix

func ModelNameHasSuffix(v string) predicate.Model

ModelNameHasSuffix applies the HasSuffix predicate on the "model_name" field.

func ModelNameIn

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

ModelNameIn applies the In predicate on the "model_name" field.

func ModelNameLT

func ModelNameLT(v string) predicate.Model

ModelNameLT applies the LT predicate on the "model_name" field.

func ModelNameLTE

func ModelNameLTE(v string) predicate.Model

ModelNameLTE applies the LTE predicate on the "model_name" field.

func ModelNameNEQ

func ModelNameNEQ(v string) predicate.Model

ModelNameNEQ applies the NEQ predicate on the "model_name" field.

func ModelNameNotIn

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

ModelNameNotIn applies the NotIn predicate on the "model_name" field.

func ModelType

func ModelType(v consts.ModelType) predicate.Model

ModelType applies equality check predicate on the "model_type" field. It's identical to ModelTypeEQ.

func ModelTypeContains

func ModelTypeContains(v consts.ModelType) predicate.Model

ModelTypeContains applies the Contains predicate on the "model_type" field.

func ModelTypeContainsFold

func ModelTypeContainsFold(v consts.ModelType) predicate.Model

ModelTypeContainsFold applies the ContainsFold predicate on the "model_type" field.

func ModelTypeEQ

func ModelTypeEQ(v consts.ModelType) predicate.Model

ModelTypeEQ applies the EQ predicate on the "model_type" field.

func ModelTypeEqualFold

func ModelTypeEqualFold(v consts.ModelType) predicate.Model

ModelTypeEqualFold applies the EqualFold predicate on the "model_type" field.

func ModelTypeGT

func ModelTypeGT(v consts.ModelType) predicate.Model

ModelTypeGT applies the GT predicate on the "model_type" field.

func ModelTypeGTE

func ModelTypeGTE(v consts.ModelType) predicate.Model

ModelTypeGTE applies the GTE predicate on the "model_type" field.

func ModelTypeHasPrefix

func ModelTypeHasPrefix(v consts.ModelType) predicate.Model

ModelTypeHasPrefix applies the HasPrefix predicate on the "model_type" field.

func ModelTypeHasSuffix

func ModelTypeHasSuffix(v consts.ModelType) predicate.Model

ModelTypeHasSuffix applies the HasSuffix predicate on the "model_type" field.

func ModelTypeIn

func ModelTypeIn(vs ...consts.ModelType) predicate.Model

ModelTypeIn applies the In predicate on the "model_type" field.

func ModelTypeLT

func ModelTypeLT(v consts.ModelType) predicate.Model

ModelTypeLT applies the LT predicate on the "model_type" field.

func ModelTypeLTE

func ModelTypeLTE(v consts.ModelType) predicate.Model

ModelTypeLTE applies the LTE predicate on the "model_type" field.

func ModelTypeNEQ

func ModelTypeNEQ(v consts.ModelType) predicate.Model

ModelTypeNEQ applies the NEQ predicate on the "model_type" field.

func ModelTypeNotIn

func ModelTypeNotIn(vs ...consts.ModelType) predicate.Model

ModelTypeNotIn applies the NotIn predicate on the "model_type" 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 ParametersIsNil

func ParametersIsNil() predicate.Model

ParametersIsNil applies the IsNil predicate on the "parameters" field.

func ParametersNotNil

func ParametersNotNil() predicate.Model

ParametersNotNil applies the NotNil predicate on the "parameters" field.

func Provider

func Provider(v consts.ModelProvider) predicate.Model

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

func ProviderContains

func ProviderContains(v consts.ModelProvider) predicate.Model

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

func ProviderContainsFold

func ProviderContainsFold(v consts.ModelProvider) predicate.Model

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

func ProviderEQ

func ProviderEQ(v consts.ModelProvider) predicate.Model

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

func ProviderEqualFold

func ProviderEqualFold(v consts.ModelProvider) predicate.Model

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

func ProviderGT

func ProviderGT(v consts.ModelProvider) predicate.Model

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

func ProviderGTE

func ProviderGTE(v consts.ModelProvider) predicate.Model

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

func ProviderHasPrefix

func ProviderHasPrefix(v consts.ModelProvider) predicate.Model

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

func ProviderHasSuffix

func ProviderHasSuffix(v consts.ModelProvider) predicate.Model

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

func ProviderIn

func ProviderIn(vs ...consts.ModelProvider) predicate.Model

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

func ProviderLT

func ProviderLT(v consts.ModelProvider) predicate.Model

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

func ProviderLTE

func ProviderLTE(v consts.ModelProvider) predicate.Model

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

func ProviderNEQ

func ProviderNEQ(v consts.ModelProvider) predicate.Model

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

func ProviderNotIn

func ProviderNotIn(vs ...consts.ModelProvider) predicate.Model

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

func ShowName

func ShowName(v string) predicate.Model

ShowName applies equality check predicate on the "show_name" field. It's identical to ShowNameEQ.

func ShowNameContains

func ShowNameContains(v string) predicate.Model

ShowNameContains applies the Contains predicate on the "show_name" field.

func ShowNameContainsFold

func ShowNameContainsFold(v string) predicate.Model

ShowNameContainsFold applies the ContainsFold predicate on the "show_name" field.

func ShowNameEQ

func ShowNameEQ(v string) predicate.Model

ShowNameEQ applies the EQ predicate on the "show_name" field.

func ShowNameEqualFold

func ShowNameEqualFold(v string) predicate.Model

ShowNameEqualFold applies the EqualFold predicate on the "show_name" field.

func ShowNameGT

func ShowNameGT(v string) predicate.Model

ShowNameGT applies the GT predicate on the "show_name" field.

func ShowNameGTE

func ShowNameGTE(v string) predicate.Model

ShowNameGTE applies the GTE predicate on the "show_name" field.

func ShowNameHasPrefix

func ShowNameHasPrefix(v string) predicate.Model

ShowNameHasPrefix applies the HasPrefix predicate on the "show_name" field.

func ShowNameHasSuffix

func ShowNameHasSuffix(v string) predicate.Model

ShowNameHasSuffix applies the HasSuffix predicate on the "show_name" field.

func ShowNameIn

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

ShowNameIn applies the In predicate on the "show_name" field.

func ShowNameIsNil

func ShowNameIsNil() predicate.Model

ShowNameIsNil applies the IsNil predicate on the "show_name" field.

func ShowNameLT

func ShowNameLT(v string) predicate.Model

ShowNameLT applies the LT predicate on the "show_name" field.

func ShowNameLTE

func ShowNameLTE(v string) predicate.Model

ShowNameLTE applies the LTE predicate on the "show_name" field.

func ShowNameNEQ

func ShowNameNEQ(v string) predicate.Model

ShowNameNEQ applies the NEQ predicate on the "show_name" field.

func ShowNameNotIn

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

ShowNameNotIn applies the NotIn predicate on the "show_name" field.

func ShowNameNotNil

func ShowNameNotNil() predicate.Model

ShowNameNotNil applies the NotNil predicate on the "show_name" field.

func Status

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v consts.ModelStatus) predicate.Model

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v consts.ModelStatus) predicate.Model

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v consts.ModelStatus) predicate.Model

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v consts.ModelStatus) predicate.Model

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v consts.ModelStatus) predicate.Model

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v consts.ModelStatus) predicate.Model

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v consts.ModelStatus) predicate.Model

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v consts.ModelStatus) predicate.Model

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...consts.ModelStatus) predicate.Model

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v consts.ModelStatus) predicate.Model

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v consts.ModelStatus) predicate.Model

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v consts.ModelStatus) predicate.Model

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...consts.ModelStatus) predicate.Model

StatusNotIn applies the NotIn predicate on the "status" 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 UserIDIsNil

func UserIDIsNil() predicate.Model

UserIDIsNil applies the IsNil 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 UserIDNotNil

func UserIDNotNil() predicate.Model

UserIDNotNil applies the NotNil 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).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Model queries.

func ByAPIBase

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

ByAPIBase orders the results by the api_base field.

func ByAPIHeader

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

ByAPIHeader orders the results by the api_header field.

func ByAPIKey

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

ByAPIKey orders the results by the api_key field.

func ByAPIVersion

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

ByAPIVersion orders the results by the api_version field.

func ByContextLength

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

ByContextLength orders the results by the context_length field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByIsInternal

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

ByIsInternal orders the results by the is_internal field.

func ByModelName

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

ByModelName orders the results by the model_name field.

func ByModelType

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

ByModelType orders the results by the model_type field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByShowName

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

ByShowName orders the results by the show_name field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTasks

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

ByTasks orders the results by tasks terms.

func ByTasksCount

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

ByTasksCount orders the results by tasks count.

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.

Jump to

Keyboard shortcuts

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