d-g-town 2 ani în urmă
părinte
comite
b6826c6890
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      internal/models/notification.go

+ 2 - 2
internal/models/notification.go

@@ -18,8 +18,8 @@ type NotificationConfig struct {
 	LastNotifiedTime time.Time
 	LastNotifiedTime time.Time
 	NotifLimit       string
 	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 {
 func (conf *NotificationConfig) ToNotificationConfigType() *types.NotificationConfig {