feat(captain): align preferences payloads

This commit is contained in:
2026-06-05 12:56:25 +08:00
parent fb1c739589
commit 57f864e68c
10 changed files with 436 additions and 168 deletions
@@ -0,0 +1,3 @@
ALTER TABLE accounts
DROP COLUMN IF EXISTS captain_features,
DROP COLUMN IF EXISTS captain_models;
@@ -0,0 +1,5 @@
-- Chatwoot stores Captain model/feature preferences in account settings.
ALTER TABLE accounts
ADD COLUMN IF NOT EXISTS captain_models JSONB NOT NULL DEFAULT '{}',
ADD COLUMN IF NOT EXISTS captain_features JSONB NOT NULL DEFAULT '{}';