Documentation
¶
Index ¶
- Constants
- Variables
- func AddressID(v uuid.UUID) predicate.Order
- func AddressIDEQ(v uuid.UUID) predicate.Order
- func AddressIDIn(vs ...uuid.UUID) predicate.Order
- func AddressIDNEQ(v uuid.UUID) predicate.Order
- func AddressIDNotIn(vs ...uuid.UUID) predicate.Order
- func And(predicates ...predicate.Order) predicate.Order
- func CreatedAt(v time.Time) predicate.Order
- func CreatedAtEQ(v time.Time) predicate.Order
- func CreatedAtGT(v time.Time) predicate.Order
- func CreatedAtGTE(v time.Time) predicate.Order
- func CreatedAtIn(vs ...time.Time) predicate.Order
- func CreatedAtLT(v time.Time) predicate.Order
- func CreatedAtLTE(v time.Time) predicate.Order
- func CreatedAtNEQ(v time.Time) predicate.Order
- func CreatedAtNotIn(vs ...time.Time) predicate.Order
- func CreatedBy(v uuid.UUID) predicate.Order
- func CreatedByEQ(v uuid.UUID) predicate.Order
- func CreatedByIn(vs ...uuid.UUID) predicate.Order
- func CreatedByNEQ(v uuid.UUID) predicate.Order
- func CreatedByNotIn(vs ...uuid.UUID) predicate.Order
- func CustomerID(v uuid.UUID) predicate.Order
- func CustomerIDEQ(v uuid.UUID) predicate.Order
- func CustomerIDIn(vs ...uuid.UUID) predicate.Order
- func CustomerIDNEQ(v uuid.UUID) predicate.Order
- func CustomerIDNotIn(vs ...uuid.UUID) predicate.Order
- func HasCreator() predicate.Order
- func HasCreatorWith(preds ...predicate.Person) predicate.Order
- func HasCustomer() predicate.Order
- func HasCustomerWith(preds ...predicate.Person) predicate.Order
- func HasOrderAddress() predicate.Order
- func HasOrderAddressWith(preds ...predicate.Address) predicate.Order
- func HasOrderStatus() predicate.Order
- func HasOrderStatusWith(preds ...predicate.OrderStatusCode) predicate.Order
- func HasParentOrder() predicate.Order
- func HasParentOrderWith(preds ...predicate.Order) predicate.Order
- func HasStaff() predicate.Order
- func HasStaffWith(preds ...predicate.Person) predicate.Order
- func ID(id uuid.UUID) predicate.Order
- func IDEQ(id uuid.UUID) predicate.Order
- func IDGT(id uuid.UUID) predicate.Order
- func IDGTE(id uuid.UUID) predicate.Order
- func IDIn(ids ...uuid.UUID) predicate.Order
- func IDLT(id uuid.UUID) predicate.Order
- func IDLTE(id uuid.UUID) predicate.Order
- func IDNEQ(id uuid.UUID) predicate.Order
- func IDNotIn(ids ...uuid.UUID) predicate.Order
- func InternalNote(v string) predicate.Order
- func InternalNoteContains(v string) predicate.Order
- func InternalNoteContainsFold(v string) predicate.Order
- func InternalNoteEQ(v string) predicate.Order
- func InternalNoteEqualFold(v string) predicate.Order
- func InternalNoteGT(v string) predicate.Order
- func InternalNoteGTE(v string) predicate.Order
- func InternalNoteHasPrefix(v string) predicate.Order
- func InternalNoteHasSuffix(v string) predicate.Order
- func InternalNoteIn(vs ...string) predicate.Order
- func InternalNoteIsNil() predicate.Order
- func InternalNoteLT(v string) predicate.Order
- func InternalNoteLTE(v string) predicate.Order
- func InternalNoteNEQ(v string) predicate.Order
- func InternalNoteNotIn(vs ...string) predicate.Order
- func InternalNoteNotNil() predicate.Order
- func IsInternal(v bool) predicate.Order
- func IsInternalEQ(v bool) predicate.Order
- func IsInternalNEQ(v bool) predicate.Order
- func Not(p predicate.Order) predicate.Order
- func Note(v string) predicate.Order
- func NoteContains(v string) predicate.Order
- func NoteContainsFold(v string) predicate.Order
- func NoteEQ(v string) predicate.Order
- func NoteEqualFold(v string) predicate.Order
- func NoteGT(v string) predicate.Order
- func NoteGTE(v string) predicate.Order
- func NoteHasPrefix(v string) predicate.Order
- func NoteHasSuffix(v string) predicate.Order
- func NoteIn(vs ...string) predicate.Order
- func NoteIsNil() predicate.Order
- func NoteLT(v string) predicate.Order
- func NoteLTE(v string) predicate.Order
- func NoteNEQ(v string) predicate.Order
- func NoteNotIn(vs ...string) predicate.Order
- func NoteNotNil() predicate.Order
- func Or(predicates ...predicate.Order) predicate.Order
- func ParentOrderID(v uuid.UUID) predicate.Order
- func ParentOrderIDEQ(v uuid.UUID) predicate.Order
- func ParentOrderIDIn(vs ...uuid.UUID) predicate.Order
- func ParentOrderIDIsNil() predicate.Order
- func ParentOrderIDNEQ(v uuid.UUID) predicate.Order
- func ParentOrderIDNotIn(vs ...uuid.UUID) predicate.Order
- func ParentOrderIDNotNil() predicate.Order
- func Priority(v int) predicate.Order
- func PriorityEQ(v int) predicate.Order
- func PriorityGT(v int) predicate.Order
- func PriorityGTE(v int) predicate.Order
- func PriorityIn(vs ...int) predicate.Order
- func PriorityLT(v int) predicate.Order
- func PriorityLTE(v int) predicate.Order
- func PriorityNEQ(v int) predicate.Order
- func PriorityNotIn(vs ...int) predicate.Order
- func StaffID(v uuid.UUID) predicate.Order
- func StaffIDEQ(v uuid.UUID) predicate.Order
- func StaffIDIn(vs ...uuid.UUID) predicate.Order
- func StaffIDIsNil() predicate.Order
- func StaffIDNEQ(v uuid.UUID) predicate.Order
- func StaffIDNotIn(vs ...uuid.UUID) predicate.Order
- func StaffIDNotNil() predicate.Order
- func StatusCode(v int) predicate.Order
- func StatusCodeEQ(v int) predicate.Order
- func StatusCodeIn(vs ...int) predicate.Order
- func StatusCodeNEQ(v int) predicate.Order
- func StatusCodeNotIn(vs ...int) predicate.Order
- func TypeEQ(v Type) predicate.Order
- func TypeIn(vs ...Type) predicate.Order
- func TypeNEQ(v Type) predicate.Order
- func TypeNotIn(vs ...Type) predicate.Order
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Order
- func UpdatedAtEQ(v time.Time) predicate.Order
- func UpdatedAtGT(v time.Time) predicate.Order
- func UpdatedAtGTE(v time.Time) predicate.Order
- func UpdatedAtIn(vs ...time.Time) predicate.Order
- func UpdatedAtLT(v time.Time) predicate.Order
- func UpdatedAtLTE(v time.Time) predicate.Order
- func UpdatedAtNEQ(v time.Time) predicate.Order
- func UpdatedAtNotIn(vs ...time.Time) predicate.Order
- func ValidColumn(column string) bool
- type OrderOption
- func ByAddressID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCustomerID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalNote(opts ...sql.OrderTermOption) OrderOption
- func ByIsInternal(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByOrderAddressField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrderStatusField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentOrderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentOrderID(opts ...sql.OrderTermOption) OrderOption
- func ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByStaffField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStaffID(opts ...sql.OrderTermOption) OrderOption
- func ByStatusCode(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the order type in the database. Label = "order" // 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" // FieldCustomerID holds the string denoting the customer_id field in the database. FieldCustomerID = "customer_id" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldParentOrderID holds the string denoting the parent_order_id field in the database. FieldParentOrderID = "parent_order_id" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldStatusCode holds the string denoting the status_code field in the database. FieldStatusCode = "status_code" // FieldStaffID holds the string denoting the staff_id field in the database. FieldStaffID = "staff_id" // FieldInternalNote holds the string denoting the internal_note field in the database. FieldInternalNote = "internal_note" // FieldIsInternal holds the string denoting the is_internal field in the database. FieldIsInternal = "is_internal" // FieldAddressID holds the string denoting the address_id field in the database. FieldAddressID = "address_id" // EdgeCustomer holds the string denoting the customer edge name in mutations. EdgeCustomer = "customer" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // EdgeParentOrder holds the string denoting the parent_order edge name in mutations. EdgeParentOrder = "parent_order" // EdgeOrderStatus holds the string denoting the order_status edge name in mutations. EdgeOrderStatus = "order_status" // EdgeStaff holds the string denoting the staff edge name in mutations. EdgeStaff = "staff" // EdgeOrderAddress holds the string denoting the order_address edge name in mutations. EdgeOrderAddress = "order_address" // Table holds the table name of the order in the database. Table = "orders" // CustomerTable is the table that holds the customer relation/edge. CustomerTable = "orders" // CustomerInverseTable is the table name for the Person entity. // It exists in this package in order to avoid circular dependency with the "person" package. CustomerInverseTable = "persons" // CustomerColumn is the table column denoting the customer relation/edge. CustomerColumn = "customer_id" // CreatorTable is the table that holds the creator relation/edge. CreatorTable = "orders" // CreatorInverseTable is the table name for the Person entity. // It exists in this package in order to avoid circular dependency with the "person" package. CreatorInverseTable = "persons" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "created_by" // ParentOrderTable is the table that holds the parent_order relation/edge. ParentOrderTable = "orders" // ParentOrderColumn is the table column denoting the parent_order relation/edge. ParentOrderColumn = "parent_order_id" // OrderStatusTable is the table that holds the order_status relation/edge. OrderStatusTable = "orders" // OrderStatusInverseTable is the table name for the OrderStatusCode entity. // It exists in this package in order to avoid circular dependency with the "orderstatuscode" package. OrderStatusInverseTable = "order_status_codes" // OrderStatusColumn is the table column denoting the order_status relation/edge. OrderStatusColumn = "status_code" // StaffTable is the table that holds the staff relation/edge. StaffTable = "orders" // StaffInverseTable is the table name for the Person entity. // It exists in this package in order to avoid circular dependency with the "person" package. StaffInverseTable = "persons" // StaffColumn is the table column denoting the staff relation/edge. StaffColumn = "staff_id" // OrderAddressTable is the table that holds the order_address relation/edge. OrderAddressTable = "orders" // OrderAddressInverseTable is the table name for the Address entity. // It exists in this package in order to avoid circular dependency with the "address" package. OrderAddressInverseTable = "addresses" // OrderAddressColumn is the table column denoting the order_address relation/edge. OrderAddressColumn = "address_id" )
const DefaultType = TypeSale
TypeSale is the default value of the Type 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 // DefaultPriority holds the default value on creation for the "priority" field. DefaultPriority int // PriorityValidator is a validator for the "priority" field. It is called by the builders before save. PriorityValidator func(int) error // DefaultStatusCode holds the default value on creation for the "status_code" field. DefaultStatusCode int // DefaultIsInternal holds the default value on creation for the "is_internal" field. DefaultIsInternal bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCustomerID, FieldNote, FieldCreatedBy, FieldParentOrderID, FieldPriority, FieldType, FieldStatusCode, FieldStaffID, FieldInternalNote, FieldIsInternal, FieldAddressID, }
Columns holds all SQL columns for order fields.
Functions ¶
func AddressID ¶
AddressID applies equality check predicate on the "address_id" field. It's identical to AddressIDEQ.
func AddressIDEQ ¶
AddressIDEQ applies the EQ predicate on the "address_id" field.
func AddressIDIn ¶
AddressIDIn applies the In predicate on the "address_id" field.
func AddressIDNEQ ¶
AddressIDNEQ applies the NEQ predicate on the "address_id" field.
func AddressIDNotIn ¶
AddressIDNotIn applies the NotIn predicate on the "address_id" field.
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CustomerID ¶
CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.
func CustomerIDEQ ¶
CustomerIDEQ applies the EQ predicate on the "customer_id" field.
func CustomerIDIn ¶
CustomerIDIn applies the In predicate on the "customer_id" field.
func CustomerIDNEQ ¶
CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.
func CustomerIDNotIn ¶
CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasCustomer ¶
HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomerWith ¶
HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func HasOrderAddress ¶
HasOrderAddress applies the HasEdge predicate on the "order_address" edge.
func HasOrderAddressWith ¶
HasOrderAddressWith applies the HasEdge predicate on the "order_address" edge with a given conditions (other predicates).
func HasOrderStatus ¶
HasOrderStatus applies the HasEdge predicate on the "order_status" edge.
func HasOrderStatusWith ¶
func HasOrderStatusWith(preds ...predicate.OrderStatusCode) predicate.Order
HasOrderStatusWith applies the HasEdge predicate on the "order_status" edge with a given conditions (other predicates).
func HasParentOrder ¶
HasParentOrder applies the HasEdge predicate on the "parent_order" edge.
func HasParentOrderWith ¶
HasParentOrderWith applies the HasEdge predicate on the "parent_order" edge with a given conditions (other predicates).
func HasStaffWith ¶
HasStaffWith applies the HasEdge predicate on the "staff" edge with a given conditions (other predicates).
func InternalNote ¶
InternalNote applies equality check predicate on the "internal_note" field. It's identical to InternalNoteEQ.
func InternalNoteContains ¶
InternalNoteContains applies the Contains predicate on the "internal_note" field.
func InternalNoteContainsFold ¶
InternalNoteContainsFold applies the ContainsFold predicate on the "internal_note" field.
func InternalNoteEQ ¶
InternalNoteEQ applies the EQ predicate on the "internal_note" field.
func InternalNoteEqualFold ¶
InternalNoteEqualFold applies the EqualFold predicate on the "internal_note" field.
func InternalNoteGT ¶
InternalNoteGT applies the GT predicate on the "internal_note" field.
func InternalNoteGTE ¶
InternalNoteGTE applies the GTE predicate on the "internal_note" field.
func InternalNoteHasPrefix ¶
InternalNoteHasPrefix applies the HasPrefix predicate on the "internal_note" field.
func InternalNoteHasSuffix ¶
InternalNoteHasSuffix applies the HasSuffix predicate on the "internal_note" field.
func InternalNoteIn ¶
InternalNoteIn applies the In predicate on the "internal_note" field.
func InternalNoteIsNil ¶
InternalNoteIsNil applies the IsNil predicate on the "internal_note" field.
func InternalNoteLT ¶
InternalNoteLT applies the LT predicate on the "internal_note" field.
func InternalNoteLTE ¶
InternalNoteLTE applies the LTE predicate on the "internal_note" field.
func InternalNoteNEQ ¶
InternalNoteNEQ applies the NEQ predicate on the "internal_note" field.
func InternalNoteNotIn ¶
InternalNoteNotIn applies the NotIn predicate on the "internal_note" field.
func InternalNoteNotNil ¶
InternalNoteNotNil applies the NotNil predicate on the "internal_note" field.
func IsInternal ¶
IsInternal applies equality check predicate on the "is_internal" field. It's identical to IsInternalEQ.
func IsInternalEQ ¶
IsInternalEQ applies the EQ predicate on the "is_internal" field.
func IsInternalNEQ ¶
IsInternalNEQ applies the NEQ predicate on the "is_internal" field.
func NoteContains ¶
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEqualFold ¶
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteHasPrefix ¶
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteNotNil ¶
NoteNotNil applies the NotNil predicate on the "note" field.
func ParentOrderID ¶
ParentOrderID applies equality check predicate on the "parent_order_id" field. It's identical to ParentOrderIDEQ.
func ParentOrderIDEQ ¶
ParentOrderIDEQ applies the EQ predicate on the "parent_order_id" field.
func ParentOrderIDIn ¶
ParentOrderIDIn applies the In predicate on the "parent_order_id" field.
func ParentOrderIDIsNil ¶
ParentOrderIDIsNil applies the IsNil predicate on the "parent_order_id" field.
func ParentOrderIDNEQ ¶
ParentOrderIDNEQ applies the NEQ predicate on the "parent_order_id" field.
func ParentOrderIDNotIn ¶
ParentOrderIDNotIn applies the NotIn predicate on the "parent_order_id" field.
func ParentOrderIDNotNil ¶
ParentOrderIDNotNil applies the NotNil predicate on the "parent_order_id" field.
func Priority ¶
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityEQ ¶
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityGT ¶
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityIn ¶
PriorityIn applies the In predicate on the "priority" field.
func PriorityLT ¶
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
PriorityNotIn applies the NotIn predicate on the "priority" field.
func StaffID ¶
StaffID applies equality check predicate on the "staff_id" field. It's identical to StaffIDEQ.
func StaffIDIsNil ¶
StaffIDIsNil applies the IsNil predicate on the "staff_id" field.
func StaffIDNEQ ¶
StaffIDNEQ applies the NEQ predicate on the "staff_id" field.
func StaffIDNotIn ¶
StaffIDNotIn applies the NotIn predicate on the "staff_id" field.
func StaffIDNotNil ¶
StaffIDNotNil applies the NotNil predicate on the "staff_id" field.
func StatusCode ¶
StatusCode applies equality check predicate on the "status_code" field. It's identical to StatusCodeEQ.
func StatusCodeEQ ¶
StatusCodeEQ applies the EQ predicate on the "status_code" field.
func StatusCodeIn ¶
StatusCodeIn applies the In predicate on the "status_code" field.
func StatusCodeNEQ ¶
StatusCodeNEQ applies the NEQ predicate on the "status_code" field.
func StatusCodeNotIn ¶
StatusCodeNotIn applies the NotIn predicate on the "status_code" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" 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 Order queries.
func ByAddressID ¶
func ByAddressID(opts ...sql.OrderTermOption) OrderOption
ByAddressID orders the results by the address_id 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 ByCreatorField ¶
func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatorField orders the results by creator field.
func ByCustomerField ¶
func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
ByCustomerField orders the results by customer field.
func ByCustomerID ¶
func ByCustomerID(opts ...sql.OrderTermOption) OrderOption
ByCustomerID orders the results by the customer_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInternalNote ¶
func ByInternalNote(opts ...sql.OrderTermOption) OrderOption
ByInternalNote orders the results by the internal_note field.
func ByIsInternal ¶
func ByIsInternal(opts ...sql.OrderTermOption) OrderOption
ByIsInternal orders the results by the is_internal field.
func ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note field.
func ByOrderAddressField ¶
func ByOrderAddressField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrderAddressField orders the results by order_address field.
func ByOrderStatusField ¶
func ByOrderStatusField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrderStatusField orders the results by order_status field.
func ByParentOrderField ¶
func ByParentOrderField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentOrderField orders the results by parent_order field.
func ByParentOrderID ¶
func ByParentOrderID(opts ...sql.OrderTermOption) OrderOption
ByParentOrderID orders the results by the parent_order_id field.
func ByPriority ¶
func ByPriority(opts ...sql.OrderTermOption) OrderOption
ByPriority orders the results by the priority field.
func ByStaffField ¶
func ByStaffField(field string, opts ...sql.OrderTermOption) OrderOption
ByStaffField orders the results by staff field.
func ByStaffID ¶
func ByStaffID(opts ...sql.OrderTermOption) OrderOption
ByStaffID orders the results by the staff_id field.
func ByStatusCode ¶
func ByStatusCode(opts ...sql.OrderTermOption) OrderOption
ByStatusCode orders the results by the status_code field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.