From 28de9a48799dfabb9a664f846a41c9fa19e18972 Mon Sep 17 00:00:00 2001 From: Tyschitskaya Maria Date: Wed, 16 Nov 2022 14:07:33 +0300 Subject: [PATCH 1/2] add public_url field to connection model --- core/db/models/connection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/db/models/connection.go b/core/db/models/connection.go index 204111d..0f68ed3 100644 --- a/core/db/models/connection.go +++ b/core/db/models/connection.go @@ -15,4 +15,5 @@ type Connection struct { 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"` + PublicURL string `gorm:"column:public_url; type:varchar(255);" json:"publicURL,omitempty" binding:"max=255"` } From 680fa2cdd445648a92b4a9a15504b6b932b6ad37 Mon Sep 17 00:00:00 2001 From: Tyschitskaya Maria Date: Wed, 16 Nov 2022 14:24:29 +0300 Subject: [PATCH 2/2] fix json for public_url field in connection model --- core/db/models/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db/models/connection.go b/core/db/models/connection.go index 0f68ed3..de66f4a 100644 --- a/core/db/models/connection.go +++ b/core/db/models/connection.go @@ -15,5 +15,5 @@ type Connection struct { 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"` - PublicURL string `gorm:"column:public_url; type:varchar(255);" json:"publicURL,omitempty" binding:"max=255"` + PublicURL string `gorm:"column:public_url; type:varchar(255);" json:"publicUrl,omitempty" binding:"max=255"` }