commitmentdependency

package
v0.0.0-...-65c6c44 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the commitmentdependency type in the database.
	Label = "commitment_dependency"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldEvidenceRefs holds the string denoting the evidence_refs field in the database.
	FieldEvidenceRefs = "evidence_refs"
	// EdgeWorkspace holds the string denoting the workspace edge name in mutations.
	EdgeWorkspace = "workspace"
	// EdgeRelationship holds the string denoting the relationship edge name in mutations.
	EdgeRelationship = "relationship"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeFromCommitment holds the string denoting the from_commitment edge name in mutations.
	EdgeFromCommitment = "from_commitment"
	// EdgeToCommitment holds the string denoting the to_commitment edge name in mutations.
	EdgeToCommitment = "to_commitment"
	// Table holds the table name of the commitmentdependency in the database.
	Table = "commitment_dependencies"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "commitment_dependencies"
	// WorkspaceInverseTable is the table name for the RevenueWorkspace entity.
	// It exists in this package in order to avoid circular dependency with the "revenueworkspace" package.
	WorkspaceInverseTable = "revenue_workspaces"
	// WorkspaceColumn is the table column denoting the workspace relation/edge.
	WorkspaceColumn = "revenue_workspace_id"
	// RelationshipTable is the table that holds the relationship relation/edge.
	RelationshipTable = "commitment_dependencies"
	// RelationshipInverseTable is the table name for the Relationship entity.
	// It exists in this package in order to avoid circular dependency with the "relationship" package.
	RelationshipInverseTable = "relationships"
	// RelationshipColumn is the table column denoting the relationship relation/edge.
	RelationshipColumn = "relationship_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "commitment_dependencies"
	// 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_commitment_dependencies"
	// FromCommitmentTable is the table that holds the from_commitment relation/edge.
	FromCommitmentTable = "commitment_dependencies"
	// FromCommitmentInverseTable is the table name for the Commitment entity.
	// It exists in this package in order to avoid circular dependency with the "commitment" package.
	FromCommitmentInverseTable = "commitments"
	// FromCommitmentColumn is the table column denoting the from_commitment relation/edge.
	FromCommitmentColumn = "from_commitment_id"
	// ToCommitmentTable is the table that holds the to_commitment relation/edge.
	ToCommitmentTable = "commitment_dependencies"
	// ToCommitmentInverseTable is the table name for the Commitment entity.
	// It exists in this package in order to avoid circular dependency with the "commitment" package.
	ToCommitmentInverseTable = "commitments"
	// ToCommitmentColumn is the table column denoting the to_commitment relation/edge.
	ToCommitmentColumn = "to_commitment_id"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// 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
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
	// DefaultEvidenceRefs holds the default value on creation for the "evidence_refs" field.
	DefaultEvidenceRefs []string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

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/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"

Columns holds all SQL columns for commitmentdependency fields.

View Source
var ForeignKeys = []string{
	"from_commitment_id",
	"to_commitment_id",
	"relationship_id",
	"revenue_workspace_id",
	"user_commitment_dependencies",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "commitment_dependencies" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CommitmentDependency

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CommitmentDependency

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CommitmentDependency

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CommitmentDependency

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CommitmentDependency

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CommitmentDependency

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

func CreatedAtNotIn

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

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

func HasFromCommitment

func HasFromCommitment() predicate.CommitmentDependency

HasFromCommitment applies the HasEdge predicate on the "from_commitment" edge.

func HasFromCommitmentWith

func HasFromCommitmentWith(preds ...predicate.Commitment) predicate.CommitmentDependency

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

func HasRelationship

func HasRelationship() predicate.CommitmentDependency

HasRelationship applies the HasEdge predicate on the "relationship" edge.

func HasRelationshipWith

func HasRelationshipWith(preds ...predicate.Relationship) predicate.CommitmentDependency

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

func HasToCommitment

func HasToCommitment() predicate.CommitmentDependency

HasToCommitment applies the HasEdge predicate on the "to_commitment" edge.

func HasToCommitmentWith

func HasToCommitmentWith(preds ...predicate.Commitment) predicate.CommitmentDependency

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

func HasUser

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

func HasUserWith

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

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

func HasWorkspace

func HasWorkspace() predicate.CommitmentDependency

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

func HasWorkspaceWith(preds ...predicate.RevenueWorkspace) predicate.CommitmentDependency

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Kind

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.CommitmentDependency

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.CommitmentDependency

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.CommitmentDependency

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

KindGT applies the GT predicate on the "kind" field.

func KindGTE

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.CommitmentDependency

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.CommitmentDependency

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

KindIn applies the In predicate on the "kind" field.

func KindLT

KindLT applies the LT predicate on the "kind" field.

func KindLTE

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.CommitmentDependency

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func UpdatedAt

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.CommitmentDependency

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.CommitmentDependency

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.CommitmentDependency

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.CommitmentDependency

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.CommitmentDependency

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.CommitmentDependency

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

func UpdatedAtNotIn

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

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 CommitmentDependency queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFromCommitmentField

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

ByFromCommitmentField orders the results by from_commitment field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByRelationshipField

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

ByRelationshipField orders the results by relationship field.

func ByToCommitmentField

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

ByToCommitmentField orders the results by to_commitment 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 ByWorkspaceField

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

ByWorkspaceField orders the results by workspace field.

Jump to

Keyboard shortcuts

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