added media, mutation events, agent instructions
linter / quality (push) Failing after 1m3s
tests / ci (8.3) (push) Failing after 48s
tests / ci (8.4) (push) Failing after 1m5s
tests / ci (8.5) (push) Failing after 1m4s

This commit is contained in:
Daan Meijer
2026-06-15 22:30:17 +02:00
parent 1d1ca88aea
commit a1adf1da1c
44 changed files with 2083 additions and 287 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ class ChatFactory extends Factory
public function definition(): array
{
return [
//
'chatable_type' => 'App\\Models\\Dynamic',
'chatable_id' => 1,
];
}
}
+8 -1
View File
@@ -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.",
];
}
}
+12 -1
View File
@@ -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,
];
}
}
+5 -1
View File
@@ -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(),
];
}
}
+8 -1
View File
@@ -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']),
];
}
}