28 lines
786 B
PHP
28 lines
786 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Log;
|
|
use App\Models\Round;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Log>
|
|
*/
|
|
class LogFactory extends Factory
|
|
{
|
|
protected $model = Log::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'round_id' => Round::factory(),
|
|
'pcall' => strtoupper($this->faker->bothify('OK#???')),
|
|
'pwwlo' => $this->faker->randomElement(['JN79', 'JN89', 'JO60', 'JN99']),
|
|
'psect' => $this->faker->randomElement(['A', 'B', 'C', 'D']),
|
|
'pband' => $this->faker->randomElement(['144', '432', '1296']),
|
|
'power_watt' => $this->faker->numberBetween(10, 1000),
|
|
];
|
|
}
|
|
}
|