add public_url field to connection model

This commit is contained in:
Pavel 2022-11-16 14:31:36 +03:00 committed by GitHub
commit 7be043482e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,4 +15,5 @@ type Connection struct {
ID int `gorm:"primary_key" json:"id"` ID int `gorm:"primary_key" json:"id"`
Active bool `json:"active,omitempty"` Active bool `json:"active,omitempty"`
Lang string `gorm:"column:lang; type:varchar(2)" json:"lang,omitempty" binding:"max=2"` 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"`
} }