- Create chatConversations table with companyId FK, agentId FK (set null), pinned/archived/deleted timestamps - Create chatMessages table with conversationId FK (cascade delete), role, content, agentId - Export both tables from packages/db/src/schema/index.ts - Generate migration 0047_nebulous_klaw.sql with full DDL, FK constraints, and indexes |
||
|---|---|---|
| .. | ||
| adapter-utils | ||
| adapters | ||
| branding | ||
| db | ||
| plugins | ||
| shared | ||