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> |
||
|---|---|---|
| .. | ||
| AgentApiKey.php | ||
| AgentPhase.php | ||
| AgentPlan.php | ||
| AgentSession.php | ||
| AgentWorkspaceState.php | ||
| Prompt.php | ||
| PromptVersion.php | ||
| Task.php | ||
| WorkspaceState.php | ||