productqty

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 productqty type in the database.
	Label = "product_qty"
	// 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"
	// FieldWorkUnitID holds the string denoting the work_unit_id field in the database.
	FieldWorkUnitID = "work_unit_id"
	// FieldProductID holds the string denoting the product_id field in the database.
	FieldProductID = "product_id"
	// FieldProductColorID holds the string denoting the product_color_id field in the database.
	FieldProductColorID = "product_color_id"
	// FieldPricePerUnit holds the string denoting the price_per_unit field in the database.
	FieldPricePerUnit = "price_per_unit"
	// FieldQty holds the string denoting the qty field in the database.
	FieldQty = "qty"
	// EdgeWorkUnit holds the string denoting the work_unit edge name in mutations.
	EdgeWorkUnit = "work_unit"
	// EdgeProduct holds the string denoting the product edge name in mutations.
	EdgeProduct = "product"
	// EdgeProductColor holds the string denoting the product_color edge name in mutations.
	EdgeProductColor = "product_color"
	// Table holds the table name of the productqty in the database.
	Table = "product_qty"
	// WorkUnitTable is the table that holds the work_unit relation/edge.
	WorkUnitTable = "product_qty"
	// WorkUnitInverseTable is the table name for the WorkUnitInfo entity.
	// It exists in this package in order to avoid circular dependency with the "workunitinfo" package.
	WorkUnitInverseTable = "work_unit_info"
	// WorkUnitColumn is the table column denoting the work_unit relation/edge.
	WorkUnitColumn = "work_unit_id"
	// ProductTable is the table that holds the product relation/edge.
	ProductTable = "product_qty"
	// ProductInverseTable is the table name for the ProductInfo entity.
	// It exists in this package in order to avoid circular dependency with the "productinfo" package.
	ProductInverseTable = "product_info"
	// ProductColumn is the table column denoting the product relation/edge.
	ProductColumn = "product_id"
	// ProductColorTable is the table that holds the product_color relation/edge.
	ProductColorTable = "product_qty"
	// ProductColorInverseTable is the table name for the ProductColor entity.
	// It exists in this package in order to avoid circular dependency with the "productcolor" package.
	ProductColorInverseTable = "product_color"
	// ProductColorColumn is the table column denoting the product_color relation/edge.
	ProductColorColumn = "product_color_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
	// ProductIDValidator is a validator for the "product_id" field. It is called by the builders before save.
	ProductIDValidator func(string) error
	// ProductColorIDValidator is a validator for the "product_color_id" field. It is called by the builders before save.
	ProductColorIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for productqty fields.

Functions

func And

func And(predicates ...predicate.ProductQty) predicate.ProductQty

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ProductQty

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProductQty

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProductQty

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProductQty

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProductQty

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProductQty

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProductQty

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

func CreatedAtNotIn

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

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

func HasProduct

func HasProduct() predicate.ProductQty

HasProduct applies the HasEdge predicate on the "product" edge.

func HasProductColor

func HasProductColor() predicate.ProductQty

HasProductColor applies the HasEdge predicate on the "product_color" edge.

func HasProductColorWith

func HasProductColorWith(preds ...predicate.ProductColor) predicate.ProductQty

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

func HasProductWith

func HasProductWith(preds ...predicate.ProductInfo) predicate.ProductQty

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

func HasWorkUnit

func HasWorkUnit() predicate.ProductQty

HasWorkUnit applies the HasEdge predicate on the "work_unit" edge.

func HasWorkUnitWith

func HasWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.ProductQty

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ProductQty

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ProductQty

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ProductQty

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ProductQty

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ProductQty

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ProductQty

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func PricePerUnit

func PricePerUnit(v decimal.Decimal) predicate.ProductQty

PricePerUnit applies equality check predicate on the "price_per_unit" field. It's identical to PricePerUnitEQ.

func PricePerUnitEQ

func PricePerUnitEQ(v decimal.Decimal) predicate.ProductQty

