本次迭代覆盖MES与WMS核心业务: 1. 新增接驳台托盘传感器读取与AGV对接能力 2. 完善工单排产、备料流程与权限体系拆分 3. 优化看板接口与前端路由、样式 4. 新增操作日志、库存盘点与角色保护逻辑 5. 修复代理地址、BOM保存等已知问题
131 lines
4.7 KiB
Go
131 lines
4.7 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package dock
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
const (
|
|
// Label holds the string label denoting the dock type in the database.
|
|
Label = "dock"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldDockCode holds the string denoting the dock_code field in the database.
|
|
FieldDockCode = "dock_code"
|
|
// FieldName holds the string denoting the name field in the database.
|
|
FieldName = "name"
|
|
// FieldDockType holds the string denoting the dock_type field in the database.
|
|
FieldDockType = "dock_type"
|
|
// FieldStationNo holds the string denoting the station_no field in the database.
|
|
FieldStationNo = "station_no"
|
|
// FieldHasPallet holds the string denoting the has_pallet field in the database.
|
|
FieldHasPallet = "has_pallet"
|
|
// FieldPalletRef holds the string denoting the pallet_ref field in the database.
|
|
FieldPalletRef = "pallet_ref"
|
|
// FieldStatus holds the string denoting the status field in the database.
|
|
FieldStatus = "status"
|
|
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
|
FieldCreatedAt = "created_at"
|
|
// Table holds the table name of the dock in the database.
|
|
Table = "docks"
|
|
)
|
|
|
|
// Columns holds all SQL columns for dock fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldDockCode,
|
|
FieldName,
|
|
FieldDockType,
|
|
FieldStationNo,
|
|
FieldHasPallet,
|
|
FieldPalletRef,
|
|
FieldStatus,
|
|
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 (
|
|
// DockCodeValidator is a validator for the "dock_code" field. It is called by the builders before save.
|
|
DockCodeValidator func(string) error
|
|
// DefaultName holds the default value on creation for the "name" field.
|
|
DefaultName string
|
|
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
|
NameValidator func(string) error
|
|
// DefaultDockType holds the default value on creation for the "dock_type" field.
|
|
DefaultDockType string
|
|
// DockTypeValidator is a validator for the "dock_type" field. It is called by the builders before save.
|
|
DockTypeValidator func(string) error
|
|
// DefaultStationNo holds the default value on creation for the "station_no" field.
|
|
DefaultStationNo int
|
|
// DefaultHasPallet holds the default value on creation for the "has_pallet" field.
|
|
DefaultHasPallet bool
|
|
// DefaultPalletRef holds the default value on creation for the "pallet_ref" field.
|
|
DefaultPalletRef string
|
|
// PalletRefValidator is a validator for the "pallet_ref" field. It is called by the builders before save.
|
|
PalletRefValidator 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
|
|
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
|
DefaultCreatedAt func() int64
|
|
)
|
|
|
|
// OrderOption defines the ordering options for the Dock 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()
|
|
}
|
|
|
|
// ByDockCode orders the results by the dock_code field.
|
|
func ByDockCode(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldDockCode, opts...).ToFunc()
|
|
}
|
|
|
|
// ByName orders the results by the name field.
|
|
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldName, opts...).ToFunc()
|
|
}
|
|
|
|
// ByDockType orders the results by the dock_type field.
|
|
func ByDockType(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldDockType, opts...).ToFunc()
|
|
}
|
|
|
|
// ByStationNo orders the results by the station_no field.
|
|
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
|
}
|
|
|
|
// ByHasPallet orders the results by the has_pallet field.
|
|
func ByHasPallet(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldHasPallet, opts...).ToFunc()
|
|
}
|
|
|
|
// ByPalletRef orders the results by the pallet_ref field.
|
|
func ByPalletRef(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldPalletRef, opts...).ToFunc()
|
|
}
|
|
|
|
// ByStatus orders the results by the status field.
|
|
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
|
}
|
|
|
|
// ByCreatedAt orders the results by the created_at field.
|
|
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
|
}
|