+/- table definition

Query

CREATE TABLE automation_agent_handoffs  (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  chatbot_id INTEGER NOT NULL,
  channel TEXT NOT NULL,
  user_key TEXT NOT NULL,
  instructions TEXT,
  context_json TEXT,
  is_active INTEGER DEFAULT 1,
  source_automation_id INTEGER,
  replies_sent INTEGER DEFAULT 0,
  max_bot_replies INTEGER,
  created_at TEXT NOT NULL,
  updated_at TEXT,
  UNIQUE(chatbot_id, channel, user_key)
)
Use Shift + Up/Down to navigate recently-executed queries