Files
bj_power/bj_power_wms/ent/deliveryorder/deliveryorder.go
T

161 lines
6.1 KiB
Go
Raw Normal View History

2026-11-05 19:18:18 +08:00
// Code generated by ent, DO NOT EDIT.
package deliveryorder
import (
"time"
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the deliveryorder type in the database.
Label = "delivery_order"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldDeliveryNo holds the string denoting the deliveryno field in the database.
FieldDeliveryNo = "delivery_no"
// FieldPackageNo holds the string denoting the packageno field in the database.
FieldPackageNo = "package_no"
// FieldStationNo holds the string denoting the stationno field in the database.
FieldStationNo = "station_no"
// FieldTargetDock holds the string denoting the targetdock field in the database.
FieldTargetDock = "target_dock"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldOperator holds the string denoting the operator field in the database.
FieldOperator = "operator"
// FieldRemark holds the string denoting the remark field in the database.
FieldRemark = "remark"
// FieldAgvTaskNo holds the string denoting the agvtaskno field in the database.
FieldAgvTaskNo = "agv_task_no"
// FieldCreatedAt holds the string denoting the createdat field in the database.
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
FieldUpdatedAt = "updated_at"
// Table holds the table name of the deliveryorder in the database.
Table = "delivery_order"
)
// Columns holds all SQL columns for deliveryorder fields.
var Columns = []string{
FieldID,
FieldDeliveryNo,
FieldPackageNo,
FieldStationNo,
FieldTargetDock,
FieldStatus,
FieldOperator,
FieldRemark,
FieldAgvTaskNo,
FieldCreatedAt,
FieldUpdatedAt,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// DeliveryNoValidator is a validator for the "deliveryNo" field. It is called by the builders before save.
DeliveryNoValidator func(string) error
// DefaultPackageNo holds the default value on creation for the "packageNo" field.
DefaultPackageNo string
// PackageNoValidator is a validator for the "packageNo" field. It is called by the builders before save.
PackageNoValidator func(string) error
// DefaultStationNo holds the default value on creation for the "stationNo" field.
DefaultStationNo int
// DefaultTargetDock holds the default value on creation for the "targetDock" field.
DefaultTargetDock string
// TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
TargetDockValidator func(string) error
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus string
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
StatusValidator func(string) error
// DefaultOperator holds the default value on creation for the "operator" field.
DefaultOperator string
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
OperatorValidator func(string) error
// DefaultRemark holds the default value on creation for the "remark" field.
DefaultRemark string
// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
RemarkValidator func(string) error
// DefaultAgvTaskNo holds the default value on creation for the "agvTaskNo" field.
DefaultAgvTaskNo string
// AgvTaskNoValidator is a validator for the "agvTaskNo" field. It is called by the builders before save.
AgvTaskNoValidator func(string) error
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
DefaultCreatedAt func() time.Time
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
DefaultUpdatedAt func() time.Time
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
UpdateDefaultUpdatedAt func() time.Time
// IDValidator is a validator for the "id" field. It is called by the builders before save.
IDValidator func(int) error
)
// OrderOption defines the ordering options for the DeliveryOrder queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByDeliveryNo orders the results by the deliveryNo field.
func ByDeliveryNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDeliveryNo, opts...).ToFunc()
}
// ByPackageNo orders the results by the packageNo field.
func ByPackageNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPackageNo, opts...).ToFunc()
}
// ByStationNo orders the results by the stationNo field.
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
}
// ByTargetDock orders the results by the targetDock field.
func ByTargetDock(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTargetDock, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByOperator orders the results by the operator field.
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldOperator, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, opts...).ToFunc()
}
// ByAgvTaskNo orders the results by the agvTaskNo field.
func ByAgvTaskNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAgvTaskNo, opts...).ToFunc()
}
// ByCreatedAt orders the results by the createdAt field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updatedAt field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}