From 001d1f605c0a275a139f5c8fa66e631eb998e3b9 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 02 九月 2023 14:35:10 +0800
Subject: [PATCH] 存储全部设备的工序和订单&代码优化

---
 model/procedures.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/model/procedures.go b/model/procedures.go
index a8eb474..b15cc0c 100644
--- a/model/procedures.go
+++ b/model/procedures.go
@@ -15,7 +15,7 @@
 		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:"type:varchar(191);comment:璁惧ID" json:"deviceId"`
+		DeviceID       string `gorm:"index;type:varchar(191);comment:璁惧ID" json:"deviceId"`
 		StartTime      int64  `gorm:"comment:璁″垝寮�濮嬫椂闂�" json:"startTime"`
 		EndTime        int64  `gorm:"comment:璁″垝缁撴潫鏃堕棿" json:"endTime"`
 		Status         ProcedureStatus

--
Gitblit v1.8.0