wp_aicom_api_keys
StaticStores aicom api keys data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| label | VARCHAR(191) | NO |
| scopes_json | LONGTEXT | NO |
| restrictions_json | LONGTEXT | YES |
| status | VARCHAR(20) | NO |
| last_used_at | DATETIME | YES |
| last_used_ip | VARCHAR(45) | YES |
| created_at | DATETIME | NO |
| updated_at | DATETIME | NO |
| created_by_user_id | BIGINT UNSIGNED | YES |
| revoked_at | DATETIME | YES |
| created_at | DATETIME | NO |
| request_id | VARCHAR(64) | NO |
| remote_ip | VARCHAR(45) | NO |
| api_key_id | BIGINT UNSIGNED | YES |
| api_key_label | VARCHAR(191) | YES |
| tool_name | VARCHAR(191) | NO |
| module | VARCHAR(64) | NO |
| status | VARCHAR(32) | NO |
| http_status | SMALLINT | YES |
| duration_ms | INT UNSIGNED | YES |
| target_type | VARCHAR(64) | YES |
| target_id | VARCHAR(100) | YES |
| is_dry_run | TINYINT(1) | NO |
| error_code | VARCHAR(100) | YES |
| error_message | TEXT | YES |
| params_json | LONGTEXT | YES |
| result_summary_json | LONGTEXT | YES |
| created_at | DATETIME | NO |
| request_id | VARCHAR(64) | YES |
| api_key_id | BIGINT UNSIGNED | YES |
| tool_name | VARCHAR(191) | YES |
| target_type | VARCHAR(64) | YES |
| target_id | VARCHAR(100) | YES |
| manifest_json | LONGTEXT | YES |
| payload_json | LONGTEXT | YES |
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