fix(backup): implement drag-and-drop restore, direct auto-download, and backup history log

This commit is contained in:
Ray1111-aa
2026-10-28 11:14:47 +07:00
parent 7058cc57c6
commit 0d78318dfe
7 changed files with 699 additions and 103 deletions
+40
View File
@@ -0,0 +1,40 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class BackupLog extends Model
{
use HasFactory;
protected $fillable = [
'user_id',
'user_name',
'filename',
'scope',
'scope_label',
'table_count',
'tables_included',
'include_media',
'file_size',
'file_size_human',
'status',
];
protected $casts = [
'tables_included' => 'array',
'include_media' => 'boolean',
'file_size' => 'integer',
'table_count' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}