2021-01-23 20:09:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class TaskFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*/
|
|
|
|
public function definition(): array
|
|
|
|
{
|
|
|
|
return [
|
2022-05-29 21:52:14 +00:00
|
|
|
'sequence_id' => $this->faker->numberBetween(1, 10),
|
2021-01-23 20:09:16 +00:00
|
|
|
'action' => 'command',
|
|
|
|
'payload' => 'test command',
|
|
|
|
'time_offset' => 120,
|
|
|
|
'is_queued' => false,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|