Initial commit
This commit is contained in:
28
database/factories/EvaluationRunFactory.php
Normal file
28
database/factories/EvaluationRunFactory.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\EvaluationRun;
|
||||
use App\Models\EvaluationRuleSet;
|
||||
use App\Models\Round;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\EvaluationRun>
|
||||
*/
|
||||
class EvaluationRunFactory extends Factory
|
||||
{
|
||||
protected $model = EvaluationRun::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'round_id' => Round::factory(),
|
||||
'rule_set_id' => EvaluationRuleSet::factory(),
|
||||
'name' => $this->faker->words(2, true),
|
||||
'rules_version' => 'OFFICIAL',
|
||||
'is_official' => false,
|
||||
'notes' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user