added media, mutation events, agent instructions
This commit is contained in:
@@ -18,7 +18,8 @@ class ChatFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'chatable_type' => 'App\\Models\\Dynamic',
|
||||
'chatable_id' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,14 @@ class DynamicFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'name' => $this->faker->randomElement([
|
||||
'The Velvet Sanctuary',
|
||||
'Obsidian Household Agreement',
|
||||
'Crimson Castle Protocol',
|
||||
'Dungeon Master-Sub Board',
|
||||
'Coffee Club Ledger'
|
||||
]),
|
||||
'rules' => "1. All rules must be strictly adhered to.\n2. Scores must be updated after every task.\n3. Disputed scores can be discussed in the dedicated chat.",
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Ledger;
|
||||
use App\Models\Dynamic;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -18,7 +19,17 @@ class LedgerFactory extends Factory
|
||||
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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Message;
|
||||
use App\Models\Chat;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -18,7 +20,9 @@ class MessageFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'chat_id' => Chat::factory(),
|
||||
'user_id' => User::factory(),
|
||||
'content' => $this->faker->sentence(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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