2
0
d-g-town 2 жил өмнө
parent
commit
b6826c6890

+ 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 {