PricePerUnitEQ applies the EQ predicate on the "price_per_unit" field.

func PricePerUnitGT

func PricePerUnitGT(v decimal.Decimal) predicate.ProductQty

PricePerUnitGT applies the GT predicate on the "price_per_unit" field.

func PricePerUnitGTE

func PricePerUnitGTE(v decimal.Decimal) predicate.ProductQty

PricePerUnitGTE applies the GTE predicate on the "price_per_unit" field.

func PricePerUnitIn

func PricePerUnitIn(vs ...decimal.Decimal) predicate.ProductQty

PricePerUnitIn applies the In predicate on the "price_per_unit" field.

func PricePerUnitLT

func PricePerUnitLT(v decimal.Decimal) predicate.ProductQty

PricePerUnitLT applies the LT predicate on the "price_per_unit" field.

func PricePerUnitLTE

func PricePerUnitLTE(v decimal.Decimal) predicate.ProductQty

PricePerUnitLTE applies the LTE predicate on the "price_per_unit" field.

func PricePerUnitNEQ

func PricePerUnitNEQ(v decimal.Decimal) predicate.ProductQty

PricePerUnitNEQ applies the NEQ predicate on the "price_per_unit" field.

func PricePerUnitNotIn

func PricePerUnitNotIn(vs ...decimal.Decimal) predicate.ProductQty

PricePerUnitNotIn applies the NotIn predicate on the "price_per_unit" field.

func ProductColorID

func ProductColorID(v string) predicate.ProductQty

ProductColorID applies equality check predicate on the "product_color_id" field. It's identical to ProductColorIDEQ.

func ProductColorIDContains

func ProductColorIDContains(v string) predicate.ProductQty

ProductColorIDContains applies the Contains predicate on the "product_color_id" field.

func ProductColorIDContainsFold

func ProductColorIDContainsFold(v string) predicate.ProductQty

ProductColorIDContainsFold applies the ContainsFold predicate on the "product_color_id" field.

func ProductColorIDEQ

func ProductColorIDEQ(v string) predicate.ProductQty

ProductColorIDEQ applies the EQ predicate on the "product_color_id" field.

func ProductColorIDEqualFold

func ProductColorIDEqualFold(v string) predicate.ProductQty

ProductColorIDEqualFold applies the EqualFold predicate on the "product_color_id" field.

func ProductColorIDGT

func ProductColorIDGT(v string) predicate.ProductQty

ProductColorIDGT applies the GT predicate on the "product_color_id" field.

func ProductColorIDGTE

func ProductColorIDGTE(v string) predicate.ProductQty

ProductColorIDGTE applies the GTE predicate on the "product_color_id" field.

func ProductColorIDHasPrefix

func ProductColorIDHasPrefix(v string) predicate.ProductQty

ProductColorIDHasPrefix applies the HasPrefix predicate on the "product_color_id" field.

func ProductColorIDHasSuffix

func ProductColorIDHasSuffix(v string) predicate.ProductQty

ProductColorIDHasSuffix applies the HasSuffix predicate on the "product_color_id" field.

func ProductColorIDIn

func ProductColorIDIn(vs ...string) predicate.ProductQty

ProductColorIDIn applies the In predicate on the "product_color_id" field.

func ProductColorIDLT

func ProductColorIDLT(v string) predicate.ProductQty

ProductColorIDLT applies the LT predicate on the "product_color_id" field.

func ProductColorIDLTE

func ProductColorIDLTE(v string) predicate.ProductQty

ProductColorIDLTE applies the LTE predicate on the "product_color_id" field.

func ProductColorIDNEQ

func ProductColorIDNEQ(v string) predicate.ProductQty

ProductColorIDNEQ applies the NEQ predicate on the "product_color_id" field.

func ProductColorIDNotIn

func ProductColorIDNotIn(vs ...string) predicate.ProductQty

ProductColorIDNotIn applies the NotIn predicate on the "product_color_id" field.

func ProductID

func ProductID(v string) predicate.ProductQty

ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.

