初始化
This commit is contained in:
@@ -1,162 +0,0 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package outboundorder
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the outboundorder type in the database.
|
||||
Label = "outbound_order"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldOutboundNo holds the string denoting the outbound_no field in the database.
|
||||
FieldOutboundNo = "outbound_no"
|
||||
// FieldOutboundType holds the string denoting the outbound_type field in the database.
|
||||
FieldOutboundType = "outbound_type"
|
||||
// FieldOrderNo holds the string denoting the order_no field in the database.
|
||||
FieldOrderNo = "order_no"
|
||||
// FieldMaterialCode holds the string denoting the material_code field in the database.
|
||||
FieldMaterialCode = "material_code"
|
||||
// FieldMaterialName holds the string denoting the material_name field in the database.
|
||||
FieldMaterialName = "material_name"
|
||||
// FieldManageMode holds the string denoting the manage_mode field in the database.
|
||||
FieldManageMode = "manage_mode"
|
||||
// FieldBatchNo holds the string denoting the batch_no field in the database.
|
||||
FieldBatchNo = "batch_no"
|
||||
// FieldZoneCode holds the string denoting the zone_code field in the database.
|
||||
FieldZoneCode = "zone_code"
|
||||
// FieldQuantity holds the string denoting the quantity field in the database.
|
||||
FieldQuantity = "quantity"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldReviewer holds the string denoting the reviewer field in the database.
|
||||
FieldReviewer = "reviewer"
|
||||
// FieldTargetDock holds the string denoting the target_dock field in the database.
|
||||
FieldTargetDock = "target_dock"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the outboundorder in the database.
|
||||
Table = "outbound_orders"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for outboundorder fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldOutboundNo,
|
||||
FieldOutboundType,
|
||||
FieldOrderNo,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldManageMode,
|
||||
FieldBatchNo,
|
||||
FieldZoneCode,
|
||||
FieldQuantity,
|
||||
FieldOperator,
|
||||
FieldReviewer,
|
||||
FieldTargetDock,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// DefaultOutboundType holds the default value on creation for the "outbound_type" field.
|
||||
DefaultOutboundType string
|
||||
// DefaultManageMode holds the default value on creation for the "manage_mode" field.
|
||||
DefaultManageMode int
|
||||
// DefaultQuantity holds the default value on creation for the "quantity" field.
|
||||
DefaultQuantity int
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the OutboundOrder 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()
|
||||
}
|
||||
|
||||
// ByOutboundNo orders the results by the outbound_no field.
|
||||
func ByOutboundNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOutboundNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOutboundType orders the results by the outbound_type field.
|
||||
func ByOutboundType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOutboundType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOrderNo orders the results by the order_no field.
|
||||
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the material_code field.
|
||||
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialName orders the results by the material_name field.
|
||||
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByManageMode orders the results by the manage_mode field.
|
||||
func ByManageMode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldManageMode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBatchNo orders the results by the batch_no field.
|
||||
func ByBatchNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBatchNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByZoneCode orders the results by the zone_code field.
|
||||
func ByZoneCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQuantity orders the results by the quantity field.
|
||||
func ByQuantity(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQuantity, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReviewer orders the results by the reviewer field.
|
||||
func ByReviewer(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReviewer, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTargetDock orders the results by the target_dock field.
|
||||
func ByTargetDock(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTargetDock, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user