refactor(mes): 移除工位接驳台绑定逻辑,改为独立dock主数据

- 移除station表的hasDock、dockCode字段及相关代码
- 新增dock表注释及关联逻辑,支持一个工位绑定多个接驳台
- 更新工位相关的seed、logic、schema及前端代码,适配新的接驳台管理方式
- 新增SQL注释固化脚本,完善MES表注释
This commit is contained in:
SunYF
2026-10-08 13:09:53 +08:00
parent 7c7c16ee6d
commit 1f7a42fc38
132 changed files with 2799 additions and 1090 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ type EventLog struct {
}
func (EventLog) Annotations() []schema.Annotation {
return []schema.Annotation{entsql.Annotation{Table: "event_log"}}
return []schema.Annotation{entsql.Annotation{Table: "event_log"}, entsql.WithComments(true), schema.Comment("EventLog 操作日志:必须含 workOrderNo(工单号)、operator(操作人)")}
}
func (EventLog) Fields() []ent.Field {
@@ -43,4 +43,4 @@ func (EventLog) Indexes() []ent.Index {
index.Fields("operator"),
index.Fields("createdAt"),
}
}
}