Skip to content

Commit

Permalink
move Lang field to connection model
Browse files Browse the repository at this point in the history
  • Loading branch information
Neur0toxine authored Aug 11, 2022
2 parents aaa0f81 + 6dd1b80 commit f0aff7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion core/db/models/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions core/db/models/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit f0aff7f

Please sign in to comment.