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
+1 -11
View File
@@ -1187,18 +1187,8 @@ func init() {
stationDescIsBuiltin := stationFields[6].Descriptor()
// station.DefaultIsBuiltin holds the default value on creation for the isBuiltin field.
station.DefaultIsBuiltin = stationDescIsBuiltin.Default.(bool)
// stationDescHasDock is the schema descriptor for hasDock field.
stationDescHasDock := stationFields[7].Descriptor()
// station.DefaultHasDock holds the default value on creation for the hasDock field.
station.DefaultHasDock = stationDescHasDock.Default.(bool)
// stationDescDockCode is the schema descriptor for dockCode field.
stationDescDockCode := stationFields[8].Descriptor()
// station.DefaultDockCode holds the default value on creation for the dockCode field.
station.DefaultDockCode = stationDescDockCode.Default.(string)
// station.DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
station.DockCodeValidator = stationDescDockCode.Validators[0].(func(string) error)
// stationDescCreatedAt is the schema descriptor for createdAt field.
stationDescCreatedAt := stationFields[10].Descriptor()
stationDescCreatedAt := stationFields[8].Descriptor()
// station.DefaultCreatedAt holds the default value on creation for the createdAt field.
station.DefaultCreatedAt = stationDescCreatedAt.Default.(func() time.Time)
// stationDescID is the schema descriptor for id field.