skill

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the skill type in the database.
	Label = "skill"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldCurrentVersionID holds the string denoting the current_version_id field in the database.
	FieldCurrentVersionID = "current_version_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsBuiltin holds the string denoting the is_builtin field in the database.
	FieldIsBuiltin = "is_builtin"
	// FieldIsEnabled holds the string denoting the is_enabled field in the database.
	FieldIsEnabled = "is_enabled"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldArchivedAt holds the string denoting the archived_at field in the database.
	FieldArchivedAt = "archived_at"
	// 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"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeCurrentVersion holds the string denoting the current_version edge name in mutations.
	EdgeCurrentVersion = "current_version"
	// EdgeVersions holds the string denoting the versions edge name in mutations.
	EdgeVersions = "versions"
	// EdgeWorkflowBindings holds the string denoting the workflow_bindings edge name in mutations.
	EdgeWorkflowBindings = "workflow_bindings"
	// Table holds the table name of the skill in the database.
	Table = "skills"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "skills"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_id"
	// CurrentVersionTable is the table that holds the current_version relation/edge.
	CurrentVersionTable = "skills"
	// CurrentVersionInverseTable is the table name for the SkillVersion entity.
	// It exists in this package in order to avoid circular dependency with the "skillversion" package.
	CurrentVersionInverseTable = "skill_versions"
	// CurrentVersionColumn is the table column denoting the current_version relation/edge.
	CurrentVersionColumn = "current_version_id"
	// VersionsTable is the table that holds the versions relation/edge.
	VersionsTable = "skill_versions"
	// VersionsInverseTable is the table name for the SkillVersion entity.
	// It exists in this package in order to avoid circular dependency with the "skillversion" package.
	VersionsInverseTable = "skill_versions"
	// VersionsColumn is the table column denoting the versions relation/edge.
	VersionsColumn = "skill_id"
	// WorkflowBindingsTable is the table that holds the workflow_bindings relation/edge.
	WorkflowBindingsTable = "workflow_skill_bindings"
	// WorkflowBindingsInverseTable is the table name for the WorkflowSkillBinding entity.
	// It exists in this package in order to avoid circular dependency with the "workflowskillbinding" package.
	WorkflowBindingsInverseTable = "workflow_skill_bindings"
	// WorkflowBindingsColumn is the table column denoting the workflow_bindings relation/edge.
	WorkflowBindingsColumn = "skill_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultIsBuiltin holds the default value on creation for the "is_builtin" field.
	DefaultIsBuiltin bool
	// DefaultIsEnabled holds the default value on creation for the "is_enabled" field.
	DefaultIsEnabled bool
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy string
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for skill fields.

Functions

func And

func And(predicates ...predicate.Skill) predicate.Skill

And groups predicates with the AND operator between them.

func ArchivedAt

func ArchivedAt(v time.Time) predicate.Skill

ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.

func ArchivedAtEQ

func ArchivedAtEQ(v time.Time) predicate.Skill

ArchivedAtEQ applies the EQ predicate on the "archived_at" field.

func ArchivedAtGT

func ArchivedAtGT(v time.Time) predicate.Skill

ArchivedAtGT applies the GT predicate on the "archived_at" field.

func ArchivedAtGTE

func ArchivedAtGTE(v time.Time) predicate.Skill

ArchivedAtGTE applies the GTE predicate on the "archived_at" field.

func ArchivedAtIn

func ArchivedAtIn(vs ...time.Time) predicate.Skill

ArchivedAtIn applies the In predicate on the "archived_at" field.

func ArchivedAtIsNil

func ArchivedAtIsNil() predicate.Skill

ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.

func ArchivedAtLT

func ArchivedAtLT(v time.Time) predicate.Skill

ArchivedAtLT applies the LT predicate on the "archived_at" field.

func ArchivedAtLTE

func ArchivedAtLTE(v time.Time) predicate.Skill

ArchivedAtLTE applies the LTE predicate on the "archived_at" field.

func ArchivedAtNEQ

func ArchivedAtNEQ(v time.Time) predicate.Skill

ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.

func ArchivedAtNotIn

func ArchivedAtNotIn(vs ...time.Time) predicate.Skill

ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.

func ArchivedAtNotNil

func ArchivedAtNotNil() predicate.Skill

ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Skill

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Skill

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Skill

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Skill

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Skill

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Skill

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Skill

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.Skill

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.Skill

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Skill

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.Skill

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Skill

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.Skill

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.Skill

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Skill

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Skill

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.Skill

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.Skill

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.Skill

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Skill

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.Skill

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CurrentVersionID

func CurrentVersionID(v uuid.UUID) predicate.Skill

CurrentVersionID applies equality check predicate on the "current_version_id" field. It's identical to CurrentVersionIDEQ.

func CurrentVersionIDEQ

func CurrentVersionIDEQ(v uuid.UUID) predicate.Skill

CurrentVersionIDEQ applies the EQ predicate on the "current_version_id" field.

func CurrentVersionIDIn

func CurrentVersionIDIn(vs ...uuid.UUID) predicate.Skill

