Enterprise Services administration dashboard
* 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
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?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); }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Modules\Enterprise\Models;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
final class HealthRun extends Model
|
||||
{
|
||||
protected $table = 'enterprise_health_runs';
|
||||
protected $fillable = ['user_id', 'status', 'results', 'ran_at'];
|
||||
protected function casts(): array { return ['results' => 'array', 'ran_at' => 'datetime']; }
|
||||
public function user(): BelongsTo { return $this->belongsTo(User::class); }
|
||||
}
|
||||
Reference in New Issue
Block a user