From 3369456ac6de01e8703a9b38537406ec7c550bc5 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 25 八月 2023 11:05:45 +0800 Subject: [PATCH] fix --- model/salesLeads.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/model/salesLeads.go b/model/salesLeads.go index d9c52c6..d11db66 100644 --- a/model/salesLeads.go +++ b/model/salesLeads.go @@ -9,7 +9,8 @@ type ( SalesLeads struct { Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` - Name string `json:"name" gorm:"column:name;unique;type:varchar(255);comment:鍏徃鍚嶇О"` + Name string `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:鍏徃鍚嶇О"` + IsDeleted bool `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:鏄惁鍒犻櫎"` Number string `json:"number" gorm:"column:number;type:varchar(255);comment:閿�鍞嚎绱㈢紪鍙�"` ContactName string `json:"contact_name" gorm:"column:contact_name;type:varchar(255);comment:鑱旂郴浜哄鍚�"` ContactPhone string `json:"contact_phone" gorm:"column:contact_phone;type:varchar(255);comment:鑱旂郴浜虹數璇�"` -- Gitblit v1.8.0