Files
PaperClipAI/packages/db/src/migrations/0262_lying_avengers.sql
T
DottaandPaperclip 6abeb67334 feat: add opt-in chat provider and data foundation (#13100)
Add dormant provider contracts, qualified patched adapters, tenant-scoped persistence and lifecycle ownership without activating chat routes. Preserve the experimental integration as dependent PR #13038.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 13:49:12 -05:00

3 lines
326 B
SQL

CREATE UNIQUE INDEX "chat_endpoints_live_discord_bot_external_uq" ON "chat_endpoints" USING btree ("provider","bot_external_id") WHERE "chat_endpoints"."provider" = 'discord'
and "chat_endpoints"."status" in ('verifying', 'active', 'paused', 'attention')
and "chat_endpoints"."bot_external_id" is not null;