mirror of
https://github.com/tiennm99/coolify.git
synced 2026-06-21 05:43:05 +00:00
9f46586d4a
Replace $guarded usage with explicit $fillable arrays across all models. Sync fillable definitions with current database schema and add tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
739 B
PHP
35 lines
739 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ScheduledDatabaseBackupExecution extends BaseModel
|
|
{
|
|
protected $fillable = [
|
|
'status',
|
|
'message',
|
|
'size',
|
|
'filename',
|
|
'database_name',
|
|
'finished_at',
|
|
'local_storage_deleted',
|
|
's3_storage_deleted',
|
|
's3_uploaded',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
's3_uploaded' => 'boolean',
|
|
'local_storage_deleted' => 'boolean',
|
|
's3_storage_deleted' => 'boolean',
|
|
];
|
|
}
|
|
|
|
public function scheduledDatabaseBackup(): BelongsTo
|
|
{
|
|
return $this->belongsTo(ScheduledDatabaseBackup::class);
|
|
}
|
|
}
|