- Verify agent_sessions.session_id: unique() constraint creates an
implicit unique index (agent_sessions_session_id_unique) which is
sufficient for string lookups; no additional index required
- Drop redundant agent_plans_slug_index: the unique() constraint on
slug already provides agent_plans_slug_unique covering all lookups
- Add compound (workspace_id, slug) index on agent_plans for the
common routing pattern WHERE workspace_id = ? AND slug = ?
- Verify agent_workspace_states.key: already indexed via ->index('key')
in migration 000003; no additional index required
- Mark DB-002 as resolved in TODO.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| 0001_01_01_000001_create_agentic_tables.php | ||
| 0001_01_01_000002_add_ip_whitelist_to_agent_api_keys.php | ||
| 0001_01_01_000003_create_agent_plans_tables.php | ||
| 0001_01_01_000004_create_prompt_tables.php | ||
| 0001_01_01_000005_add_performance_indexes.php | ||