37 lines
877 B
PHP
37 lines
877 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Dynamic;
|
|
use App\Models\Ledger;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Ledger>
|
|
*/
|
|
class LedgerFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'dynamic_id' => Dynamic::factory(),
|
|
'name' => $this->faker->randomElement([
|
|
'Curfew Compliance',
|
|
'Worship & Praise',
|
|
'Dungeon Cleaning',
|
|
'Silence Protocol',
|
|
'Task Completion',
|
|
'Tribute Points',
|
|
]),
|
|
'rules' => 'Scores are added by Doms and subtracted for protocol breaches.',
|
|
'score' => 0,
|
|
'alignment' => 'neutral',
|
|
];
|
|
}
|
|
}
|