31 lines
957 B
PHP
31 lines
957 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Log;
|
|
use App\Models\LogQso;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\LogQso>
|
|
*/
|
|
class LogQsoFactory extends Factory
|
|
{
|
|
protected $model = LogQso::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'log_id' => Log::factory(),
|
|
'qso_index' => $this->faker->numberBetween(1, 1000),
|
|
'time_on' => $this->faker->dateTime(),
|
|
'band' => $this->faker->randomElement(['144', '432', '1296']),
|
|
'freq_khz' => $this->faker->numberBetween(144000, 1296000),
|
|
'mode' => $this->faker->randomElement(['CW', 'SSB', 'FM']),
|
|
'my_call' => strtoupper($this->faker->bothify('OK#???')),
|
|
'dx_call' => strtoupper($this->faker->bothify('DL#???')),
|
|
'points' => $this->faker->numberBetween(1, 500),
|
|
];
|
|
}
|
|
}
|