Implement project board status workflow

This commit is contained in:
2026-03-25 08:04:34 +01:00
parent f7a0543ea1
commit 7e767b0c6c
22 changed files with 1076 additions and 7 deletions
@@ -0,0 +1,33 @@
<?php
namespace Database\Factories;
use App\Models\Ticket;
use App\Models\TicketWorklogEntry;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<TicketWorklogEntry>
*/
class TicketWorklogEntryFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'actor_id' => User::factory(),
'changes' => [
'from' => 'Backlog',
'to' => 'In Progress',
],
'entry_type' => 'status_changed',
'summary' => 'Moved from Backlog to In Progress.',
'ticket_id' => Ticket::factory(),
];
}
}