shipmentitem

package
v0.0.0-...-05e3429 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the shipmentitem type in the database.
	Label = "shipment_item"
	// 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"
	// FieldShipmentID holds the string denoting the shipment_id field in the database.
	FieldShipmentID = "shipment_id"
	// FieldOrderItemID holds the string denoting the order_item_id field in the database.
	FieldOrderItemID = "order_item_id"
	// FieldQty holds the string denoting the qty field in the database.
	FieldQty = "qty"
	// FieldTotal holds the string denoting the total field in the database.
	FieldTotal = "total"
	// EdgeShipment holds the string denoting the shipment edge name in mutations.
	EdgeShipment = "shipment"
	// EdgeOrderItem holds the string denoting the order_item edge name in mutations.
	EdgeOrderItem = "order_item"
	// Table holds the table name of the shipmentitem in the database.
	Table = "invoice_line_items"
	// ShipmentTable is the table that holds the shipment relation/edge.
	ShipmentTable = "invoice_line_items"
	// ShipmentInverseTable is the table name for the Shipment entity.
	// It exists in this package in order to avoid circular dependency with the "shipment" package.
	ShipmentInverseTable = "shipments"
	// ShipmentColumn is the table column denoting the shipment relation/edge.
	ShipmentColumn = "shipment_id"
	// OrderItemTable is the table that holds the order_item relation/edge.
	OrderItemTable = "invoice_line_items"
	// OrderItemInverseTable is the table name for the OrderItem entity.
	// It exists in this package in order to avoid circular dependency with the "orderitem" package.
	OrderItemInverseTable = "order_items"
	// OrderItemColumn is the table column denoting the order_item relation/edge.
	OrderItemColumn = "order_item_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
	// ShipmentIDValidator is a validator for the "shipment_id" field. It is called by the builders before save.
	ShipmentIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for shipmentitem fields.

Functions

func And

func And(predicates ...predicate.ShipmentItem) predicate.ShipmentItem

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ShipmentItem

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ShipmentItem

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ShipmentItem

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ShipmentItem

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ShipmentItem

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ShipmentItem

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ShipmentItem

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

func CreatedAtNotIn

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

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

func HasOrderItem

func HasOrderItem() predicate.ShipmentItem

HasOrderItem applies the HasEdge predicate on the "order_item" edge.

func HasOrderItemWith

func HasOrderItemWith(preds ...predicate.OrderItem) predicate.ShipmentItem

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

func HasShipment

func HasShipment() predicate.ShipmentItem

HasShipment applies the HasEdge predicate on the "shipment" edge.

func HasShipmentWith

func HasShipmentWith(preds ...predicate.Shipment) predicate.ShipmentItem

HasShipmentWith applies the HasEdge predicate on the "shipment" 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.ShipmentItem

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

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

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ShipmentItem

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ShipmentItem) predicate.ShipmentItem

Or groups predicates with the OR operator between them.

func OrderItemID

func OrderItemID(v uuid.UUID) predicate.ShipmentItem

OrderItemID applies equality check predicate on the "order_item_id" field. It's identical to OrderItemIDEQ.

func OrderItemIDEQ

func OrderItemIDEQ(v uuid.UUID) predicate.ShipmentItem

OrderItemIDEQ applies the EQ predicate on the "order_item_id" field.

func OrderItemIDIn

func OrderItemIDIn(vs ...uuid.UUID) predicate.ShipmentItem

OrderItemIDIn applies the In predicate on the "order_item_id" field.

func OrderItemIDNEQ

func OrderItemIDNEQ(v uuid.UUID) predicate.ShipmentItem

OrderItemIDNEQ applies the NEQ predicate on the "order_item_id" field.

func OrderItemIDNotIn

func OrderItemIDNotIn(vs ...uuid.UUID) predicate.ShipmentItem

OrderItemIDNotIn applies the NotIn predicate on the "order_item_id" field.

func Qty

Qty applies equality check predicate on the "qty" field. It's identical to QtyEQ.

func QtyEQ

QtyEQ applies the EQ predicate on the "qty" field.

func QtyGT

QtyGT applies the GT predicate on the "qty" field.

func QtyGTE

QtyGTE applies the GTE predicate on the "qty" field.

func QtyIn

QtyIn applies the In predicate on the "qty" field.

func QtyLT

QtyLT applies the LT predicate on the "qty" field.

func QtyLTE

