DocsOIntelDatabase Tables
Developer

Database Tables

OIntelorravo.com/docs/ointel/database-tables

All table names are prefixed with the WordPress table prefix ($wpdb->prefix).

{prefix}ointel_snapshots

ColumnTypeDescription
idBIGINT UNSIGNEDPrimary key
labelVARCHAR(200)Human-readable label
typeVARCHAR(20)manual or auto
scoreTINYINT UNSIGNEDHealth score at snapshot time
data_jsonLONGTEXTJSON blob of site state data
issues_jsonLONGTEXTJSON blob of check results
created_atDATETIMESnapshot timestamp

{prefix}ointel_scan_log

ColumnTypeDescription
idBIGINT UNSIGNEDPrimary key
started_atDATETIMEWhen scan started
duration_msINT UNSIGNEDScan duration in milliseconds
scoreTINYINT UNSIGNEDHealth score
issues_criticalSMALLINT UNSIGNEDCount of critical issues
issues_warningSMALLINT UNSIGNEDCount of warnings
issues_infoSMALLINT UNSIGNEDCount of info items
issues_okSMALLINT UNSIGNEDCount of passing checks
results_jsonLONGTEXTFull check results JSON
triggered_byVARCHAR(20)manual, cron, cli, rest

{prefix}ointel_alert_log

ColumnTypeDescription
idBIGINT UNSIGNEDPrimary key
typeVARCHAR(50)Alert type key
channelVARCHAR(20)email or slack
messageTEXTAlert message body
recipientsTEXTEmail address(es) or Slack channel
statusVARCHAR(20)sent or failed
sent_atDATETIMEWhen alert was sent

{prefix}ointel_sessions

ColumnTypeDescription
idBIGINT UNSIGNEDPrimary key
user_idBIGINT UNSIGNEDWP user ID
session_tokenVARCHAR(64)WP session token
ipVARCHAR(45)Client IP address
user_agentVARCHAR(500)Browser user agent
last_activityDATETIMELast seen timestamp
created_atDATETIMESession start timestamp

{prefix}ointel_activity_log

ColumnTypeDescription
idBIGINT UNSIGNEDPrimary key
user_idBIGINT UNSIGNEDWP user ID (0 = unauthenticated)
actionVARCHAR(100)Action key (e.g. login, login_failed)
objectVARCHAR(200)Object of the action (e.g. page slug, post ID)
ipVARCHAR(45)Client IP address
created_atDATETIMEEvent timestamp

Database Tables — OIntel Docs — Orravo