'boolean', 'local_storage_deleted' => 'boolean', 's3_storage_deleted' => 'boolean', 'pgbackrest_repo_size' => 'integer', ]; } public function scheduledDatabaseBackup(): BelongsTo { return $this->belongsTo(ScheduledDatabaseBackup::class); } public function restores(): HasMany { return $this->hasMany(DatabaseRestore::class, 'scheduled_database_backup_execution_id'); } public function isPgBackrest(): bool { return $this->engine === 'pgbackrest'; } public function isNative(): bool { return $this->engine === 'native' || $this->engine === null; } public function canRestore(): bool { return $this->isPgBackrest() && $this->status === 'success' && ! empty($this->pgbackrest_label); } }