zhangqian
2023-10-09 468ceb8a9bfe9e15e3be470b23809dde83a11f0d
model/procedures.go
@@ -11,12 +11,14 @@
type (
   Procedures struct {
      gorm.Model
      gorm.Model         `json:"-"`
      ID                 int    `gorm:"primarykey"`
      WorkOrderID    string `gorm:"index;type:varchar(191);not null;comment:工单ID" json:"-"`
      OrderID        string `gorm:"index;type:varchar(191);not null;comment:订单ID" json:"-"`
      DeviceID       string `gorm:"index;type:varchar(191);comment:设备ID" json:"deviceId"`
      ProcedureID    string `gorm:"index;type:varchar(191);comment:工序ID" json:"procedureId"`
      Channel        int32  `gorm:"index;comment:通道" json:"channel"` //通道
      ProcessModelNumber string `gorm:"index;comment:工艺模型编号" json:"processModelNumber"` //工艺模型编号
      StartTime      int64  `gorm:"comment:计划开始时间" json:"startTime"`
      EndTime        int64  `gorm:"comment:计划结束时间" json:"endTime"`
      Status         ProcedureStatus