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>
34 lines
739 B
PHP
34 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);
|
|
}
|
|
}
|