wp_aicom_api_keys

Static

Stores aicom api keys data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
labelVARCHAR(191)NO
scopes_jsonLONGTEXTNO
restrictions_jsonLONGTEXTYES
statusVARCHAR(20)NO
last_used_atDATETIMEYES
last_used_ipVARCHAR(45)YES
created_atDATETIMENO
updated_atDATETIMENO
created_by_user_idBIGINT UNSIGNEDYES
revoked_atDATETIMEYES
created_atDATETIMENO
request_idVARCHAR(64)NO
remote_ipVARCHAR(45)NO
api_key_idBIGINT UNSIGNEDYES
api_key_labelVARCHAR(191)YES
tool_nameVARCHAR(191)NO
moduleVARCHAR(64)NO
statusVARCHAR(32)NO
http_statusSMALLINTYES
duration_msINT UNSIGNEDYES
target_typeVARCHAR(64)YES
target_idVARCHAR(100)YES
is_dry_runTINYINT(1)NO
error_codeVARCHAR(100)YES
error_messageTEXTYES
params_jsonLONGTEXTYES
result_summary_jsonLONGTEXTYES
created_atDATETIMENO
request_idVARCHAR(64)YES
api_key_idBIGINT UNSIGNEDYES
tool_nameVARCHAR(191)YES
target_typeVARCHAR(64)YES
target_idVARCHAR(100)YES
manifest_jsonLONGTEXTYES
payload_jsonLONGTEXTYES

CREATE TABLE Statement

CREATE TABLE wp_aicom_api_keys ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, label VARCHAR(191) NOT NULL, key_prefix VARCHAR(16) NOT NULL, key_hash VARCHAR(255) NOT NULL, scopes_json LONGTEXT NOT NULL, restrictions_json LONGTEXT NULL, status VARCHAR(20) NOT NULL DEFAULT 'active', last_used_at DATETIME NULL, last_used_ip VARCHAR(45) NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by_user_id BIGINT UNSIGNED NULL, revoked_at DATETIME NULL, PRIMARY KEY (id), KEY idx_key_prefix (key_prefix), KEY idx_status (status) ) $charset;"; // ── Audit Logs ──────────────────────────────────────────────────── $sql_logs = "CREATE TABLE wp_aicom_logs ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, created_at DATETIME NOT NULL, request_id VARCHAR(64) NOT NULL, remote_ip VARCHAR(45) NOT NULL, api_key_id BIGINT UNSIGNED NULL, api_key_label VARCHAR(191) NULL, tool_name VARCHAR(191) NOT NULL, module VARCHAR(64) NOT NULL, status VARCHAR(32) NOT NULL, http_status SMALLINT NULL, duration_ms INT UNSIGNED NULL, target_type VARCHAR(64) NULL, target_id VARCHAR(100) NULL, is_dry_run TINYINT(1) NOT NULL DEFAULT 0, error_code VARCHAR(100) NULL, error_message TEXT NULL, params_json LONGTEXT NULL, result_summary_json LONGTEXT NULL, PRIMARY KEY (id), KEY idx_created_at (created_at), KEY idx_tool_created (tool_name, created_at), KEY idx_status_created (status, created_at), KEY idx_ip_created (remote_ip, created_at), KEY idx_key_created (api_key_id, created_at), KEY idx_request_id (request_id) ) $charset;"; // ── Backups ─────────────────────────────────────────────────────── $sql_backups = "CREATE TABLE wp_aicom_backups ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, created_at DATETIME NOT NULL, request_id VARCHAR(64) NULL, api_key_id BIGINT UNSIGNED NULL, tool_name VARCHAR(191) NULL, target_type VARCHAR(64) NULL, target_id VARCHAR(100) NULL, manifest_json LONGTEXT NULL, payload_json LONGTEXT NULL, PRIMARY KEY (id), KEY idx_created_at (created_at), KEY idx_target (target_type, target_id) ) $charset;"; dbDelta( $sql_keys );

Safe to delete?

If you have uninstalled AICOM – AI Commander, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_aicom_api_keys`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from AICOM – AI Commander