seatassignment

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the seatassignment type in the database.
	Label = "seat_assignment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLicenseID holds the string denoting the license_id field in the database.
	FieldLicenseID = "license_id"
	// FieldPrincipalID holds the string denoting the principal_id field in the database.
	FieldPrincipalID = "principal_id"
	// FieldAssignedBy holds the string denoting the assigned_by field in the database.
	FieldAssignedBy = "assigned_by"
	// FieldAssignedAt holds the string denoting the assigned_at field in the database.
	FieldAssignedAt = "assigned_at"
	// EdgeLicense holds the string denoting the license edge name in mutations.
	EdgeLicense = "license"
	// EdgePrincipal holds the string denoting the principal edge name in mutations.
	EdgePrincipal = "principal"
	// EdgeAssigner holds the string denoting the assigner edge name in mutations.
	EdgeAssigner = "assigner"
	// Table holds the table name of the seatassignment in the database.
	Table = "cf_seat_assignments"
	// LicenseTable is the table that holds the license relation/edge.
	LicenseTable = "cf_seat_assignments"
	// LicenseInverseTable is the table name for the License entity.
	// It exists in this package in order to avoid circular dependency with the "license" package.
	LicenseInverseTable = "cf_licenses"
	// LicenseColumn is the table column denoting the license relation/edge.
	LicenseColumn = "license_id"
	// PrincipalTable is the table that holds the principal relation/edge.
	PrincipalTable = "cf_seat_assignments"
	// PrincipalInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	PrincipalInverseTable = "cf_principals"
	// PrincipalColumn is the table column denoting the principal relation/edge.
	PrincipalColumn = "principal_id"
	// AssignerTable is the table that holds the assigner relation/edge.
	AssignerTable = "cf_seat_assignments"
	// AssignerInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	AssignerInverseTable = "cf_principals"
	// AssignerColumn is the table column denoting the assigner relation/edge.
	AssignerColumn = "assigned_by"
)

Variables

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

Columns holds all SQL columns for seatassignment fields.

Functions

func And

And groups predicates with the AND operator between them.

func AssignedAt

func AssignedAt(v time.Time) predicate.SeatAssignment

AssignedAt applies equality check predicate on the "assigned_at" field. It's identical to AssignedAtEQ.

func AssignedAtEQ

func AssignedAtEQ(v time.Time) predicate.SeatAssignment

AssignedAtEQ applies the EQ predicate on the "assigned_at" field.

func AssignedAtGT

func AssignedAtGT(v time.Time) predicate.SeatAssignment

AssignedAtGT applies the GT predicate on the "assigned_at" field.

func AssignedAtGTE

func AssignedAtGTE(v time.Time) predicate.SeatAssignment

AssignedAtGTE applies the GTE predicate on the "assigned_at" field.

func AssignedAtIn

func AssignedAtIn(vs ...time.Time) predicate.SeatAssignment

AssignedAtIn applies the In predicate on the "assigned_at" field.

func AssignedAtLT

func AssignedAtLT(v time.Time) predicate.SeatAssignment

AssignedAtLT applies the LT predicate on the "assigned_at" field.

func AssignedAtLTE

func AssignedAtLTE(v time.Time) predicate.SeatAssignment

AssignedAtLTE applies the LTE predicate on the "assigned_at" field.

func AssignedAtNEQ

func AssignedAtNEQ(v time.Time) predicate.SeatAssignment

AssignedAtNEQ applies the NEQ predicate on the "assigned_at" field.

func AssignedAtNotIn

func AssignedAtNotIn(vs ...time.Time) predicate.SeatAssignment

AssignedAtNotIn applies the NotIn predicate on the "assigned_at" field.

func AssignedBy

func AssignedBy(v uuid.UUID) predicate.SeatAssignment

AssignedBy applies equality check predicate on the "assigned_by" field. It's identical to AssignedByEQ.

func AssignedByEQ

func AssignedByEQ(v uuid.UUID) predicate.SeatAssignment

AssignedByEQ applies the EQ predicate on the "assigned_by" field.

func AssignedByIn

func AssignedByIn(vs ...uuid.UUID) predicate.SeatAssignment

AssignedByIn applies the In predicate on the "assigned_by" field.

func AssignedByNEQ

func AssignedByNEQ(v uuid.UUID) predicate.SeatAssignment

AssignedByNEQ applies the NEQ predicate on the "assigned_by" field.

func AssignedByNotIn

func AssignedByNotIn(vs ...uuid.UUID) predicate.SeatAssignment

AssignedByNotIn applies the NotIn predicate on the "assigned_by" field.

func HasAssigner

func HasAssigner() predicate.SeatAssignment

HasAssigner applies the HasEdge predicate on the "assigner" edge.

func HasAssignerWith

func HasAssignerWith(preds ...predicate.Principal) predicate.SeatAssignment

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

func HasLicense

func HasLicense() predicate.SeatAssignment

HasLicense applies the HasEdge predicate on the "license" edge.

func HasLicenseWith

func HasLicenseWith(preds ...predicate.License) predicate.SeatAssignment

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

func HasPrincipal

func HasPrincipal() predicate.SeatAssignment

HasPrincipal applies the HasEdge predicate on the "principal" edge.

func HasPrincipalWith

func HasPrincipalWith(preds ...predicate.Principal) predicate.SeatAssignment

HasPrincipalWith applies the HasEdge predicate on the "principal" 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

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

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

IDNotIn applies the NotIn predicate on the ID field.

func LicenseID

func LicenseID(v uuid.UUID) predicate.SeatAssignment

LicenseID applies equality check predicate on the "license_id" field. It's identical to LicenseIDEQ.

func LicenseIDEQ

func LicenseIDEQ(v uuid.UUID) predicate.SeatAssignment

LicenseIDEQ applies the EQ predicate on the "license_id" field.

func LicenseIDIn

func LicenseIDIn(vs ...uuid.UUID) predicate.SeatAssignment

LicenseIDIn applies the In predicate on the "license_id" field.

func LicenseIDNEQ

func LicenseIDNEQ(v uuid.UUID) predicate.SeatAssignment

LicenseIDNEQ applies the NEQ predicate on the "license_id" field.

func LicenseIDNotIn

func LicenseIDNotIn(vs ...uuid.UUID) predicate.SeatAssignment

LicenseIDNotIn applies the NotIn predicate on the "license_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 PrincipalID

func PrincipalID(v uuid.UUID) predicate.SeatAssignment

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v uuid.UUID) predicate.SeatAssignment

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...uuid.UUID) predicate.SeatAssignment

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v uuid.UUID) predicate.SeatAssignment

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...uuid.UUID) predicate.SeatAssignment

PrincipalIDNotIn applies the NotIn predicate on the "principal_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 SeatAssignment queries.

func ByAssignedAt

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

ByAssignedAt orders the results by the assigned_at field.

func ByAssignedBy

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

ByAssignedBy orders the results by the assigned_by field.

func ByAssignerField

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

ByAssignerField orders the results by assigner field.

func ByID

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

ByID orders the results by the id field.

func ByLicenseField

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

ByLicenseField orders the results by license field.

func ByLicenseID

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

ByLicenseID orders the results by the license_id field.

func ByPrincipalField

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

ByPrincipalField orders the results by principal field.

func ByPrincipalID

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

ByPrincipalID orders the results by the principal_id field.

Jump to

Keyboard shortcuts

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