refactor(mes): 移除工位接驳台绑定逻辑,改为独立dock主数据
- 移除station表的hasDock、dockCode字段及相关代码 - 新增dock表注释及关联逻辑,支持一个工位绑定多个接驳台 - 更新工位相关的seed、logic、schema及前端代码,适配新的接驳台管理方式 - 新增SQL注释固化脚本,完善MES表注释
This commit is contained in:
@@ -2,6 +2,8 @@ package schema
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
"entgo.io/ent/schema/index"
|
||||
)
|
||||
@@ -12,6 +14,9 @@ type AgvTask struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (AgvTask) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{entsql.Table("agv_tasks"), entsql.WithComments(true), schema.Comment("AgvTask AGV 搬运任务记录:仓管下发后落库,用于状态跟踪/追溯。")}
|
||||
}
|
||||
func (AgvTask) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.String("task_no").Unique().MaxLen(64).Comment("我方任务号(内部)"),
|
||||
@@ -38,4 +43,4 @@ func (AgvTask) Indexes() []ent.Index {
|
||||
index.Fields("status"),
|
||||
index.Fields("hik_task_code"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user