Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrderItem) predicate.OrderItem
- func CreatedAt(v time.Time) predicate.OrderItem
- func CreatedAtEQ(v time.Time) predicate.OrderItem
- func CreatedAtGT(v time.Time) predicate.OrderItem
- func CreatedAtGTE(v time.Time) predicate.OrderItem
- func CreatedAtIn(vs ...time.Time) predicate.OrderItem
- func CreatedAtLT(v time.Time) predicate.OrderItem
- func CreatedAtLTE(v time.Time) predicate.OrderItem
- func CreatedAtNEQ(v time.Time) predicate.OrderItem
- func CreatedAtNotIn(vs ...time.Time) predicate.OrderItem
- func DstUnitID(v uuid.UUID) predicate.OrderItem
- func DstUnitIDEQ(v uuid.UUID) predicate.OrderItem
- func DstUnitIDIn(vs ...uuid.UUID) predicate.OrderItem
- func DstUnitIDIsNil() predicate.OrderItem
- func DstUnitIDNEQ(v uuid.UUID) predicate.OrderItem
- func DstUnitIDNotIn(vs ...uuid.UUID) predicate.OrderItem
- func DstUnitIDNotNil() predicate.OrderItem
- func HasDestinationWorkUnit() predicate.OrderItem
- func HasDestinationWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.OrderItem
- func HasOrder() predicate.OrderItem
- func HasOrderWith(preds ...predicate.Order) predicate.OrderItem
- func HasProduct() predicate.OrderItem
- func HasProductColor() predicate.OrderItem
- func HasProductColorWith(preds ...predicate.ProductColor) predicate.OrderItem
- func HasProductWith(preds ...predicate.ProductInfo) predicate.OrderItem
- func HasSourceWorkUnit() predicate.OrderItem
- func HasSourceWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.OrderItem
- func ID(id uuid.UUID) predicate.OrderItem
- func IDEQ(id uuid.UUID) predicate.OrderItem
- func IDGT(id uuid.UUID) predicate.OrderItem
- func IDGTE(id uuid.UUID) predicate.OrderItem
- func IDIn(ids ...uuid.UUID) predicate.OrderItem
- func IDLT(id uuid.UUID) predicate.OrderItem
- func IDLTE(id uuid.UUID) predicate.OrderItem
- func IDNEQ(id uuid.UUID) predicate.OrderItem
- func IDNotIn(ids ...uuid.UUID) predicate.OrderItem
- func Not(p predicate.OrderItem) predicate.OrderItem
- func Or(predicates ...predicate.OrderItem) predicate.OrderItem
- func OrderID(v uuid.UUID) predicate.OrderItem
- func OrderIDEQ(v uuid.UUID) predicate.OrderItem
- func OrderIDIn(vs ...uuid.UUID) predicate.OrderItem
- func OrderIDNEQ(v uuid.UUID) predicate.OrderItem
- func OrderIDNotIn(vs ...uuid.UUID) predicate.OrderItem
- func PricePerUnit(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitEQ(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitGT(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitGTE(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitIn(vs ...decimal.Decimal) predicate.OrderItem
- func PricePerUnitLT(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitLTE(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitNEQ(v decimal.Decimal) predicate.OrderItem
- func PricePerUnitNotIn(vs ...decimal.Decimal) predicate.OrderItem
- func ProductColorID(v string) predicate.OrderItem
- func ProductColorIDContains(v string) predicate.OrderItem
- func ProductColorIDContainsFold(v string) predicate.OrderItem
- func ProductColorIDEQ(v string) predicate.OrderItem
- func ProductColorIDEqualFold(v string) predicate.OrderItem
- func ProductColorIDGT(v string) predicate.OrderItem
- func ProductColorIDGTE(v string) predicate.OrderItem
- func ProductColorIDHasPrefix(v string) predicate.OrderItem
- func ProductColorIDHasSuffix(v string) predicate.OrderItem
- func ProductColorIDIn(vs ...string) predicate.OrderItem
- func ProductColorIDLT(v string) predicate.OrderItem
- func ProductColorIDLTE(v string) predicate.OrderItem
- func ProductColorIDNEQ(v string) predicate.OrderItem
- func ProductColorIDNotIn(vs ...string) predicate.OrderItem
- func ProductID(v string) predicate.OrderItem
- func ProductIDContains(v string) predicate.OrderItem
- func ProductIDContainsFold(v string) predicate.OrderItem
- func ProductIDEQ(v string) predicate.OrderItem
- func ProductIDEqualFold(v string) predicate.OrderItem
- func ProductIDGT(v string) predicate.OrderItem
- func ProductIDGTE(v string) predicate.OrderItem
- func ProductIDHasPrefix(v string) predicate.OrderItem
- func ProductIDHasSuffix(v string) predicate.OrderItem
- func ProductIDIn(vs ...string) predicate.OrderItem
- func ProductIDLT(v string) predicate.OrderItem
- func ProductIDLTE(v string) predicate.OrderItem
- func ProductIDNEQ(v string) predicate.OrderItem
- func ProductIDNotIn(vs ...string) predicate.OrderItem
- func Qty(v decimal.Decimal) predicate.OrderItem
- func QtyEQ(v decimal.Decimal) predicate.OrderItem
- func QtyGT(v decimal.Decimal) predicate.OrderItem
- func QtyGTE(v decimal.Decimal) predicate.OrderItem
- func QtyIn(vs ...decimal.Decimal) predicate.OrderItem
- func QtyLT(v decimal.Decimal) predicate.OrderItem
- func QtyLTE(v decimal.Decimal) predicate.OrderItem
- func QtyNEQ(v decimal.Decimal) predicate.OrderItem
- func QtyNotIn(vs ...decimal.Decimal) predicate.OrderItem
- func SrcUnitID(v uuid.UUID) predicate.OrderItem
- func SrcUnitIDEQ(v uuid.UUID) predicate.OrderItem
- func SrcUnitIDIn(vs ...uuid.UUID) predicate.OrderItem
- func SrcUnitIDIsNil() predicate.OrderItem
- func SrcUnitIDNEQ(v uuid.UUID) predicate.OrderItem
- func SrcUnitIDNotIn(vs ...uuid.UUID) predicate.OrderItem
- func SrcUnitIDNotNil() predicate.OrderItem
- func StatusEQ(v Status) predicate.OrderItem
- func StatusIn(vs ...Status) predicate.OrderItem
- func StatusNEQ(v Status) predicate.OrderItem
- func StatusNotIn(vs ...Status) predicate.OrderItem
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.OrderItem
- func UpdatedAtEQ(v time.Time) predicate.OrderItem
- func UpdatedAtGT(v time.Time) predicate.OrderItem
- func UpdatedAtGTE(v time.Time) predicate.OrderItem
- func UpdatedAtIn(vs ...time.Time) predicate.OrderItem
- func UpdatedAtLT(v time.Time) predicate.OrderItem
- func UpdatedAtLTE(v time.Time) predicate.OrderItem
- func UpdatedAtNEQ(v time.Time) predicate.OrderItem
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrderItem
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDestinationWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDstUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrderID(opts ...sql.OrderTermOption) OrderOption
- func ByPricePerUnit(opts ...sql.OrderTermOption) OrderOption
- func ByProductColorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProductColorID(opts ...sql.OrderTermOption) OrderOption
- func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProductID(opts ...sql.OrderTermOption) OrderOption
- func ByQty(opts ...sql.OrderTermOption) OrderOption
- func BySourceWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySrcUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the orderitem type in the database. Label = "order_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" // FieldOrderID holds the string denoting the order_id field in the database. FieldOrderID = "order_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" // FieldSrcUnitID holds the string denoting the src_unit_id field in the database. FieldSrcUnitID = "src_unit_id" // FieldDstUnitID holds the string denoting the dst_unit_id field in the database. FieldDstUnitID = "dst_unit_id" // FieldQty holds the string denoting the qty field in the database. FieldQty = "qty" // FieldPricePerUnit holds the string denoting the price_per_unit field in the database. FieldPricePerUnit = "price_per_unit" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeOrder holds the string denoting the order edge name in mutations. EdgeOrder = "order" // 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" // EdgeSourceWorkUnit holds the string denoting the source_work_unit edge name in mutations. EdgeSourceWorkUnit = "source_work_unit" // EdgeDestinationWorkUnit holds the string denoting the destination_work_unit edge name in mutations. EdgeDestinationWorkUnit = "destination_work_unit" // Table holds the table name of the orderitem in the database. Table = "order_items" // OrderTable is the table that holds the order relation/edge. OrderTable = "order_items" // OrderInverseTable is the table name for the Order entity. // It exists in this package in order to avoid circular dependency with the "order" package. OrderInverseTable = "orders" // OrderColumn is the table column denoting the order relation/edge. OrderColumn = "order_id" // ProductTable is the table that holds the product relation/edge. ProductTable = "order_items" // 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 = "order_items" // 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" // SourceWorkUnitTable is the table that holds the source_work_unit relation/edge. SourceWorkUnitTable = "order_items" // SourceWorkUnitInverseTable is the table name for the WorkUnitInfo entity. // It exists in this package in order to avoid circular dependency with the "workunitinfo" package. SourceWorkUnitInverseTable = "work_unit_info" // SourceWorkUnitColumn is the table column denoting the source_work_unit relation/edge. SourceWorkUnitColumn = "src_unit_id" // DestinationWorkUnitTable is the table that holds the destination_work_unit relation/edge. DestinationWorkUnitTable = "order_items" // DestinationWorkUnitInverseTable is the table name for the WorkUnitInfo entity. // It exists in this package in order to avoid circular dependency with the "workunitinfo" package. DestinationWorkUnitInverseTable = "work_unit_info" // DestinationWorkUnitColumn is the table column denoting the destination_work_unit relation/edge. DestinationWorkUnitColumn = "dst_unit_id" )
const DefaultStatus = StatusInStock
StatusInStock is the default value of the Status enum.
Variables ¶
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldOrderID, FieldProductID, FieldProductColorID, FieldSrcUnitID, FieldDstUnitID, FieldQty, FieldPricePerUnit, FieldStatus, }
Columns holds all SQL columns for orderitem fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DstUnitID ¶
DstUnitID applies equality check predicate on the "dst_unit_id" field. It's identical to DstUnitIDEQ.
func DstUnitIDEQ ¶
DstUnitIDEQ applies the EQ predicate on the "dst_unit_id" field.
func DstUnitIDIn ¶
DstUnitIDIn applies the In predicate on the "dst_unit_id" field.
func DstUnitIDIsNil ¶
DstUnitIDIsNil applies the IsNil predicate on the "dst_unit_id" field.
func DstUnitIDNEQ ¶
DstUnitIDNEQ applies the NEQ predicate on the "dst_unit_id" field.
func DstUnitIDNotIn ¶
DstUnitIDNotIn applies the NotIn predicate on the "dst_unit_id" field.
func DstUnitIDNotNil ¶
DstUnitIDNotNil applies the NotNil predicate on the "dst_unit_id" field.
func HasDestinationWorkUnit ¶
HasDestinationWorkUnit applies the HasEdge predicate on the "destination_work_unit" edge.
func HasDestinationWorkUnitWith ¶
func HasDestinationWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.OrderItem
HasDestinationWorkUnitWith applies the HasEdge predicate on the "destination_work_unit" edge with a given conditions (other predicates).
func HasOrderWith ¶
HasOrderWith applies the HasEdge predicate on the "order" edge with a given conditions (other predicates).
func HasProduct ¶
HasProduct applies the HasEdge predicate on the "product" edge.
func HasProductColor ¶
HasProductColor applies the HasEdge predicate on the "product_color" edge.
func HasProductColorWith ¶
func HasProductColorWith(preds ...predicate.ProductColor) predicate.OrderItem
HasProductColorWith applies the HasEdge predicate on the "product_color" edge with a given conditions (other predicates).
func HasProductWith ¶
func HasProductWith(preds ...predicate.ProductInfo) predicate.OrderItem
HasProductWith applies the HasEdge predicate on the "product" edge with a given conditions (other predicates).
func HasSourceWorkUnit ¶
HasSourceWorkUnit applies the HasEdge predicate on the "source_work_unit" edge.
func HasSourceWorkUnitWith ¶
func HasSourceWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.OrderItem
HasSourceWorkUnitWith applies the HasEdge predicate on the "source_work_unit" edge with a given conditions (other predicates).
func OrderID ¶
OrderID applies equality check predicate on the "order_id" field. It's identical to OrderIDEQ.
func OrderIDNEQ ¶
OrderIDNEQ applies the NEQ predicate on the "order_id" field.
func OrderIDNotIn ¶
OrderIDNotIn applies the NotIn predicate on the "order_id" field.
func PricePerUnit ¶
PricePerUnit applies equality check predicate on the "price_per_unit" field. It's identical to PricePerUnitEQ.
func PricePerUnitEQ ¶
PricePerUnitEQ applies the EQ predicate on the "price_per_unit" field.
func PricePerUnitGT ¶
PricePerUnitGT applies the GT predicate on the "price_per_unit" field.
func PricePerUnitGTE ¶
PricePerUnitGTE applies the GTE predicate on the "price_per_unit" field.
func PricePerUnitIn ¶
PricePerUnitIn applies the In predicate on the "price_per_unit" field.
func PricePerUnitLT ¶
PricePerUnitLT applies the LT predicate on the "price_per_unit" field.
func PricePerUnitLTE ¶
PricePerUnitLTE applies the LTE predicate on the "price_per_unit" field.
func PricePerUnitNEQ ¶
PricePerUnitNEQ applies the NEQ predicate on the "price_per_unit" field.
func PricePerUnitNotIn ¶
PricePerUnitNotIn applies the NotIn predicate on the "price_per_unit" field.
func ProductColorID ¶
ProductColorID applies equality check predicate on the "product_color_id" field. It's identical to ProductColorIDEQ.
func ProductColorIDContains ¶
ProductColorIDContains applies the Contains predicate on the "product_color_id" field.
func ProductColorIDContainsFold ¶
ProductColorIDContainsFold applies the ContainsFold predicate on the "product_color_id" field.
func ProductColorIDEQ ¶
ProductColorIDEQ applies the EQ predicate on the "product_color_id" field.
func ProductColorIDEqualFold ¶
ProductColorIDEqualFold applies the EqualFold predicate on the "product_color_id" field.
func ProductColorIDGT ¶
ProductColorIDGT applies the GT predicate on the "product_color_id" field.
func ProductColorIDGTE ¶
ProductColorIDGTE applies the GTE predicate on the "product_color_id" field.
func ProductColorIDHasPrefix ¶
ProductColorIDHasPrefix applies the HasPrefix predicate on the "product_color_id" field.
func ProductColorIDHasSuffix ¶
ProductColorIDHasSuffix applies the HasSuffix predicate on the "product_color_id" field.
func ProductColorIDIn ¶
ProductColorIDIn applies the In predicate on the "product_color_id" field.
func ProductColorIDLT ¶
ProductColorIDLT applies the LT predicate on the "product_color_id" field.
func ProductColorIDLTE ¶
ProductColorIDLTE applies the LTE predicate on the "product_color_id" field.
func ProductColorIDNEQ ¶
ProductColorIDNEQ applies the NEQ predicate on the "product_color_id" field.
func ProductColorIDNotIn ¶
ProductColorIDNotIn applies the NotIn predicate on the "product_color_id" field.
func ProductID ¶
ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.
func ProductIDContains ¶
ProductIDContains applies the Contains predicate on the "product_id" field.
func ProductIDContainsFold ¶
ProductIDContainsFold applies the ContainsFold predicate on the "product_id" field.
func ProductIDEQ ¶
ProductIDEQ applies the EQ predicate on the "product_id" field.
func ProductIDEqualFold ¶
ProductIDEqualFold applies the EqualFold predicate on the "product_id" field.
func ProductIDGT ¶
ProductIDGT applies the GT predicate on the "product_id" field.
func ProductIDGTE ¶
ProductIDGTE applies the GTE predicate on the "product_id" field.
func ProductIDHasPrefix ¶
ProductIDHasPrefix applies the HasPrefix predicate on the "product_id" field.
func ProductIDHasSuffix ¶
ProductIDHasSuffix applies the HasSuffix predicate on the "product_id" field.
func ProductIDIn ¶
ProductIDIn applies the In predicate on the "product_id" field.
func ProductIDLT ¶
ProductIDLT applies the LT predicate on the "product_id" field.
func ProductIDLTE ¶
ProductIDLTE applies the LTE predicate on the "product_id" field.
func ProductIDNEQ ¶
ProductIDNEQ applies the NEQ predicate on the "product_id" field.
func ProductIDNotIn ¶
ProductIDNotIn applies the NotIn predicate on the "product_id" field.
func SrcUnitID ¶
SrcUnitID applies equality check predicate on the "src_unit_id" field. It's identical to SrcUnitIDEQ.
func SrcUnitIDEQ ¶
SrcUnitIDEQ applies the EQ predicate on the "src_unit_id" field.
func SrcUnitIDIn ¶
SrcUnitIDIn applies the In predicate on the "src_unit_id" field.
func SrcUnitIDIsNil ¶
SrcUnitIDIsNil applies the IsNil predicate on the "src_unit_id" field.
func SrcUnitIDNEQ ¶
SrcUnitIDNEQ applies the NEQ predicate on the "src_unit_id" field.
func SrcUnitIDNotIn ¶
SrcUnitIDNotIn applies the NotIn predicate on the "src_unit_id" field.
func SrcUnitIDNotNil ¶
SrcUnitIDNotNil applies the NotNil predicate on the "src_unit_id" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the OrderItem queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDestinationWorkUnitField ¶
func ByDestinationWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
ByDestinationWorkUnitField orders the results by destination_work_unit field.
func ByDstUnitID ¶
func ByDstUnitID(opts ...sql.OrderTermOption) OrderOption
ByDstUnitID orders the results by the dst_unit_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrderField ¶
func ByOrderField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrderField orders the results by order field.
func ByOrderID ¶
func ByOrderID(opts ...sql.OrderTermOption) OrderOption
ByOrderID orders the results by the order_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 BySourceWorkUnitField ¶
func BySourceWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
BySourceWorkUnitField orders the results by source_work_unit field.
func BySrcUnitID ¶
func BySrcUnitID(opts ...sql.OrderTermOption) OrderOption
BySrcUnitID orders the results by the src_unit_id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
type Status ¶
type Status string
Status defines the type for the "status" enum field.