Skip to main content

Data Models Overview

This section provides comprehensive documentation of the data structures in OPBX.

Categories​

Database Models​

Complete reference of all Eloquent models including:

  • Table structure and columns
  • Relationships
  • Scopes and mutators
  • Business logic methods

Enumerations​

All PHP enums used throughout the application:

  • Status enums
  • Type enums
  • Strategy enums
  • Mode enums

Configuration​

Configuration files and environment variables:

  • Application config
  • Service configuration
  • Environment variables
  • Feature flags

Key Models by Module​

Auto Dialer​

Core PBX​

AI Integration​

Users & Organizations​

Call & Logging​

Security​

Recently Added​

Call Record Tiers and Platform Status (2026-10)​

ChangePurpose
archived_call_detail_recordsWarm tier for call records 6-12 months old
direction on call_detail_recordsCall direction, copied from the session update
platform_health_checksPlatform Status history
unavailable destination typeAdded to every routing destination enum column

The unused VoiceAgent model was removed; AI assistants are AiAssistant.

Caller ID Pooling (v2026.04)​

New models supporting multiple Caller IDs per campaign:

ModelPurpose
AutoDialerCampaignCallerIdPivot table linking campaigns to DIDs
AutoDialerCallerIdStatTracks call statistics per Caller ID

See Campaign Manager for usage documentation.