29 lines
740 B
PHP
29 lines
740 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use App\Models\ScheduledDatabaseBackupExecution;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
|
||
|
class ScheduledDatabaseBackupExecutionSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*/
|
||
|
public function run(): void
|
||
|
{
|
||
|
ScheduledDatabaseBackupExecution::create([
|
||
|
'status' => 'success',
|
||
|
'message' => 'Backup created successfully.',
|
||
|
'size' => '10243467789556',
|
||
|
'scheduled_database_backup_id' => 1,
|
||
|
]);
|
||
|
ScheduledDatabaseBackupExecution::create([
|
||
|
'status' => 'failed',
|
||
|
'message' => 'Backup failed.',
|
||
|
'size' => '10243456',
|
||
|
'scheduled_database_backup_id' => 1,
|
||
|
]);
|
||
|
}
|
||
|
}
|