From 02222c936840226baa836f9b84182aac79466a6c Mon Sep 17 00:00:00 2001 From: gongqianjun Date: Thu, 4 Jan 2024 18:11:13 +0800 Subject: [PATCH] feat: update Key field in Channel model --- model/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/channel.go b/model/channel.go index 7e7b42e6..085e3ca4 100644 --- a/model/channel.go +++ b/model/channel.go @@ -8,7 +8,7 @@ import ( type Channel struct { Id int `json:"id"` Type int `json:"type" gorm:"default:0"` - Key string `json:"key" gorm:"not null;index"` + Key string `json:"key" gorm:"type:varchar(1500);not null;index"` Status int `json:"status" gorm:"default:1"` Name string `json:"name" gorm:"index"` Weight *uint `json:"weight" gorm:"default:0"`