Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Shipment) predicate.Shipment
- func CreatedAt(v time.Time) predicate.Shipment
- func CreatedAtEQ(v time.Time) predicate.Shipment
- func CreatedAtGT(v time.Time) predicate.Shipment
- func CreatedAtGTE(v time.Time) predicate.Shipment
- func CreatedAtIn(vs ...time.Time) predicate.Shipment
- func CreatedAtLT(v time.Time) predicate.Shipment
- func CreatedAtLTE(v time.Time) predicate.Shipment
- func CreatedAtNEQ(v time.Time) predicate.Shipment
- func CreatedAtNotIn(vs ...time.Time) predicate.Shipment
- func HasInvoice() predicate.Shipment
- func HasInvoiceWith(preds ...predicate.Invoice) predicate.Shipment
- func HasOrder() predicate.Shipment
- func HasOrderWith(preds ...predicate.Order) predicate.Shipment
- func HasShipmentStatus() predicate.Shipment
- func HasShipmentStatusWith(preds ...predicate.ShipmentStatusCode) predicate.Shipment
- func HasStaff() predicate.Shipment
- func HasStaffWith(preds ...predicate.Person) predicate.Shipment
- func ID(id string) predicate.Shipment
- func IDContainsFold(id string) predicate.Shipment
- func IDEQ(id string) predicate.Shipment
- func IDEqualFold(id string) predicate.Shipment
- func IDGT(id string) predicate.Shipment
- func IDGTE(id string) predicate.Shipment
- func IDIn(ids ...string) predicate.Shipment
- func IDLT(id string) predicate.Shipment
- func IDLTE(id string) predicate.Shipment
- func IDNEQ(id string) predicate.Shipment
- func IDNotIn(ids ...string) predicate.Shipment
- func InvoiceID(v uuid.UUID) predicate.Shipment
- func InvoiceIDEQ(v uuid.UUID) predicate.Shipment
- func InvoiceIDIn(vs ...uuid.UUID) predicate.Shipment
- func InvoiceIDNEQ(v uuid.UUID) predicate.Shipment
- func InvoiceIDNotIn(vs ...uuid.UUID) predicate.Shipment
- func Not(p predicate.Shipment) predicate.Shipment
- func Note(v string) predicate.Shipment
- func NoteContains(v string) predicate.Shipment
- func NoteContainsFold(v string) predicate.Shipment
- func NoteEQ(v string) predicate.Shipment
- func NoteEqualFold(v string) predicate.Shipment
- func NoteGT(v string) predicate.Shipment
- func NoteGTE(v string) predicate.Shipment
- func NoteHasPrefix(v string) predicate.Shipment
- func NoteHasSuffix(v string) predicate.Shipment
- func NoteIn(vs ...string) predicate.Shipment
- func NoteIsNil() predicate.Shipment
- func NoteLT(v string) predicate.Shipment
- func NoteLTE(v string) predicate.Shipment
- func NoteNEQ(v string) predicate.Shipment
- func NoteNotIn(vs ...string) predicate.Shipment
- func NoteNotNil() predicate.Shipment
- func Or(predicates ...predicate.Shipment) predicate.Shipment
- func OrderID(v uuid.UUID) predicate.Shipment
- func OrderIDEQ(v uuid.UUID) predicate.Shipment
- func OrderIDIn(vs ...uuid.UUID) predicate.Shipment
- func OrderIDNEQ(v uuid.UUID) predicate.Shipment
- func OrderIDNotIn(vs ...uuid.UUID) predicate.Shipment
- func ShipmentDate(v time.Time) predicate.Shipment
- func ShipmentDateEQ(v time.Time) predicate.Shipment
- func ShipmentDateGT(v time.Time) predicate.Shipment
- func ShipmentDateGTE(v time.Time) predicate.Shipment
- func ShipmentDateIn(vs ...time.Time) predicate.Shipment
- func ShipmentDateLT(v time.Time) predicate.Shipment
- func ShipmentDateLTE(v time.Time) predicate.Shipment
- func ShipmentDateNEQ(v time.Time) predicate.Shipment
- func ShipmentDateNotIn(vs ...time.Time) predicate.Shipment
- func StaffID(v uuid.UUID) predicate.Shipment
- func StaffIDEQ(v uuid.UUID) predicate.Shipment
- func StaffIDIn(vs ...uuid.UUID) predicate.Shipment
- func StaffIDNEQ(v uuid.UUID) predicate.Shipment
- func StaffIDNotIn(vs ...uuid.UUID) predicate.Shipment
- func StatusCode(v int) predicate.Shipment
- func StatusCodeEQ(v int) predicate.Shipment
- func StatusCodeIn(vs ...int) predicate.Shipment
- func StatusCodeNEQ(v int) predicate.Shipment
- func StatusCodeNotIn(vs ...int) predicate.Shipment
- func UpdatedAt(v time.Time) predicate.Shipment
- func UpdatedAtEQ(v time.Time) predicate.Shipment
- func UpdatedAtGT(v time.Time) predicate.Shipment
- func UpdatedAtGTE(v time.Time) predicate.Shipment
- func UpdatedAtIn(vs ...time.Time) predicate.Shipment
- func UpdatedAtLT(v time.Time) predicate.Shipment
- func UpdatedAtLTE(v time.Time) predicate.Shipment
- func UpdatedAtNEQ(v time.Time) predicate.Shipment
- func UpdatedAtNotIn(vs ...time.Time) predicate.Shipment
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceID(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 ByShipmentDate(opts ...sql.OrderTermOption) OrderOption
- func ByShipmentStatusField(field string, 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 ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the shipment type in the database. Label = "shipment" // 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" // FieldInvoiceID holds the string denoting the invoice_id field in the database. FieldInvoiceID = "invoice_id" // FieldStaffID holds the string denoting the staff_id field in the database. FieldStaffID = "staff_id" // FieldShipmentDate holds the string denoting the shipment_date field in the database. FieldShipmentDate = "shipment_date" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldStatusCode holds the string denoting the status_code field in the database. FieldStatusCode = "status_code" // EdgeOrder holds the string denoting the order edge name in mutations. EdgeOrder = "order" // EdgeInvoice holds the string denoting the invoice edge name in mutations. EdgeInvoice = "invoice" // EdgeStaff holds the string denoting the staff edge name in mutations. EdgeStaff = "staff" // EdgeShipmentStatus holds the string denoting the shipment_status edge name in mutations. EdgeShipmentStatus = "shipment_status" // Table holds the table name of the shipment in the database. Table = "shipments" // OrderTable is the table that holds the order relation/edge. OrderTable = "shipments" // 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" // InvoiceTable is the table that holds the invoice relation/edge. InvoiceTable = "shipments" // InvoiceInverseTable is the table name for the Invoice entity. // It exists in this package in order to avoid circular dependency with the "invoice" package. InvoiceInverseTable = "invoices" // InvoiceColumn is the table column denoting the invoice relation/edge. InvoiceColumn = "invoice_id" // StaffTable is the table that holds the staff relation/edge. StaffTable = "shipments" // 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" // ShipmentStatusTable is the table that holds the shipment_status relation/edge. ShipmentStatusTable = "shipments" // ShipmentStatusInverseTable is the table name for the ShipmentStatusCode entity. // It exists in this package in order to avoid circular dependency with the "shipmentstatuscode" package. ShipmentStatusInverseTable = "shipment_status_codes" // ShipmentStatusColumn is the table column denoting the shipment_status relation/edge. ShipmentStatusColumn = "status_code" )
Variables ¶
var ( Hooks [1]ent.Hook // 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 // DefaultStatusCode holds the default value on creation for the "status_code" field. DefaultStatusCode int // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/thaiha1607/foursquare_server/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldOrderID, FieldInvoiceID, FieldStaffID, FieldShipmentDate, FieldNote, FieldStatusCode, }
Columns holds all SQL columns for shipment 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 HasInvoice ¶
HasInvoice applies the HasEdge predicate on the "invoice" edge.
func HasInvoiceWith ¶
HasInvoiceWith applies the HasEdge predicate on the "invoice" 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 HasShipmentStatus ¶
HasShipmentStatus applies the HasEdge predicate on the "shipment_status" edge.
func HasShipmentStatusWith ¶
func HasShipmentStatusWith(preds ...predicate.ShipmentStatusCode) predicate.Shipment
HasShipmentStatusWith applies the HasEdge predicate on the "shipment_status" 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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func InvoiceID ¶
InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.
func InvoiceIDEQ ¶
InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.
func InvoiceIDIn ¶
InvoiceIDIn applies the In predicate on the "invoice_id" field.
func InvoiceIDNEQ ¶
InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.
func InvoiceIDNotIn ¶
InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" 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 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 ShipmentDate ¶
ShipmentDate applies equality check predicate on the "shipment_date" field. It's identical to ShipmentDateEQ.
func ShipmentDateEQ ¶
ShipmentDateEQ applies the EQ predicate on the "shipment_date" field.
func ShipmentDateGT ¶
ShipmentDateGT applies the GT predicate on the "shipment_date" field.
func ShipmentDateGTE ¶
ShipmentDateGTE applies the GTE predicate on the "shipment_date" field.
func ShipmentDateIn ¶
ShipmentDateIn applies the In predicate on the "shipment_date" field.
func ShipmentDateLT ¶
ShipmentDateLT applies the LT predicate on the "shipment_date" field.
func ShipmentDateLTE ¶
ShipmentDateLTE applies the LTE predicate on the "shipment_date" field.
func ShipmentDateNEQ ¶
ShipmentDateNEQ applies the NEQ predicate on the "shipment_date" field.
func ShipmentDateNotIn ¶
ShipmentDateNotIn applies the NotIn predicate on the "shipment_date" field.
func StaffID ¶
StaffID applies equality check predicate on the "staff_id" field. It's identical to StaffIDEQ.
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 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 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 Shipment 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 ByInvoiceField ¶
func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
ByInvoiceField orders the results by invoice field.
func ByInvoiceID ¶
func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceID orders the results by the invoice_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 ByShipmentDate ¶
func ByShipmentDate(opts ...sql.OrderTermOption) OrderOption
ByShipmentDate orders the results by the shipment_date field.
func ByShipmentStatusField ¶
func ByShipmentStatusField(field string, opts ...sql.OrderTermOption) OrderOption
ByShipmentStatusField orders the results by shipment_status 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 ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.