lasthourcloud/database/seeders/ScheduledDatabaseBackupSeeder.php
2023-08-10 15:52:54 +02:00

25 lines
552 B
PHP

<?php
namespace Database\Seeders;
use App\Models\ScheduledDatabaseBackup;
use Illuminate\Database\Seeder;
class ScheduledDatabaseBackupSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
ScheduledDatabaseBackup::create([
'enabled' => true,
'frequency' => '* * * * *',
'number_of_backups_locally' => 2,
'database_id' => 1,
'database_type' => 'App\Models\StandalonePostgresql',
'team_id' => 0,
]);
}
}