d-g-town 2 лет назад
Родитель
Сommit
b6826c6890
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      internal/models/notification.go

+ 2 - 2
internal/models/notification.go

@@ -18,8 +18,8 @@ type NotificationConfig struct {
 	LastNotifiedTime time.Time
 	NotifLimit       string
 
-	// Config is a JSONB column that stores arbitrary notification config
-	Config JSONB `json:"config" sql:"type:jsonb" gorm:"type:jsonb;default:'{}'"`
+	// Base64Config is a base64-encoded column that stores notification config in protobuf format
+	Base64Config string `json:"base64_config" gorm:"default:''"`
 }
 
 func (conf *NotificationConfig) ToNotificationConfigType() *types.NotificationConfig {