Initial commit
This commit is contained in:
30
database/factories/LogQsoFactory.php
Normal file
30
database/factories/LogQsoFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user