* Database health checks * Cache health checks * Storage write and disk-space checks * Failed queue job monitoring * Production environment diagnostics * Persisted health-check history * Queue retry controls * Scheduler execution controls * Cache and optimisation clearing * Backup creation and retention * Backup deletion * SQLite database backup support * Backup manifests and module metadata * Artisan health and backup commands * Administration navigation * Enterprise permissions * Module registration and tests
15 lines
503 B
PHP
15 lines
503 B
PHP
<?php
|
|
namespace Modules\Enterprise\Models;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
final class Backup extends Model
|
|
{
|
|
protected $table = 'enterprise_backups';
|
|
protected $fillable = ['user_id', 'disk', 'path', 'size', 'status', 'message', 'completed_at'];
|
|
protected function casts(): array { return ['completed_at' => 'datetime']; }
|
|
public function user(): BelongsTo { return $this->belongsTo(User::class); }
|
|
}
|