From 6dd1b801a02017552d826df3f2949477d86b5505 Mon Sep 17 00:00:00 2001 From: Maria Tyschitskaya Date: Wed, 10 Aug 2022 14:32:35 +0300 Subject: [PATCH] lang field in connection --- core/db/models/account.go | 1 - core/db/models/connection.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db/models/account.go b/core/db/models/account.go index c03f244..95b5750 100644 --- a/core/db/models/account.go +++ b/core/db/models/account.go @@ -8,7 +8,6 @@ type Account struct { UpdatedAt time.Time ChannelSettingsHash string `gorm:"column:channel_settings_hash; type:varchar(70)" binding:"max=70"` 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"` Channel uint64 `gorm:"column:channel; not null; unique" json:"channel,omitempty"` ID int `gorm:"primary_key" json:"id"` ConnectionID int `gorm:"column:connection_id" json:"connectionId,omitempty"` diff --git a/core/db/models/connection.go b/core/db/models/connection.go index ec817e8..204111d 100644 --- a/core/db/models/connection.go +++ b/core/db/models/connection.go @@ -14,4 +14,5 @@ type Connection struct { Accounts []Account `gorm:"foreignkey:ConnectionID" json:"accounts"` ID int `gorm:"primary_key" json:"id"` Active bool `json:"active,omitempty"` + Lang string `gorm:"column:lang; type:varchar(2)" json:"lang,omitempty" binding:"max=2"` }