CurrentVersionIDIn applies the In predicate on the "current_version_id" field.

func CurrentVersionIDIsNil

func CurrentVersionIDIsNil() predicate.Skill

CurrentVersionIDIsNil applies the IsNil predicate on the "current_version_id" field.

func CurrentVersionIDNEQ

func CurrentVersionIDNEQ(v uuid.UUID) predicate.Skill

CurrentVersionIDNEQ applies the NEQ predicate on the "current_version_id" field.

func CurrentVersionIDNotIn

func CurrentVersionIDNotIn(vs ...uuid.UUID) predicate.Skill

CurrentVersionIDNotIn applies the NotIn predicate on the "current_version_id" field.

func CurrentVersionIDNotNil

func CurrentVersionIDNotNil() predicate.Skill

CurrentVersionIDNotNil applies the NotNil predicate on the "current_version_id" field.

func Description

func Description(v string) predicate.Skill

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

func DescriptionContains

func DescriptionContains(v string) predicate.Skill

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Skill

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Skill

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Skill

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

func DescriptionGT

func DescriptionGT(v string) predicate.Skill

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Skill

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Skill

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Skill

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Skill

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Skill

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Skill

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

func DescriptionNotIn

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

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

func HasCurrentVersion

func HasCurrentVersion() predicate.Skill

HasCurrentVersion applies the HasEdge predicate on the "current_version" edge.

func HasCurrentVersionWith

func HasCurrentVersionWith(preds ...predicate.SkillVersion) predicate.Skill

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

func HasProject

func HasProject() predicate.Skill

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Skill

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

func HasVersions

func HasVersions() predicate.Skill

HasVersions applies the HasEdge predicate on the "versions" edge.

func HasVersionsWith

func HasVersionsWith(preds ...predicate.SkillVersion) predicate.Skill

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

func HasWorkflowBindings

func HasWorkflowBindings() predicate.Skill

HasWorkflowBindings applies the HasEdge predicate on the "workflow_bindings" edge.

func HasWorkflowBindingsWith

func HasWorkflowBindingsWith(preds ...predicate.WorkflowSkillBinding) predicate.Skill

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

func ID

func ID(id uuid.UUID) predicate.Skill

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Skill

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Skill

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Skill

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Skill

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Skill

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Skill

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsBuiltin

func IsBuiltin(v bool) predicate.Skill

IsBuiltin applies equality check predicate on the "is_builtin" field. It's identical to IsBuiltinEQ.

func IsBuiltinEQ

func IsBuiltinEQ(v bool) predicate.Skill

IsBuiltinEQ applies the EQ predicate on the "is_builtin" field.

func IsBuiltinNEQ

func IsBuiltinNEQ(v bool) predicate.Skill

IsBuiltinNEQ applies the NEQ predicate on the "is_builtin" field.

func IsEnabled

func IsEnabled(v bool) predicate.Skill

IsEnabled applies equality check predicate on the "is_enabled" field. It's identical to IsEnabledEQ.

func IsEnabledEQ

func IsEnabledEQ(v bool) predicate.Skill

IsEnabledEQ applies the EQ predicate on the "is_enabled" field.

func IsEnabledNEQ

func IsEnabledNEQ(v bool) predicate.Skill

IsEnabledNEQ applies the NEQ predicate on the "is_enabled" field.

func Name

func Name(v string) predicate.Skill

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Skill

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Skill

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Skill

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Skill

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Skill

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Skill

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Skill

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Skill

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Skill

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Skill

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Skill

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Skill

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Skill

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Skill) predicate.Skill

Or groups predicates with the OR operator between them.

func ProjectID

func ProjectID(v uuid.UUID) predicate.Skill

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDEQ

func ProjectIDEQ(v uuid.UUID) predicate.Skill

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...uuid.UUID) predicate.Skill

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v uuid.UUID) predicate.Skill

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...uuid.UUID) predicate.Skill

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Skill

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Skill

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Skill

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Skill

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Skill

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Skill

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Skill

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Skill queries.

func ByArchivedAt

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

ByArchivedAt orders the results by the archived_at field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByCurrentVersionField

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

ByCurrentVersionField orders the results by current_version field.

func ByCurrentVersionID

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

ByCurrentVersionID orders the results by the current_version_id 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 ByIsBuiltin

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

ByIsBuiltin orders the results by the is_builtin field.

func ByIsEnabled

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

ByIsEnabled orders the results by the is_enabled field.

func ByName

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

ByName orders the results by the name field.

func ByProjectField

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

ByProjectField orders the results by project field.

func ByProjectID

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

ByProjectID orders the results by the project_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersions

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

ByVersions orders the results by versions terms.

func ByVersionsCount

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

ByVersionsCount orders the results by versions count.

func ByWorkflowBindings

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

ByWorkflowBindings orders the results by workflow_bindings terms.

func ByWorkflowBindingsCount

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

ByWorkflowBindingsCount orders the results by workflow_bindings count.

Jump to

Keyboard shortcuts

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