shipmenthistory

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the shipmenthistory type in the database.
	Label = "shipment_history"
	// 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"
	// FieldShipmentID holds the string denoting the shipment_id field in the database.
	FieldShipmentID = "shipment_id"
	// FieldPersonID holds the string denoting the person_id field in the database.
	FieldPersonID = "person_id"
	// FieldOldStatusCode holds the string denoting the old_status_code field in the database.
	FieldOldStatusCode = "old_status_code"
	// FieldNewStatusCode holds the string denoting the new_status_code field in the database.
	FieldNewStatusCode = "new_status_code"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeShipment holds the string denoting the shipment edge name in mutations.
	EdgeShipment = "shipment"
	// EdgePerson holds the string denoting the person edge name in mutations.
	EdgePerson = "person"
	// EdgeOldStatus holds the string denoting the old_status edge name in mutations.
	EdgeOldStatus = "old_status"
	// EdgeNewStatus holds the string denoting the new_status edge name in mutations.
	EdgeNewStatus = "new_status"
	// Table holds the table name of the shipmenthistory in the database.
	Table = "shipment_history"
	// ShipmentTable is the table that holds the shipment relation/edge.
	ShipmentTable = "shipment_history"
	// ShipmentInverseTable is the table name for the Shipment entity.
	// It exists in this package in order to avoid circular dependency with the "shipment" package.
	ShipmentInverseTable = "shipments"
	// ShipmentColumn is the table column denoting the shipment relation/edge.
	ShipmentColumn = "shipment_id"
	// PersonTable is the table that holds the person relation/edge.
	PersonTable = "shipment_history"
	// PersonInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	PersonInverseTable = "persons"
	// PersonColumn is the table column denoting the person relation/edge.
	PersonColumn = "person_id"
	// OldStatusTable is the table that holds the old_status relation/edge.
	OldStatusTable = "shipment_history"
	// OldStatusInverseTable is the table name for the ShipmentStatusCode entity.
	// It exists in this package in order to avoid circular dependency with the "shipmentstatuscode" package.
	OldStatusInverseTable = "shipment_status_codes"
	// OldStatusColumn is the table column denoting the old_status relation/edge.
	OldStatusColumn = "old_status_code"
	// NewStatusTable is the table that holds the new_status relation/edge.
	NewStatusTable = "shipment_history"
	// NewStatusInverseTable is the table name for the ShipmentStatusCode entity.
	// It exists in this package in order to avoid circular dependency with the "shipmentstatuscode" package.
	NewStatusInverseTable = "shipment_status_codes"
	// NewStatusColumn is the table column denoting the new_status relation/edge.
	NewStatusColumn = "new_status_code"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// ShipmentIDValidator is a validator for the "shipment_id" field. It is called by the builders before save.
	ShipmentIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for shipmenthistory fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ShipmentHistory

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ShipmentHistory

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ShipmentHistory

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ShipmentHistory

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ShipmentHistory

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ShipmentHistory

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ShipmentHistory

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.ShipmentHistory

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.ShipmentHistory

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ShipmentHistory

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.ShipmentHistory

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ShipmentHistory

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.ShipmentHistory

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.ShipmentHistory

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ShipmentHistory

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ShipmentHistory

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.ShipmentHistory

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.ShipmentHistory

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ShipmentHistory

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.ShipmentHistory

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ShipmentHistory

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.ShipmentHistory

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.ShipmentHistory

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasNewStatus

func HasNewStatus() predicate.ShipmentHistory

HasNewStatus applies the HasEdge predicate on the "new_status" edge.

func HasNewStatusWith

func HasNewStatusWith(preds ...predicate.ShipmentStatusCode) predicate.ShipmentHistory

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

func HasOldStatus

func HasOldStatus() predicate.ShipmentHistory

HasOldStatus applies the HasEdge predicate on the "old_status" edge.

func HasOldStatusWith

func HasOldStatusWith(preds ...predicate.ShipmentStatusCode) predicate.ShipmentHistory

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

func HasPerson

func HasPerson() predicate.ShipmentHistory

HasPerson applies the HasEdge predicate on the "person" edge.

func HasPersonWith

func HasPersonWith(preds ...predicate.Person) predicate.ShipmentHistory

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

func HasShipment

func HasShipment() predicate.ShipmentHistory

HasShipment applies the HasEdge predicate on the "shipment" edge.

func HasShipmentWith

func HasShipmentWith(preds ...predicate.Shipment) predicate.ShipmentHistory

HasShipmentWith applies the HasEdge predicate on the "shipment" 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

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

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

IDNotIn applies the NotIn predicate on the ID field.

func NewStatusCode

func NewStatusCode(v int) predicate.ShipmentHistory

NewStatusCode applies equality check predicate on the "new_status_code" field. It's identical to NewStatusCodeEQ.

func NewStatusCodeEQ

func NewStatusCodeEQ(v int) predicate.ShipmentHistory

NewStatusCodeEQ applies the EQ predicate on the "new_status_code" field.

func NewStatusCodeIn

func NewStatusCodeIn(vs ...int) predicate.ShipmentHistory

NewStatusCodeIn applies the In predicate on the "new_status_code" field.

func NewStatusCodeIsNil

func NewStatusCodeIsNil() predicate.ShipmentHistory

NewStatusCodeIsNil applies the IsNil predicate on the "new_status_code" field.

func NewStatusCodeNEQ

func NewStatusCodeNEQ(v int) predicate.ShipmentHistory

NewStatusCodeNEQ applies the NEQ predicate on the "new_status_code" field.

func NewStatusCodeNotIn

func NewStatusCodeNotIn(vs ...int) predicate.ShipmentHistory

NewStatusCodeNotIn applies the NotIn predicate on the "new_status_code" field.

func NewStatusCodeNotNil

