refactor(mes): 移除工位接驳台绑定逻辑,改为独立dock主数据
- 移除station表的hasDock、dockCode字段及相关代码 - 新增dock表注释及关联逻辑,支持一个工位绑定多个接驳台 - 更新工位相关的seed、logic、schema及前端代码,适配新的接驳台管理方式 - 新增SQL注释固化脚本,完善MES表注释
This commit is contained in:
@@ -17,7 +17,7 @@ type WorkpieceProcess struct {
|
||||
}
|
||||
|
||||
func (WorkpieceProcess) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{entsql.Annotation{Table: "workpiece_process"}}
|
||||
return []schema.Annotation{entsql.Annotation{Table: "workpiece_process"}, entsql.WithComments(true), schema.Comment("WorkpieceProcess 工件-工艺实绩(某工件在某工位完成某道工艺的一次记录,构成工艺时间线)。")}
|
||||
}
|
||||
|
||||
func (WorkpieceProcess) Fields() []ent.Field {
|
||||
|
||||
Reference in New Issue
Block a user