2023-08-10 13:52:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
|
|
|
|
class ScheduledDatabaseBackupExecution extends BaseModel
|
|
|
|
|
{
|
|
|
|
|
protected $guarded = [];
|
|
|
|
|
|
2025-10-07 13:02:23 +00:00
|
|
|
protected function casts(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
's3_uploaded' => 'boolean',
|
|
|
|
|
'local_storage_deleted' => 'boolean',
|
|
|
|
|
's3_storage_deleted' => 'boolean',
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-10 13:52:54 +00:00
|
|
|
public function scheduledDatabaseBackup(): BelongsTo
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(ScheduledDatabaseBackup::class);
|
|
|
|
|
}
|
|
|
|
|
}
|