refactor(mes): 移除工位接驳台绑定逻辑,改为独立dock主数据
- 移除station表的hasDock、dockCode字段及相关代码 - 新增dock表注释及关联逻辑,支持一个工位绑定多个接驳台 - 更新工位相关的seed、logic、schema及前端代码,适配新的接驳台管理方式 - 新增SQL注释固化脚本,完善MES表注释
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user