This repository has been archived on 2026-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
php-agentic/Models
darbs-claude 8c1cd9ed4f fix: verify prompt_versions migration exists, add model docblock
Investigation confirms migration exists at
Migrations/0001_01_01_000004_create_prompt_tables.php with all
required columns, foreign keys, and indexes:

- prompt_id FK (cascadeOnDelete)
- version (unsignedInteger)
- system_prompt, user_template (text, nullable)
- variables (json, nullable)
- created_by FK to users (nullOnDelete)
- composite index on [prompt_id, version]

Feature tests at tests/Feature/PromptVersionTest.php cover
creation, relationships, restore, and version history.

Adds @property docblock to PromptVersion model for IDE support,
consistent with AgentWorkspaceState.

Closes #22

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 06:41:45 +00:00
..
AgentApiKey.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentPhase.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentPlan.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentSession.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentWorkspaceState.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
Prompt.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
PromptVersion.php fix: verify prompt_versions migration exists, add model docblock 2026-02-23 06:41:45 +00:00
Task.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
WorkspaceState.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00