From dbfac6a56d77110d41cb82a24b978f7bb29c645c Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Mon, 20 Sep 2021 14:06:46 +0300 Subject: [PATCH] update Account.Name size limit --- core/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.go b/core/models.go index 6be3326..150a927 100644 --- a/core/models.go +++ b/core/models.go @@ -22,7 +22,7 @@ type Account struct { ConnectionID int `gorm:"column:connection_id" json:"connectionId,omitempty"` Channel uint64 `gorm:"column:channel; not null; unique" json:"channel,omitempty"` ChannelSettingsHash string `gorm:"column:channel_settings_hash; type:varchar(70)" binding:"max=70"` - Name string `gorm:"column:name; type:varchar(40)" json:"name,omitempty" binding:"max=40"` + Name string `gorm:"column:name; type:varchar(100)" json:"name,omitempty" binding:"max=100"` Lang string `gorm:"column:lang; type:varchar(2)" json:"lang,omitempty" binding:"max=2"` CreatedAt time.Time UpdatedAt time.Time