func NewStatusCodeNotNil() predicate.ShipmentHistory

NewStatusCodeNotNil applies the NotNil predicate on the "new_status_code" field.

func Not

Not applies the not operator on the given predicate.

func OldStatusCode

func OldStatusCode(v int) predicate.ShipmentHistory

OldStatusCode applies equality check predicate on the "old_status_code" field. It's identical to OldStatusCodeEQ.

func OldStatusCodeEQ

func OldStatusCodeEQ(v int) predicate.ShipmentHistory

OldStatusCodeEQ applies the EQ predicate on the "old_status_code" field.

func OldStatusCodeIn

func OldStatusCodeIn(vs ...int) predicate.ShipmentHistory

OldStatusCodeIn applies the In predicate on the "old_status_code" field.

func OldStatusCodeIsNil

func OldStatusCodeIsNil() predicate.ShipmentHistory

OldStatusCodeIsNil applies the IsNil predicate on the "old_status_code" field.

func OldStatusCodeNEQ

func OldStatusCodeNEQ(v int) predicate.ShipmentHistory

OldStatusCodeNEQ applies the NEQ predicate on the "old_status_code" field.

func OldStatusCodeNotIn

func OldStatusCodeNotIn(vs ...int) predicate.ShipmentHistory

OldStatusCodeNotIn applies the NotIn predicate on the "old_status_code" field.

func OldStatusCodeNotNil

func OldStatusCodeNotNil() predicate.ShipmentHistory

OldStatusCodeNotNil applies the NotNil predicate on the "old_status_code" field.

func Or

Or groups predicates with the OR operator between them.

func PersonID

func PersonID(v uuid.UUID) predicate.ShipmentHistory

PersonID applies equality check predicate on the "person_id" field. It's identical to PersonIDEQ.

func PersonIDEQ

func PersonIDEQ(v uuid.UUID) predicate.ShipmentHistory

PersonIDEQ applies the EQ predicate on the "person_id" field.

func PersonIDIn

func PersonIDIn(vs ...uuid.UUID) predicate.ShipmentHistory

PersonIDIn applies the In predicate on the "person_id" field.

func PersonIDNEQ

func PersonIDNEQ(v uuid.UUID) predicate.ShipmentHistory

PersonIDNEQ applies the NEQ predicate on the "person_id" field.

func PersonIDNotIn

func PersonIDNotIn(vs ...uuid.UUID) predicate.ShipmentHistory

PersonIDNotIn applies the NotIn predicate on the "person_id" field.

func ShipmentID

func ShipmentID(v string) predicate.ShipmentHistory

ShipmentID applies equality check predicate on the "shipment_id" field. It's identical to ShipmentIDEQ.

func ShipmentIDContains

func ShipmentIDContains(v string) predicate.ShipmentHistory

ShipmentIDContains applies the Contains predicate on the "shipment_id" field.

func ShipmentIDContainsFold

func ShipmentIDContainsFold(v string) predicate.ShipmentHistory

ShipmentIDContainsFold applies the ContainsFold predicate on the "shipment_id" field.

func ShipmentIDEQ

func ShipmentIDEQ(v string) predicate.ShipmentHistory

ShipmentIDEQ applies the EQ predicate on the "shipment_id" field.

func ShipmentIDEqualFold

func ShipmentIDEqualFold(v string) predicate.ShipmentHistory

ShipmentIDEqualFold applies the EqualFold predicate on the "shipment_id" field.

func ShipmentIDGT

func ShipmentIDGT(v string) predicate.ShipmentHistory

ShipmentIDGT applies the GT predicate on the "shipment_id" field.

func ShipmentIDGTE

func ShipmentIDGTE(v string) predicate.ShipmentHistory

ShipmentIDGTE applies the GTE predicate on the "shipment_id" field.

func ShipmentIDHasPrefix

func ShipmentIDHasPrefix(v string) predicate.ShipmentHistory

ShipmentIDHasPrefix applies the HasPrefix predicate on the "shipment_id" field.

func ShipmentIDHasSuffix

func ShipmentIDHasSuffix(v string) predicate.ShipmentHistory

ShipmentIDHasSuffix applies the HasSuffix predicate on the "shipment_id" field.

func ShipmentIDIn

func ShipmentIDIn(vs ...string) predicate.ShipmentHistory

ShipmentIDIn applies the In predicate on the "shipment_id" field.

func ShipmentIDLT

func ShipmentIDLT(v string) predicate.ShipmentHistory

ShipmentIDLT applies the LT predicate on the "shipment_id" field.

func ShipmentIDLTE

func ShipmentIDLTE(v string) predicate.ShipmentHistory

ShipmentIDLTE applies the LTE predicate on the "shipment_id" field.

func ShipmentIDNEQ

func ShipmentIDNEQ(v string) predicate.ShipmentHistory

ShipmentIDNEQ applies the NEQ predicate on the "shipment_id" field.

func ShipmentIDNotIn

func ShipmentIDNotIn(vs ...string) predicate.ShipmentHistory

ShipmentIDNotIn applies the NotIn predicate on the "shipment_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ShipmentHistory queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByNewStatusCode

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

ByNewStatusCode orders the results by the new_status_code field.

func ByNewStatusField

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

ByNewStatusField orders the results by new_status field.

func ByOldStatusCode

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

ByOldStatusCode orders the results by the old_status_code field.

func ByOldStatusField

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

ByOldStatusField orders the results by old_status field.

func ByPersonField

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

ByPersonField orders the results by person field.

func ByPersonID

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

ByPersonID orders the results by the person_id field.

func ByShipmentField

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

ByShipmentField orders the results by shipment field.

func ByShipmentID

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

ByShipmentID orders the results by the shipment_id field.

Jump to

Keyboard shortcuts

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