wp_aime_modules

Static

Stores aime modules data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
module_idvarchar(50)NO
is_activetinyint(1)NO
settingslongtextYES
activated_atdatetimeYES
updated_atdatetimeYES
module_idvarchar(50)YES
levelvarchar(20)NO
messagetextNO
contextlongtextYES
created_atdatetimeNO
connection_idvarchar(64)NO
connection_namevarchar(191)NO
providervarchar(50)NO
modelvarchar(191)NO
taskvarchar(50)NO
prompt_tokensbigint(20) unsignedNO
completion_tokensbigint(20) unsignedNO
successtinyint(1)NO
created_atdatetimeNO
typevarchar(50)NO
payloadlongtextYES
statusvarchar(20)NO
attemptstinyint(3) unsignedNO
resultlongtextYES
errortextYES
created_atdatetimeNO
started_atdatetimeYES
completed_atdatetimeYES

CREATE TABLE Statement

CREATE TABLE wp_aime_modules ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, module_id varchar(50) NOT NULL, is_active tinyint(1) NOT NULL DEFAULT 1, settings longtext, activated_at datetime DEFAULT NULL, updated_at datetime DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY idx_module_id (module_id) ) {$charset_collate};"; // Activity log. $tables[] = "CREATE TABLE wp_aime_log ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, module_id varchar(50) DEFAULT 'core', level varchar(20) NOT NULL DEFAULT 'info', message text NOT NULL, context longtext, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_module (module_id), KEY idx_level (level), KEY idx_created (created_at) ) {$charset_collate};"; // AI usage log (token accounting per generation call). $tables[] = "CREATE TABLE wp_aime_ai_usage ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, connection_id varchar(64) NOT NULL DEFAULT '', connection_name varchar(191) NOT NULL DEFAULT '', provider varchar(50) NOT NULL DEFAULT '', model varchar(191) NOT NULL DEFAULT '', task varchar(50) NOT NULL DEFAULT 'text', prompt_tokens bigint(20) unsigned NOT NULL DEFAULT 0, completion_tokens bigint(20) unsigned NOT NULL DEFAULT 0, success tinyint(1) NOT NULL DEFAULT 1, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_created (created_at), KEY idx_connection (connection_id) ) {$charset_collate};"; // Background AI job queue. $tables[] = "CREATE TABLE wp_aime_ai_jobs ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, type varchar(50) NOT NULL, payload longtext, status varchar(20) NOT NULL DEFAULT 'pending', attempts tinyint(3) unsigned NOT NULL DEFAULT 0, result longtext, error text, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, started_at datetime DEFAULT NULL, completed_at datetime DEFAULT NULL, PRIMARY KEY (id), KEY idx_status (status), KEY idx_created (created_at) ) {$charset_collate};"; foreach ( $tables as $sql ) { dbDelta( $sql );

Safe to delete?

If you have uninstalled AI Marketing Expert — AI Email Marketing, AI Content Generator, SEO Analyzer, AI Workflow Automation, Social Media & Ai Chatbot, 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_aime_modules`;

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

Other tables from AI Marketing Expert — AI Email Marketing, AI Content Generator, SEO Analyzer, AI Workflow Automation, Social Media & Ai Chatbot