diff --git a/pkg/model/watcher.go b/pkg/model/watcher.go index e3f7686..17f9371 100644 --- a/pkg/model/watcher.go +++ b/pkg/model/watcher.go @@ -14,8 +14,8 @@ type WatchInfo struct { DeletedAt gorm.DeletedAt `gorm:"index"` UpdateErr bool `json:"updateErr"` //更新出错了 - Uid string `json:"uid" gorm:"index:,unique,not null"` - Pid string `json:"pid" gorm:"index:,not null"` //产品编号 + Uid string `json:"uid" gorm:"index;unique;not null"` + Pid string `json:"pid" gorm:"index;not null"` //产品编号 Name string `json:"name"` Brand string `json:"brand"` Website WebsiteType `json:"website"` //是什么网站