organization

package
v0.96.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the organization type in the database.
	Label = "organization"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeMemberships holds the string denoting the memberships edge name in mutations.
	EdgeMemberships = "memberships"
	// EdgeWorkflowContracts holds the string denoting the workflow_contracts edge name in mutations.
	EdgeWorkflowContracts = "workflow_contracts"
	// EdgeWorkflows holds the string denoting the workflows edge name in mutations.
	EdgeWorkflows = "workflows"
	// EdgeCasBackends holds the string denoting the cas_backends edge name in mutations.
	EdgeCasBackends = "cas_backends"
	// EdgeIntegrations holds the string denoting the integrations edge name in mutations.
	EdgeIntegrations = "integrations"
	// EdgeAPITokens holds the string denoting the api_tokens edge name in mutations.
	EdgeAPITokens = "api_tokens"
	// Table holds the table name of the organization in the database.
	Table = "organizations"
	// MembershipsTable is the table that holds the memberships relation/edge.
	MembershipsTable = "memberships"
	// MembershipsInverseTable is the table name for the Membership entity.
	// It exists in this package in order to avoid circular dependency with the "membership" package.
	MembershipsInverseTable = "memberships"
	// MembershipsColumn is the table column denoting the memberships relation/edge.
	MembershipsColumn = "organization_memberships"
	// WorkflowContractsTable is the table that holds the workflow_contracts relation/edge.
	WorkflowContractsTable = "workflow_contracts"
	// WorkflowContractsInverseTable is the table name for the WorkflowContract entity.
	// It exists in this package in order to avoid circular dependency with the "workflowcontract" package.
	WorkflowContractsInverseTable = "workflow_contracts"
	// WorkflowContractsColumn is the table column denoting the workflow_contracts relation/edge.
	WorkflowContractsColumn = "organization_workflow_contracts"
	// WorkflowsTable is the table that holds the workflows relation/edge.
	WorkflowsTable = "workflows"
	// WorkflowsInverseTable is the table name for the Workflow entity.
	// It exists in this package in order to avoid circular dependency with the "workflow" package.
	WorkflowsInverseTable = "workflows"
	// WorkflowsColumn is the table column denoting the workflows relation/edge.
	WorkflowsColumn = "organization_id"
	// CasBackendsTable is the table that holds the cas_backends relation/edge.
	CasBackendsTable = "cas_backends"
	// CasBackendsInverseTable is the table name for the CASBackend entity.
	// It exists in this package in order to avoid circular dependency with the "casbackend" package.
	CasBackendsInverseTable = "cas_backends"
	// CasBackendsColumn is the table column denoting the cas_backends relation/edge.
	CasBackendsColumn = "organization_cas_backends"
	// IntegrationsTable is the table that holds the integrations relation/edge.
	IntegrationsTable = "integrations"
	// IntegrationsInverseTable is the table name for the Integration entity.
	// It exists in this package in order to avoid circular dependency with the "integration" package.
	IntegrationsInverseTable = "integrations"
	// IntegrationsColumn is the table column denoting the integrations relation/edge.
	IntegrationsColumn = "organization_integrations"
	// APITokensTable is the table that holds the api_tokens relation/edge.
	APITokensTable = "api_tokens"
	// APITokensInverseTable is the table name for the APIToken entity.
	// It exists in this package in order to avoid circular dependency with the "apitoken" package.
	APITokensInverseTable = "api_tokens"
	// APITokensColumn is the table column denoting the api_tokens relation/edge.
	APITokensColumn = "organization_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for organization fields.

Functions

func And

func And(predicates ...predicate.Organization) predicate.Organization

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Organization

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Organization

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Organization

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Organization

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Organization

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Organization

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Organization

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

func CreatedAtNotIn

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

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

func HasAPITokens

func HasAPITokens() predicate.Organization

HasAPITokens applies the HasEdge predicate on the "api_tokens" edge.

func HasAPITokensWith

func HasAPITokensWith(preds ...predicate.APIToken) predicate.Organization

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

func HasCasBackends

func HasCasBackends() predicate.Organization

HasCasBackends applies the HasEdge predicate on the "cas_backends" edge.

func HasCasBackendsWith

func HasCasBackendsWith(preds ...predicate.CASBackend) predicate.Organization

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

func HasIntegrations

func HasIntegrations() predicate.Organization

HasIntegrations applies the HasEdge predicate on the "integrations" edge.

func HasIntegrationsWith

func HasIntegrationsWith(preds ...predicate.Integration) predicate.Organization

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

func HasMemberships

func HasMemberships() predicate.Organization

HasMemberships applies the HasEdge predicate on the "memberships" edge.

func HasMembershipsWith

func HasMembershipsWith(preds ...predicate.Membership) predicate.Organization

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

func HasWorkflowContracts

func HasWorkflowContracts() predicate.Organization

HasWorkflowContracts applies the HasEdge predicate on the "workflow_contracts" edge.

func HasWorkflowContractsWith

func HasWorkflowContractsWith(preds ...predicate.WorkflowContract) predicate.Organization

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

func HasWorkflows

func HasWorkflows() predicate.Organization

HasWorkflows applies the HasEdge predicate on the "workflows" edge.

func HasWorkflowsWith

func HasWorkflowsWith(preds ...predicate.Workflow) predicate.Organization

HasWorkflowsWith applies the HasEdge predicate on the "workflows" 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

func IDGTE(id uuid.UUID) predicate.Organization

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Organization

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Organization

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.Organization

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

func NameContainsFold

func NameContainsFold(v string) predicate.Organization

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

func NameEQ

func NameEQ(v string) predicate.Organization

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

func NameEqualFold

func NameEqualFold(v string) predicate.Organization

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

func NameGT

func NameGT(v string) predicate.Organization

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

func NameGTE

func NameGTE(v string) predicate.Organization

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Organization

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Organization

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Organization

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

func NameLTE

func NameLTE(v string) predicate.Organization

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

func NameNEQ

func NameNEQ(v string) predicate.Organization

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

func NameNotIn

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

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.Organization) predicate.Organization

Or groups predicates with the OR operator between them.

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

func ByAPITokens

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

ByAPITokens orders the results by api_tokens terms.

func ByAPITokensCount

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

ByAPITokensCount orders the results by api_tokens count.

func ByCasBackends

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

ByCasBackends orders the results by cas_backends terms.

func ByCasBackendsCount

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

ByCasBackendsCount orders the results by cas_backends count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByIntegrations

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

ByIntegrations orders the results by integrations terms.

func ByIntegrationsCount

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

ByIntegrationsCount orders the results by integrations count.

func ByMemberships

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

ByMemberships orders the results by memberships terms.

func ByMembershipsCount

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

ByMembershipsCount orders the results by memberships count.

func ByName

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

ByName orders the results by the name field.

func ByWorkflowContracts

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

ByWorkflowContracts orders the results by workflow_contracts terms.

func ByWorkflowContractsCount

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

ByWorkflowContractsCount orders the results by workflow_contracts count.

func ByWorkflows

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

ByWorkflows orders the results by workflows terms.

func ByWorkflowsCount

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

ByWorkflowsCount orders the results by workflows count.

Jump to

Keyboard shortcuts

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