Files
pterodactyl-panel/database/Factories/TaskFactory.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

27 lines
578 B
PHP

<?php
declare(strict_types=1);
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Pterodactyl\Models\Schedule;
class TaskFactory extends Factory
{
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'schedule_id' => Schedule::factory(),
'sequence_id' => fake()->numberBetween(1, 10),
'action' => 'command',
'payload' => 'test command',
'time_offset' => 120,
'is_queued' => false,
];
}
}