2026-07-15 13:47:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
|
|
|
|
class ScheduledVolumeBackupExecution extends BaseModel
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'uuid',
|
|
|
|
|
'scheduled_volume_backup_id',
|
2026-07-16 12:30:58 +00:00
|
|
|
's3_storage_id',
|
2026-07-15 13:47:57 +00:00
|
|
|
'status',
|
|
|
|
|
'message',
|
|
|
|
|
'size',
|
|
|
|
|
'filename',
|
2026-07-15 13:59:35 +00:00
|
|
|
'stop_container_ids',
|
|
|
|
|
'stop_recovery_pending',
|
2026-07-15 13:47:57 +00:00
|
|
|
's3_cleanup_pending',
|
|
|
|
|
'finished_at',
|
|
|
|
|
'local_storage_deleted',
|
|
|
|
|
's3_storage_deleted',
|
|
|
|
|
's3_uploaded',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected function casts(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'size' => 'integer',
|
|
|
|
|
'finished_at' => 'datetime',
|
2026-07-15 13:59:35 +00:00
|
|
|
'stop_container_ids' => 'array',
|
|
|
|
|
'stop_recovery_pending' => 'boolean',
|
2026-07-15 13:47:57 +00:00
|
|
|
's3_cleanup_pending' => 'boolean',
|
|
|
|
|
'local_storage_deleted' => 'boolean',
|
|
|
|
|
's3_storage_deleted' => 'boolean',
|
|
|
|
|
's3_uploaded' => 'boolean',
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function scheduledVolumeBackup(): BelongsTo
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(ScheduledVolumeBackup::class);
|
|
|
|
|
}
|
2026-07-16 12:30:58 +00:00
|
|
|
|
|
|
|
|
public function s3(): BelongsTo
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(S3Storage::class, 's3_storage_id');
|
|
|
|
|
}
|
2026-07-15 13:47:57 +00:00
|
|
|
}
|