added media, mutation events, agent instructions
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Mutation;
|
||||
use App\Models\Ledger;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -18,7 +20,12 @@ class MutationFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'ledger_id' => Ledger::factory(),
|
||||
'user_id' => User::factory(),
|
||||
'type' => $this->faker->randomElement(['addition', 'subtraction', 'reward', 'penalty']),
|
||||
'amount' => $this->faker->randomElement([5, 10, 15, -5, -10, -25]),
|
||||
'description' => $this->faker->sentence(),
|
||||
'status' => $this->faker->randomElement(['approved', 'pending', 'rejected']),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user