Files
coolify/app/Models/DatabaseBackupS3Replica.php
T
6b07f03107 feat(terminal): interactive console mode for containers (docker attach) (#11538)
Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com>
Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: rosslh <ross@rosshill.ca>
2026-10-14 14:32:02 +02:00

39 lines
834 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* The copy of one database backup execution in one S3 destination.
*/
class DatabaseBackupS3Replica extends Model
{
protected $fillable = [
'execution_id',
's3_storage_id',
's3_uploaded',
's3_storage_deleted',
'message',
];
protected function casts(): array
{
return [
's3_uploaded' => 'boolean',
's3_storage_deleted' => 'boolean',
];
}
public function execution(): BelongsTo
{
return $this->belongsTo(ScheduledDatabaseBackupExecution::class, 'execution_id');
}
public function s3(): BelongsTo
{
return $this->belongsTo(S3Storage::class, 's3_storage_id');
}
}