mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-24 14:16:04 +03:00
lang field in connection
This commit is contained in:
parent
aaa0f81294
commit
6dd1b801a0
@ -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"`
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user