warehouseassignment

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 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"
)
View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for warehouseassignment fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

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

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Note

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

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

NoteGT applies the GT predicate on the "note" field.

func NoteGTE

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

NoteLT applies the LT predicate on the "note" field.

func NoteLTE

NoteLTE applies the LTE predicate on the "note" field.

func NoteNEQ

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

Or groups predicates with the OR operator between them.

func OrderID

OrderID applies equality check predicate on the "order_id" field. It's identical to OrderIDEQ.

func OrderIDEQ

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

StaffID applies equality check predicate on the "staff_id" field. It's identical to StaffIDEQ.

func StaffIDEQ

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

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

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

func StatusValidator(s Status) error

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

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

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

type OrderOption func(*sql.Selector)

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.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending  Status = "PENDING"
	StatusAccepted Status = "ACCEPTED"
	StatusRejected Status = "REJECTED"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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