Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WarehouseAssignment) predicate.WarehouseAssignment
- func CreatedAt(v time.Time) predicate.WarehouseAssignment
- func CreatedAtEQ(v time.Time) predicate.WarehouseAssignment
- func CreatedAtGT(v time.Time) predicate.WarehouseAssignment
- func CreatedAtGTE(v time.Time) predicate.WarehouseAssignment
- func CreatedAtIn(vs ...time.Time) predicate.WarehouseAssignment
- func CreatedAtLT(v time.Time) predicate.WarehouseAssignment
- func CreatedAtLTE(v time.Time) predicate.WarehouseAssignment
- func CreatedAtNEQ(v time.Time) predicate.WarehouseAssignment
- func CreatedAtNotIn(vs ...time.Time) predicate.WarehouseAssignment
- func HasOrder() predicate.WarehouseAssignment
- func HasOrderWith(preds ...predicate.Order) predicate.WarehouseAssignment
- func HasStaff() predicate.WarehouseAssignment
- func HasStaffWith(preds ...predicate.Person) predicate.WarehouseAssignment
- func HasWorkUnit() predicate.WarehouseAssignment
- func HasWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.WarehouseAssignment
- func ID(id uuid.UUID) predicate.WarehouseAssignment
- func IDEQ(id uuid.UUID) predicate.WarehouseAssignment
- func IDGT(id uuid.UUID) predicate.WarehouseAssignment
- func IDGTE(id uuid.UUID) predicate.WarehouseAssignment
- func IDIn(ids ...uuid.UUID) predicate.WarehouseAssignment
- func IDLT(id uuid.UUID) predicate.WarehouseAssignment
- func IDLTE(id uuid.UUID) predicate.WarehouseAssignment
- func IDNEQ(id uuid.UUID) predicate.WarehouseAssignment
- func IDNotIn(ids ...uuid.UUID) predicate.WarehouseAssignment
- func Not(p predicate.WarehouseAssignment) predicate.WarehouseAssignment
- func Note(v string) predicate.WarehouseAssignment
- func NoteContains(v string) predicate.WarehouseAssignment
- func NoteContainsFold(v string) predicate.WarehouseAssignment
- func NoteEQ(v string) predicate.WarehouseAssignment
- func NoteEqualFold(v string) predicate.WarehouseAssignment
- func NoteGT(v string) predicate.WarehouseAssignment
- func NoteGTE(v string) predicate.WarehouseAssignment
- func NoteHasPrefix(v string) predicate.WarehouseAssignment
- func NoteHasSuffix(v string) predicate.WarehouseAssignment
- func NoteIn(vs ...string) predicate.WarehouseAssignment
- func NoteIsNil() predicate.WarehouseAssignment
- func NoteLT(v string) predicate.WarehouseAssignment
- func NoteLTE(v string) predicate.WarehouseAssignment
- func NoteNEQ(v string) predicate.WarehouseAssignment
- func NoteNotIn(vs ...string) predicate.WarehouseAssignment
- func NoteNotNil() predicate.WarehouseAssignment
- func Or(predicates ...predicate.WarehouseAssignment) predicate.WarehouseAssignment
- func OrderID(v uuid.UUID) predicate.WarehouseAssignment
- func OrderIDEQ(v uuid.UUID) predicate.WarehouseAssignment
- func OrderIDIn(vs ...uuid.UUID) predicate.WarehouseAssignment
- func OrderIDNEQ(v uuid.UUID) predicate.WarehouseAssignment
- func OrderIDNotIn(vs ...uuid.UUID) predicate.WarehouseAssignment
- func StaffID(v uuid.UUID) predicate.WarehouseAssignment
- func StaffIDEQ(v uuid.UUID) predicate.WarehouseAssignment
- func StaffIDIn(vs ...uuid.UUID) predicate.WarehouseAssignment
- func StaffIDIsNil() predicate.WarehouseAssignment
- func StaffIDNEQ(v uuid.UUID) predicate.WarehouseAssignment
- func StaffIDNotIn(vs ...uuid.UUID) predicate.WarehouseAssignment
- func StaffIDNotNil() predicate.WarehouseAssignment
- func StatusEQ(v Status) predicate.WarehouseAssignment
- func StatusIn(vs ...Status) predicate.WarehouseAssignment
- func StatusNEQ(v Status) predicate.WarehouseAssignment
- func StatusNotIn(vs ...Status) predicate.WarehouseAssignment
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtEQ(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtGT(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtGTE(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtIn(vs ...time.Time) predicate.WarehouseAssignment
- func UpdatedAtLT(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtLTE(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtNEQ(v time.Time) predicate.WarehouseAssignment
- func UpdatedAtNotIn(vs ...time.Time) predicate.WarehouseAssignment
- func ValidColumn(column string) bool
- func WorkUnitID(v uuid.UUID) predicate.WarehouseAssignment
- func WorkUnitIDEQ(v uuid.UUID) predicate.WarehouseAssignment
- func WorkUnitIDIn(vs ...uuid.UUID) predicate.WarehouseAssignment
- func WorkUnitIDNEQ(v uuid.UUID) predicate.WarehouseAssignment
- func WorkUnitIDNotIn(vs ...uuid.UUID) predicate.WarehouseAssignment
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByOrderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrderID(opts ...sql.OrderTermOption) OrderOption
- func ByStaffField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStaffID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkUnitID(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the warehouseassignment type in the database. Label = "warehouse_assignment" // 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" // FieldWorkUnitID holds the string denoting the work_unit_id field in the database. FieldWorkUnitID = "work_unit_id" // FieldStaffID holds the string denoting the staff_id field in the database. FieldStaffID = "staff_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // EdgeOrder holds the string denoting the order edge name in mutations. EdgeOrder = "order" // EdgeWorkUnit holds the string denoting the work_unit edge name in mutations. EdgeWorkUnit = "work_unit" // EdgeStaff holds the string denoting the staff edge name in mutations. EdgeStaff = "staff" // Table holds the table name of the warehouseassignment in the database. Table = "warehouse_assignments" // OrderTable is the table that holds the order relation/edge. OrderTable = "warehouse_assignments" // 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" // WorkUnitTable is the table that holds the work_unit relation/edge. WorkUnitTable = "warehouse_assignments" // 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" // StaffTable is the table that holds the staff relation/edge. StaffTable = "warehouse_assignments" // 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" )
const DefaultStatus = StatusPending
StatusPending 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, FieldWorkUnitID, FieldStaffID, FieldStatus, FieldNote, }
Columns holds all SQL columns for warehouseassignment fields.
Functions ¶
func And ¶
func And(predicates ...predicate.WarehouseAssignment) predicate.WarehouseAssignment
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.WarehouseAssignment
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.WarehouseAssignment
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.WarehouseAssignment
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.WarehouseAssignment
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.WarehouseAssignment
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.WarehouseAssignment
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.WarehouseAssignment
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.WarehouseAssignment
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.WarehouseAssignment
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasOrder ¶
func HasOrder() predicate.WarehouseAssignment
HasOrder applies the HasEdge predicate on the "order" edge.
func HasOrderWith ¶
func HasOrderWith(preds ...predicate.Order) predicate.WarehouseAssignment
HasOrderWith applies the HasEdge predicate on the "order" edge with a given conditions (other predicates).
func HasStaff ¶
func HasStaff() predicate.WarehouseAssignment
HasStaff applies the HasEdge predicate on the "staff" edge.
func HasStaffWith ¶
func HasStaffWith(preds ...predicate.Person) predicate.WarehouseAssignment
HasStaffWith applies the HasEdge predicate on the "staff" edge with a given conditions (other predicates).
func HasWorkUnit ¶
func HasWorkUnit() predicate.WarehouseAssignment
HasWorkUnit applies the HasEdge predicate on the "work_unit" edge.
func HasWorkUnitWith ¶
func HasWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.WarehouseAssignment
HasWorkUnitWith applies the HasEdge predicate on the "work_unit" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.WarehouseAssignment
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.WarehouseAssignment
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.WarehouseAssignment
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.WarehouseAssignment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.WarehouseAssignment
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.WarehouseAssignment
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.WarehouseAssignment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.WarehouseAssignment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.WarehouseAssignment
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.WarehouseAssignment) predicate.WarehouseAssignment
Not applies the not operator on the given predicate.
func Note ¶
func Note(v string) predicate.WarehouseAssignment
Note applies equality check predicate on the "note" field. It's identical to NoteEQ.
func NoteContains ¶
func NoteContains(v string) predicate.WarehouseAssignment
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
func NoteContainsFold(v string) predicate.WarehouseAssignment
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEQ ¶
func NoteEQ(v string) predicate.WarehouseAssignment
NoteEQ applies the EQ predicate on the "note" field.
func NoteEqualFold ¶
func NoteEqualFold(v string) predicate.WarehouseAssignment
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteGT ¶
func NoteGT(v string) predicate.WarehouseAssignment
NoteGT applies the GT predicate on the "note" field.
func NoteGTE ¶
func NoteGTE(v string) predicate.WarehouseAssignment
NoteGTE applies the GTE predicate on the "note" field.
func NoteHasPrefix ¶
func NoteHasPrefix(v string) predicate.WarehouseAssignment
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
func NoteHasSuffix(v string) predicate.WarehouseAssignment
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteIn ¶
func NoteIn(vs ...string) predicate.WarehouseAssignment
NoteIn applies the In predicate on the "note" field.
func NoteIsNil ¶
func NoteIsNil() predicate.WarehouseAssignment
NoteIsNil applies the IsNil predicate on the "note" field.
func NoteLT ¶
func NoteLT(v string) predicate.WarehouseAssignment
NoteLT applies the LT predicate on the "note" field.
func NoteLTE ¶
func NoteLTE(v string) predicate.WarehouseAssignment
NoteLTE applies the LTE predicate on the "note" field.
func NoteNEQ ¶
func NoteNEQ(v string) predicate.WarehouseAssignment
NoteNEQ applies the NEQ predicate on the "note" field.
func NoteNotIn ¶
func NoteNotIn(vs ...string) predicate.WarehouseAssignment
NoteNotIn applies the NotIn predicate on the "note" field.
func NoteNotNil ¶
func NoteNotNil() predicate.WarehouseAssignment
NoteNotNil applies the NotNil predicate on the "note" field.
func Or ¶
func Or(predicates ...predicate.WarehouseAssignment) predicate.WarehouseAssignment
Or groups predicates with the OR operator between them.
func OrderID ¶
func OrderID(v uuid.UUID) predicate.WarehouseAssignment
OrderID applies equality check predicate on the "order_id" field. It's identical to OrderIDEQ.
func OrderIDEQ ¶
func OrderIDEQ(v uuid.UUID) predicate.WarehouseAssignment
OrderIDEQ applies the EQ predicate on the "order_id" field.
func OrderIDIn ¶
func OrderIDIn(vs ...uuid.UUID) predicate.WarehouseAssignment
OrderIDIn applies the In predicate on the "order_id" field.
func OrderIDNEQ ¶
func OrderIDNEQ(v uuid.UUID) predicate.WarehouseAssignment
OrderIDNEQ applies the NEQ predicate on the "order_id" field.
func OrderIDNotIn ¶
func OrderIDNotIn(vs ...uuid.UUID) predicate.WarehouseAssignment
OrderIDNotIn applies the NotIn predicate on the "order_id" field.
func StaffID ¶
func StaffID(v uuid.UUID) predicate.WarehouseAssignment
StaffID applies equality check predicate on the "staff_id" field. It's identical to StaffIDEQ.
func StaffIDEQ ¶
func StaffIDEQ(v uuid.UUID) predicate.WarehouseAssignment
StaffIDEQ applies the EQ predicate on the "staff_id" field.
func StaffIDIn ¶
func StaffIDIn(vs ...uuid.UUID) predicate.WarehouseAssignment
StaffIDIn applies the In predicate on the "staff_id" field.
func StaffIDIsNil ¶
func StaffIDIsNil() predicate.WarehouseAssignment
StaffIDIsNil applies the IsNil predicate on the "staff_id" field.
func StaffIDNEQ ¶
func StaffIDNEQ(v uuid.UUID) predicate.WarehouseAssignment
StaffIDNEQ applies the NEQ predicate on the "staff_id" field.
func StaffIDNotIn ¶
func StaffIDNotIn(vs ...uuid.UUID) predicate.WarehouseAssignment
StaffIDNotIn applies the NotIn predicate on the "staff_id" field.
func StaffIDNotNil ¶
func StaffIDNotNil() predicate.WarehouseAssignment
StaffIDNotNil applies the NotNil predicate on the "staff_id" field.
func StatusEQ ¶
func StatusEQ(v Status) predicate.WarehouseAssignment
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.WarehouseAssignment
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.WarehouseAssignment
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.WarehouseAssignment
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 ¶
func UpdatedAt(v time.Time) predicate.WarehouseAssignment
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.WarehouseAssignment
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.WarehouseAssignment
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.WarehouseAssignment
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.WarehouseAssignment
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.WarehouseAssignment
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.WarehouseAssignment
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.WarehouseAssignment
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.WarehouseAssignment
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).
func WorkUnitID ¶
func WorkUnitID(v uuid.UUID) predicate.WarehouseAssignment
WorkUnitID applies equality check predicate on the "work_unit_id" field. It's identical to WorkUnitIDEQ.
func WorkUnitIDEQ ¶
func WorkUnitIDEQ(v uuid.UUID) predicate.WarehouseAssignment
WorkUnitIDEQ applies the EQ predicate on the "work_unit_id" field.
func WorkUnitIDIn ¶
func WorkUnitIDIn(vs ...uuid.UUID) predicate.WarehouseAssignment
WorkUnitIDIn applies the In predicate on the "work_unit_id" field.
func WorkUnitIDNEQ ¶
func WorkUnitIDNEQ(v uuid.UUID) predicate.WarehouseAssignment
WorkUnitIDNEQ applies the NEQ predicate on the "work_unit_id" field.
func WorkUnitIDNotIn ¶
func WorkUnitIDNotIn(vs ...uuid.UUID) predicate.WarehouseAssignment
WorkUnitIDNotIn applies the NotIn predicate on the "work_unit_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the WarehouseAssignment 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 ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note 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 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 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.
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.