QtyLTE applies the LTE predicate on the "qty" field.

func QtyNEQ

QtyNEQ applies the NEQ predicate on the "qty" field.

func QtyNotIn

func QtyNotIn(vs ...decimal.Decimal) predicate.ShipmentItem

QtyNotIn applies the NotIn predicate on the "qty" field.

func ShipmentID

func ShipmentID(v string) predicate.ShipmentItem

ShipmentID applies equality check predicate on the "shipment_id" field. It's identical to ShipmentIDEQ.

func ShipmentIDContains

func ShipmentIDContains(v string) predicate.ShipmentItem

ShipmentIDContains applies the Contains predicate on the "shipment_id" field.

func ShipmentIDContainsFold

func ShipmentIDContainsFold(v string) predicate.ShipmentItem

ShipmentIDContainsFold applies the ContainsFold predicate on the "shipment_id" field.

func ShipmentIDEQ

func ShipmentIDEQ(v string) predicate.ShipmentItem

ShipmentIDEQ applies the EQ predicate on the "shipment_id" field.

func ShipmentIDEqualFold

func ShipmentIDEqualFold(v string) predicate.ShipmentItem

ShipmentIDEqualFold applies the EqualFold predicate on the "shipment_id" field.

func ShipmentIDGT

func ShipmentIDGT(v string) predicate.ShipmentItem

ShipmentIDGT applies the GT predicate on the "shipment_id" field.

func ShipmentIDGTE

func ShipmentIDGTE(v string) predicate.ShipmentItem

ShipmentIDGTE applies the GTE predicate on the "shipment_id" field.

func ShipmentIDHasPrefix

func ShipmentIDHasPrefix(v string) predicate.ShipmentItem

ShipmentIDHasPrefix applies the HasPrefix predicate on the "shipment_id" field.

func ShipmentIDHasSuffix

func ShipmentIDHasSuffix(v string) predicate.ShipmentItem

ShipmentIDHasSuffix applies the HasSuffix predicate on the "shipment_id" field.

func ShipmentIDIn

func ShipmentIDIn(vs ...string) predicate.ShipmentItem

ShipmentIDIn applies the In predicate on the "shipment_id" field.

func ShipmentIDLT

func ShipmentIDLT(v string) predicate.ShipmentItem

ShipmentIDLT applies the LT predicate on the "shipment_id" field.

func ShipmentIDLTE

func ShipmentIDLTE(v string) predicate.ShipmentItem

ShipmentIDLTE applies the LTE predicate on the "shipment_id" field.

func ShipmentIDNEQ

func ShipmentIDNEQ(v string) predicate.ShipmentItem

ShipmentIDNEQ applies the NEQ predicate on the "shipment_id" field.

func ShipmentIDNotIn

func ShipmentIDNotIn(vs ...string) predicate.ShipmentItem

ShipmentIDNotIn applies the NotIn predicate on the "shipment_id" field.

func Total

Total applies equality check predicate on the "total" field. It's identical to TotalEQ.

func TotalEQ

TotalEQ applies the EQ predicate on the "total" field.

func TotalGT

TotalGT applies the GT predicate on the "total" field.

func TotalGTE

TotalGTE applies the GTE predicate on the "total" field.

func TotalIn

func TotalIn(vs ...decimal.Decimal) predicate.ShipmentItem

TotalIn applies the In predicate on the "total" field.

func TotalLT

TotalLT applies the LT predicate on the "total" field.

func TotalLTE

TotalLTE applies the LTE predicate on the "total" field.

func TotalNEQ

TotalNEQ applies the NEQ predicate on the "total" field.

func TotalNotIn

func TotalNotIn(vs ...decimal.Decimal) predicate.ShipmentItem

TotalNotIn applies the NotIn predicate on the "total" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ShipmentItem

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ShipmentItem

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ShipmentItem

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ShipmentItem

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ShipmentItem

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ShipmentItem

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ShipmentItem

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

func UpdatedAtNotIn

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

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

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 ByOrderItemField

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

ByOrderItemField orders the results by order_item field.

func ByOrderItemID

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

ByOrderItemID orders the results by the order_item_id field.

func ByQty

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

ByQty orders the results by the qty field.

func ByShipmentField

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

ByShipmentField orders the results by shipment field.

func ByShipmentID

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

ByShipmentID orders the results by the shipment_id field.

func ByTotal

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

ByTotal orders the results by the total 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