func ProductIDContains

func ProductIDContains(v string) predicate.ProductQty

ProductIDContains applies the Contains predicate on the "product_id" field.

func ProductIDContainsFold

func ProductIDContainsFold(v string) predicate.ProductQty

ProductIDContainsFold applies the ContainsFold predicate on the "product_id" field.

func ProductIDEQ

func ProductIDEQ(v string) predicate.ProductQty

ProductIDEQ applies the EQ predicate on the "product_id" field.

func ProductIDEqualFold

func ProductIDEqualFold(v string) predicate.ProductQty

ProductIDEqualFold applies the EqualFold predicate on the "product_id" field.

func ProductIDGT

func ProductIDGT(v string) predicate.ProductQty

ProductIDGT applies the GT predicate on the "product_id" field.

func ProductIDGTE

func ProductIDGTE(v string) predicate.ProductQty

ProductIDGTE applies the GTE predicate on the "product_id" field.

func ProductIDHasPrefix

func ProductIDHasPrefix(v string) predicate.ProductQty

ProductIDHasPrefix applies the HasPrefix predicate on the "product_id" field.

func ProductIDHasSuffix

func ProductIDHasSuffix(v string) predicate.ProductQty

ProductIDHasSuffix applies the HasSuffix predicate on the "product_id" field.

func ProductIDIn

func ProductIDIn(vs ...string) predicate.ProductQty

ProductIDIn applies the In predicate on the "product_id" field.

func ProductIDLT

func ProductIDLT(v string) predicate.ProductQty

ProductIDLT applies the LT predicate on the "product_id" field.

func ProductIDLTE

func ProductIDLTE(v string) predicate.ProductQty

ProductIDLTE applies the LTE predicate on the "product_id" field.

func ProductIDNEQ

func ProductIDNEQ(v string) predicate.ProductQty

ProductIDNEQ applies the NEQ predicate on the "product_id" field.

func ProductIDNotIn

func ProductIDNotIn(vs ...string) predicate.ProductQty

ProductIDNotIn applies the NotIn predicate on the "product_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

func QtyIn(vs ...decimal.Decimal) predicate.ProductQty

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ProductQty

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProductQty

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProductQty

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProductQty

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProductQty

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProductQty

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProductQty

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

func UpdatedAtNotIn

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

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

func WorkUnitID

func WorkUnitID(v uuid.UUID) predicate.ProductQty

WorkUnitID applies equality check predicate on the "work_unit_id" field. It's identical to WorkUnitIDEQ.

func WorkUnitIDEQ

func WorkUnitIDEQ(v uuid.UUID) predicate.ProductQty

WorkUnitIDEQ applies the EQ predicate on the "work_unit_id" field.

func WorkUnitIDIn

func WorkUnitIDIn(vs ...uuid.UUID) predicate.ProductQty

WorkUnitIDIn applies the In predicate on the "work_unit_id" field.

func WorkUnitIDNEQ

func WorkUnitIDNEQ(v uuid.UUID) predicate.ProductQty

WorkUnitIDNEQ applies the NEQ predicate on the "work_unit_id" field.

func WorkUnitIDNotIn

func WorkUnitIDNotIn(vs ...uuid.UUID) predicate.ProductQty

WorkUnitIDNotIn applies the NotIn predicate on the "work_unit_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ProductQty 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 ByPricePerUnit

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

ByPricePerUnit orders the results by the price_per_unit field.

func ByProductColorField

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

ByProductColorField orders the results by product_color field.

func ByProductColorID

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

ByProductColorID orders the results by the product_color_id field.

func ByProductField

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

ByProductField orders the results by product field.

func ByProductID

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

ByProductID orders the results by the product_id field.

func ByQty

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

ByQty orders the results by the qty field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByWorkUnitField

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

ByWorkUnitField orders the results by work_unit field.

func ByWorkUnitID

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

ByWorkUnitID orders the results by the work_unit_id field.

Jump to

Keyboard shortcuts

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