Skip to content

Schema: channels

Part of the generated database reference.

call_logs

  • Domain: channels Β· Feature gate: #[cfg(feature = "channels")] Β· Migration: 6.5.90-call-logs
  • Rust source: botschema/src/channels.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
bot_id UUID no β€” β€” β€”
direction VARCHAR(12) no 'inbound' β€” β€”
from_number VARCHAR(40) yes β€” β€” β€”
to_number VARCHAR(40) yes β€” β€” β€”
status VARCHAR(24) no 'completed' β€” β€”
duration_sec INTEGER yes β€” β€” β€”
recording_ref TEXT yes β€” β€” β€”
transcript TEXT yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

channel_bindings

  • Domain: channels Β· Feature gate: #[cfg(feature = "channels")] Β· Migration: 6.5.90-call-logs
  • Rust source: botschema/src/channels.rs
Column SQL type Null Default Key References
bot_id UUID no β€” PK β€”
phone_default VARCHAR(40) yes β€” β€” β€”
whatsapp_number VARCHAR(40) yes β€” β€” β€”
telegram_username VARCHAR(80) yes β€” β€” β€”
domains JSONB no '[]'::jsonb β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”