Add LlmProviderInstance Prisma Schema #128

Closed
opened 2026-01-30 21:28:41 +00:00 by jason.woltje · 0 comments
Owner

Create database schema for LLM provider instance configuration.

Objective: Add LlmProviderInstance model for database-backed configuration.

Tasks:

  • Add LlmProviderInstance model to schema.prisma
  • Define fields: id, provider_type, display_name, user_id, config, is_default, is_enabled
  • Add indexes for performance
  • Create migration
  • Run migration on dev database
  • Update Prisma client types

Schema Pattern:

  • System-level instances: user_id = NULL
  • User-level instances: user_id = UUID
  • JSON config field for provider-specific settings

Acceptance Criteria:

  • Migration runs successfully
  • Model accessible via Prisma client
  • Indexes created correctly
  • No data loss

Related: Epic #121, Phase 1 LLM Abstraction

Create database schema for LLM provider instance configuration. Objective: Add LlmProviderInstance model for database-backed configuration. Tasks: - Add LlmProviderInstance model to schema.prisma - Define fields: id, provider_type, display_name, user_id, config, is_default, is_enabled - Add indexes for performance - Create migration - Run migration on dev database - Update Prisma client types Schema Pattern: - System-level instances: user_id = NULL - User-level instances: user_id = UUID - JSON config field for provider-specific settings Acceptance Criteria: - Migration runs successfully - Model accessible via Prisma client - Indexes created correctly - No data loss Related: Epic #121, Phase 1 LLM Abstraction
jason.woltje added the databasedatabasep0phase-1 labels 2026-01-30 21:28:41 +00:00
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-01-30 23:40:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#128