managerrelationship

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the managerrelationship type in the database.
	Label = "manager_relationship"
	// 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"
	// FieldManagedPrincipalID holds the string denoting the managed_principal_id field in the database.
	FieldManagedPrincipalID = "managed_principal_id"
	// FieldManagerPrincipalID holds the string denoting the manager_principal_id field in the database.
	FieldManagerPrincipalID = "manager_principal_id"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// EdgeManaged holds the string denoting the managed edge name in mutations.
	EdgeManaged = "managed"
	// EdgeManager holds the string denoting the manager edge name in mutations.
	EdgeManager = "manager"
	// Table holds the table name of the managerrelationship in the database.
	Table = "sf_manager_relationships"
	// ManagedTable is the table that holds the managed relation/edge.
	ManagedTable = "sf_manager_relationships"
	// ManagedInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	ManagedInverseTable = "sf_principals"
	// ManagedColumn is the table column denoting the managed relation/edge.
	ManagedColumn = "managed_principal_id"
	// ManagerTable is the table that holds the manager relation/edge.
	ManagerTable = "sf_manager_relationships"
	// ManagerInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	ManagerInverseTable = "sf_principals"
	// ManagerColumn is the table column denoting the manager relation/edge.
	ManagerColumn = "manager_principal_id"
)

Variables

View Source
var (
	// 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
	// RoleValidator is a validator for the "role" field. It is called by the builders before save.
	RoleValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for managerrelationship fields.

Functions

func Active

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.ManagerRelationship

ActiveNEQ applies the NEQ predicate on the "active" field.

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.ManagerRelationship

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ManagerRelationship

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ManagerRelationship

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ManagerRelationship

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ManagerRelationship

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ManagerRelationship

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

func CreatedAtNotIn

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

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

func CreatedBy

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

func CreatedByEQ

func CreatedByEQ(v uuid.UUID) predicate.ManagerRelationship

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

func CreatedByGT

func CreatedByGT(v uuid.UUID) predicate.ManagerRelationship

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

func CreatedByGTE

func CreatedByGTE(v uuid.UUID) predicate.ManagerRelationship

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

func CreatedByIn

func CreatedByIn(vs ...uuid.UUID) predicate.ManagerRelationship

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

func CreatedByIsNil

func CreatedByIsNil() predicate.ManagerRelationship

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v uuid.UUID) predicate.ManagerRelationship

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

func CreatedByLTE

func CreatedByLTE(v uuid.UUID) predicate.ManagerRelationship

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

func CreatedByNEQ

func CreatedByNEQ(v uuid.UUID) predicate.ManagerRelationship

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

func CreatedByNotIn

func CreatedByNotIn(vs ...uuid.UUID) predicate.ManagerRelationship

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

func CreatedByNotNil

func CreatedByNotNil() predicate.ManagerRelationship

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func HasManaged

func HasManaged() predicate.ManagerRelationship

HasManaged applies the HasEdge predicate on the "managed" edge.

func HasManagedWith

func HasManagedWith(preds ...predicate.Principal) predicate.ManagerRelationship

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

func HasManager

func HasManager() predicate.ManagerRelationship

HasManager applies the HasEdge predicate on the "manager" edge.

func HasManagerWith

func HasManagerWith(preds ...predicate.Principal) predicate.ManagerRelationship

HasManagerWith applies the HasEdge predicate on the "manager" 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.ManagerRelationship

IDNotIn applies the NotIn predicate on the ID field.

func ManagedPrincipalID

func ManagedPrincipalID(v uuid.UUID) predicate.ManagerRelationship

ManagedPrincipalID applies equality check predicate on the "managed_principal_id" field. It's identical to ManagedPrincipalIDEQ.

func ManagedPrincipalIDEQ

func ManagedPrincipalIDEQ(v uuid.UUID) predicate.ManagerRelationship

ManagedPrincipalIDEQ applies the EQ predicate on the "managed_principal_id" field.

func ManagedPrincipalIDIn

func ManagedPrincipalIDIn(vs ...uuid.UUID) predicate.ManagerRelationship

ManagedPrincipalIDIn applies the In predicate on the "managed_principal_id" field.

func ManagedPrincipalIDNEQ

func ManagedPrincipalIDNEQ(v uuid.UUID) predicate.ManagerRelationship

ManagedPrincipalIDNEQ applies the NEQ predicate on the "managed_principal_id" field.

func ManagedPrincipalIDNotIn

func ManagedPrincipalIDNotIn(vs ...uuid.UUID) predicate.ManagerRelationship

ManagedPrincipalIDNotIn applies the NotIn predicate on the "managed_principal_id" field.

func ManagerPrincipalID

func ManagerPrincipalID(v uuid.UUID) predicate.ManagerRelationship

ManagerPrincipalID applies equality check predicate on the "manager_principal_id" field. It's identical to ManagerPrincipalIDEQ.

func ManagerPrincipalIDEQ

func ManagerPrincipalIDEQ(v uuid.UUID) predicate.ManagerRelationship

ManagerPrincipalIDEQ applies the EQ predicate on the "manager_principal_id" field.

func ManagerPrincipalIDIn

func ManagerPrincipalIDIn(vs ...uuid.UUID) predicate.ManagerRelationship

ManagerPrincipalIDIn applies the In predicate on the "manager_principal_id" field.

func ManagerPrincipalIDNEQ

func ManagerPrincipalIDNEQ(v uuid.UUID) predicate.ManagerRelationship

ManagerPrincipalIDNEQ applies the NEQ predicate on the "manager_principal_id" field.

func ManagerPrincipalIDNotIn

func ManagerPrincipalIDNotIn(vs ...uuid.UUID) predicate.ManagerRelationship

ManagerPrincipalIDNotIn applies the NotIn predicate on the "manager_principal_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Role

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.ManagerRelationship

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.ManagerRelationship

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v string) predicate.ManagerRelationship

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.ManagerRelationship

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.ManagerRelationship

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

func RoleIn(vs ...string) predicate.ManagerRelationship

RoleIn applies the In predicate on the "role" field.

func RoleLT

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...string) predicate.ManagerRelationship

RoleNotIn applies the NotIn predicate on the "role" field.

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.ManagerRelationship

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ManagerRelationship

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ManagerRelationship

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ManagerRelationship

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ManagerRelationship

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ManagerRelationship

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

func UpdatedAtNotIn

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

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

func ByActive

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

ByActive orders the results by the active 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 ByID

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

ByID orders the results by the id field.

func ByManagedField

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

ByManagedField orders the results by managed field.

func ByManagedPrincipalID

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

ByManagedPrincipalID orders the results by the managed_principal_id field.

func ByManagerField

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

ByManagerField orders the results by manager field.

func ByManagerPrincipalID

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

ByManagerPrincipalID orders the results by the manager_principal_id field.

func ByRole

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

ByRole orders the results by the role field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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